Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: jamort on November 02, 2008, 07:23:12 AM

Title: microcontrollers
Post by: jamort on November 02, 2008, 07:23:12 AM
I'm still working on my project and I'm goping to need so many imput/out put i was wondering if it is possible to make more than one microcontroller control a robot nand actually have the two microcontrollers sommunicate sensors or what not
Title: Re: microcontrollers
Post by: Half Shell on November 02, 2008, 08:19:49 AM
Actually, more complicated robots tend to have multiple brains - be they multiple PCs or multiple controllers.

It is not unusual at all to have a microcontroller dedicated to a simple task, and then have it communicate with a larger, more powerful processor or microcontrolle any data it may need.

For instance, you can have one microcontroller dedicated to controlling and regulating the speed of two motors. Then have another one read sensor input and translate the data. Have a third control your camera turret, and a fourth talk to all of them and figure out what to do with the data.
Title: Re: microcontrollers
Post by: ArcMan on November 02, 2008, 10:43:50 PM
Right.  And a good way to communicate between them is I2C serial communications.  I2C was designed for that.
Title: Re: microcontrollers
Post by: superchiku on November 02, 2008, 11:36:57 PM
the more micro u use the more smarter and complex ur robot can bcome... so if u think u can handle themm then use them wisely communication can be serial or i2c whatever u like