Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Communication between 2 Atmel microcontrollers

Communication between 2 Atmel microcontrollers

2008-09-26 by Yingdan

Hi everyone,

I am new to here and this is my first post. And I am totally new to
circuitry.

I only had experience of sending and receiving data between a computer
and a microcontroller. I want to learn how 2 atmel microcontrollers
communicate. The scenario is like this:

A microcontroller is connected to my PC, when another microcotroller
is connected to the 1st one, it can be powered and send its id to the
computer. Later on, I want to have multiple microcontrollers and my PC
should be able to figure out the topology.

Many thanks,
Yingdan

Re: [AVR-Chat] Communication between 2 Atmel microcontrollers

2008-09-27 by Leon

----- Original Message ----- 
Show quoted textHide quoted text
From: "Yingdan" <yingdanh@gmail.com>
To: <AVR-Chat@yahoogroups.com>
Sent: Friday, September 26, 2008 6:42 PM
Subject: [AVR-Chat] Communication between 2 Atmel microcontrollers


> Hi everyone,
> 
> I am new to here and this is my first post. And I am totally new to
> circuitry.
> 
> I only had experience of sending and receiving data between a computer
> and a microcontroller. I want to learn how 2 atmel microcontrollers
> communicate. The scenario is like this:
> 
> A microcontroller is connected to my PC, when another microcotroller
> is connected to the 1st one, it can be powered and send its id to the
> computer. Later on, I want to have multiple microcontrollers and my PC
> should be able to figure out the topology

RS-485?

Leon
--
Leon Heller
Amateur radio call-sign  G1HSM
Yaesu FT-817ND transceiver
Suzuki SV1000S motorcycle
leon355@btinternet.com
http://www.geocities.com/leon_heller

Re: [AVR-Chat] Communication between 2 Atmel microcontrollers

2008-09-27 by Gavin Dingley

I don't know if ATMELs AVR series have this, but I would think a CAN bus would be a good option. The coms bus its self is usually a length of coax lead terminated at the end with (usually) 50ohms to stop reflections, then any additional  microcontrollers  are just tagged  on with (for instance) a BNC T-connector. You have one master (the PC) and loads of slaves (microcontrollers). Might be overkill for what you are trying to do, the protocol is quite  complicated, but I would imagine that a CAN bus module within the microcontoller does most of the work for you; however the topology is easy, just a length of transmission line. CAN buses are used in vehicles, including tanks, as well as high end cars such as Mercs.

Cheers,

Gavin

--- On Sat, 9/27/08, Leon <leon355@btinternet.com> wrote:
Show quoted textHide quoted text
From: Leon <leon355@btinternet.com>
Subject: Re: [AVR-Chat] Communication between 2 Atmel microcontrollers
To: AVR-Chat@yahoogroups.com
Date: Saturday, September 27, 2008, 10:25 AM










    
            ----- Original Message ----- 

From: "Yingdan" <yingdanh@gmail. com>

To: <AVR-Chat@yahoogroup s.com>

Sent: Friday, September 26, 2008 6:42 PM

Subject: [AVR-Chat] Communication between 2 Atmel microcontrollers



> Hi everyone,

> 

> I am new to here and this is my first post. And I am totally new to

> circuitry.

> 

> I only had experience of sending and receiving data between a computer

> and a microcontroller. I want to learn how 2 atmel microcontrollers

> communicate. The scenario is like this:

> 

> A microcontroller is connected to my PC, when another microcotroller

> is connected to the 1st one, it can be powered and send its id to the

> computer. Later on, I want to have multiple microcontrollers and my PC

> should be able to figure out the topology



RS-485?



Leon

--

Leon Heller

Amateur radio call-sign  G1HSM

Yaesu FT-817ND transceiver

Suzuki SV1000S motorcycle

leon355@btinternet. com

http://www.geocitie s.com/leon_ heller


      

    
    
	
	 
	
	








	


	
	


      

[Non-text portions of this message have been removed]

Re: [AVR-Chat] Communication between 2 Atmel microcontrollers

2008-09-27 by Edy Gunawan

It depends your own goal, priorities, situation, and constraints, 
there are many kind of interfaces AVR family provide:
1. SPI
2. TWI
3. UART
4. USB -> AT90USBxx
5. Wireless connectivity with IEEE802.15.4, ZigBee, 6LoWPAN
   http://www.atmel.com/products/zigbee/
   Inside Atmel AVR Studio you can find AVR Wireless application
   that explores the wireless network available nearby.

You may explain your plan here . . and BTW, have you visited
http://www.avrfreaks.net/ ?

Edy Gunawan
Show quoted textHide quoted text
-------- Original Message --------
Subject: [AVR-Chat] Communication between 2 Atmel microcontrollers
Date: 	Fri, 26 Sep 2008 17:42:20 -0000
From: 	Yingdan <yingdanh@gmail.com>

Hi everyone,

I am new to here and this is my first post. And I am totally new 
to circuitry.

I only had experience of sending and receiving data between a 
computer and a microcontroller. I want to learn how 2 atmel 
microcontrollers communicate. The scenario is like this:

A microcontroller is connected to my PC, when another 
microcotroller is connected to the 1st one, it can be powered and 
send its id to the computer. Later on, I want to have multiple 
microcontrollers and my PC should be able to figure out the topology.

Many thanks,
Yingdan

Re: [AVR-Chat] Communication between 2 Atmel microcontrollers

2008-09-27 by Zack Widup

Hi Yingdan,

You need to learn about I2C interfaces. You can find data at the Atmel and 
AVRFreaks sites on this as well as other places.

Zack
Show quoted textHide quoted text
On Fri, 26 Sep 2008, Yingdan wrote:

> Hi everyone,
>
> I am new to here and this is my first post. And I am totally new to
> circuitry.
>
> I only had experience of sending and receiving data between a computer
> and a microcontroller. I want to learn how 2 atmel microcontrollers
> communicate. The scenario is like this:
>
> A microcontroller is connected to my PC, when another microcotroller
> is connected to the 1st one, it can be powered and send its id to the
> computer. Later on, I want to have multiple microcontrollers and my PC
> should be able to figure out the topology.
>
> Many thanks,
> Yingdan
>
>

Re: [AVR-Chat] Re: Communication between 2 Atmel microcontrollers

2008-09-27 by Dao Viet Dung

Some AVRs have 2 UART such as ATMEGA162, ATMEGA128. I think they are the easiest way for you.

--- On Sun, 9/28/08, Yingdan <yingdanh@gmail.com> wrote:
Show quoted textHide quoted text
From: Yingdan <yingdanh@gmail.com>
Subject: [AVR-Chat] Re: Communication between 2 Atmel microcontrollers
To: AVR-Chat@yahoogroups.com
Date: Sunday, September 28, 2008, 1:15 AM










    
            These suggestions and resources are great! 



I am going to study I2C and wire 2-3 chips together to see how it

goes. I may need your help later on.



Thanks a lot,

Yingdan 




      

    
    
	
	 
	
	








	


	
	

[Non-text portions of this message have been removed]

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.