Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
programming_weatherduino_devices [2018/05/11 03:17] – [Where do I find the WeatherDuino Software?] werk_ag | programming_weatherduino_devices [2019/03/18 02:12] (current) – [LOLIN (WeMos) D1 R2 & mini. How to upload files to the SPIFFS memory?] werk_ag | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Programming WeatherDuino devices ====== | ====== Programming WeatherDuino devices ====== | ||
+ | ===== Where do I find the WeatherDuino Software? ===== | ||
- | ====== Where do I find the WeatherDuino Software? ====== | + | All system builders can download the WeatherDuino software from the [[http:// |
- | All system builders can download the WeatherDuino software from the [[http:// | + | The WeatherDuino |
- | Weatherduino | + | |
+ | ===== What do I need in order to program the Receiver, Transmitter or any other WeatherDuino device? ===== | ||
- | ====== What I need to program the Receiver, Transmitter or any other WeatherDuino device? ====== | + | The Arduino |
- | The Arduino IDE is used to compile and upload the WeatherDuino software to the microcontroller used in each unit.\\ | + | |
+ | ===== Do I need to have Arduino programming skills? ===== | ||
- | ====== Do I need to have Arduino programming skills? ====== | + | No, there is no need to have programming skills. However its assumed |
- | + | Editing | |
- | No, there is no need to have programming skills. However its assumed the user have a minimal knowledge of the Arduino IDE environment. Knowing | + | |
- | Edition of the code is required | + | |
\\ | \\ | ||
- | Bellow | + | Below is an example of the code editing |
- | Basically its only changing the value of pre-defined variables. | + | |
< | < | ||
Line 30: | Line 28: | ||
</ | </ | ||
+ | ===== Install Arduino libraries ===== | ||
- | ====== Install Arduino libraries ====== | + | The WeatherDuino software makes use of several Arduino libraries, which are always included in every software package.\\ |
- | The WeatherDuino software, makes use of several Arduino libraries, which always | + | These libraries must be installed (copied) to the Arduino libraries folder. On Windows systems, generally this folder is located at: |
- | Those libraries must be installed (copied) to the Arduino libraries folder. On Windows systems, generally this folder is located at: \\ | + | |
< | < | ||
Line 39: | Line 37: | ||
</ | </ | ||
- | <WRAP round important> | + | <WRAP round important> |
- | Always install all the supplied libraries, no matter if there are newer versions of the same libraries.\\ | + | Most compile errors are due to not following this recommendation. </ |
- | Most compile errors are due to not following this recommendation. | + | |
- | </ | + | |
- | From time to time we may change or upgrade the libraries used by the software. When this happen, always | + | From time to time we may change or upgrade the libraries used by the software. When this happens, there is always |
- | ====== Where are the user configurable options? ====== | + | |
- | On WeatherDuino software, all user configurable options are just in one place.\\ | + | ===== Configuring |
- | After loading | + | |
- | Before compiling and upload any software to any WeatherDuino unit, its recommended that the user revise and edit this file to suite their own system. Often default options aren't suitable for each user.\\ | + | |
- | The software for some units, may also have a file called Credentials.h which you will see in the Credentials.h tab. Here is where info like WiFi ID and password, WU credentials, | + | |
- | {{: | + | On WeatherDuino software, all user configurable options are stored in one place.\\ |
+ | After loading the WeatherDuino software into the Arduino IDE, you should see a tab with the name Config_Options.h - Click on this tab, all user configurable options are there.\\ | ||
+ | Before compiling and uploading any software to any WeatherDuino unit, it is recommended that you look carefully at this file and edit the values to suit your own system. Often the default options aren't suitable for every user.\\ | ||
+ | The software for some devices may also have a file called Credentials.h which you will see in the Credentials.h tab. This is where information such as WiFi ID, WiFi password, WU credentials, | ||
+ | {{: | ||
- | ====== WeMos D1 R2 & mini isn't listed in my list of available boards. How to add it? ====== | + | ===== LOLIN (WeMos) D1 R2 & mini isn't listed in my list of available boards. How do I add it? ===== |
- | In your Arduino IDE: | + | |
- | | + | In your Arduino IDE: |
- | * Into Additional Board Manager URLs field, copy and past this URL:\\ | + | |
- | < | + | |
- | * After installation, | + | * Paste this URL into the Additional Board Manager URLs field: |
+ | |||
+ | < | ||
+ | http:// | ||
+ | </ | ||
+ | |||
+ | * After installation, | ||
+ | |||
+ | |||
+ | ===== LOLIN (WeMos) D1 R2 & mini. How to upload files to the SPIFFS memory? ===== | ||
+ | |||
+ | To upload the fonts and icons to SPIFFS use the " | ||
+ | If you don't see this option, to add it follow instructions here: https:// | ||
+ | or (the easy way) just copy to your Sketchbook location (on Windows, usually C: | ||
+ | the " | ||
+ | \\ | ||
+ | Close the IDE and open again to see the new menu option.\\ | ||
+ | ===== OTA programming ===== | ||
- | For OTA software upgrades also need to install | + | Some WeatherDuino devices can be upgraded / programmed by Over The Air (OTA), using your WiFi network. \\ For this to work you need to have Python 2.7 installed in your computer. If it isn't already installed, download |
- | Download | + | Do not install |
- | During | + | During installation |
{{: | {{: | ||