Logo Design by FlamingText.com
Logo Design by FlamingText.com

Monday, 25 July 2016

Arduino Lesson#3: Serial Libraries

    Lesson#3: Serial Libraries




In this lesson we will begin talking about the Arduino libraries. The libraries can be understood as a collection of procedures to get a task from point a to point b. For instance if you would like to play with dc motors you could use the motor control library. This would allow you to use a working sketch to get your motors moving without the hassle of learning everything you would need to know about motors. 
In this lesson we will be learning about the Serial Libary.

Serial Library: This library will allow the Arduino to send information to the computer. The word "serial" means "one after the other". So serial data transfer is sending data one bit at a time one after another. Information can be transfered back and fourth between the computer and Arduino by setting a pin to either "HIGH" or "LOW".  Remember one side sets the pin and the other one reads it.

Included in the Arduino sketchbook are lots of libraries ready for you to employ, it is as simple as selecting the appropriate sketch and uploading to your Arduino. Now a lot of Arduino projects require you to connect outside devices and wires and such, this now opens up room for you to explore breadboarding. Using a breadboard allows you to connect your electronics without solder. Perfect for the newb.


Bits & Bytes:  Used to measure amount of data

single bit is either a zero or a one
You can group bits together into 8 bits which is 1 byte
1024 bytes (8192 bits) is one Kilobyte (sometimes written KB).
1024 KB (1048576 bytes) is one Megabyte (MB)
1024 MB is 1 Gigabyte (GB)


Where to find libraries?


To locate the libraries you need to open the Ardunio icon on your desktop and select FILE---> EXAMPLES.
Find the examples you would like to use and upload it to the Arduino. Super simple. Take note on the comments of the sketch and be aware of the pins being used.






Next lesson: HELLO WORLD 

No comments:

Post a Comment