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

12036500 889381804450760 6219371222728247797 n
Malte Müller
1 project • 1 follower
Contact

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

Add projectSign up / Login