Catfeeder

OŠ Sv. Filip i Jakov

Hranilica za mace, a može i za pse ako smo kraće vrijeme odsutni iz našeg doma odnosno u školi ili na poslu. Stiskom na gumb on-off pokrećemo servo motor koji je montiran na Lego konstrukciji i na njega je pričvršćena limenka. Za preciznije izbacivanje hrane dodan je karton na limenku.

Video snimka

Izrada projekta

Mace bez hranilice.

Mobilna aplikacija

Gumb on-off pokreće servo motor.

Shema projekta

Servo je spojen na Arduinove ground,5V i gpio 8 pinove.

Shemu ovoga projekta možete preuzeti ovdje.

Arduino program

#define BLYNK_PRINT /*

/*************************************************************
  Download latest Blynk library here:
    https://github.com/blynkkk/blynk-library/releases/latest

  Blynk is a platform with iOS and Android apps to control
  Arduino, Raspberry Pi and the likes over the Internet.
  You can easily build graphic interfaces for all your
  projects by simply dragging and dropping widgets.

    Downloads, docs, tutorials: http://www.blynk.cc
    Sketch generator:           http://examples.blynk.cc
    Blynk community:            http://community.blynk.cc
    Follow us:                  http://www.fb.com/blynkapp
                                

  Blynk library is licensed under MIT license
  This example code is in public domain.

 *************************************************************

  Rotate a servo using a slider!

  App project setup:
    Slider widget (0...180) on V3
    Conect servo to pin 8 on arduino MKR1000
 *************************************************************/

/* Comment this out to disable prints and save space */



#include 
#include 
#include 
#include 

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "1b4cfc6470f24e17bdb4ebd0df87f2d6";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Pux";
char pass[] = "bazaophe";

Servo servo;

BLYNK_WRITE(V3)
{
  servo.write(param.asInt());
}

void setup()
{
  // Debug console
  Serial.begin(9600);

  Blynk.begin(auth, ssid, pass);
  // You can also specify server:
  //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 8442);
  //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8442);

  servo.attach(9);
}

void loop()
{
  Blynk.run();
}

Arduino program ovoga projekta možete preuzeti ovdje.

Autori

Projekt su izradili Andrija Pulić i Leo Jukić uz mentorstvo Ljiljane Kadija Pulić iz OŠ Sv. Filip i Jakov.

Projekt je prijavljen na temu: Internet of Things: Kućni ljubimci i domaće životinje.

Drugi projekti