Offline
Newbie
Karma: 0
Posts: 2
|
 |
« on: December 20, 2012, 08:06:40 am » |
It's my first time to create a circuit with an Arduino microcontroller.
I try to control 3 3-way solenoid valves (GALTEK, 24 VDC, .50 AMPS, 12 Watts) in order to switch them accordingly to a certain time schedule or an instrument output. The application in which I will use it is air sampling.
Additionally, we own a KEITHLEY ERA-01 electromechanical 8-channel SPDT relay output accessory board and an Arduino ethernet.
There is any previous similar experience either in circuit diagram or the programming?
Thank you.
|
|
|
|
|
Logged
|
|
|
|
|
Queens, New York
Offline
Edison Member
Karma: 29
Posts: 1574
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
|
 |
« Reply #1 on: December 20, 2012, 08:17:24 am » |
It should just be a simple sequence, simular to an LED shifter.
0001 led1 on, led2-4 off 0010 led2 on, led1 & 3,4 off 0100 led3 on, led 1,2, 4 off 1000 led4 on, led1-3 off
Right?
|
|
|
|
|
Logged
|
UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W, Gameduino
Arduino Tutorials, coming soon.
"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 2
|
 |
« Reply #2 on: December 20, 2012, 08:54:41 am » |
Exactly.
|
|
|
|
|
Logged
|
|
|
|
|
Queens, New York
Offline
Edison Member
Karma: 29
Posts: 1574
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
|
 |
« Reply #3 on: December 20, 2012, 09:00:50 am » |
Ok, then you can simply use:
digitalWrite(relay1, HIGH); digitalWrite(relay2, LOW); digitalWrite(relay3, LOW); digitalWrite(relay1, LOW); digitalWrite(relay2, HIGH); digitalWrite(relay3, LOW); digitalWrite(relay1, LOW); digitalWrite(relay2, LOW); digitalWrite(relay3, HIGH);
OR, you can use port manipulation, but I dont it is need for this project.
Look at example Blink LED without delay, if you haven't already. Does there need to be any particular sequence?
|
|
|
|
|
Logged
|
UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W, Gameduino
Arduino Tutorials, coming soon.
"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown
|
|
|
|
|