LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting Pololu QTR-8RC sensor to myRIO

Hello all.

 

I am senior mechanical engineering student and attempting to work on a controller design project to make a line following robot with the myRIO. I have a Pololu QTR-8RC sensor https://www.pololu.com/product/961 that is connected to pins B/DIO0-B/DIO5 (i'm only planning on using 6 of the 8 sensors). The module takes a 5V input which is connected to pin 1 of the B block and the ground is connected to one of the several ground pins in the B block.

I have digitial inputs for each sensor within a while loop programmed in LabVIEW. For whatever reason, when I run the program, I am getting no readings whatsoever. In addition, the module is supposed to turn on the LED's attached to it automatically, and they do not turn on. I do know that power is getting to the module though because it warms after 10-15 seconds of being plugged in.

 

Any and all help will be greatly appreciated.

 

Thanks in advance

0 Kudos
Message 1 of 3
(3,763 Views)

Well I found my own solution. I did not realize in labview that it needed to be in a seperate while loop from anything else. When I did that, it began working perfectly. Thank you to all who I am sure would have helped me realize that very quickly.

0 Kudos
Message 2 of 3
(3,746 Views)

I'm trying to connect the Pololu QTR-8RC to the myRIO as well, but I'm experiencing some weird behavior. From reading online about the sensor, I was expecting each signal to return a number between 0-9, but it's instead, it's returning 0 or 600,000 to me.

 

My current setup just has 5V fed into the Vcc, GND connected to DGND, and one of the signal lines connected to one of the DIO pins on myRIO.

 

Did you have to do anything special to read the signal from the QTR-8RC?

0 Kudos
Message 3 of 3
(3,535 Views)