users:dagnall53:node_programming
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
users:dagnall53:node_programming [2019/02/14 12:41] – [Programming the Hardware] dagnall53 | users:dagnall53:node_programming [2019/02/16 16:44] – [First Time Programming] dagnall53 | ||
---|---|---|---|
Line 1: | Line 1: | ||
Index | Index | ||
- | * [[https:// | + | |
+ | | ||
* [[: | * [[: | ||
* [[: | * [[: | ||
- | * [[: | ||
* [[: | * [[: | ||
- | * [[:users:Dagnall53:Node_programming|Node_Programming]] | + | |
+ | ====== Programming the Hardware ====== | ||
+ | |||
+ | ====== Arduino Libraries ====== | ||
+ | ===== Dependencies ===== | ||
+ | |||
+ | It is vital that you have the correct libraries installed in your Arduino to allow it to compile the code. | ||
+ | You should have | ||
+ | | ||
+ | * ESP32 esp32 by Espresif System (I have version 1.01) | ||
+ | * Ftp support ESP8266FtpServer.h https:// | ||
+ | * ESP32Servo.h | ||
+ | * PubSubClient.h https:// | ||
+ | * SSD1306.h | ||
+ | * AudioOutputI2SNoDAC.h, | ||
+ | |||
+ | |||
+ | |||
- | ====== Programming the Hardware ====== | ||
===== First Time Programming ===== | ===== First Time Programming ===== | ||
- | If using the node as a " | + | If using the node as a " |
- | If using Audio, I would recommend the " | + | If using Audio, I would recommend the " |
- | Before programming or runnning the code, make sure you " | + | Before programming or runnning the code, make sure you " |
- | I program the ESP8266 with the Arduino ' | + | I program the ESP8266 with the Arduino ' |
- | For the ESP32, I use the 'WEMOS Lolin32' | + | For the ESP32, I use the 'WEMOS Lolin32' |
**Just to be " | **Just to be " | ||
Line 29: | Line 46: | ||
---- | ---- | ||
+ | ===== Programming using OTA ===== | ||
+ | The nodes can be updated using OTA (Over the Air) wireless programming.\ | ||
+ | To do this you must know the node IP addres. Then, in Arduino, in " | ||
+ | Then proceed with Sketch: | ||
+ | |||
+ | === Known Limitation === | ||
+ | I have noticed that the Node may need to be powered down and then re-powered after an OTA upload. \\ | ||
+ | Because the MQTT find broker code blocks all other operations, the Node should be successfully connected to a MQTT broker before the update can be undertaken. Also note that, depending on what #defines you have used, after updating, you may still need to physically connect to the node to set SSID and Passwords etc. - But the update should not affect the saved values, so in general, if the code worked before you updated, it should do so again afterwards. | ||
+ | |||
+ | |||
+ | |||