Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > General Hardware Discussion > Fusion Brain


Reply
 
Share Thread Tools Display Modes
Old 03-07-2009, 09:52 PM   #1
Newbie
 
Join Date: Feb 2009
Location: Melbourne, Victoria, Australia
Posts: 18
baillie11 is an unknown quantity at this point
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

Last edited by baillie11; 03-08-2009 at 12:22 AM.
baillie11 is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 03-07-2009, 09:57 PM   #2
Newbie
 
Join Date: Feb 2009
Location: Melbourne, Victoria, Australia
Posts: 18
baillie11 is an unknown quantity at this point
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???
baillie11 is offline   Reply With Quote
Old 03-07-2009, 11:58 PM   #3
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
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.
2k1Toaster is offline   Reply With Quote
Old 03-08-2009, 12:20 AM   #4
Newbie
 
Join Date: Feb 2009
Location: Melbourne, Victoria, Australia
Posts: 18
baillie11 is an unknown quantity at this point
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
baillie11 is offline   Reply With Quote
Old 03-08-2009, 12:30 AM   #5
Newbie
 
Join Date: Feb 2009
Location: Melbourne, Victoria, Australia
Posts: 18
baillie11 is an unknown quantity at this point
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.
baillie11 is offline   Reply With Quote
Old 03-08-2009, 12:37 AM   #6
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
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.

Last edited by 2k1Toaster; 03-08-2009 at 12:48 AM.
2k1Toaster is offline   Reply With Quote
Old 03-08-2009, 12:41 AM   #7
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
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.
2k1Toaster is offline   Reply With Quote
Old 03-08-2009, 12:45 AM   #8
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
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.
2k1Toaster is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 03-08-2009, 04:41 AM   #9
Newbie
 
Join Date: Feb 2009
Location: Melbourne, Victoria, Australia
Posts: 18
baillie11 is an unknown quantity at this point
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
baillie11 is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vx Absolute Day & Night ccsnet CF Skins 1 10-30-2008 11:27 AM
Newbie, but not so newbie comptech_69 Newbie 3 12-06-2006 08:33 AM
Newbie says hello everyone atikali2000 Newbie 1 02-16-2006 05:14 PM



All times are GMT -5. The time now is 09:08 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics