Malte Müller
Published © GPL3+

Automated Cat Feeder with Particle Photon

The goal was to make it possible to feed my cats when I'm not at home.

IntermediateWork in progress8 hours3,836
Automated Cat Feeder with Particle Photon

Things used in this project

Story

Read more

Code

Particle Photon Code

C/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

Malte Müller

Malte Müller

1 project • 1 follower

Comments