Dexi IR Sensor stuck on "True"

Hello, we are having trouble getting our IR sensor on the Dexi to give an output. when we go to /dexi/gpio_input_22 in the topic browser of the dexi dashboard like in the video, the value reads true when it should read false, and when we move the IR sensor over the IR beam it still reads true. we have updated the dexi to the newest version. thanks.

My best guess is that you need to check your wiring, but let me give a little more background. From this document:

on page 4:

The receiver is open collector which means that you do need a pull up resistor. Most
microcontrollers have the ability to turn on a built in pull up resistor. If you do not,
connect a 10K resistor between the white wire of the receiver and the red wire.

and you can see here in our ROS2 node for GPIO that we set the internal pull up:

If nothing is connected to that pin it will read true. Once the IR receiver is properly connected it will read false by default and true when it detects the beam.

But I could be totally off. Perhaps you can share a photo of your wiring?

I double checked the wiring and everything looks right to me but here are some pictures.

May I ask how you are powering the emitter side of things?

we are hosting a competition tomorrow and currently have a field set up and ran it for testing.

Okay for some reason it looks like your cable may be pinned backwards. Here is what mine looks like:

I’m going to try to eyeball your pins and give you a mapping to work with the Receiver:

DEXI GPIO Red → IR Receiver Black
DEXI GPIO Black → IR Receiver Red
DEXI GPIO Blue → IR Receiver Yellow

Please confirm and sorry for the confusion. I need to check with the inventory team to see if we have an issue with our cable pinout or if this may be a one-off case. Thanks.

Make sure you are wiring based on position and not color. We had a similar issue by wiring based off color and realized the color orientation was different on our GPIO connector. The correct wire numbers if you are reading your GPIO mini micro pin connector from bottom to top in the image posted are wire 1 BLACK, wire 2 GREEN, wire 3 BLUE, wire 4 YELLOW, wire 5 WHITE, wire 6 RED. The correct wires in that order for IR sensor are 1,3, and 6. Which would be your BLACK, BLUE, and YELLOW wire. Try that orientation, hope it works! Also your wire 2 GREEN should go to laser sensor (trigger) input on mofset. Best of luck tomorrow!

Atlas - 78867A

1 Like

Glad y’all got it sorted and thanks for sharing your fix! @Brian FYI there is a pinout of the GPIO connector at this link: