Skip to content

Klompara/BubbleMotivator

Repository files navigation

BubbleMotivator

This script is used for a bubble machine.

Hardware

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.

Circuit

REST API

The microcontroller connects to a nearby wifi in order to run a http server which can be used to control the bubble machine.

start bubbles

Request

POST /start/

curl --location --request POST 192.168.178.40/start

Response

started

stop bubbles

Request

POST /stop/

curl --location --request POST 192.168.178.40/stop

Response

stopped

reverse spin direction

Request

POST /reverse/

curl --location --request POST 192.168.178.40/reverse

Response

motor spinning counterclockwise
motor spinning clockwise

set spin speed "speed" (delay between stepper signal)

Request

POST /setDelay/

curl --location --request POST 192.168.178.40/setDelay -d 2000

Response

Body not received
Body ist not a digit
Changed Stepper speed

set fan speed (servo motor speed)

Request

POST /setServoSpeed/

curl --location --request POST 192.168.178.40/setServoSpeed -d 120

Response

Body not received
Body ist not a digit
Changed Servo speed

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages