issue in executing automatic pet feeder

vivek raju's picture

Offline

Joined: Feb 17, 2020

Replies: 1
issue in executing automatic pet feeder
February 17, 2020 - 10:22pm
Hello sir/ma’am , this is with regard to the automatic pet feeder project that you’ve put up on your page. We have a few doubts regarding the project. It would be great if you could give us some of your time to clear it up. 
The problem that we are facing is that the we aren’t able to set the time for feeding. Even if we set the time the servo motor is not rotating according to the time set. It would be great if you could guide us through this. Hoping for a reply ASAP. 
 
Thankyou!
Sourav Gupta's picture

Offline

Joined: Feb 12, 2018

Replies: 306
Feeding time
February 18, 2020 - 10:06am

Did you set the feeding time properly? Is the connection of servo motor proper?

vivek raju's picture

Offline

Joined: Feb 17, 2020

Replies: 1
connections are correct
February 18, 2020 - 12:51pm

connections are correct

when i press push button second time the numbers which i enter is going out of the hours and minuits area

i got your mail id through linkedin i will send u pic through mail whats happening

Sourav Gupta's picture

Offline

Joined: Feb 12, 2018

Replies: 306
I think you should try the
February 21, 2020 - 10:02pm

I think you should try the method described be Mr. Debasis

Sourav Gupta's picture

Offline

Joined: Feb 12, 2018

Replies: 306
I think you should try the
February 21, 2020 - 10:02pm

I think you should try the method described be Mr. Debasis

Debasis Parida's picture

Offline

Joined: Aug 22, 2019

Replies: 124
Debug the circuit and code
February 19, 2020 - 11:16pm

Hi vivek, first cross check your circuit connections.if they are okay, then just print a test message in the feeding loop, to ensure that at feeding time, servo commands are generating or not.you can modify the code like below:

 

if (t1==r[0] && t2==r[1] && t3==r[2] && t4==r[3]&& t5<1 && t6<3 && feed==true)
 { 

 Serial.println("feed success!!!");// Just add this line in you code and re upload
  servo_test.write(100);
   delay(400);   
  servo_test.write(55); 
  feed=false;
 } 

After executing the above modified code, if "feed success!!!" message in coming on serial monitor, then somewhere servo connections are wrong.Hope it helps!!!

ricardo briones's picture

Offline

Joined: Mar 11, 2020

Replies: 3
Hi Sir! 
March 12, 2020 - 12:59pm

Hi Sir! 

After pressing the "setFeedingTime" button, during the 2nd press of # in the keypad, the 1st char seems to be replaced by the 2nd char. Supposedly, it will follow the (j,1) position so it will be printed right after the first char. The colon(:) sign will not be printed on lcd even if the condition "if (j==2)" is met.

And also, when i press the "setFeedingTime" button again, the starting position of char j seems to be moving to the right portion of (j,l) as the start point.

I've followed all the connections above.

Hope somebody could help me on this.

Thank you very much.

ricardo briones's picture

Offline

Joined: Mar 11, 2020

Replies: 3
I'm also encountering this
March 12, 2020 - 1:00pm

I'm also encountering this Sir. Hope somebody could fix this.

Muhammad Umar's picture

Offline

Joined: Apr 09, 2020

Replies: 55
Adopt Simple Codes for Solving main Problem
April 29, 2020 - 8:44pm

For getting your project operative, first of all check the circuitry by testing continuity in all the connections, after that perform a short test with power connections. Then come to check small codes like basic servo test at different angles with some time delay between servo motions. Now for setting the feeding time according to which the food will add in the pot of your pet, you need to test same servo test code with this scenario and you can attach a plate for opening/closing of the food items door. I have done a similar project and got assistance from SSLA technical support team. I suggest you to visit their site for better guidance.