Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: geek1 on January 05, 2009, 03:20:30 PM
-
Can someone give me a schematic for linking 2-3 ATmega8 microcontrollers together?
Thanks.
-
"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. :)
-
Thanks, I tried googling I2C but couldn't find any schematics :'( Could you please give me a link?
Thanks.
-
You may want to read this: http://www.societyofrobots.com/member_tutorials/node/35 (http://www.societyofrobots.com/member_tutorials/node/35)
-
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 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 .
-
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)
-
http://www.best-microcontroller-projects.com/i2c-tutorial.html (http://www.best-microcontroller-projects.com/i2c-tutorial.html)
-
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.
-
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
-
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 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.
-
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...
-
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.
-
Here is another nice into to I2C:
http://www.uchobby.com/index.php/2008/09/16/introduction-to-i2c/#comment-135985 (http://www.uchobby.com/index.php/2008/09/16/introduction-to-i2c/#comment-135985)