Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The program used to make this circuit is Tinkercad please provide me with correct answers and do not copy and paste from the internet !!
The program used to make this circuit is Tinkercad
please provide me with correct answers and do not copy and paste from the internet !!
20 Q5.4 A serial communication consists of two Arduino Uno microcontroller are connected as in figure below: Master periodically send a serial character known as "GOOD to the Slave. Once the Slave has received the signal, the character will be shown on serial monitor concurrently with message of Received. Develop the circuit diagram below and write the source code for respective Master and Slave microcontroller. Then, run the simulation. Orange wire - Tx Blue wire - Rx Oscilloscope (Slave) MN DIGITAL (PWM-) Setting for both Oscilloscopes **Time per division = 1ms DIGITAL (PWM) O UNO Slave Controller ARDUINO Oscilloscope (Master) POWER ANALOG IN 130212223 DIGITALE DO UNO ARDUINO Master Controller Mini Breadboard O No MNHO POWER ANALOG IN RX+0 DIGITAL (PWM-) Orange wire - Rx Blue wire - Tx Source code for Master and Slave microcontrollers Text 2 (Arduino Uno R3) Text 1 (Arduino Un 1 //code for Master: 2 char mystr[5] = "GOOD"; //String data 3 void setup() { 4 // Begin the serial at 9600 Baud 5 Serial.begin(9600); 6 ] 7 void loop() { 8 Serial.write(mystr, 5); //write the serial data 9 //Serial.println(mystr); 10 delay(1000); 11 } 12 1 //code for Slave: 2 char mystr[5]; //Initialized variable to store recieve 3 void setup() { 4 // Begin the serial at 9600 Baud 5 Serial.begin(9600); 6) 7 void loop() { 8 Serial.readBytes (mystr,5); //Read the serial data and 9 Serial.println(mystr); //Print data on Serial Monitor 10 Serial.println("Received"); 11 delay(1000); 12 ) a) Briefly explain main source code's function in enabling information transfer from Master to Slave microcontrollers. (10 Marks) (Please write in point form only.) Master Slave the b) Run the Simulation. Screenshot and paste the whole layout in Simulation mode together with captured signals on Master and Slave oscilloscopes. (5 Marks) Screenshot and paste the whole layout together with the captured output signals to the space below. Use printscreen function of your computer. Screenshot and paste your layout here. c) Screenshot and paste the display reading of serial monitor for the Slave microcontroller (5 Marks) Screenshot and paste the serial monitor of Slave microcontroller hereStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started