|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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 |
|
#3
|
||||||
|
||||||
|
Re: PWM input?
The FPGA keeps you from setting outputs when the driver station isn't connected or enabled.
|
|
#4
|
|||||
|
|||||
|
Re: PWM input?
Can't they do whatever they want with the FPGA since they're not competing in FRC, just using the CRIO?
|
|
#5
|
|||||
|
|||||
|
Re: PWM input?
Quote:
That's not a solution for most teams or for casual/timely projects though. Last edited by Mark McLeod : 21-04-2014 at 08:48. |
|
#6
|
||||
|
||||
|
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
|
|||
|
|||
|
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
|
||||
|
||||
|
Re: PWM input?
Quote:
I have no personal experience with open source boards but that is what my project is for |
|
#9
|
|||
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|