From 290dfd153b928a7d8bf08071759a1a9f1fee2d29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Fri, 20 Jan 2017 10:22:23 +0100 Subject: [PATCH] document activity LEDs --- README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1f45276..0cecc9f 100644 --- a/README.md +++ b/README.md @@ -20,10 +20,29 @@ This offers a [STM32F103C8T6 micro-controller](http://www.st.com/web/en/catalog/ peripherals =========== +LED +--- + +4 LEDs have been added to show the current activity: + +- power (red): shows if the board is power (the voltage regulator works). +- heart beat (green): shows if the firmware is running correctly. It starts when all the setup of all peripherals is complete (including connecting to the WiFi network) and toggles every second. +- query (yellow): goes on when starting to query the measurement values from all electricity meters, and goes off when it received all values. +- submit (blue): goes on when it start submitting the values to the database (using an HTTP POST on influxDB), and goes off when the submission succeeded. + +Note: don't use the onboard LED on PC13 on the blue pill as switching it heavily influences the RTC. + +Connections LED (cathode) <-> board (all LED anodes are connected to the +3.3V rail): + +- power; GND +- heart beat; PA5 +- query; PA6 +- submit; PA7 + ESP8266 ------- -The ESP-01 WiFi module (based on the ESP8266 chip) is used to join the local network, connect to the influxDB database on the SBC, and store the measurement values gathered from the electricity meters. +The ESP-01 WiFi module (based on the ESP8266 chip) is used to join the local network, connect to an influxDB database using HTTP, and store the measurement values gathered from the electricity meters. AT firmware v0.51 from the espressif NONOS SDK 1.5.0 has been used for this project. Be sure to have configured the module to connect to the right access point beforehand using the following AT commands: