This is a Node.js app to control a one axis sun tracker by using latitude, longitude, date and time.
This app runs on a command and control computer like a Raspberry Pi 3 and communicate with a NodeMCU module via websockets.
cd /my/projects/rootfolder
git clone https://github.com/seekwhencer/suntracker.git suntracker
cd suntracker/app
npm install
npm start
- NodeMCU
- 100 Ohm Pot
- L298N
- DC Down converter with USB and soldered output
As part of my dev station on a raspberry pi (german)
https://docs.google.com/document/d/1_xv6BJOvg2tKAK0UAu02wwiqLuZEJGaxQMHlU8f96E8
This helps me
https://tutorials-raspberrypi.de/einfuehrung-programmierung-esp8266-nodemcu-boards/
- use ESP8266Flasher.exe to flush the firmware (Windows)
- use ESPlorer to speak with the module