Things used in this project

Hardware components:
A000066 iso both
Arduino UNO & Genuino UNO
×1
Pi 3 02
Raspberry Pi 3 Model B
×1
Servo (generic)
×1
Mfr 25frf52 10k sml
Resistor 10k ohm
×1
266 04
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 logo hi
myDevices Cayenne

Schematics

Image of the connections
Rldbk6ejb7yiqesflfur
Cayenne Settings
http://www.cayenne-mydevices.com/
C8rsexf9fuhciqeeul7h

Code

Arduino codeC/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

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

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

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaBlog