Arduino solenoid project is not working -
i trying control solenoid using arduino uno. followed instructions described in tutorial controlling solenoids arduino.
the solenoids solenoid - 5 v (small) , solenoid 36 v. resistor 10 kohm, transistor irf520, diode 1n4007, , dc battery voltage has been measured 7.45 v.
when connect small solenoid, vibrates 3 or 4 times , arm kind of jammed @ position , start vibrating (kind of trembling) high frequency. if use big solenoid, vibrates 3 or 4 times , stops.
here code:
int solpin = 13; void setup() { pinmode(solpin, output); } void loop() { digitalwrite(solpin, high); delay(100); digitalwrite(solpin, low); delay(100); }
where problem , how can fixed?
delay(int x) x in milli seconds. have delaying 1/10 of second?
your mosfet transistor large, long arduino can supply current keep open. should write print statement prints number, like
serial.println(count); count = count +1;
if number keeps resetting (not overflow) know power system has problems.
ps: don't forget
serial.begin(9600);
voltage issue
the image shows 2 9 volts in series, 18 volts. don't know minimun voltage required is, important.
Comments
Post a Comment