Go to Post Backwards PWMs happen to the best of us. - Woolly [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 17-02-2016, 09:22
Orion.DeYoe Orion.DeYoe is offline
Registered User
FRC #5413 (Stellar Robotics)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2011
Location: North Fairfield, OH
Posts: 206
Orion.DeYoe is a splendid one to beholdOrion.DeYoe is a splendid one to beholdOrion.DeYoe is a splendid one to beholdOrion.DeYoe is a splendid one to beholdOrion.DeYoe is a splendid one to beholdOrion.DeYoe is a splendid one to beholdOrion.DeYoe is a splendid one to beholdOrion.DeYoe is a splendid one to behold
Half of PCM Not Working?

Sorry, this might be a bit rambly.

We were working on testing the solenoid valves on our practice robot and none of the valves were firing as they should. We decided to test the competition robot before taking something apart on the practice robot to check every little connection.

The competition robot exhibited the same behavior which is as follows:

We have 4 solenoid valves (24vdc, double acting from automation direct) so there are 8 connections and therefore the PCM is filled up. We used these valves last year on our robot and really liked them.

The valves have a plug connector that comes apart to reveal some screw terminals. These are labeled as "DC -" and "+". We used last year's robot as a reference and noticed that the red wire from the PCM was attached to " DC -" and the black to "+" (opposite of what we expected). The valves worked fine last year so we duplicated the wiring on both robots.

When the robot was powered on, code run, and then enabled, the compressor started up just fine and stopped as it should.

We had several pairs of buttons in our code (we use LabVIEW) that switch global variables between true or false. We set the output of the solenoid in a loop in the "periodic tasks" vi based on the value of the global variable.

Each valve is wired to a pair of ports on the PCM that are opposite from each other (I.e one valve is wired to ports 3&4 and one is wired to 2&5 etc).

During testing, the solenoid halves connected to the 0-3 side of the PCM would fire as expected. The red LEDs on the PCM ports would turn on when that side of the valve was active and turn off when it was not. The trouble came when switching the valve to its other side (the side connected to 4-7 on the PCM). In the initial configuration, no LEDs on the 4-7 side would light up.

We tried reversing (correcting) the polarity of the connections in the solenoid connectors but it had no effect. We made sure the PCM jumper was in the 24vdv position. We reconnected wires to the PCM to make sure they were making contact.

The next thing we tried was flipping the "forward" and "reverse" channels of the valve in code. When this change was tested, the solenoid (we were only testing one out of the four at this stage) side connected to the 0-3 ports stayed powered (the PCM LED stayed lit) even as we actuated the solenoid through our joysticks. The side connected to 4-7 turned on and off as we would expect as be pressed the joystick buttons.

This doesn't seem like a bad hardware issue considering we have two PCMs (one of which was used last year with no issues) and 8 brand new valves exhibiting the same behavior. It seems more like a code issue, but the polarity thing on the solenoids has me really confused.

Has anyone encountered a similar issue? Is there something really obvious that I'm missing? Does anyone have screenshots/pictures of their valve/PCM/LabVIEW code setup that they can share?
__________________
Thanks for your time,
Orion DeYoe

FRC Team 2252 "The Mavericks" 2011-2014 (Student)
FRC Team 5413 "Stellar Robotics" 2014-???? (Mentor)

2011: Drive Coach, CAD, Programming, Electrical
2012: Drive Coach, Team Captain, Team Representative, CAD, Programming, Electrical
2013: Drive Coach, Team Captain, Team Representative, CAD, Programming, Electrical
2014: Drive Coach, Strategy, CAD
2015: Team Founder, Design/CAD Mentor, Drive Coach
  #2   Spotlight this post!  
Unread 17-02-2016, 10:00
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,847
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Half of PCM Not Working?

Definitely a code problem.
Ignore the solenoids and work to get the PCM solenoid LED lights to behave properly.
Until your code can trip the LEDs correctly, the solenoids and their wiring aren't even involved.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #3   Spotlight this post!  
Unread 17-02-2016, 10:04
Orion.DeYoe Orion.DeYoe is offline
Registered User
FRC #5413 (Stellar Robotics)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2011
Location: North Fairfield, OH
Posts: 206
Orion.DeYoe is a splendid one to beholdOrion.DeYoe is a splendid one to beholdOrion.DeYoe is a splendid one to beholdOrion.DeYoe is a splendid one to beholdOrion.DeYoe is a splendid one to beholdOrion.DeYoe is a splendid one to beholdOrion.DeYoe is a splendid one to beholdOrion.DeYoe is a splendid one to behold
Re: Half of PCM Not Working?

Quote:
Originally Posted by Mark McLeod View Post
Definitely a code problem.
Ignore the solenoids and work to get the PCM solenoid LED lights to behave properly.
Until your code can trip the LEDs correctly, the solenoids and their wiring aren't even involved.
So the PCM LEDs are not dependant on the valve solenoid circuit being completed (I.e. the valve doesn't have to be plugged in for that LED to turn on)?
__________________
Thanks for your time,
Orion DeYoe

FRC Team 2252 "The Mavericks" 2011-2014 (Student)
FRC Team 5413 "Stellar Robotics" 2014-???? (Mentor)

2011: Drive Coach, CAD, Programming, Electrical
2012: Drive Coach, Team Captain, Team Representative, CAD, Programming, Electrical
2013: Drive Coach, Team Captain, Team Representative, CAD, Programming, Electrical
2014: Drive Coach, Strategy, CAD
2015: Team Founder, Design/CAD Mentor, Drive Coach
  #4   Spotlight this post!  
Unread 17-02-2016, 10:15
G_rupp's Avatar
G_rupp G_rupp is offline
Registered User
FRC #1108
 
Join Date: Jan 2011
Location: Paola, KS
Posts: 42
G_rupp is an unknown quantity at this point
Re: Half of PCM Not Working?

No, they are indicators that the switch is working. There is a Simple Solenoid.lvproj xxample in the NI Example Finder. You can see this by selecting Help then Find Examples. This allows you to check the solenoids one at a time. The test has to be stopped and started for each solenoid. While it is running, you can toggle the switch and verify the operation.
  #5   Spotlight this post!  
Unread 17-02-2016, 12:14
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: Half of PCM Not Working?

The behavior changed when you changed your program. Show us your Periodic Tasks and we'll probably be able to tell you quickly what's wrong with it, and how to fix it.

Also show us Begin so we can verify that the solenoids are being opened as they should be.
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 05:17.

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