This script is used for a bubble machine.
An ESP8266 with the help of an A4988 driver is controlling the spinning of a stepper motor Nema17 17HS4401. Additionally an a2212/13t 1000kv with an 30A ESC is used to blow the bubbles.
The microcontroller connects to a nearby wifi in order to run a http server which can be used to control the bubble machine.
POST /start/
curl --location --request POST 192.168.178.40/start
started
POST /stop/
curl --location --request POST 192.168.178.40/stop
stopped
POST /reverse/
curl --location --request POST 192.168.178.40/reverse
motor spinning counterclockwise
motor spinning clockwise
POST /setDelay/
curl --location --request POST 192.168.178.40/setDelay -d 2000
Body not received
Body ist not a digit
Changed Stepper speed
POST /setServoSpeed/
curl --location --request POST 192.168.178.40/setServoSpeed -d 120
Body not received
Body ist not a digit
Changed Servo speed