Author Topic: Multiple microcontrollers  (Read 5769 times)

0 Members and 1 Guest are viewing this topic.

Offline geek1Topic starter

  • Full Member
  • ***
  • Posts: 64
  • Helpful? 0
Multiple microcontrollers
« on: January 05, 2009, 03:20:30 PM »
Can someone give me a schematic for linking 2-3 ATmega8 microcontrollers together?






Thanks.
New roboticist and lovin it ;D ;D ;D

Offline Rebelgium

  • Supreme Robot
  • *****
  • Posts: 637
  • Helpful? 0
  • It's called the future ... We like it here
    • orgcrime.net
Re: Multiple microcontrollers
« Reply #1 on: January 05, 2009, 05:48:30 PM »
"linking them together" ? in what way? Use some rope, that'll go fastest.
Make it as easy as possible for us to help you, provide info.

you could let the two communicate via I²C. Google it. :)
To relax after some hard work on robotics: A very fun free online text based MMORPG
orgcrime.net

Offline geek1Topic starter

  • Full Member
  • ***
  • Posts: 64
  • Helpful? 0
Re: Multiple microcontrollers
« Reply #2 on: January 05, 2009, 07:01:27 PM »
Thanks, I tried googling I2C but couldn't find any schematics :'( Could you please give me a link?






Thanks.
New roboticist and lovin it ;D ;D ;D

Offline Ro-Bot-X

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 1,431
  • Helpful? 25
  • Store: RoBotXDesigns.ca
    • Ro-Bot-X Designs
Re: Multiple microcontrollers
« Reply #3 on: January 05, 2009, 07:39:39 PM »
Check out the uBotino robot controller!

Offline Rebelgium

  • Supreme Robot
  • *****
  • Posts: 637
  • Helpful? 0
  • It's called the future ... We like it here
    • orgcrime.net
Re: Multiple microcontrollers
« Reply #4 on: January 06, 2009, 11:14:54 AM »
Thanks, I tried googling I2C but couldn't find any schematics :'( Could you please give me a link?






Thanks.

I googled I2C schematic and found it immedeatly...
It's not much of a schematic anyway:
connect the two SDA pins to eachother, connect the two SCL pins together, and connect 2 resistors (2K2 if I remember correctly) to these two lines, and the other end of the resistor to Vcc. (pull up resistor)
To relax after some hard work on robotics: A very fun free online text based MMORPG
orgcrime.net

Offline airman00

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 3,650
  • Helpful? 21
  • narobo.com
    • Narobo.com - Mechatronics and related
Re: Multiple microcontrollers
« Reply #5 on: January 06, 2009, 11:16:45 AM »
Can someone give me a schematic for linking 2-3 ATmega8 microcontrollers together?
why do you want to link them? Many jobs can be done with one microcontroller .
Check out the Roboduino, Arduino-compatible board!


Link: http://curiousinventor.com/kits/roboduino

www.Narobo.com

Offline want2learn

  • Robot Overlord
  • ****
  • Posts: 189
  • Helpful? 4
Re: Multiple microcontrollers
« Reply #6 on: January 06, 2009, 12:11:18 PM »
I'm pretty interested in this thread too.
I'm still learning programming and can't wrap my head around the I2C software.
I've got a couple of ideas for multiple uC applications.
Any good links on I2C for people probably at a kids level of programming??
(no I'm not a kid but i figure if a kid can get it so can i)
The question that drives me hazy:

Am I, or the others crazy?

Offline waymental

  • Jr. Member
  • **
  • Posts: 28
  • Helpful? 0

Offline geek1Topic starter

  • Full Member
  • ***
  • Posts: 64
  • Helpful? 0
Re: Multiple microcontrollers
« Reply #8 on: January 06, 2009, 03:11:49 PM »
Thanks, I tried googling I2C but couldn't find any schematics :'( Could you please give me a link?






Thanks.

I googled I2C schematic and found it immedeatly...
It's not much of a schematic anyway:
connect the two SDA pins to eachother, connect the two SCL pins together, and connect 2 resistors (2K2 if I remember correctly) to these two lines, and the other end of the resistor to Vcc. (pull up resistor)


Can you tell me which pins on the ATmega8 to do this with?







Thanks.
New roboticist and lovin it ;D ;D ;D

Offline Razor Concepts

  • Supreme Robot
  • *****
  • Posts: 1,856
  • Helpful? 53
    • RazorConcepts
Re: Multiple microcontrollers
« Reply #9 on: January 06, 2009, 04:18:36 PM »
http://www.atmel.com/dyn/resources/prod_documents/2486S.pdf
The top two pins on the top right of the MCU are SDA and SCL

paulstreats

  • Guest
Re: Multiple microcontrollers
« Reply #10 on: January 06, 2009, 05:24:34 PM »
You must also understand that linking microcontrollers will only allow them to communicate with each other. They wont truly be able to share tasks or divide processing like this.

I remember a topic a while ago where I shared my ideas and pictures of my dual PIC board and there seemed to be a few people excited in the idea of having a dual processor board. But in reality all they can ever do is communicate with each other. (though by linking all of the pins you can create a supervisor / worker pair which is a project that i still want to investigate...)

Offline Ro-Bot-X

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 1,431
  • Helpful? 25
  • Store: RoBotXDesigns.ca
    • Ro-Bot-X Designs
Re: Multiple microcontrollers
« Reply #11 on: January 06, 2009, 05:56:06 PM »
Can you tell me which pins on the ATmega8 to do this with?

Thanks.

Did you read all of the tutorial (I gave you the link in the previous post)? There is a schematic there... And if you take a look at the datasheet of the ATmega8 you'll see the pin configuration on the second page.
Check out the uBotino robot controller!

Offline TrickyNekro

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 1,208
  • Helpful? 15
  • Hardware and Firmware Designer
    • The Hellinic Robots Portal
Re: Multiple microcontrollers
« Reply #12 on: January 06, 2009, 06:10:20 PM »
It really depends on what you want to do...
I'm working on a UART chain for more that 2 microcontrollers, but really...
I need them for various tasks... One or more tasks per micro...
What you can really consider in programming is tasking...
Programming is for solving a problem with a certain sequence...
A problem is a task then... But a problem can also be divided to other smaller problems as tasks...
What I'm suggesting here is that knowing your task and hardware only leads you to correct results...

What is your application??? You may as well don't need two micros...
For whom the interrupts toll...

Offline geek1Topic starter

  • Full Member
  • ***
  • Posts: 64
  • Helpful? 0
Re: Multiple microcontrollers
« Reply #13 on: January 06, 2009, 07:51:44 PM »
You must also understand that linking microcontrollers will only allow them to communicate with each other. They wont truly be able to share tasks or divide processing like this.

I remember a topic a while ago where I shared my ideas and pictures of my dual PIC board and there seemed to be a few people excited in the idea of having a dual processor board. But in reality all they can ever do is communicate with each other. (though by linking all of the pins you can create a supervisor / worker pair which is a project that i still want to investigate...)




Can you tell me what the topic was called?







Thanks.
New roboticist and lovin it ;D ;D ;D

Offline Ro-Bot-X

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 1,431
  • Helpful? 25
  • Store: RoBotXDesigns.ca
    • Ro-Bot-X Designs
Re: Multiple microcontrollers
« Reply #14 on: January 06, 2009, 09:33:32 PM »
Check out the uBotino robot controller!

 

SMF spam blocked by CleanTalk