Automatic Pet Feeder Machine

 Circuit diagram:



Code :

/*

code started

 #define servo = D8

  code created by innovative ideas https://youtube.com/c/InnovativeIdeasyt

    */

#include <Servo.h>

#define BLYNK_PRINT Serial

#include <ESP8266WiFi.h>

#include <BlynkSimpleEsp8266.h>

Servo servo;

char auth[] = " ****** ";//Enter your Blynk auth token

char ssid[] = "*****";//Enter your WIFI name

char pass[] = "*****"" ";//Enter your WIFI password

BLYNK_WRITE(V2){

  servo.write(param.asInt());

  }

  void setup() {

    Serial.begin(9600);

      servo.attach(D8);

        Blynk.begin(auth, ssid, pass);

        }

void loop() {

  Blynk.run();

  }

Post a Comment

1 Comments

  1. Can I make two buttons for two different servos attached to the same module one for my small chicks and one for the big hens?
    And what will be the change .

    ReplyDelete