How to make two microcontrollers communicate?

How to make two microcontrollers communicate?

There are multiple different ways to communicate between microcontrollers. You could go the cool wireless route: Bluetooth, ZigBee, WiFi. Or throw some cables in the mix and use any number of established protocols: I2C, SPI, UART, all with their advantages and disadvantages.

How does a microcontroller communicate?

Serial Peripheral Interface (SPI), Inter- Integrated Circuit (I2C), Universal Asynchronous Receiver / Transmitter (UART), Controller Area Network (CAN) and Universal Serial Bus (USB) are ideal communication protocols which people use for communication between microcontrollers.

What is the difference between SPI UART and I2C protocol?

The SPI interface is synchronous serial data transmission between the CPU and the peripheral low-speed device. It is full-duplex communication, and the data transmission speed is overall faster than the I2C bus and can reach speeds of a few Mbps.

How are microcontrollers used to communicate with each other?

If for example it’s used with traditional category 5e network cable, you could have two pairs to work for data transmission in both directions (using a full duplex module), have one pair or maybe even single wire as the common ground and the rest to negotiate which device is going to transmit in which moment.

Which is the data wire of a microcontroller?

P3.7 is the data wire, and P3.2 (INT0) is the control wire, and they are externally pulled high to VCC (of 5 volts) through 10K resistors. One microcontroller has an 18.432Mhz crystal connected to it so I can connect it to my computer at a clean 9600bps baud.

How to connect microcontrollers to the ” server “?

The problems I have right now is how to connect these (N-1) microcontrollers to the “server”. The clients MCUs perform very simple tasks, so it may not be a good solution to use ARMs to do such simple jobs just because they provide CAN / PHY-MAC.

How are n-1 microcontrollers connected to a PC?

Ideally, (N-1) microcontrollers are placed inside the house acting as clients, while the last (the “server”) one is connected to a PC via USB. The problems I have right now is how to connect these (N-1) microcontrollers to the “server”.