Log in

View Full Version : How to use Solenoids attached to Relays


winglerw28
19-02-2011, 15:01
Here is my current teleop vi, but nothing happens when I press button 8 on the joystick:

http://farm6.static.flickr.com/5293/5458833557_77fcd84eb5.jpg

Help would be greatly appreciated, as I'm getting extremely frustrated. :P

Wicked
19-02-2011, 15:35
That's because the case structure is wired to Button 1.

winglerw28
19-02-2011, 15:54
That's because the case structure is wired to Button 1.

Sorry I just re-did that after deleting. It still doesn't work after being assigned to button 8.

stormyweathers
19-02-2011, 17:57
what is the value of "On"
maybe that isnt set properly.

do relays need a "1" wired to be on?

winglerw28
19-02-2011, 18:09
what is the value of "On"
maybe that isnt set properly.

do relays need a "1" wired to be on?

This is the way I programmed last years robot. This year it was working and just stopped for some mysterious reason.

Mark McLeod
19-02-2011, 20:18
Usually, Relays use the "Forward/Reverse" choices to run motors or operate solenoids.

Only under special wiring conditions for solenoids is "On" used.

winglerw28
19-02-2011, 22:20
Could some post a picture of a correctly programed relay so i can compare? I still can't get it to work.

Mark McLeod
20-02-2011, 11:23
Just to make sure you don't have a simple wiring problem instead.
Are the Relay LED indicators located on the Digital sidecar turning red or green as you use button 8?


I assume it's a motor you're trying to have move only while you hold button 8?
Is it a one-way motor that goes out, but gets physically pushed back?


This is just what you posted.
It makes the Digital sidecar green Relay LED come on.

j.cole
20-02-2011, 19:40
I'm not sure why your not using the solenoid breakout that's already in the WPI library WPI Robotics Library> Actuators> Solenoid> Set. And then for a double acting solenoid you open 2 different ports. See picture.