HELP! Ideally within the next 24hrs PLEASE!!!!!
We have a simple circuit where we have a button, that when pressed, starts a motor that needs to run at a certain speed for a certain amount of time. (The circuit also involves an infrared sensor that is meant to be counting the wheel spokes as the wheel rotates which will be used to stop the motor after a certain number of spokes however we have given up incorporating this element as we found it too difficult - However, any help on how to do this is greatly appreciated)
Attached are our attempts at coding and the circuit diagram. Any help on coding is massively appreciated. We have an exhibition in a couple of days and can't get it to work.
From a group of mechanical engineering students with zero coding experience Details: Raspberry Pi used, Python used for programming, 12V NiMH rechargeable battery, 84rpm DC motor.