IoNeeds Jar Lid Prototype: Sensors and Communication

Hello everyone, we will talk about first part of our project. We started with prototyping the jar lid which measures fullness, temperature, humidity and light. It also sends collected data to Bluetooth in every 10 seconds.

ioneeds_jar_lid_prototype

ioneeds_part1

In the jar lid; we have;
– Ultrasonic Distance Sensor
– DHT22 Humidity & Temprature Sensor
– LDR
as sensor per one jar.

We measure the distance between jar lid and the upper limit of product in the jar using ultrasonic distance sensor. Depth of the jar is known. So we calculate the percentage of fullness of the good in the jar.

We made an prototype using breadboard and we tested the sensors we will use in this project. Ultrasonic distance sensor, LDR, humidity and temperature sensors worked together perfectly and then we post the data by using Bluetooth. Data is sent in JSON format because of significant start/stop characters and providing a good structure to data. We can monitor the data on Arduino’s Serial Monitor as you can see.

Arduino_Printscreen

It’s the sample data of jar lid module;

{“count“:”27″,”percent“:”30″,”humidity“:”41.5″,”temp“:”22.3″,”ldr“:”250”}

HC-05 Bluetooth Module was wired to Atmega328P’s UART communnication pins and started to send sensors’ data in JSON format. It is working perfectly! Next, we will connect it to Raspberry Pi for sending data to cloud server for data acquisition and posting to MQTT server.

Leave a Reply

Your email address will not be published. Required fields are marked *