This is the archive for code used for the project BigTape
installed in PingShan Art Museum
.
update: I uploaded a video here: https://www.youtube.com/watch?v=SyM3ul_wpzs
- Running on three ESP32 modules with MicroPython, and communicate through HTTP on the local network.
- See specs
here
- See specs
- Async PID control based on position with
MicroPython simple-pid
- Absolute Rotatory Encoder through RS485 and ModBus RTU Serial with
MicroPython Modbus library
- DC Motors driven by H-Bridge with PWM.
- See specs for the H-Bridge here
- Dynamically setting PID position through HTTP server with
MicroDot
- Triggerable by human movement based on
Xiaomi Human Body sensor
- Most of the third-party modules used in this project has been "frozen" into the firmware:
PID
umodbus
copy
urequests
microdot_asyncio
- Just for reference,
utility.py
contains some deprecated code from the unsuccessful usage ofincremental rotatory encoder
as the ESP32 used in this project fails to register every steps. - The repo has been substantially purged for succinctness with only the working code left, which might lead to confusion should there be any mistakes. If necessary, open an issue.