Hello all,
I have some experience with Arduino projects following the guides I have successfully made projects with leds using pwm pins etc. It's always been copy and paste the code hehehe, I have tried to fiddle with code It's fun but the programme part of it is the hard part and dread it always.
I don't know where to start on my next project. I urgently need help and hope to make first attempt to get this going tomorrow! Haha
I hope I can get some assistance with code for the following scenario. Don't even know what to start with.
I have a Arduino Uno and I want to
Control a pair of MOSFET boards. Which will control solenoids
I will have 2x MOSFET boards connected to two digital out pins.
MOSFET board 1 will be connected to solenoid 1
MOSFET board 2 will connect to solenoid 2
I need the code to cycle turning them on and off in order.
Eg.
Step 1, turn MOSFET board 1 on
Step 2, turn MOSFET board 1 off
Step 3, turn MOSFET board 2 on
Step 4, turn MOSFET board 2 off
Step 5, Goto step 1
Here's the thing. I have a special signal going into the Arduino digital in and need it to cycle the code as
Example:
*Arduino digital In, when the signal is high it would complete step 1 turning on solenoid 1.
*When the signal goes low, it will activate step 2 turning off the solenoid 1. Basically waiting for next step
*If and when the signal goes on again, it will activate step 3 turning solenoid 2 on.
*Then when goes off it will Goto step 4. Turning off the solenoid 2
The next time the signal goes high, it needs to turn on solenoid 1 again.. and so on and so on.
Anyways hope to get some comments or even something to start with..
Cheers everyone
Regards
S.