Hi everyone, im looking for help the programming my arduino to control a dust extractor in my workshop. i have the hardware sorted and i thought i could just use some simple logic if and else program but the delays stop the sensor from reading so this is no good. hopefully this will be useful to other people as well as the only arduino dust extractor controls i could find are simple remote control on/off things.
the hardware is basically a dust extractor which has 2 motors (record power dx4000) which gives two different power settings; with one motor running it is low suction which is great for sanders and with both motors running it has high suction which is great for routing. i have the arduino with two current sensors; one for the router and one for the sander, they are dc bi-directional sensors so i had to include an op amp circuit to trim the signal as they are detecting ac current, this is sorted now so i get a clean-ish signal that the arduino can use (around 3 when no current and varies 30 - 300 when current is detected) i ran a basic sketch to turn on a relay at >15 and it worked fine.
the dust extractor also has a split pipe, one side goes to the sander and the other goes to the router and i intend to use auto blast gates to close/open each pipe when needed. i have a four channel relay board so can control both motors and 2 blast gates independently using simple high/low outputs.
so what i want the program to do is this-
when router is on- open blast gate1 delay 1 sec fan1 on delay .5 secs //this delay is to reduce load so everything isnt turning on at the same time fan2 on
when router is off- delay 4 seconds // for dust to clear in pipes fan1 off fan2 off close blast gate1
when sander is on- open blast gate2 delay 1 secs fan1 on
when sander is off- delay 4 seconds // for dust to clear in pipes fan1 off close blast gate2
i have 2 problems at the moment first is the delay interrupts the sensors reading so i just get an oscillation effect and second is when i stack digitalwrite to turn 2 relays on at the same time only the first one activates and it skips the other? if anyone has a simple way of doing this i would be really grateful, i am not a programmer!
Many thanks. Russ.