Things used in this project

Hardware components:
A000066 iso both
Arduino Arduino UNO & Genuino UNO
×1
Pi 3 02
Raspberry Pi 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
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

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

Similar projects you might like

Direction Indicators for Bikes
Intermediate
  • 122
  • 4

Full instructions

Riding bike is a little dangerous. With the Direction Indicators for a bike, car's know if you want to turn right or left. Make biking safe!

Starry Night Prom
Intermediate
  • 997
  • 7

How did I stand out at prom? In a light up dress of course!

The Trump Button
Intermediate
  • 769
  • 6

Full instructions

The famous connected button to order your favorite drink using Sigfox network.

Face Detection Using OpenCV With Raspberry Pi
Intermediate
  • 2,372
  • 21

Protip

In this project, we are going to detect faces using OpenCV with Raspberry Pi.

Creating an IoT Server with Home Assistant and MQTT
Intermediate
  • 2,523
  • 17

Full instructions

Home Assistant is one powerful home automation platform and it is complacently open source. Access it from any web browser and automatons.

Adding RC Transmitter/Receiver to Control Mecanum Bot
Intermediate
  • 431
  • 6

Full instructions

We previously showed our Mecanum Bot being controlled by a wireless Xbox controller, now we added RC transmitter/receiver.

ProjectsCommunitiesTopicsContestsLiveAppsBetaFree StoreBlogAdd projectSign up / Login