Go to Post "Dress to impress," typically, means no denim (sorry, Dean)... - Madison [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 31-01-2015, 02:01
randantor randantor is offline
Registered User
AKA: James Y
FRC #0624 (CRyptonite)
Team Role: Alumni
 
Join Date: Jun 2013
Rookie Year: 2012
Location: Katy, TX
Posts: 48
randantor is a glorious beacon of lightrandantor is a glorious beacon of lightrandantor is a glorious beacon of lightrandantor is a glorious beacon of lightrandantor is a glorious beacon of lightrandantor is a glorious beacon of light
MXP Digital Outputs don't work

We are having trouble using the MXP DIO pins as digital outputs.

After attempting to use HC-SR04 ultrasonic sensors on two different roboRIOs using the WPILib ultrasonic VIs, we found that the sensors work when plugged into the roboRIO onboard DIO, but not on the MXP DIO. We tried this on two different roboRIOs, both with the REV Robotics More Board.

After this, we tested the pins as inputs with a limit switch, which worked on both the MXP and onboard DIO pins.

However, when trying to use the MXP DIO as an output, the pin seems to stay low all the time regardless of the value set to it in code. We wired an LED and resistor between an onboard DIO pin and ground and were able to light it up with the DIO pin, but when trying on an MXP DIO using the exact same code with only the port value changed to MXP pins, the LED will not light.

When code is not running, the LED lights extremely faintly, which I think is due to the roboRIO's internal pullups. After opening the port as an output in code, the pin goes to 0 volts and the LED goes out completely. However, attempting to set the pin high has no effect, and the pin stays at 0 volts.

The pin is indeed being pulled up to 3.3v when unconfigured, and when opened as an output goes to 0, but writing to the pin has no effect. We tried this on MXP DIO pins 0, 1, and 2. Using the roboRIO onboard pins, we can light up the LED brightly. The MXP pins work fine as inputs, but not outputs.

This further testing was only done on one roboRIO, but ultrasonic sensors will not work on the MXP on either of our roboRIOs, and do work on the onboard DIO. I believe this is because the code attempts to use an output for the "trigger" pin on the sensor, but setting the pin has no effect.

Has anyone successfully used the roboRIO MXP DIO as outputs? I find it hard to believe that something so commonly used simply doesn't work.

Last edited by randantor : 31-01-2015 at 02:04.
Reply With Quote
  #2   Spotlight this post!  
Unread 28-07-2016, 08:30
azaclauson azaclauson is offline
Registered User
FRC #5593
 
Join Date: Jul 2016
Location: Tasmania
Posts: 17
azaclauson is an unknown quantity at this point
Re: MXP Digital Outputs don't work

Did you ever find a solution?

I get the same thing. I can set the DIO pins high but not the MXP digital pins.
Reply With Quote
Reply


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:32.

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