Digital I/O control using serial port using arduino mega

This is a series of simple projects aimed at getting started with Arduino. This will cover most of the important peripherals of the Arduino starting from simple Digital I/Os  and serial communication interfaces.

 1:UART-Digital I/O control using serial port.

 2:UART-Digital I/O control .

 3:UART-Digtial thermometer. 

 4:UART-PIR sensor intruder detection.

 

In this we are going to see the experiment 

Digital I/O control using serial port:

connect the led to pin 13 and power supply 5v and ground.

If the character 'a' is sent as a input display the led turns on and if the character 'b' is sent as a input display the led turns off .