Skip to content

adjavaherian/solar-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

solar-server

Solar powered webserver on ESP8266. This project is based on the Arduino core for ESP8266

Requirements

Install Board Manager (Arduino)

  • Start Arduino and open Preferences window. Enter http://arduino.esp8266.com/stable/package_esp8266com_index.json into Additional Board Manager URLs field. You can add multiple URLs, separating them with commas.
  • Open Boards Manager from Tools > Board menu and install esp8266 platform (and don't forget to select your ESP8266 board from Tools > Board menu after installation).

Flash your ESP8266 (Arduino)

  • If you are using a Gizwitts serial breakout board you should see a reset button and a flash button on the breakout board.
  • Open up the SolarServer sketch in Arduino
  • Make sure the Arduino Serial Monitor is closed
  • While holding the reset button, plug the ESP8266 and USB cable into your computer to enable board uploads.
    • Your board is now flashable, but you may not see a light indicating that.
  • In Arduino IDE, Select Tools > Board > NodeMCU 1.0 (ESP-12E) or your specific board, to select your board baud rate
  • Make sure your serial / usb port is also set Tools > Port > /dev/usb, etc.
  • Edit the SSID, Password and host in the sketch
    • const char* ssid = "yourssid";
    • const char* password = "yourpassword";
    • const char* host = "solar-server";
  • Compile and upload the server sketch
    • Arduino console should look like this:
      • Sketch uses 279331 bytes (26%) of program storage space. Maximum is 1044464 bytes. Global variables use 36780 bytes (44%) of dynamic memory, leaving 45140 bytes for local variables. Maximum is 81920 bytes. Uploading 283472 bytes from /var/folders/z5/jlv1d8yn2lzcjjh2w9z3lrjc0000gn/T/arduino_build_20395/SolarServer.ino.bin to flash at 0x00000000 ................................................................................ [ 28% ] ................................................................................ [ 57% ] ................................................................................ [ 86% ] ..................................... [ 100% ]
  • When complete, enable your serial monitor and reset the ESP module with reset button or power toggle
    • Your serial monitor should look like this at the bottom
      • Connected! IP address: 192.168.0.106 Open http://solar-server.local/edit to see the file browser solar-server started
  • Visit the solar server in your browser http://solar-server.local

Platform.io (Requires Atom)

I suggest using Platform.io IDE because it provides a nice serial monitor and more importantly a config file that can be used to share settings for hardware module Baud, UART, etc. Once you get Platform setup on Atom, you should be able to sync the code to the board and use the serial monitor with very little effort. Uploading Data from the ./data directory should also be easy, but it does require reading the doc below.

Platform.io for development

There are two code bases in this repo, one for Arduino ./SolarServer and one for Platform.io ./src. Notice the code is pretty much the same as the Arduino code, but you have a .cpp extension as opposed to .ino for Arduino based builds. Also for Platform, your data assets that you want on the filesystem, should be in ./data. This is configurable in ./platformio.ini.

Files should be built and uploaded like so platformio run --target buildfs platformio run --target uploadfs

Etc.

About

ESP8266 Webserver with ArduCam Integration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published