a1rb4Ck / 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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

About

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.

License:GNU General Public License v3.0


Languages

Language:C++ 55.0%Language:JavaScript 26.3%Language:Python 8.4%Language:CSS 5.4%Language:HTML 5.0%