Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are required to design, program, and document a device that could be used to log environmental status. For this purpose you should have 2

You are required to design, program, and document a device that could be used to log environmental status. For this purpose you should have 2 devices communicating over I2C. First device should be a slave that reads temperature, light and air quality using a gas sensor. You should learn how to use gas sensor in the tinkercad for this purpose. This device should turn on a blue LED during any I2C operation. It should have a red LED that will be turned on when the device is ready. This device should accept following I2C input and produce necessary output: 0x01: Read temperature, 0x02: Read light, 0x03: Read air quality. After receiving the data, when there is an I2C read operation, this device should reply with the necessary information. The information should be sent as two byte, raw values. Second device should be a I2C master. This device should have a switch, a potentiometer, two buttons, an LCD screen, two LEDs. The switch will turn on and off data logging, initially it should be off. Potentiometer should control data read/logging interval. At lowest point, data should be logged every second. At highest it should be logged every 10 seconds. You should use EEPROM to log the data. Every entry should have its own memory space. You should read the data to be logged from I2C slave, transform them. Temperature should be in degrees, turned into a one byte signed variable (int8_t). Light and air quality should be scaled between 0 (least light, worst air quality) and 100. Time should be logged in seconds as a two byte unsigned integer (uint16_t). When logging is on, Device should display the number of logged entries, and the last data that is logged. Every time data is logged, one of the LEDs should blink. The other LED is used to indicate if logging is on or off. Do not connect this LED to the microcontroller. When the logging is off, LCD should display a single data entry. The user should be able to browse logged data using the buttons. One of them should move to an older entry, the other should move to a recent one. You should display time, and all three data on the screen.

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_2

Step: 3

blur-text-image_3

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

Farmers Irs Audit Techniques Guide

Authors: Internal Revenue Service

1st Edition

1304134237, 978-1304134233

More Books

Students also viewed these Accounting questions

Question

Connect with your audience

Answered: 1 week ago