Question: In this task you are required to create a two way serial communication between two Arduino microcontrollers. The first microcontroller, which should be a slave,
In this task you are required to create a two way serial communication between two Arduino microcontrollers. The first microcontroller, which should be a slave, should have two sensors First sensor should be a temperature sensor and the second should be a light sensor This microcontroller should accept several commands. The communication should be done over bits. The first set of commands is to trigger a read on sensor A command of should select the first sensor where should select the second sensor After these commands, for the next clock signals, the device should supply the requested value. The second set of commands control which units the device should supply the temperature in Command should select celcius, should select fahrenheit, should select raw value scaled to bits.
The second microcontroller will be the master device and should have and LCD. You may use builtin LiquidCrystal library to control the LCD. Every second, the master device should read temperature in celcius, fahrenheit and raw form and should read light sensor value. These values should be displayed on the LCD screen.
Draw your circuit and write your program on this page.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
