Home > Arduino > Serial Communication: Turn On and Off Arduino LED

Serial Communication: Turn On and Off Arduino LED


Wrote a script for the Arduino to listen for a byte of data and depending on that value turn the LED on the Arduino Board On and Off.

The Arduino has a onboard LED linked to the #13 digital Pin. If a byte with the value 1 is sent, the LED is switched On, alternatively when 0 is sent, the LED is switched off. Now that my serial communication app has been tested (Alternative tests done behind the scenes) I can move on to other small projects by monitoring external sensor data :P. stay tuned!

Serial App Sending data to Arduino

Serial Data sent to Arduino

Arduino with the LED (Pin 13) off.

Aruduino with LED (Pin 13) On

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: