ICP 6 - TondiToday/CSEE5590-IOT-Robotics GitHub Wiki
Teammate 1: Tonderai Kambarami
Teammate 2: Luis Guillermo Usseglio-Carbajal
Teammate 3: Reed Bader
Teammate 4: Tarik Salay
Introduction
For this project, our group was formed of 4 students. The project consisted of connecting NodeRED with sensortag and visualizing the data and visualize all the sensor related info on NodeRED dashboard.
Objectives
• Perform all examples that are taught during the lecture. • Create a node-red flow of your choice which should combine all the flows that are done during lecture-4 and lecture-5. The use case designed should be usable and must make sense at the end of deployments. Include all theflows e.g RBE, HTTP, Weather, Change etc
Approaches/Methods
We integrate the block code with node red, and got the SensorTag to sent data for each of its sensors. SensorTag is a Bluetooth LE device hosting the following sensors: Humidity and Temperature, Ambient & IR Temperatures, Barometric Pressure, Accelerometer, Gyroscope, Magnetometer, and a Luxometer. The readings from these sensors will be sent as a JSON object payload with the sensor name appended to the topic provided:
Humidity - { topic: [topic_prefix]/humidity , payload: { temp: 21.2, humidity: 88} } Temperature - { topic: [topic_prefix]/temperature, payload: { ambient: 21.2, object: 33.0 } } Barometric Pressure - { topic: [topic_prefix]/pressure, payload: { pres: 1000 } } Accelerometer - { topic: [topic_prefix]/accelerometer , payload: { x:0.0, y:9.8, z:0.0 } } Magnetometer - { topic: [topic_prefix]/magnetometer , payload: { x:0.0, y:0.0, z:0.0 } } Gyroscope - { topic: [topic_prefix]/gyroscope , payload: { x:0.0, y:0.0, z:0.0 } } Luxometer - { topic: [topic_prefix]/luxometer , payload: { lux: 212 } } Buttons - { topic: [topic_prefix]/keys , payload: { left: true, right: false} }
Workflow
For this project, we decided to work with our own computers, and try to find a way to build a workable code. We were helping each other and comparing our solutions until we come up with a final solution for all the objectives.
Evaluation.-
Some photos of our code can be found below.
Conclusion.-
Ran into some problems with the bluetooth device running out of battery, could not get it to reliably connect to me PC.