This document discusses networking multiple microcontrollers. It describes how microcontrollers can be connected in a network to achieve complex outputs. As an example, it provides details on a project that connects three microcontrollers - one takes input from a keypad, one displays output on an LCD, and one controls a relay. The document outlines the hardware, software, communication protocols and principles of the network.
2. http://www.edgefxkits.com/
Introduction
Networking of Multiple
Microcontrollers
The project is designed to demonstrate how multiple microcontrollers
can be connected in a network to achieve the desired output. More and
more microcontrollers are embedded in different kinds of products from
industrial environment to domestic area; a good example is the
automobile sector. A modern day car has number of microcontrollers
integrated within its system.
8. http://www.edgefxkits.com/
Networking of Multiple
Microcontrollers
Communication Systems
Process describing transfer of information, data, instructions
between one or more systems through some media.
Examples:
• People, computers, cell phones, etc.
• Computer communication systems
Receivers and transmitters: Desktop computers, mainframe
computers, etc.
9. http://www.edgefxkits.com/
Networking of Multiple
Microcontrollers
Signals passing through the communication channel can be
Digital, or analog.
• Analog signals: continuous electrical waves.
• Digital signals: individual electrical pulses (bits)
TX
RX
RX
RX
Communication channel
Communication
media
Amp/Adaptor
Communication Systems
10. http://www.edgefxkits.com/
Networking of Multiple
Microcontrollers
The networking and communication between them becomes
necessary.
The importance of having multiple microcontrollers against a
single one is if one of the microcontrollers goes bad only the
function related to that particular microcontroller will be
affected.
Working Principle
11. http://www.edgefxkits.com/
Networking of Multiple
Microcontrollers
The project demonstrates a command based monitoring tool
using the RS232 protocol.
A network of three microcontrollers is used in this project.
The first one is connected to a keypad for input action.
The second one is connected to an LCD display and the third
one to drive a relay for controlling any load (LAMP).
Working Principle
12. http://www.edgefxkits.com/
Networking of Multiple
Microcontrollers
Input takes a password on the first MC to display it on the second MC while
the third one executes the output only if the password is right.
Wrong password if entered will generate a buzzer sound.
Though this task can be performed by a single microcontroller.
The project uses multiple microcontrollers to explain the concept of
networking.
Working Principle
13. http://www.edgefxkits.com/
Networking of Multiple
Microcontrollers
It is practically impossible by a single microcontroller to handle input
action, display and output which are located way apart.
The system uses a combination of three microcontrollers for this purpose.
• One is used to operate the load.
• second one is used to display output on LCD display .
• The third one is used to take user input through a keypad.
Working Principle
14. http://www.edgefxkits.com/
Networking of Multiple
Microcontrollers
Consider a situation which requires 15 connections for a display unit
from microcontroller, and 7 connections from keypad.
So instead of using single microprocessor and multicore cables for
kilometers.
We use a single cable and more microcontrollers to simplify the
working and reduce costs.
Working Principle
17. http://www.edgefxkits.com/
Networking of Multiple
Microcontrollers
Multi Microcontroller Networking System
Our system aims at connecting and coordinating multiple
microcontrollers in order to achieve the desired output.
Increasing number of microcontrollers are used these days
for various industrial and domestic applications.
20. http://www.edgefxkits.com/
Networking of Multiple
Microcontrollers
Power Supply
A DC Power Supply Unit (commonly called a PSU) deriving power from
the AC mains (line) supply performs a number of tasks:
• It changes (in most cases reduces) the level of supply to a value
suitable for driving the load circuit.
• It produces a DC supply from the mains (or line) supply AC sine
wave.
• It prevents any AC from appearing at the supply output.
24. http://www.edgefxkits.com/
Networking of Multiple
Microcontrollers
The relay's switch connections are usually labeled COM, NC and NO:
COM = Common, always connect to this; it is the moving part of the itch.
NC = Normally Closed, COM is connected to this when the relay coil is off.
NO = Normally Open, COM is connected to this when the relay coil is on .
Relay
28. http://www.edgefxkits.com/
Networking of Multiple
Microcontrollers
Liquid Crystal Display (LCD)
Most common LCDs connected to the microcontrollers are 16x2
and 20x2 displays.
This means 16 characters per line by 2 lines and 20 characters per
line by 2 lines, respectively.
The standard is referred to as HD44780U.
It refers to the controller chip which receives data from an
external source (and communicates directly with the LCD.