Serial Port Interactive Program TinkerCAD Circuits Simulation Link
|
void setup() |
Here setup() function is
used to set baud rate and print questions to the user on serial monitor; loop()
function is having a logic part where it is checked whether serial data is
available at board end, if yes then read it check it with specific character
and print the proper reply. This process is repeated till the reset button is
pressed.
The code prints questions on the Serial Monitor
screen.
|
Who are
you? enter b-boy or g-girl. |
Type b inside the textbox situated top of serial
window and press Send button. The Arduino program checks this response and
replies as shown below.
|
You are
boy. |
Type g inside the textbox situated top of the
serial window and press Send button. The Arduino program checks this response
and replies as shown below.
|
You are
girl. |
Type c or any other letter inside the textbox
situated top of serial window and press Send button. The Arduino program checks
this response and replies as shown below.
|
Wrong
answer. |
eBook Learn Arduino Using TinkerCAD Circuits Simulator purchase Link:
https://play.google.com/store/books/details?id=CQSYEQAAQBAJ [Google Play Store]
https://books.google.co.in/books?id=CQSYEQAAQBAJ [Google Books]
Learn Arduino Risk-Free with the Ultimate TinkerCAD Guide eBook
https://8051microcontrollertutorial.blogspot.com/2025/11/learn-arduino-risk-free-with-tinkerCAD.html
TinkerCAD Resources Index Page
https://8051microcontrollertutorial.blogspot.com/2025/09/TC09092025ResourcesIndexPage.html
…till the next post, bye-bye & take care!


No comments:
Post a Comment