Answered step by step
Verified Expert Solution
Link Copied!

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 8 bits. The first set of commands is to trigger a read on sensor. A command of 129 should select the first sensor where 130 should select the second sensor. After these commands, for the next 8 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 65 should select celcius, 66 should select fahrenheit, 67 should select raw value scaled to 8 bits.
The second microcontroller will be the master device and should have and LCD. You may use built-in 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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions