Configure below circuit connected to make Arduino_1 and Arduino_2 talk to each other through Software Serial Communicati
Posted: Tue Apr 26, 2022 3:57 pm
Configure below circuit connected to make Arduino_1 and Arduino_2 talk to each other through Software Serial Communication. Note that digital Pins O and 1 are not used in the circuit because both will be busy communicating Serially with 2 computer stations to print out some values over the computer screens. Good 81 om OOO Write a code to read status of Switch_1 from Arduino_1 and turn the two LEDs connected to Arduino_1 ON if Switch_1 is pressed. Print Status of Switch_1 over the Serial monitor of Arduino_1 Then let Arduino_1 communicate serially with Arduino_2 to turn the two LEDs connected to Arduin_2 ON when Switch_1 is pressed as well. Print "Hello" over Serial Monitor of Arduino_2 when Switch_1 is pressed. There is a photoresistor connected to Arduino_2 to sense if Arduino_2 LEDs are ON or OFF. When a person presses Switch_2 on Arduino_2, the LEDs on Arduino_1 will turn OFF after checking that
Arduino_2 LEDs are ON (LEDs of Arduino_2 stay on after turning Arduino_1 LEDS OFF). Print Status of Switch_2 over the Serial monitor of Arduino_2. Write your name and ID # as comments on the first line of your codes. From TinkerCAD screen, click "Send To" button at the upper right Corner, then click over "Invite people down the pop-up window that appears, then click "Copy" button. This copied link will guide the TA for your HW Solution. Paste your HW solution link over eLearning as your HW Submission. Do not amend the solution at all after submission, otherwise your HW attempt will be discarded from grading.
Arduino_2 LEDs are ON (LEDs of Arduino_2 stay on after turning Arduino_1 LEDS OFF). Print Status of Switch_2 over the Serial monitor of Arduino_2. Write your name and ID # as comments on the first line of your codes. From TinkerCAD screen, click "Send To" button at the upper right Corner, then click over "Invite people down the pop-up window that appears, then click "Copy" button. This copied link will guide the TA for your HW Solution. Paste your HW solution link over eLearning as your HW Submission. Do not amend the solution at all after submission, otherwise your HW attempt will be discarded from grading.