100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Class notes

CET 4711 Serial Data Communication and Control

Rating
-
Sold
-
Pages
17
Uploaded on
12-10-2022
Written in
2022/2023

The main objective of the experiment is to implement and analyze bi-directional (full duplex) asynchronous serial data transmission protocol for data communication and control between a micro-controller and personal computer. Also, to learn to use both text based (Serial Monitor) and GUI based (Firmata) methods to: receive and display Arduino sensor values on a PC and control Arduino output devices from a PC 1. Download Lab_#.zip file from Blackboard > Assignments and unzip into a folder on your PC. 2. Study the following reference material: • [1] Arduino Language Reference - Serial Library Functions • [2] Serial Port Complete 2E, Ch. 2 - Formats and Protocols, Sending Serial Data • [3] Practical AVR Microcontrollers - Serial Communication 3. Connect LDR/Light Sensor to Arduino analog input A0. Connect RGB LED to Arduino PWM pins 9,10,11. Part A - Text based measurement and control using Serial Monitor: 4. Upload and run Arduino program (test_data_) given in lab handout on following page (program source code is available in Blackboard > Assignments > Lab_#.zip) 5. Study the given program, understand and observe its correct operation. Sensor values will be displayed in Serial Monitor window. Sending PC keys ‘0’ and ‘1’ keystrokes will control the RGB LED (Pin 9, Red Color). 6. Modify the given program to control other LED colors (Green, Blue) by pressing keys ‘2’, ‘3’ and ‘4’, ‘5’ respectively, on the PC keyboard. Hint: Use additional case statements. Part B - GUI based measurement and control using Firmata: 7. Open Arduino_IDE > File > Examples > Firmata > StandardFirmata example program and upload to Arduino. Note: Take a screen shot of Firmata Test GUI for each of the following steps and include in your report. 8. On the PC, close Serial Monitor window, then double click and run firmata_ application (it is included in Lab_#.zip file). Select the correct Arduino USB/serial COM port in Firmata Test GUI. 9. Observe how the analog LDR/Light sensor value is displayed in Firmata Test GUI. 10. Set pins 9,10,11 mode to OUTPUT. Turn RGB LED colors ON and OFF (digital control) by clicking the buttons. 11. Set pins 9,10,11 mode to PWM. Control RGB LED color brightness (analog control) by moving the slider control.

Show more Read less










Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
October 12, 2022
Number of pages
17
Written in
2022/2023
Type
Class notes
Professor(s)
Farukh zia
Contains
All classes

Subjects

$5.49
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
fahmedakhanom

Get to know the seller

Seller avatar
fahmedakhanom New York city college of technology
View profile
Follow You need to be logged in order to follow users or courses
Sold
2
Member since
3 year
Number of followers
1
Documents
5
Last sold
2 year ago

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions