Go to Post You don't have to build a robot to be on a robot team. This isn't about the robot, it's about learning. - engunneer [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 20-04-2014, 03:57
tragic tragic is offline
Programming Mentor
FRC #4633 (Bobcats)
Team Role: Alumni
 
Join Date: Apr 2013
Rookie Year: 2013
Location: Calgary Alberta
Posts: 19
tragic is an unknown quantity at this point
Exclamation PWM input?

So my team is now done with this FRC season and we're moving onto another competition which involves a different control system. So this new control system is a RF receiver that outputs PWM signals based upon the output of a RC plane remote. Normally just using the receiver on its own was perfect but we've run into a snag this year because we need the analog breakout board on the cRIO for our pneumatic systems. So my question is: is there a class in WPI to receive PWM input on the Digital Side Car? If not I believe I can write my own using the Digital Input Class and a time class

Also I have been going over the WPI library a little bit and it seems that driver station can be skipped while still utilizing the various classes that it provides can anyone confirm this as I'm away from our facility and unable to test this theory.

Thanks In Advance.

Tragic
Team 4633
  #2   Spotlight this post!  
Unread 20-04-2014, 11:38
tsaksa's Avatar
tsaksa tsaksa is offline
Registered User
FRC #0997 (CHS Robotics)
Team Role: Mentor
 
Join Date: Jul 2011
Rookie Year: 2011
Location: Corvallis Oregon
Posts: 203
tsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond repute
Re: PWM input?

Have you considered controlling the pneumatic solenoids more directly from your RC receiver? Our team has used a small motor controller used in FTC robots wired with a few diodes to produce a small device that can control a solenoid valve or switch a SPIKE relay. You are still limited by the total number of channels on your controller, but it works and requires no CRIO or software to work.

Tom
__________________
This is the zeroth day of the rest of your life.
  #3   Spotlight this post!  
Unread 20-04-2014, 12:15
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: PWM input?

Quote:
Originally Posted by tragic View Post
Also I have been going over the WPI library a little bit and it seems that driver station can be skipped while still utilizing the various classes that it provides can anyone confirm this as I'm away from our facility and unable to test this theory.
The FPGA keeps you from setting outputs when the driver station isn't connected or enabled.
  #4   Spotlight this post!  
Unread 20-04-2014, 13:43
dellagd's Avatar
dellagd dellagd is offline
Look for me on the field!
AKA: Griffin D
FRC #2590 (Nemesis) #2607 (The Fighting Robovikings)
Team Role: Mentor
 
Join Date: Sep 2011
Rookie Year: 2011
Location: PA
Posts: 890
dellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond repute
Re: PWM input?

Quote:
Originally Posted by Joe Ross View Post
The FPGA keeps you from setting outputs when the driver station isn't connected or enabled.
Can't they do whatever they want with the FPGA since they're not competing in FRC, just using the CRIO?
__________________
Check out some cool personal projects in computers, electronics, and RC vehicles on my blog!

2016 MAR DCMP Engineering Excellence Award
2016 MAR Westtown Innovation in Control Award
2016 MAR Hatboro-Horsham Industrial Design Award
2015 Upper Darby District Winners - Thanks 225 and 4460!
2015 Upper Darby District Industrial Design Award
2015 Hatboro-Horsham District Winners - Thanks 2590 and 5407!
2014 Virginia Regional Winners - Thanks so much 384 and 1610, I will never forget that experience!
2014 Virginia Quality Award
2014 MAR Bridgewater-Raritan Innovation in Control Award
2014 MAR Hatboro-Horsham Gracious Professionalism Award
2013 MAR Bridgewater-Raritan Innovation in Control Award
2012 MAR Lenape Quality Award
  #5   Spotlight this post!  
Unread 21-04-2014, 08:41
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,906
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: PWM input?

Quote:
Originally Posted by dellagd View Post
Can't they do whatever they want with the FPGA since they're not competing in FRC, just using the CRIO?
If they want to purchase the somewhat expensive ($650) FPGA development toolkit, then they can learn to design their own FPGA solution.
That's not a solution for most teams or for casual/timely projects though.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 21-04-2014 at 08:48.
  #6   Spotlight this post!  
Unread 21-04-2014, 09:08
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,946
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: PWM input?

If I am reading the OP correctly, they are trying to get digital outputs (DO), but not necessarily using the CRIO.

Maybe use something like an Arduino to decode the PWM to an integer. Then use bits from the integer to fire relays on an Arduino shield? That will give you multiple DOs from one PWM signal.
  #7   Spotlight this post!  
Unread 21-04-2014, 19:29
tragic tragic is offline
Programming Mentor
FRC #4633 (Bobcats)
Team Role: Alumni
 
Join Date: Apr 2013
Rookie Year: 2013
Location: Calgary Alberta
Posts: 19
tragic is an unknown quantity at this point
Re: PWM input?

Sorry for the late response the internet has been a little bit unreliable. Anyways seeing how the FPGA is locked I will have to talk to my team about tasksa's solution and other solutions(the Arduino is another great idea but unfortunately I don't think we have the time to acquire one but I could be wrong) because we need some way of running our pneumatic valves and also expanding our few controller inputs into multiple outputs. So thanks to all of you for clarifying this topic.
  #8   Spotlight this post!  
Unread 21-04-2014, 20:12
BBray_T1296's Avatar
BBray_T1296 BBray_T1296 is offline
I am Dave! Yognaut
AKA: Brian Bray
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Rockwall, TX
Posts: 947
BBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond repute
Re: PWM input?

Quote:
Originally Posted by tragic View Post
Sorry for the late response the internet has been a little bit unreliable. Anyways seeing how the FPGA is locked I will have to talk to my team about tasksa's solution and other solutions(the Arduino is another great idea but unfortunately I don't think we have the time to acquire one but I could be wrong) because we need some way of running our pneumatic valves and also expanding our few controller inputs into multiple outputs. So thanks to all of you for clarifying this topic.
On running stuff with an arduino and radio control. I am soon to be working on a project involving an aircraft R/C unit interfacing with an arduino, in order to do some cool things with the boat I am building. While the control system is coming together much slower than the mechanics, our solution to powering our CIM-powered "propeller" (term used lightly) is to use a relay board that interfaces with the Arduino. It takes any voltage supply (my dad controls a 120VAC pool pump this way) at considerable currents and just works exactly as you would want it. Just give it a 12/24VDC supply and wire your solenoids to it. there are single and double boards you can buy for dimes and you could have a bank of them doing many things, as they are quite small.



I have no personal experience with open source boards but that is what my project is for
__________________
If molecular reactions are deterministic, are all universes identical?

RIP David Shafer: you will be missed


  #9   Spotlight this post!  
Unread 29-04-2014, 22:43
tech2077 tech2077 is offline
Registered User
AKA: Matthew Skolaut
FRC #3847 (Spectrum 3847)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Houston
Posts: 21
tech2077 is an unknown quantity at this point
Re: PWM input?

Here is some code from this season that was not used in our final release, but gives a good example of how to use PWM input.


https://gist.github.com/tech2077/994d789dc2b970ec6b21

Last edited by tech2077 : 29-04-2014 at 22:49. Reason: Changed to commented version of code
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:49.

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