Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: lkik on April 09, 2009, 09:03:15 PM

Title: microcontrollers working together
Post by: lkik on April 09, 2009, 09:03:15 PM
is there any way to make the $50 robot microcontroller with more then one at-mega8 chip  just wondering because i have 5 at mega8
Title: Re: microcontrollers working together
Post by: SmAsH on April 09, 2009, 09:04:07 PM
i cant really see a point. why would you want more atmegas? why not make more $50 robots?
Title: Re: microcontrollers working together
Post by: Razor Concepts on April 09, 2009, 09:15:48 PM
Yes, you can connect them via i2c and have them "talk" to each other.

The point is to have one master microcontroller to do all the thinking and several slave microcontrollers to do any time consuming, repetitive dirty work.
Title: Re: microcontrollers working together
Post by: SmAsH on April 09, 2009, 09:28:40 PM
Yes, you can connect them via i2c and have them "talk" to each other.

The point is to have one master microcontroller to do all the thinking and several slave microcontrollers to do any time consuming, repetitive dirty work.
yes razor, i know about slaves and masters i just didnt quite get what he meant, sorry.
Title: Re: microcontrollers working together
Post by: lkik on April 09, 2009, 10:55:45 PM
Yes, you can connect them via i2c and have them "talk" to each other.
and how would i do that
Title: Re: microcontrollers working together
Post by: SmAsH on April 09, 2009, 11:05:48 PM
take a look at this to see what it is: http://www.societyofrobots.com/member_tutorials/node/35 (http://www.societyofrobots.com/member_tutorials/node/35) then if you need any help we can give it to you.
Title: Re: microcontrollers working together
Post by: TrickyNekro on April 10, 2009, 11:17:17 AM
well.... parallel microcontrollers are used for heavy tasks.... the 50$ robot isn't
but you can have the one microcontroller control the left side and the other the right side....
And talk to each other to see what each read...
I2C isn't necessary.... I use Uart, and the best slave master is done with SPI!!!
in I2C devices are mostly equal just have an address, and do what they are asked...
Using parallel microcontrollers, naughty... sometimes....
Learn about timeslots to works with multiple microcontrollers not just two...
One coordinator and other a task doings and sensors....
But really.... why this mess....
KISS factor is a solving meter for human stupidity...
Try mastering the micro instead.... But, hey, using parallel microcontrollers is mastery in communications
Just don;t over do it..... ::)