![]() ![]() ![]() Myservo.begin(servoPin) // start the servo object SlowServo myservo // create a servo object If (millis() - previousMillis > interval) I did build one of these last year and used a cd rom drawer, relays, resistors and capacitors to make a unit that operated on a magnetic reed but the cat kept sticking to the fridge with that big magnet on her collar! #include Ĭonstexpr uint8_t openPin = 7 // open doorĬonstexpr uint8_t closePin = 7 // force close Any assistance would be greatly appreciated. I also want to include a low power library that will shut down after an elapsed time and reactivate when the microswitch powers the wake up circuit. I'm trying to keep it as simple as possible, using the servo to open the lid when the smaller cat activates the fsr and close it when the other cat exceeds the settings for the fsr. I would also like to slow down the loop because it moves so fast i can't read the data from the fsr sensor. I was reading about using a switch case string and wonder if that would work better. I have found code online and edited it to operate on the override switch for filling the dish but neither input functions when I combine the switch code with the fsr code. I purchased an arduino uno and fsr sensor to control the futaba servo I already have. I'm sure you can guess who is overeating and needs to be restricted to diet food. We have one cat that is 10 lbs and one that is 14 lbs. I am building an rfid feeder alternative after seeing someone online build something similar using a scale sensor to determine which cat could eat from the bowl. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |