by OpenMYR
Source code for firmware designed to drive various MYR motor controllers with an ESP8266-based platform.
- Software by Brandon Brown and Kyle Berezin (MIT License)
- Hardware design by Chris Adams (CERN Hardware License Version 1.2)
Reconfiguration of the WiFi mode and softAP login is supported via the built-in web server.
- WiFi handler contains demonstration code by Tom Trebisky
- Hardware timer driver (
hw_timer.c
) (MIT License) - JSON interpreter JSMN, by Serge (MIT License)
- An array of up to 4 180-degree servo motors
- Stepper motors
- DC motor
- Encoded DC Motor
- ... and many more
Compiling this project requires the esp-open-sdk, as well as SCons.
scons flash-quad
flashes the WiFi Hobby Servo Controller firmware, rebuilding if necessaryscons flash-stepper
flashes the WiFi Stepper Motor firmware, rebuilding if necessaryscons
builds both versions of the firmwarescons quad
builds the WiFi Hobby Servo Controller firmwarescons stepper
builds the WiFi Stepper Motor firmwarescons -c
cleans all buildsscons -c quad
cleans the WiFi Hobby Servo Controller buildscons -c stepper
cleans the WiFi Stepper Motor build
The "flash-quad" and "flash-servo" commands are intended to be used on Raspberry Pi 2, as the GPIO port can be used to communicate directly with the ESP8266 without the use of a USB device. To use the Pi with the ESP8266, disable serial port login and serial bootup info. The ESP8266 can then be used with the /dev/ttyAMA0 port for both burning and serial communications. For more information, see this guide.