Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

You are required to design and program a device that could be used to log environmental status. For this purpose you should have 2 devices communicating over I2C using tinkercad.

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.

You are required to describe the features that you have completed

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

Managements Reluctance In Implementing Audit Recommendations

Authors: Tariro Chinamasa

1st Edition

6139980240, 978-6139980246

More Books

Students also viewed these Accounting questions

Question

Explain the various collection policies in receivables management.

Answered: 1 week ago

Question

What are the main objectives of Inventory ?

Answered: 1 week ago

Question

Explain the various inventory management techniques in detail.

Answered: 1 week ago