Question: Design a temperature and distance measuring and displaying system using an I2C LCD. Use LM 34 Temperature sensor. LM 34 has a Linear + 10-mV/C

Design a temperature and distance measuring and displaying system using an I2C LCD. Use LM 34 Temperature sensor. LM 34 has a Linear + 10-mV/C Scale Factor. This device measure temperatures between 2oC and 150oC. Use SCXL MaxSonar for measuring distance. This sensor has a scale factor of (Vcc/5120) per 1mm. Use two I2C EEPROM 24LC256, one for storing temperature and one for storing distance. Collect data every second for two minutes.

Show the complete hardware design. This includes all pin numbers.

Develop a mathematical model and show the graphical relationship between distance and output voltage of MaxSonar sensor.

Develop a mathematical model and show the graphical relationship between temperature and output voltage of LM 34 sensor.

For a distance of 30 cm, calculate the sensor output voltage

For the above distance, calculate the digital value the is read by the Arduino

If the value is read by Arduino is 800, calculate the analog voltage at Arduino analog pin that is connected to the sensor

Calculate the distance for part f

Complete the following table

Digital Value read by Arduino

Analog Voltage(V)

Sensor Output Current(mA)

Distance (cm)

Write a function that reads the ultrasonic range sensor and returns the distance value in centimeter.

Write a function that reads the temperature sensor and returns the value in Celsius.

Write a function to display temperature in the first line and distance in the second line of the I2C.

Write a function to write data on either of I2C EEPROM 24LC256.

Write a function to read data from either of I2C EEPROM 24LC256.

Write a program to collect data on temperature and distance and display them on I2C LCD and store them in two I2C EEPROM 24LC256 every second for two minutes. Then read the data from first data to the last from the I2C EEPROM 24LC256s every 10 second and display them on the I2C LCD.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!