3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Serial Communications with Arduino

Serial Communications with Arduino
At this point you should have a robot that can think on its own, we need to be able to tap into its thought process. See what he sees. Make some of his decisions for him. in essence, we need to be able to guage his intelligence to make him more intelligent and increase his efficiency.
With serial communications we can do two things: We can either send commands or receive data. Here are some examples to
use with Serial communications:

1. Find out what values your sensors are outputting.
2. Find out if your robot is making the right decisions (Drugs = FALSE;)
3. Change the value of a variable.
4. Control your robot's movement or other things in your robot


 
Remove these adsRemove these ads by Signing Up
 

Step 1A BIT of information.

a BIT of information.
Serial communication works on 1s and 0s. Also known as binary, the Arduino sends these 1s and 0s (bits) one by one, or Serially. These bits are sent in the form of Highs(1) and Lows(0). These bits form together and turn into bytes. A byte is composed of 8 bits. Here's a little tutorial on binary:
Each bit represents a certain number to add. the first bit (Far right) represents the ones place, similar to the common decimal system.
1 = 1 and 0 = 0.
the next bit's value is multiplied by two, so:
10 = 2, 11 = 3, 00 = 0 and 01 = 1.

similarly:
100 = 4,
1000 = 8,
10000 = 16,
100000 = 32,
1000000 = 64
10000000 = 128.

Now these bits can form a value up to 255 (11111111).

This value can be turned into ASCII encoded symbols and letters. Here's a list of them.
« Previous StepDownload PDFView All StepsNext Step »
5 comments
Apr 8, 2012. 5:48 AMaslan0490 says:
hey cool proj. any details fr comm with xbee?? thnks in advance
Dec 21, 2011. 8:29 AMthe-new-x says:
great, but can you give me any information about XBee communication and how I can send an analog signal via XBee, thanks in advance...
Nov 15, 2011. 11:43 PMatif khair says:
Communication devices are useful in these days that help us to transmit our conversation from one place to another .Nice work with arduino
Jaycon
Nov 15, 2011. 6:24 PMAvrDon says:
I have to say that Ardunio makes it much easier to would with serial communication. Nice work !
Nov 14, 2011. 8:19 AMComputothought says:
Cool!

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
31
Followers
6
Author:Chowmix12
I am a young engineer who likes to build things. My motto is Why buy, when you can Make! in 2010 I got an Arduino and I plan to use it to make more things and bring more instructables.