/esp8266-wifi-car

2WD wifi car with front sonars, using an ESP8266 for communication to an external brain. Reinforcement learning to train obstacle avoidance in a simulation, then applied on the real car.

Primary LanguageC++GNU General Public License v3.0GPL-3.0

ESP8266 WiFi car

Firmware for the ESP8266/NodeMCU WiFi car.
Embedded web server to live stream sonars sensors values via WebSockets.
Optimised web contents on the SPIFFS flash.
Towards Reinforcement Learning to learn an obstacle avoidance algorithm in simulation, then apply it on the real car.
It will be used as teaching material for an Applied Machine Learning engineering course.

Quickstart

Install requirements

npm install gulp-cli -g
cd gulp_minify
npm install

Minifying the embedded web server files

mini+ugl gzipped
381 Ko -> 149ko

cd gulp_minify  
gulp  

Build and upload the firmware

platformio run --environment nodemcuv2_USB -t buildfs -t uploadfs  
platformio run --environment nodemcuv2_USB -t upload -t monitor  

Ressources

PlatformIO:

HC-SR04 sonar:

WebSockets: