use a peristaltic pump to put exactly .05 ml of water or one drop of water every 3.6 seconds for 24 hours
I am under powering the 12v pump to the 5v on a arduino uno board.
using a PN2222 NPN Transistor and 1N4001 Diode as flyback in parallel with the motor.
Attached is a diagram of the setup
Powering the arduino uno board with a 9v output
const int motor= 10; //LED connected to digital pin 10
pinMode(motor, OUTPUT); //sets the digital pin as output
digitalWrite(motor,HIGH); //turns the LED on
The board runs the code and the pump works exactly putting in the .05ml every 3.6 seconds but it only works for about 30 mins or so and then it stops working all together.
Because the pump is underpowered it might not have enough voltage to start and stop the way I am forcing it to right now. If anyone has ideas on this I would like all the help I can get.
I would really like if anyone had suggestions on how to make the code run for given time intervals such as running this set of code for 24 hours or 8 hours then stopping.
As I am new an learning I apologize if I am missing something completely obvious to those more experienced individuals and would appreciate any and all help