Controlling a stepper motor via HTTP
-
This project uses a 4 wire, 5v stepper. It makes the assumption that it is connected to ports 8, 10, 9, 11. It also assumes you are using the Arduino Uno default serial-over-USB configuration.
-
Upload netstepper.ino onto your device.
-
Run
bundle install
and thenruby main.rb
-
Visit http://localhost:4567/forward/200 or http://localhost:4567/backward/200 . It should have moved.