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/15 22:18] – [What I need to program the Receiver, Transmitter or any other WeatherDuino device?] 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:// | ||
- | Weatherduino source code is published under GNU General Public License v3.0\\ | ||
+ | All system builders can download the WeatherDuino software from the [[http:// | ||
+ | The WeatherDuino source code is published under GNU General Public License v3.0 | ||
- | ===== What I need to program the Receiver, Transmitter or any other WeatherDuino device? ===== | + | ===== What do I need in order to program the Receiver, Transmitter or any other WeatherDuino device? ===== |
- | The Arduino IDE is used to compile and upload the WeatherDuino software to the microcontroller used in each unit.\\ | + | |
+ | The Arduino Integrated Development Environment (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 the user have a minimal knowledge of the Arduino IDE environment. Knowing | + | No, there is no need to have programming skills. However its assumed |
- | Edition of the code is required | + | Editing |
\\ | \\ | ||
- | Bellow | + | Below is an example of the code editing |
- | Basically its only changing the value of pre-defined variables. | + | |
- | + | ||
- | < | + | |
- | // -------------------------------------------------------------------------------------- | + | |
- | // | + | |
- | // -------------------------------------------------------------------------------------- | + | |
- | #define DATE_TIME_FORMAT | + | |
- | #define TEMP_DISPLAY_UNIT 0 // 0 for ºC, 1 for ºF | + | |
- | #define ATM_DISPLAY_UNIT | + | |
- | #define RAIN_DISPLAY_UNIT 0 // 0 for mm, 1 for inches | + | |
- | #define WIND_DISPLAY_UNIT 0 // 0 for Km/h, 1 for mph, 2 for m/s, 3 for Knots | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | ===== Install Arduino libraries ===== | + | |
- | The WeatherDuino software, makes use of several Arduino libraries, which always are included in every software package.\\ | + | |
- | Those libraries must be installed (copied) to the Arduino libraries folder. On Windows systems, generally this folder is located at: \\ | + | |
- | + | ||
- | < | + | |
- | C: | + | |
- | </ | + | |
- | + | ||
- | <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. | + | |
- | </ | + | |
- | + | ||
- | From time to time we may change or upgrade the libraries used by the software. When this happen, always there is a notice in the change.log file that is included in each software release. Read it every time you download a new software version. By other hand, the same notice always is also published on the software download webpage.\\ | + | |
- | + | ||
- | + | ||
- | ===== What I need to program the Receiver, Transmitter or any other WeatherDuino device? ===== | + | |
- | + | ||
- | 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? ===== | + | |
- | + | ||
- | No, there is no need to have programming skills. However its assumed the user have a minimal knowledge of the Arduino IDE environment. Knowing how to install libraries, as also being able to do minimal code edition, its necessary .\\ | + | |
- | Edition of the code is required only to change the value of some pre-defined settings, to make that the software will correctly work with the set of weather instruments you intend to use, and to define some user preferences, | + | |
- | \\ | + | |
- | Bellow is an example of the type of code edition | + | |
- | Basically its only changing the value of pre-defined variables. | + | |
< | < | ||
Line 72: | Line 30: | ||
===== Install Arduino libraries ===== | ===== Install Arduino libraries ===== | ||
- | The WeatherDuino software, makes use of several Arduino libraries, which always | + | The WeatherDuino software makes use of several Arduino libraries, which are always included in every software package.\\ |
- | Those libraries must be installed (copied) to the Arduino libraries folder. On Windows systems, generally this folder is located at: | + | These libraries must be installed (copied) to the Arduino libraries folder. On Windows systems, generally this folder is located at: |
< | < | ||
Line 82: | Line 40: | ||
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 |
- | ===== Configuring the Software ===== | + | ===== Configuring the Software |
- | On WeatherDuino software, all user configurable options are just in one place.\\ | + | On WeatherDuino software, all user configurable options are stored |
- | After loading the Weatherduino | + | After loading the WeatherDuino |
- | Before compiling and upload | + | Before compiling and uploading |
- | The software for some units, | + | The software for some devices |
- | {{: | + | {{: |
- | ===== 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: | ||
* Open Preferences window. | * Open Preferences window. | ||
- | * Into Additional Board Manager URLs field, copy and past this URL: | + | * Paste this URL into the Additional Board Manager URLs field: |
< | < | ||
Line 104: | Line 62: | ||
</ | </ | ||
- | * After installation, | + | * After installation, |
- | For OTA software upgrades also need to install Python 2.7 (do not install Python 3.5 that is not supported). \\ Download it from here: [[https:// | ||
- | During install select the option as pictured in the image bellow. | ||
- | {{: | + | ===== 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 ===== | ||
+ | |||
+ | 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 it from here: [[https:// | ||
+ | Do not install Python 3.5 as that is not supported. \\ | ||
+ | During installation select the option as pictured in the image below. | ||
+ | |||
+ | {{: | ||