Author Topic: microcontrollers working together  (Read 2869 times)

0 Members and 1 Guest are viewing this topic.

Offline lkikTopic starter

  • Full Member
  • ***
  • Posts: 60
  • Helpful? 0
microcontrollers working together
« 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

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
Re: microcontrollers working together
« Reply #1 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?
Howdy

Offline Razor Concepts

  • Supreme Robot
  • *****
  • Posts: 1,856
  • Helpful? 53
    • RazorConcepts
Re: microcontrollers working together
« Reply #2 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.

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
Re: microcontrollers working together
« Reply #3 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.
Howdy

Offline lkikTopic starter

  • Full Member
  • ***
  • Posts: 60
  • Helpful? 0
Re: microcontrollers working together
« Reply #4 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

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
Re: microcontrollers working together
« Reply #5 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 then if you need any help we can give it to you.
Howdy

Offline TrickyNekro

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 1,208
  • Helpful? 15
  • Hardware and Firmware Designer
    • The Hellinic Robots Portal
Re: microcontrollers working together
« Reply #6 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..... ::)
For whom the interrupts toll...

 

SMF spam blocked by CleanTalk