I have built a circuit that controls a small motor.
The motor lifts the food for my hens about 1/2 meter so that the hens can't get food.
Next morning the motor will lower the food again.
This is to avoid feeding rats at night.
The engine must run until a micro switch on a string disconnects the power to the motor.
Problem: One evening the cord broke and the motor ran continuously all night.
I have no imagination how to program this simple circuit to interrupt
the motor after eg. 1 hour if the string should break again.
Here's a bit of the simple program:
The motor lifts the food for my hens about 1/2 meter so that the hens can't get food.
Next morning the motor will lower the food again.
This is to avoid feeding rats at night.
The engine must run until a micro switch on a string disconnects the power to the motor.
Problem: One evening the cord broke and the motor ran continuously all night.
I have no imagination how to program this simple circuit to interrupt
the motor after eg. 1 hour if the string should break again.
Here's a bit of the simple program:
Code:
[color=Blue]high StartMotor[/color][color=Green]; Drive until UpAktivSW = 1[/color]
[color=Black]wait6:
[/color][color=Blue]if [/color][color=Purple]UpAktivSW [/color][color=DarkCyan]= [/color][color=Navy]0 [/color][color=Blue]then goto [/color][color=Black]wait6
[/color][color=Blue]low StartMotor[/color]