Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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