Monday, November 14, 2011

Serial Communications with Arduino

Serial Communications with Arduino ' } function makeHelpBubbleTextFav(anchor) { return 'Add this to your Favorites!
' + 'This action requires you to
' + '' + 'sign up or login:' + makeHelpBubbleLoginHTML('nxtPgName=Serial+Communications+with+Arduino&nxtPg=/id/Serial-Communications-with-Arduino/?favorite#favorite', '', 'favorites') + '' } ' } 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

?

Step 1A 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.

' }

fb-root

', exec = function () { focusOnHelpBubbleLogin(); }; if ($("subscribe")) { new HelpBubble({ clickEl: $("subscribe"), popUp: true, width: 220, contents: textForSubscribe2, additionalActions: exec }); } });

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.

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.

Source: http://www.instructables.com/id/Serial-Communications-with-Arduino/

holes houston texans houston texans courageous courageous red tide red tide

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.