Serial Communication with Arduino - The details!

6 Просмотры
Размещено
Want to learn more? Check out our courses!
https://bit.ly/3B8YW3y

We designed this circuit board for beginners!
Kit-On-A-Shield: https://amzn.to/3lfWClU

***Get your Free Trial of Altium PCB design Software***
https://www.altium.com/yt/programmingelectronicsacademy

SHOP OUR FAVORITE STUFF! (affiliate links)
---------------------------------------------------
Arduino UNO R3:
Amazon: https://amzn.to/37eP4ra
Newegg: https://bit.ly/3fahas8

Budget Arduino Kits:
Amazon:https://amzn.to/3C0VqsH
Newegg:https://bit.ly/3j4tISX

Multimeter Options:
Amazon: https://amzn.to/3rRo3E0
Newegg: https://bit.ly/3rJoekA

Helping Hands:
Amazon: https://amzn.to/3C8IYXZ
Newegg: https://bit.ly/3fb03X1

Soldering Stations:
Amazon: https://amzn.to/2VawmP4
Newegg: https://bit.ly/3BZ6oio

AFFILIATES & REFERRALS
---------------------------------------------------
►Audible Plus Free trial: https://amzn.to/3j5IGrV
►NordPass: https://bit.ly/3iZ2IEw
►NordVPN: https://bit.ly/3rJY6Gi
►Join Honey- Save Money https://bit.ly/3xmj7rH
►Download Glasswire for Free:https://bit.ly/3iv1fql

FOLLOW US ELSEWHERE
---------------------------------------------------
Facebook: https://www.facebook.com/ProgrammingElectronicsAcademy/
Twitter: https://twitter.com/ProgElecAcademy
Website: https://www.programmingelectronics.com/


Are you wondering what the heck serial communication is?

Maybe you have been using some functions from the Arduino Serial library, like Serial.begin() and Serial.print()
and they leave you wondering more about this serial communication thing – I mean, how does it actually work!?

In this lesson you will learn:

What is “serial communication”?
What is a USART anyway?
The nitty gritty of basic serial communication
The different roles of start bits, data frames, parity bits, and stop bits
What the heck baud rate it – and why it is SO crucial
The (lack of) significance of the baud rate 9600
DON’T GET SCARED!
OK – before we start, I want to warn you that this lesson is filled with technical terms, probably like 572 of them!

I know when you’re new to electronics, all this crazy sounding jargon can be confusing, and you might think it will all be way over your head.

And it might be all “over your head” for a while (it still might be over my head ???? – but as you get more familiar with these terms, and see them used and explained in different ways, over time all the crazy stuff will start to sink in.

I’ll try to explain all the jargon along the way as best as I can, but just in case you miss something… here is a chart listing all the terms used here:

(see chart here! - https://bit.ly/3B19py9)
TERM DESCRIPTION
UART Universal Asynchronous Receiver/Transmitter
USART Universal Synchronous/Asynchronous Receiver/Transmitter
SPI Serial Peripheral Interface
I2C Inter-Integrated Circuit
ATMEGA328P Microcontroller The primary microcontroller used On Arduino UNO and MEGA – has built-in UART
ATmega16U2 Microcontroller A microcontroller used on the Arduino UNO and MEGA that has a built in USART. This microcontroller is used as a USB to serial converter.
RX Receive. Often, the connection designated to receive a signal is marked with RX.
TX Transmit. Often, the connection designated to transmit a signal is marked with TX.
USB Universal Serial Bus
TTL Transistor-transistor logic
ASCII American Standard Code For Information Interchange
WHAT THE HECK IS SERIAL COMMUNICATION?
In a nutshell, serial communication is a method of sending and receiving information one bit at a time.

Serial communication takes many different forms, we will only discuss one of them in detail here.

Just like there are many ways to communicate from one person to another, there are many ways to serially communicate from one device to another.

Probably the most familiar method of serial communication is over USB. If you didn’t know, USB stands for Universal Serial Bus.

USB is a serial communication protocol. A protocol is just a way of doing something. Maybe you have a protocol for what to do if you can’t find your phone…

Curse a couple times
Mentally walk through the places it could be
Look in the last room you were in
Blame the kids for losing your phone
Look on the bathroom shelf
Get one of your family members to call you, so you can hear it ring in the basement, buried in the laundry basket
USB is but one of many serial communication protocols that your Arduino can use. It’s also able to communicate using these common protocols…

CONTINUED...
https://bit.ly/3B19py9

***About Us:***
This Arduino lesson was created by Programming Electronics Academy. We are an online education company who seeks to help people learn about electronics and programming through the ubiquitous Arduino development board.

***We have no affiliation whatsoever with Arduino LLC, other than we think they are cool.***
Категория
Ардуино
Комментариев нет.