|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Single Solenoids
I need help my team is using a single solenoid on our robot and me and our programming team is unsure on how to program one (we've always used double solenoids in the passed) any help,code, suggestions on material to read will be greatly appreciated.
thanks from the Team 498 programming team and especially their captian(me) |
|
#2
|
||||
|
||||
|
Re: Single Solenoids
I think single solenoids are actually easier. You just need to change one variable in the code so one position will look like this:
relay1_fwd = 1; and the other position would look like this: relay1_fwd = 0; |
|
#3
|
||||
|
||||
|
Re: Single Solenoids
so if i wanted to i could do
#define punch_relay relay1_fwd then punch_relay = EXTEND; (presumming i set EXTEND = 1) |
|
#4
|
||||
|
||||
|
Re: Single Solenoids
Quote:
Sure, and you could even create a variable called RETRACT and set it to 0 and alternate EXTEND and RETRACT based on a button being pressed. |
|
#5
|
||||
|
||||
|
Re: Single Solenoids
ok thanks for the help figured it was simple i just wanted to make sure i didnt make any mistakes
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| # of solenoids | Brawler006 | Pneumatics | 5 | 01-02-2004 11:12 |
| solenoids | hot69z | Electrical | 2 | 08-01-2003 06:02 |
| Solenoids | archiver | 2001 | 9 | 23-06-2002 23:47 |
| solenoids | zarb | Electrical | 1 | 28-01-2002 23:19 |
| Solenoids | turbidum | Rules/Strategy | 1 | 09-01-2002 21:26 |