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,743
Automated Cat Feeder with Particle Photon

Things used in this project

Hardware components

Photon
Particle Photon
×1
NEMA 17 Stepper Motor
OpenBuilds NEMA 17 Stepper Motor
×1
cereal dispenser
×1
OSB
×1
Dual H-Bridge motor drivers L298
SparkFun Dual H-Bridge motor drivers L298
×1

Software apps and online services

Maker service
IFTTT Maker service
node.js

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

Add projectSign up / Login