Hackster is hosting Hackster Holidays, Ep. 7: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Friday!Stream Hackster Holidays, Ep. 7 on Friday!
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 hours4,470
Dog Treat Dispenser Using Cayenne

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Raspberry Pi 3 Model B
Raspberry Pi 3 Model B
×1
Servos (Tower Pro MG996R)
×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

Cayenne Settings

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

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
2 projects • 1 follower
From USA California. Student.
Thanks to Cayenne.

Comments