Things used in this project

Hardware components:
Photon new
Particle Photon
×1
Nema%2017 2
OpenBuilds NEMA 17 Stepper Motor
×1
cereal dispenser
×1
OSB
×1
09670 01
SparkFun Dual H-Bridge motor drivers L298
×1
Software apps and online services:
Q8wtlimqnp04fzhtr9v5
IFTTT Maker service
node.js

Code

Particle Photon CodeC/C++
#include <Stepper.h>

const int stepsPerRevolution = 200;  

Stepper myStepper(stepsPerRevolution, 7, 6, 5, 4);
   
void setup() {
  
  Particle.function("feed",feed);
  myStepper.setSpeed(5);
  
}

void loop() {

}

int feed(String command){
   
     myStepper.step(33);
     delay(1000);
     return 1;
    
}
.C/C++
.
No preview (download only).

Credits

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

Lightweight Sliding Door Automator
Intermediate
  • 1,535
  • 7

Work in progress

Automate the opening and closing of a lightweight sliding door (e.g. a screen door), including remote controls on your phone.

Christmas Gift Box
Intermediate
  • 3,633
  • 595

Full instructions

Christmas Gift Box plays music and sends an email when it is opened.

Carbon Fiber Vacuum Chamber
Intermediate
  • 2,905
  • 94

Full instructions

Our project is a carbon fiber vacuum chamber that is monitored by multiple particle photons and various sensors.

ConnectTheDots with Particle Azure IoT Hub Integration
Intermediate
  • 841
  • 8

Protip

This project will allow you to connect your Particle device into an Azure IoT Hub for viewing data in real-time through an ASP.NET web app!

What should I wear outside?
Intermediate
  • 5,044
  • 67

Full instructions

A whimsical weather clock powered by Particle and forecast.io

Garage Door Opener with Blynk
Intermediate
  • 367
  • 2

Open, close and monitor a garage door opener with a smart phone using a Particle Photon and the Blynk application.

Add projectSign up / Login