berne
Junior Member
Posts: 85
|
Post by berne on Jun 9, 2019 8:13:52 GMT -8
Doc: I have some experience programming Arduino UNO's with the IDE. Been able to download software from GitHub and load the SDL_ESP8266_WeatherPlus. ino. Some questions:
Is there an overview tutorial on modifying and uploading the code for the ESP8266? What board do I select for the ESP8266 in the Arduino IDE? Can I purchase from you or elsewhere a bare ESP8266 as a test bed to run code modifications on? With my last project I played with an Arduino simulator to test code modifications. Would that work in this case (as opposed to buying a test bed board)?
My reason for this and for buying your kit is to be able to add non-standard sensors, such as a CO2 sensor, a sky infrared pyrometer sensor, maybe a snowfall sensor, etc. Thanks, Berne
|
|
david
Junior Member
Posts: 95
Raspberry Pi: Yes
|
Post by david on Jun 9, 2019 11:20:11 GMT -8
Process that I have used, I am failing somewhere. 1. Setup the Arduino IDE and download the OurWeather/WeatherPlus software: git clone github.com/switchdoclabs/OurWeatherWeatherPlus2. copy all files into sketchbook SDL_ESP8266_WeatherPlus open IDE and attempt to compile, Verify 3a. line 158: #include <String.h>: No such file or directory. a forum post suggest to change to <string.h> so I do and try to compile again 3b. line 237 #include "elapsedMillis.h" : No such file . file name is elapsedmillis.h so I change M to m and try again 3c. line 629 change Crc16.h to crc16.h 3d. line 13 in SDL_Weather_80422.cpp is #include <Time.h> and error is again no such file. There is a file TimeLib.h so I change to that 3e. same line so I change from <TimeLib.h> to "TimeLib.h" 4. compile finishes with out fatal error 5. disconnect power from weather board 6. connect laptop using USB to FTDI which powers up weather board 7. do upload procedure, GPIO0 and RESET 8a. looks like all uploaded ok, status at bottom of IDE says Done uploading. But the info lines are: 8b. Leaving… 8c. Hard resetting via RTS pin… 9. I disconnect FTDI and reattach power 10. Boots ok and runs two or three minutes, then fails, hangs up. 11. data on Blynk has outside temp frozen, outside humidity nan%, dewpoint nanF, inside temp -227.7F 12. If I then do an over-the-air update from the OurWeather Admin page all is normal again.
|
|
berne
Junior Member
Posts: 85
|
Post by berne on Jun 10, 2019 5:42:58 GMT -8
Thanks David for the hints on name corrections to make the compilation proceed.
What board have you selected in the Arduino IDE? What is the upload procedure? There was an additional plug in USB adapter that I am not using, is that required for the upload? Thanks, berne
|
|
|
Post by SDL on Jun 10, 2019 7:24:41 GMT -8
Check out the OurWeather Advance programming manual for download instructions.
The USB plug is only for power when you aren't using the FTDI connector.
BP
|
|
david
Junior Member
Posts: 95
Raspberry Pi: Yes
|
Post by david on Jun 10, 2019 9:20:39 GMT -8
Berne, happy to try and help but something I am doing is wrong. When I upload (per the OurWeather Advance programming manual) and the steps I outline above something fails and I do not know what. So I am looking for help too.
|
|
|
Post by gb0101010101 on Jun 10, 2019 13:03:37 GMT -8
berne , You want board: AdaFruit Feather HUZZAH ESP8266 To see this board you will have to add board sources: File -> Preferences -> Additional Board Manager URLs. Add , http://arduino.esp8266.com/stable/package_esp8266com_index.json to existing text. Note the comma at the beginning. Click 'OK' It will download the board code.
Go to Tools -> Board and select the board.
To Upload
Connect the board using the FTDI adapter to USB on computer. Wait a few seconds. Go to Tools-> Port and select the USB port. (probably only one listed) Once you have fixed all the code issues mentioned by davidHold the power button on the OurWeather board, then press the reset button, then let go of power button to put it into programming mode. Then quickly click on the second Icon from left which is the right arrow in a circle to upload.
|
|
david
Junior Member
Posts: 95
Raspberry Pi: Yes
|
Post by david on Jun 10, 2019 18:56:12 GMT -8
gb0101010101, thanks for reading my post above, but can you help me. Something in the process is causing my board to fail. It works great with install of version 35 from the OurWeather Admn page but when I upload it causes humidity to go to NAN and inside temp -227 and dewpoint NAN. The only changes I made to the code is outlined above. I am just piggybacking on the questions berne posted, but can start a new thread if that is the best.
|
|
berne
Junior Member
Posts: 85
|
Post by berne on Jun 11, 2019 6:04:06 GMT -8
david, thanks again. Very helpful. I had to do an extra step, under tools, boards had to go to boards manager where the ESP8266 boards were listed at the bottom, that is where the download occured. Now I see a slew of ESP8266 boards. Do I select the generic or one of the others? Good luck with your programming issue, I will be watching that thread, too. - berne
|
|
berne
Junior Member
Posts: 85
|
Post by berne on Jun 11, 2019 6:10:39 GMT -8
Okay I think I found the answer to my question in the advanced user manual. It says select the Adafruit Huzzah board. I only see the "Adafruit Feather HUZZAH ESP8266" as the closest in the new boards in the board manager, so will assume that's the one.
Edit: Now I feel foolish, because you already mentioned that board upthread. thanks again.
|
|
david
Junior Member
Posts: 95
Raspberry Pi: Yes
|
Post by david on Jun 11, 2019 6:52:28 GMT -8
That was info from gb0101010101 and in the Advanced programming manual.
|
|
|
Post by berne_ on Jun 14, 2019 5:53:42 GMT -8
David & Doc: Just a note, I had to make more changes to the code than the ones you noted. For instance the code incorrectly puts some includes in < > when there is no cpp. For h only they should be in " ". Also The Blynk code in the source I downloaded is stored in BlynkRoutines.h The is incorrectly named in the main code include. I am still getting a compile error "Blynk not declared in this scope". Pretty clear that the code that was downloaded is NOT the production version.
|
|
|
Post by SDL on Jun 15, 2019 7:39:23 GMT -8
Berne,
It is pretty clear that there is some kind of a library installation issue. We have moved this from machine to machine with out problem. It is either a user installation error or an error in the instructions. Sounds like we need to do an instruction audit.
BP
|
|
david
Junior Member
Posts: 95
Raspberry Pi: Yes
|
Post by david on Jun 19, 2019 4:18:44 GMT -8
Berne, Use Tools > Manage Libraries to check if you have Blynk library version 0.6.1 by Volodymyr Shymanskyy installed. David
|
|
berne
Junior Member
Posts: 85
|
Post by berne on Mar 8, 2021 8:41:09 GMT -8
After developing my DASH app for V2 board I'm back to playing with programming on my V1 board. Have successfully compiled code after changes as noted above and adding the Blynk librarY as David (thanks!) NOTED. It Appears I need a FTDI or serial USB cable to upload code. Please confirm. This is from "https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/using-arduino-ide"
|
|
|
Post by SDL on Mar 9, 2021 5:56:20 GMT -8
V1 requires an FTDI cable. V2 requires a USB cable.
BP
|
|