Go to Post As everyone knows, our students don't actually design or build the robot, so to make it look like they were working on it for the video, we hid cookies inside the unfinished frame and turned them loose. It looks believable. - Mike Soukup [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-02-2010, 22:22
OldBug OldBug is offline
Registered User
FRC #3167
 
Join Date: Feb 2010
Location: Philadelphia
Posts: 7
OldBug is an unknown quantity at this point
Problems Working with Multiple Solenoids

Hello,

We're having an odd issue with firing solenoids. We have two solenoid objects as class members, and at some point in the code, we have this sequence:

Code:
Solenoid1.Set(true);
Wait(0.5);
Solenoid1.Set(false);
Wait(1.0);
Solenoid2.Set(true);
Wait(0.5);
Solenoid2.Set(false);
Solenoid 1 is initialized with the arguments (8,1) and solenoid 2 is initialized with (8,2). We are using the Festo 24V solenoid (but I don't think that's relevant to this problem).

The behavior we are expecting is that the first solenoid is momentarily activated, then a second later, the second solenoid is momentarily activated. What actually happens is that the first solenoid is momentarily activated, then nothing else happens. I am looking at the lights on the NI9472 in slot 8 to determine if the code is working - I see the first light flash on for a split second, then nothing else happens. We tried hooking everything up (pneumatics, etc.) and we got the same result - the first cylinder fired, but not the second.

We tried different channels for the second solenoid, but nothing helped. I removed the calls to turn the first cylinder on and off, and the result was that no lights on the 9472 came on, but when I actually removed the first solenoid from the code altogether, the second solenoid started working (so only the second light was flashing on then off).

Any ideas? We're not sure what to try next.

Thanks!

p.s. It just occurred to me that these long delays may affect the watchdog - do I need to feed the watchdog between these Wait() calls?
  #2   Spotlight this post!  
Unread 09-02-2010, 23:49
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Problems Working with Multiple Solenoids

The watchdog thing depends on how long the watchdog delay is. It couldn't hurt to do a feed between waits or even disable the watchdog completely for this test.

Also, have you properly wired the solenoid breakout board? I believe there is a power cable that needs to be running to that for it to actually work.

If none of that works try sending messages to the DS through the DriverStationLCD class. That should be working again if you have applied the Feb. 9 update
  #3   Spotlight this post!  
Unread 10-02-2010, 07:42
OldBug OldBug is offline
Registered User
FRC #3167
 
Join Date: Feb 2010
Location: Philadelphia
Posts: 7
OldBug is an unknown quantity at this point
Re: Problems Working with Multiple Solenoids

OK, I'll try the test without the watchdog.

The solenoid breakout is completely wired, although I don't think it has to be in order for the lights to light up (it accepts a wide range of voltages for triggering solenoids - I don't think this voltage is actually entering the 9472). We have managed to fire the first solenoid, and we can make one light come on, but not both within the same program.

What kind of messages should I be sending to the DS?

Thanks for the help!
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Solenoids for One Actuator? RyanJK Pneumatics 1 26-01-2010 16:15
Solenoids not working (programming) Parthenon Pneumatics 1 16-02-2009 12:32
problems with multiple encoders, please help! robself705 Programming 8 13-02-2009 01:00
Compressor NOT Working (multiple trials already) Noel Pneumatics 10 02-02-2009 18:38
[FTC]: Multiple Programs or One Program with Multiple Auto Modes kevin51292 FIRST Tech Challenge 4 02-01-2009 20:37


All times are GMT -5. The time now is 10:06.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi