GrafanaCon LA IoT Workshop PDF
GrafanaCon LA IoT Workshop PDF
Connected devices make it easy to connect, monitor & control your world!
In this workshop we'll explore how we can use Grafana together with the ESP32
platform to monitor our surroundings and visualize data over time.
ESP-what?
In 2014 Espressif Systems launched the ESP8266, an
all-in-one chip with a 32-bit CPU and WiFi
If you only have USB-C, let us know and we have USB-C to USB-A adapters
So, what are we going to do with it?
- Observe temperature and humidity
in the room on a regular basis
Power
- Connect the - pin on the DHT11 to GND on the ESP32 (2nd pin)
- Connect the + pin on the DHT11 to 3V3 on the ESP32 (3rd pin)
Signal
- Connect the out pin on the DHT11 to pin 32 on the ESP32 (13th pin)
Hardware
Getting Started
All the links you'll need are at:
https://github.com/DanCech/IoTWorkshop
CP210x Driver
Note: Only required if your OS doesn't recognize the USB Serial automatically
Download the Silicon Labs CP210x UART to USB Driver (URL in README)
https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers
When prompted you will have to open Security & Privacy and allow software from
“Silicon Laboratories Inc”
The Arduino IDE
- arduino.cc
- Install it
The ESP32 core
This open-source board definition adds
support in the Arduino IDE for programming
ESP32 boards.
https://github.com/espressif/arduino-esp32
- https://dl.espressif.com/dl/package_esp32_index.json
The ESP32 Core (cont)
Open Boards Manager
- You can do that via git by going to your sketchbook folder and running:
git clone https://github.com/DanCech/IoTWorkshop.git, or
- You can download the .zip from the link in the project readme and extract it
into your sketchbook folder
https://grafana.com/loki#get
(If you already have a Hosted Metrics instance, feel free to use that)
config.h
This file contains the configuration for the project
https://grafana.com/dashboards/9848
Thanks!