Results 1 to 9 of 9

Thread: Absolute Newbie

  1. #1
    Newbie
    Join Date
    Feb 2009
    Location
    Melbourne, Victoria, Australia
    Posts
    20

    Absolute Newbie

    Hi I just got a FB V3 and have NO IDEA where to start.

    I have managed to connect a small motor to it and with a click on a button (Digital Output 4) get it to turn on and Off.

    BUT what if I want to say have it run for 10 seconds, then switch off for 2 seconds then say reverse direction for 10 seconds - how would I do that??

    I can (sort off) see how the configurator works, but how do I get my functions onto the uber mdx control centre.

    Also is there any way to test my functions whilst in the configurator?

    Any assistance would be great.

    Oh and once I know the basics I will be more than happy to do some tutorials to assist other absolute newbies to get started as I think whats available now is for intermediate to advanced users.

    Thanks

    Andrew

  2. #2
    Newbie
    Join Date
    Feb 2009
    Location
    Melbourne, Victoria, Australia
    Posts
    20
    Also on another note (and this may be a stupid question) is it possible to simply add a Light Dependant resistor to the input section to detect light/dark or is there a little more required???

  3. #3
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    Quote Originally Posted by baillie11 View Post
    Also on another note (and this may be a stupid question) is it possible to simply add a Light Dependant resistor to the input section to detect light/dark or is there a little more required???
    You have to use a voltage output sensor as the Fusion Brain does not read resistance. We do sell a photosensor that is a plug-n-play solution with functions already made for it.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  4. #4
    Newbie
    Join Date
    Feb 2009
    Location
    Melbourne, Victoria, Australia
    Posts
    20
    Thanks for your SUPER FAST reply.

    OK, what if I had a Light activated switch kit such as this:
    http://www.dse.com.au/cgi-bin/dse.st.../product/K2632

    I understand its not as pretty as yours but as I have mentioned in my email to you the cost of shipping to Australia is prohibitive.

    Having said that I think the FB is FANTASTIC and want to learn as much as I can and build some great things with it.

    Cheers

  5. #5
    Newbie
    Join Date
    Feb 2009
    Location
    Melbourne, Victoria, Australia
    Posts
    20
    Also what tutorials do you have for SIMPLE stuff and how to get started?

    I have this link - http://www.mp3car.com/vbulletin/fusion-brain/

    but think it may be a little too advanced for my VERY entry level knowledge - lol.

    Im looking for REAL simple low level stuff if you have any.

    Thanks again for your help.

  6. #6
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    Quote Originally Posted by baillie11 View Post
    Hi I just got a FB V4 and have NO IDEA where to start.

    I have managed to connect a small motor to it and with a click on a button (Digital Output 4) get it to turn on and Off.
    That is a pretty good start!

    Quote Originally Posted by baillie11 View Post
    BUT what if I want to say have it run for 10 seconds, then switch off for 2 seconds then say reverse direction for 10 seconds - how would I do that??
    Ok there are multiple ways. The first way is what I have been telling people to do for years now and it works fine, but setup is a little more complicated than it should be.

    To do this with "Solution A", you can use the Configurator for it all. First you need to create two numeric variables that default to 0 (lets say Var1 and Var2). Then you would need to create a logic block that says "if Var1 equals 1, then Var2 = Var2 + 1, else Var2 = 0". And then another logic block that says "if Var1 = 2, then Var1 = 0". Now what this does is basically increment a variable when a second variable is triggered. So To make a button trigger this, you would make a button with its vote to increment Var1 (i.e. "Var1 = Var1 + 1").

    Now this button will start Var2 incrementing when pushed. Next push it will stop and reset the variables.

    Now to make this influence a digital output, you should have another logical block that says "if 1 < var2 < AA, then turn on Digital Output X and turn off Digital Output Y". Another to say "if AA < var2 < BB, then turn off both outputs". And yet another to say "if BB < var2 < CC, then turn off Digital output X and turn on Digital Output Y". And if you want it to autoshutoff then another "if CC < var2, then Var1 = Var1 + ".

    AA, BB, and CC are numbers that are calculated based off of the logic timer interval. If the logic timer is set to 100 (100ms), then to get the first logic statement to be true for 10 seconds (10000ms), you would set AA to 10000ms * [(1 timer tick)/(100ms)] = 100ticks = AA. Now if you want it off for 2 seconds, then 2000/100 = 20 = BB. Now you want the other output on for 10s which again is 100, which equals CC.

    So between time = 1 and time = AA, Digital Output X is on and Digital Output Y is off.
    Between time = AA and time = BB, both outputs are off.
    Between time = BB and time = CC, Digital Output X is off, and Digital Output Y is on.

    Now if this is a regular motor, then you will need some sort of H bridge. And Digital Output X will actually be tied to 2 relays, and Digital Output Y will be tied to relays like in the image below:

    http://en.wikipedia.org/wiki/File:H_..._operating.svg

    Phew... Ok, that is solution 1 and it can all be done in the Configurator. Solution 2 is much simpler but requires editing the FusionConfiguration.xml file directly.

    Code:
    <iochannel id="Digital Output X" port="0" brain="Brain1" type="digital_output">
      <defaults defaultstate="off" />
      <sequence period="1000" iterations="1">
        <value order="0" state="on"></value>
        <value order="10" state="off"></value>
        <value order="12" state="on"></value>
        <value order="22" state="off"></value>
      </sequence>
    </iochannel>
    
    <iochannel id="Digital Output Y" port="1" brain="Brain1" type="digital_output">
      <defaults defaultstate="off" />
      <sequence period="1000" iterations="1">
        <value order="0" state="off"></value>
        <value order="10" state="off"></value>
        <value order="12" state="on"></value>
        <value order="22" state="off"></value>
      </sequence>
    </iochannel>
    Now what that does is every "order * period" (which is 1000ms) it changes the state automatically to "state".

    So at the time the Digital Output X is turned on (time = 0), the output is on. Then at time, time = period * order = 1000 * 10 = 10seconds, it is turned off. At time, time = 1000 * 12 = 12secs, it is turned off. At 22s, it remains off.
    And at the time the Digital Output Y is turned on (time = 0), the output is off. Then at time, time = 10seconds, it is still turned off. At time, time = 12secs, it is turned on. At 22s, it is turned off.

    It loops "iteration" times. You can set it to a # like 1,2,3,4,5,ect... or to "forever".



    Quote Originally Posted by baillie11 View Post
    I can (sort off) see how the configurator works, but how do I get my functions onto the uber mdx control centre.
    You just save your file to the MDX directory and open MDX.

    Quote Originally Posted by baillie11 View Post
    Also is there any way to test my functions whilst in the configurator?
    No. But you can save it to the MDX directory, and then there are various debug options to help inside of MDX. You can have variable and logic block outcome debug windows to see what is going on behind the scenes. Look in the debug options of the configurator for the options.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  7. #7
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    Quote Originally Posted by baillie11 View Post
    Thanks for your SUPER FAST reply.

    OK, what if I had a Light activated switch kit such as this:
    http://www.dse.com.au/cgi-bin/dse.st.../product/K2632

    I understand its not as pretty as yours but as I have mentioned in my email to you the cost of shipping to Australia is prohibitive.

    Having said that I think the FB is FANTASTIC and want to learn as much as I can and build some great things with it.

    Cheers
    If you just want some sensors and such we can put it in a padded envelope for you.

    I cannot tell anything from that image. Any 0v to 5v voltage based photosensor will work. And any resistance based photoresistor will work providing you use another resistor in a voltage divider setup.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  8. #8
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    Quote Originally Posted by baillie11 View Post
    Also what tutorials do you have for SIMPLE stuff and how to get started?

    I have this link - http://www.mp3car.com/vbulletin/fusion-brain/

    but think it may be a little too advanced for my VERY entry level knowledge - lol.

    Im looking for REAL simple low level stuff if you have any.

    Thanks again for your help.
    Here is some documentation: http://www.mp3car.com/vbulletin/fb-d...ion-tutorials/


    I am currently writing the software manual. Currently it is about how things work overall and I am just getting started on the nitty gritty syntax.

    I can send you what I have if you would like so you can sort of see the meaning of what you are doing.

    And like you have seen I try to monitor the forums often and answer questions when I see them. And at about 10PM MST (GMT-7) I get an update with all new threads in here so I try to go through them then as well.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  9. #9
    Newbie
    Join Date
    Feb 2009
    Location
    Melbourne, Victoria, Australia
    Posts
    20
    Thanks again 2K1 Toaster I have just saved my first config file and opened it in MDX.

    OK so it didnt actually work, but I think I know why.

    The point is I know how to "upload" it to the MDX now so can start to experiment.

    Just a suggestion to any other Newbies - Make a back up and save the original config file (C:\Program Files\Fusion Control Centre Uber MDX Edition\MDX\FusionConfiguration) as say FusionConfigurationOriginal.

    This was you can easily go back to the default if you make a mistake.

    Cheers

Similar Threads

  1. Vx Absolute Day & Night
    By ccsnet in forum CF Skins
    Replies: 2
    Last Post: 05-23-2010, 03:05 AM
  2. Newbie, but not so newbie
    By comptech_69 in forum Newbie
    Replies: 3
    Last Post: 12-06-2006, 07:33 AM
  3. Newbie says hello everyone
    By atikali2000 in forum Newbie
    Replies: 1
    Last Post: 02-16-2006, 04:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •