Isaac Koczwara
Published © LGPL

Dog Treat Dispenser Using Cayenne

This is a dog treat dispenser controlled by Raspberry Pi and an Arduino using Cayenne. This is a very basic design and is only a prototype.

IntermediateShowcase (no instructions)3 hours2,668
Dog Treat Dispenser Using Cayenne

Things used in this project

Hardware components

Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1
Raspberry Pi 3 Model B
Raspberry Pi 3 Model B
×1
Servo (generic)
×1
Resistor 10k ohm
Resistor 10k ohm
×1
Female/Female Jumper Wires
Female/Female Jumper Wires
×1
Male/Male Jumper Wires
×1
Treat dispensing mechanism
It is best to make your own that works. It will be powered by a servo motor.
×1

Software apps and online services

Cayenne
myDevices Cayenne

Story

Read more

Schematics

Image of the connections

Rldbk6ejb7yiqesflfur

Cayenne Settings

http://www.cayenne-mydevices.com/
C8rsexf9fuhciqeeul7h

Code

Arduino code

C/C++
#include <Servo.h>
Servo myservo;


void setup() {
  pinMode(8, INPUT); 
  myservo.attach(9);
}

void loop() {
 int val = digitalRead(8);
 
 if (val == HIGH){
  myservo.write(80);

 }
 else if (val == LOW){
  myservo.write(138);
 }

}

Credits

Isaac Koczwara

Isaac Koczwara

2 projects • 1 follower
From USA California. Student.
Contact
Thanks to Cayenne.

Comments