I've very new to this, but is possible to use an Arduino Uno to pulse a fan in an on-off-on-off format, but I need for example on 100% xx seconds, 50% xx seconds, 100% xx seconds, 50% xx seconds, 100% xx seconds (and other values like 75% etc).
Most of the PWM stuff I've seem is more along the lines of start fan as minimum speed then turn it up speed as temp increases, rather than what i'm after :-/ i'm very new as this so even looking at the BlinkwithoutDelay code i'm still a little lost (will have a look on youtube later).
I have moved your topic to a more appropriate forum category @scott40k .
In the future, please take some time to pick the forum category that best suits the subject of your question. There is an "About the _____ category" topic at the top of each category that explains its purpose.
Hi,
Although it seems like it, you didn't say so, so I'll ask.
Does your fan allow speed adjustment by PWM variation or does it have a selector switch that changes the speed?
I haven't purchased the Fan yet as I was waiting to hear what people's suggestions were so I could get either a DC or PWM (3 or 4 wire) for this depending on what people advise.
I have the UNO, USB Cable, a dev board and a load of jumper wires (as well as some general parts from my bits box like LEDs and a few different resistance resistors).
But surely you can glean from such code how to just make a fan blow at half speed indefinitely.
Then find or write any way to blink an LED. Without delay() preferred, but you could make a start by seeing if you could "blink" you fan off and half-on, say instead of an LED on/off with the same program.
Be it a noob style delay / act / delay literal step-by-step thing or using the blink without delay model.
Sooner later you will want to take the time to fully understand BWOD as it is affevtionately referred to around here, maybe now is the time to, um, take the time.