Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ESP8266 code loading?
#1
I have a couple of ESP8266 and RS485 boards to replicate Daniels setup reading SDM630 meters.

I have been looking about on the various Arduino pages but cant find something with explains how to load the ESP8266 so that it can poll the meters and send the data via wifi? I can connect to the ESP8266 fine but how much code has to be loaded on it and how much is running on a RPi?

Hoping someone can explain which or how many of the INO files etc need to be flashed (if any?)

Tony
Reply
#2
Have you looked at my video about it?

What you need is arduino IDE. set it up with the base folder i got and get it to compile (Misc packages to install so it compiles)
Then config it up and then flash it. After that it boots on its own wifi network and you configure it from there.
The Ultimate DIY Solar and build place
YouTube / Forum system setup / My webpage  Diy Tech & Repairs

Current: 10kW Mpp Hybrid | 4kW PIP4048 | 2x PCM60x | 83kWh LiFePo4 | 10kWh 14s 18650 |  66*260W Poly
Upcoming: 14S 18650~30kWh | Automatic trip breakers, and alot more
Reply
#3
(05-23-2019, 01:12 PM)daromer Wrote: Have you looked at my video about it?

What you need is arduino IDE. set it up with the base folder i got and get it to compile (Misc packages to install so it compiles)
Then config it up and then flash it. After that it boots on its own wifi network and you configure it from there.

I have watched your videos many times yes.

I have Arduino but dont understand what you mean by "set it up with the base folder" you got. I am using Arduino on Windows 10.
I have tested it and it connects to the hardware. It flashes sample scripts okay.

I'm just not knowledgeable on the compiling part of things. Is this done on the RPi or can I do it on my windows machine and flash it from that, then install. Does the RPi have to play a role as it does currently running your python script or does the nodemcu unit simply provide everything that is polled directly by node-red?

Tony
Reply
#4
You flash it from Arduino IDE.

You need to download the code and then get that to compile in Arduino IDE.

The RPI have nothing to do with flashing the MCU. Its just that I run the MQTT on the RPI.
The Ultimate DIY Solar and build place
YouTube / Forum system setup / My webpage  Diy Tech & Repairs

Current: 10kW Mpp Hybrid | 4kW PIP4048 | 2x PCM60x | 83kWh LiFePo4 | 10kWh 14s 18650 |  66*260W Poly
Upcoming: 14S 18650~30kWh | Automatic trip breakers, and alot more
Reply
#5
So download the whole "smart home" on github or just the eastron part? Do you load the zip file into Arduino?
Reply
#6
The full smart home to get the libraries.
But you will extras to.

How did you import other stuff? You do the same with above
The Ultimate DIY Solar and build place
YouTube / Forum system setup / My webpage  Diy Tech & Repairs

Current: 10kW Mpp Hybrid | 4kW PIP4048 | 2x PCM60x | 83kWh LiFePo4 | 10kWh 14s 18650 |  66*260W Poly
Upcoming: 14S 18650~30kWh | Automatic trip breakers, and alot more
Reply
#7
I previously imported a single .ino file to test the board.

I'm not seeing how this works with multiple files etc.
Never mind for now. I need to do some more study on these things.

I still have the original serial connection method running so its still giving me data, just not for more than a day or so before something glitches.
Reply


Who read this thread?
25 User(s) read this thread:
daromer (05-24-2019, 07:59 AM), Lekr (05-24-2019, 04:54 PM), rettore (05-24-2019, 07:15 PM), richie241 (05-24-2019, 01:56 PM), kevinjaye (05-23-2019, 04:49 PM), OffGridInTheCity (05-23-2019, 02:15 PM), tccack (05-24-2019, 11:43 PM), ma3006he (06-02-2019, 04:03 PM), juanjo57 (05-24-2019, 07:25 AM), gigaz (05-24-2019, 02:13 PM), stekicar (06-09-2019, 10:51 AM), Wolf (05-24-2019, 01:42 PM), Shawndoe (05-24-2019, 09:37 PM), Beholder (05-23-2019, 08:40 PM), Sean (05-24-2019, 02:15 PM), Korishan (05-24-2019, 12:14 AM), Frnandu Martiński (06-05-2019, 09:26 AM), watts-on (05-25-2019, 09:42 AM), jesusangel (05-24-2019, 02:12 PM), Geek (05-27-2019, 12:01 AM), Charly144 (05-27-2019, 11:00 AM), kanchana (05-28-2019, 04:46 PM), Ibiza (05-24-2019, 08:40 AM), crashintoty (06-23-2019, 07:28 PM), krobertson (06-29-2019, 01:39 AM)

Forum Jump:


Users browsing this thread: 1 Guest(s)