Go to Post For fun, someone ought to spread out a bunch of petri dishes or something all over a regional and see what you bring home with you. Or not. - KathieK [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 04-02-2014, 21:41
jeremy5561 jeremy5561 is offline
Registered User
FRC #0919
 
Join Date: Jan 2012
Location: Canada
Posts: 26
jeremy5561 is an unknown quantity at this point
Programming issues

I'm having a very weird programming issue. We're trying to add a compressor to the robot.

http://i.imgur.com/caAmo2B.png
http://i.imgur.com/yWJXS5Z.png

The spike is connected to the digital sidecar on relay 1, and I confirm the relay is working (because I wrote a very simple test program and all it does is open relay 1 and set it to run forward).

Additionally, we have the pressure switch that is supposed to open at 115 psi connected to Digital I/O 1 on the digital sidecar. The two outer pins of the DIO is connected to the two terminals of the pressure switch. The problem is when the pressure rises to 125psi (beyond 115) the pump keeps running. To diagnose the problem I tried to read the DIO directly and send it to the dashboard but adding the DIO to the code stops the code from working. Simply adding the DIO stops the compressor from running.

http://i.imgur.com/Qd153yO.png

Additionally sometimes when teleop is started, the motors will sometime randomly jitter, turning the wheel a tiny amount. Very weird. The drive system seems to respond correctly though. The rangefinder attached to the analog module seems to work correctly through all this.

Any idea what could have gone wrong? I can't figure out what could possibly be wrong. Could this be a bad sidecar? I remember one year we had a problem like this because the cable was incorrectly assembled, but the cable seems ok this time. Has anyone had this problem before?
  #2   Spotlight this post!  
Unread 04-02-2014, 23:34
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,600
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Programming issues

Quote:
Originally Posted by jeremy5561 View Post
To diagnose the problem I tried to read the DIO directly and send it to the dashboard but adding the DIO to the code stops the code from working. Simply adding the DIO stops the compressor from running.
When you did this, you tried to allocate DIO 1 twice, which isn't allowed.

Quote:
Additionally sometimes when teleop is started, the motors will sometime randomly jitter, turning the wheel a tiny amount. Very weird. The drive system seems to respond correctly though. The rangefinder attached to the analog module seems to work correctly through all this.

Any idea what could have gone wrong? I can't figure out what could possibly be wrong. Could this be a bad sidecar? I remember one year we had a problem like this because the cable was incorrectly assembled, but the cable seems ok this time. Has anyone had this problem before?
If you remove the DB-37 cable from the digital sidecar, are all 3 power LEDs brightly lit?
  #3   Spotlight this post!  
Unread 05-02-2014, 08:12
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Programming issues

If you want to read the state of the pressure switch, you can use Test mode.

If you unplug the pressure switch from the DIO pins, does the compressor stop?
  #4   Spotlight this post!  
Unread 05-02-2014, 08:47
Chadfrom308's Avatar
Chadfrom308 Chadfrom308 is offline
Slave to the bot
AKA: Chad Krause
FRC #0308 (The Monsters)
Team Role: Driver
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Novi
Posts: 272
Chadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to behold
Re: Programming issues

I would make sure you have the correct DIO Switches and Pressure switches wired in both labview and on the robot.
  #5   Spotlight this post!  
Unread 05-02-2014, 14:25
jeremy5561 jeremy5561 is offline
Registered User
FRC #0919
 
Join Date: Jan 2012
Location: Canada
Posts: 26
jeremy5561 is an unknown quantity at this point
Re: Programming issues

I will check today. Is disconnecting the switch supposed to stop the pump? I thought the switch closes when the pressure is high.

Last edited by jeremy5561 : 05-02-2014 at 14:34.
  #6   Spotlight this post!  
Unread 05-02-2014, 14:34
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Programming issues

Quote:
Originally Posted by jeremy5561 View Post
I will check today. Is disconnecting the switch supposed to stop the pump? I thought the switch opens when the pressure is high.
You thought correctly. The experiment is designed to show whether the code and other hardware are working, and point to the possibility that your pressure switch is faulty.

If connecting the switch makes the compressor run even when the pressure is 120 psi or greater, and disconnecting it makes the compressor stop running, then there's very likely something wrong with the switch (or with the wiring between the switch and its connector).

On the other hand, if the compressor still runs when the switch is disconnected, there is definitely something else wrong.
  #7   Spotlight this post!  
Unread 05-02-2014, 14:43
ROBOGIRL2781 ROBOGIRL2781 is offline
Registered User
FRC #2781
 
Join Date: Jan 2013
Location: Burbank,IL
Posts: 19
ROBOGIRL2781 is an unknown quantity at this point
Re: Programming issues

In the periodic tasks you may want to put the compressor in an enable/disable structure.
  #8   Spotlight this post!  
Unread 05-02-2014, 20:59
jeremy5561 jeremy5561 is offline
Registered User
FRC #0919
 
Join Date: Jan 2012
Location: Canada
Posts: 26
jeremy5561 is an unknown quantity at this point
Re: Programming issues

It turns out it was because I opened DIO 1 after it was already assigned to the compressor.

Also I forgot to do Compressor Start during Begin.VI.

I also discovered that the DIO returns True when the switch is open (e.g. when the switch is completely unplugged).

We have the regulator and rest of the pneumatics line working. We have the low pressure side running at 60 PSI. We have one of the Festo VPLE18 single solenoid valve, but when we try to activate it the LED turns yellow, but the valve doesn't seem to do anything.

We have the solenoid output connected to 1 and 2, SIG being connected to 2. We already tried 1 and 3 and that makes it worse (the LED doesn't turn on at all). The solenoid activates with the manual override.

In labview, we tried Solenoid Set and we tried On, Forward, and Reverse. I'm a bit confused because I thought solenoids could only go one way, and double solenoids can only go 2 ways. What does the On setting do? Why isn't the solenoid moving?
  #9   Spotlight this post!  
Unread 05-02-2014, 21:07
ROBOGIRL2781 ROBOGIRL2781 is offline
Registered User
FRC #2781
 
Join Date: Jan 2013
Location: Burbank,IL
Posts: 19
ROBOGIRL2781 is an unknown quantity at this point
Re: Programming issues

Quote:
Originally Posted by jeremy5561 View Post
In labview, we tried Solenoid Set and we tried On, Forward, and Reverse. I'm a bit confused because I thought solenoids could only go one way, and double solenoids can only go 2 ways. What does the On setting do? Why isn't the solenoid moving?
On a single solenoid you use on and off. On a double solenoid you use forward and reverse.
  #10   Spotlight this post!  
Unread 05-02-2014, 23:21
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Programming issues

Quote:
Originally Posted by jeremy5561 View Post
We have the solenoid output connected to 1 and 2, SIG being connected to 2. We already tried 1 and 3 and that makes it worse (the LED doesn't turn on at all). The solenoid activates with the manual override.
I don't understand your description of the connections. The VPLE18 is a single solenoid valve, and should only be connected to a single Solenoid Breakout channel.

Quote:
Originally Posted by ROBOGIRL2781 View Post
On a single solenoid you use on and off. On a double solenoid you use forward and reverse.
You also can use Off on a double solenoid.
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


All times are GMT -5. The time now is 02:38.

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