Lesson 9 Node Red Dashboard - levizzzle/CS490 GitHub Wiki

Lesson 9: Involved connecting Raspberry Pi compatible nodes into node-red and utilizing them to control input and output from the Pi. First we created a flow to turn an LED on or off. We combined this with a momentary button for physical control. We then read values from the DHT22 sensor and used the node-red dashboard to display current value in a gauge node and historical values in a chart.

Components used:

  • Raspberry Pi
  • Breadboard
  • 5mm Green LED
  • 330 ohm resistor
  • DHT22 Sensor
  • Node Red

Screenshots of physical connections

Screenshot of Node Red Flow

Screenshot of Node Red Dashboard

Link to Youtube Video

Things Learned

Lesson 9 taught me how to import nodes for use with Raspberry Pi. First I used rpi-gpio node to control a LED. Next I learned how to import the module to provide access to the DHT sensor readings. I then learned how to utilize the node-red dashboard to pull everything together. I easily found a use for the dashboard switch node which I used as an additional control method for my LED