Serial Pins

June 2, 2017

Introduction

Serial communication is the process of sending data one bit at a time, sequentially, over a communication channel or computer bus.

For evive, serial pins are used for communication between evive and a computer or sensors or any other devices. It has three serial ports available:

  1. Serial0 on pins 0 (RX0) and 1 (TX0),
  2. Serial2 on pins 17 (RX2) and 16 (TX2), and
  3. Serial3 on pins 15 (RX3) and 14 (TX3).
 
evive Serial Pins

While communicating with the computer or for uploading Arduino sketch, evive uses serial port 0 via USB. Thus, if you use these functions, you cannot also use pins 0 and 1 for digital input or output. Communication with HC05 (Bluetooth), ESP-12e (or 12f) ESP8266 (WiFi) or Xbee is done via serial port 3. Do not use digital pins 14 and 15 while using any of the three devices.

evive Notes Icon
Note: Arduino MEGA has Serial port 1 on pins 19 (RX1) and 18 (TX1), but in evive, pin 19 is used for Navigation Key/Joystick, so we cannot use Serial port 1.

Serial Communication Blocks in PictoBlox

Serial communication blocks are available in communication extension.

BlockFunction
set serial baud rate toThe block set the baud rate of the selected serial port.
bytes available on serialThe block reports, if there is any data available on the selected serial port. If data is available, then it returns true, else false.
read bytes on serialThe block reports the data available in the queue on the selected serial port. It reports one character at a time.
write on serialThe block sends the string message on the selected serial port.
Share this Documentation
Share on facebook
Facebook
Share on twitter
Twitter
Share on google
Google+
Share on pinterest
Pinterest
Share on reddit
Reddit
Share on print
Print
Related Tutorials & Projects
PictoBlox blocks Scratch how to

Getting Started with PictoBlox

PictoBlox is a programming software based on Scratch, where you can make interactive games, animations or program robots and projects with evive, Arduino, etc..
arduino logo

Getting Started with Arduino IDE

This tutorial discusses how to install Arduino IDE in Windows, Mac & Linux, and configure Arduino to upload programs (evive Firmware) in evive.
All articles loaded
No more articles to load
Featured Projects
All articles loaded
No more articles to load

Leave a Reply

Close Menu
×

Cart