2018
April Tuesday 24

Bookmark and Share

Related Articles...

MILWAUKEE WI Arduino Meet Up Make Space

WANTED: CORE TEAM MEMBER TO HELP START NON-PROFIT GROUP.

WANTED: Angle Investor Start-Up Funding

Large Industrial Zoned Arduino Make Space Acquired!

Email :

COASMailBox @ gmail.com

MILWAUKEE WI Raspberry Pi Meet Up Make Space

WANTED: CORE TEAM MEMBER TO HELP START NON-PROFIT GROUP.

WANTED: Angle Investor Start-Up Funding

Large Industrial Zoned Raspberry Pi Make Space Acquired!

Email :

COASMailBox @ gmail.com

MILWAUKEE WI Internet of Things (IoT) Meet Up Make Space

WANTED: CORE TEAM MEMBER TO HELP START NON-PROFIT GROUP.

WANTED: Angle Investor Start-Up Funding

Large Industrial Zoned Make Space Acquired!

Full Advanced Fabrication Facility, machine Shop, Welding, Electronics Lab Equipment Acquired!

Email :

COASMailBox @ gmail.com

MILWAUKEE WI Machine Repair, & Installation  - Tier 1 Business Support

Machine Technician Mechanic 20+ Years  Personal Experienced In Industrial Factory Machine Servicing, Rebuilding, Installation And Repair - Plus A 35+ Years Experienced Computer Engineer Service Technician Team Ready For Your Outsourced Market Advantage Needs!

Hartung Industrial - Member - CGI Science & Technology Group

Email :

COASMailBox @ gmail.com

2017 REVIEW

 

Serial Sketches For Arduino

by Gene Casanova


Working With Arduino USB Serial Port

Arduino, a microcontroller (microcomputer) development board and prograrmming IDE system, made in Italy.

USB Serial Port

A "FTDI" FT232RL USB interface IC chip provided onboard provides serial communication through USB and FTDI drivers (included with Windows version of the Arduino software) provide a virtual "com" port to software on a USB-connected computer to an Durian systemboard.

USB Communications LEDs

The RX LED and TX LED on the systemboard will flash when data is being transmitted through the FTDI IC chip and USB connection to the USB-connected computer.  The LEDs are used for serial communication on pins 0 and 1.

LED Pin 13

There is an onboard mounted LED connected to digital pin 13.  When the pin is set to 'HIGH' value, the LED emits light, when the pin is set to 'LOW', the LED will not emit light.

Serial Communications Pin 0 & 1

The ATmega168 and ATmega328 microcontrollers, provide UART TTL (5V) serial communication ports; available on digital pins 0 (RX) and 1 (TX).


UART

Universal Asynchronous Receiver/Transmitter (UART), a serial protocol.  UART is one of the first and simplest protocols to transmit one bit at a time over a communciation path/link.

UART can be used for serial communication between computers/microcontrollers.  It is asynchronous and enables simultaneous communication in both directions ("Full Deplex" commincations).


Commucating Over USB Port

Use the Serial Library to communicate from the Arduino systemboard through the USB port to a connected computer.  A software library is a collection of premade processes written in a computer programming language. The Serial Library enables writting programs for Arduino communcate through a serial communcstion link.


A Basic Arduino Serial Sketch

/*
 * Hello World!
 * Sketch for Arduino. 
 * This Arduino "sketch" illustrates how to send data out the USB port to
 * a computer connected to the Arduino USB port.
 */
void setup()                   // Execute once, when the sketch starts.
{
  Serial.begin(9600);          // Serial.begin() function, from Serial library.
								 // Establish a USB port connection with a baud rate of 9600bps.

  Serial.println("Hello world!");  // send content between double quotes "" and one line break character. 
}

The Arduino requires void setup(){} and void loop().

"Serial.begin()" is a library procedure-reference.  "Serial" is the name of a library and "begin" is the name of a procedure inside the library.

If no library name is given, then it means the procedure is in the 'default' collection of procedures we use.

Serial."println"() - "println" stands for "print line".  This process sends the content between the "" double quotes to the default Arduino USB serial port.


Use The Technology Wisely & Keep It Simple

- Cheers!

Gene Casanova


Need More?   Need Help? ........Software, Network, System & Data Center Builder & Developer | Development Services Available - Freelance Small Jobs; To Outsourced Long Term Service Provider Contract Labor Available.

CGI Computer Wares | EST 1979

Send E-MailCONTACT: [click]@CGIComputerWares.com