navX Micro with Rev Expansion Hub

41 views
Skip to first unread message

bulan...@gmail.com

unread,
Nov 5, 2017, 5:57:32 PM11/5/17
to navx-mxp
Hello all,

My FTC team recently purchased a navX Micro. When I went to wire it, I noticed something weird. I needed to use a level shifter as the navX takes 5V in and the rev module gives 3.3V out. But the ports on the level shifter go 5v, CH A, gnd, CH B. On the navX, ground and 5V are on the outsides. I swapped the two wires on the provided 4 pin female female cable. I then powered up and tested the navX micro. I used the provided SensorKLNavxMicro example class and it seems to give proper data. Here is my question. The main reason we purchased the navX is the onboard micro controller that makes the imu return data faster. Will this still be the case if I used the SensorKLNavxMicro class instead of the examples provided here: http://pdocs.kauailabs.com/navx-micro/examples/ ? Also, is there any way to use the navX libraries for the PID controller? Another main reason we bought the navX was to have a premade PID controller. Is there anything just as good that will work with the navX micro and the rev module? I want to use the PID controller to turn to a certain angle and drive in a straight line. Any help would be greatly appreciated. I would really like to find a premade PID controller, as writing my own would be very tedious and not very effective.

Thank you,
Alex Bulanov

admin

unread,
Nov 6, 2017, 1:28:43 PM11/6/17
to navx-mxp
Hi Alex,

The navX-Micro can be powered via 3.3V source, so the level shifter is not strictly required.

SensorKLNavxMicro works with  both Rev Expansion Hub and the Modern Robotics Core Device Interface, but the Kauai Labs navx_ftc library works only with  the Core Device Interface Module.

The Kauai Labs PIDController in the navx_ftc library from Kauai Labs is designed to work w/the navx_ftc library's AHRS class.

I've reached out to some folks at FTC to see what they recommend as far as a PID Controller for IMU, and I'll report back when I hear something.

- scott
Reply all
Reply to author
Forward
0 new messages