mRobotics KitCAN CAN/UAVCAN Adapter Node+Compass+Baro¶
The next generation of integration from the mRo CAN/UAVCAN Adapter Node, the KitCAN integrates an ultra high precision magnetometer and barometer, in addition to providing an easy means of interfacing conventional GPS and Airspeed Sensors to UAVCAN, using a single CAN bus connection to the autopilot. It also includes an RGB LED and Arm Switch/Button.
- UAVCAN to GPS (UART interface)
- UAVCAN to I2C Airspeed Sensor (MS5525 default configuration) and/or MAGNETOMETER (autodetect)
- UAVCAN integrated peripherals:
- RM3100 High Precision Magnetometer
- DPS310 Barometer
- RGB LED
- Safety Switch
- JST-GH Connectors
- Mounting Holes: 14mm x 31.5mm, 3.3mm diameter
|2||TX (data out)||3.3V|
|3||RX (data in)||3.3V/5V|
As delivered, the KitCAN will discover a MS5525 Airspeed sensor and/or any standard ArudPilot supported I2C Magnetometer that is connected to its I2C external bus
Verify the following parameters are set on your autopilot via your ground station.
- CAN_P1_DRIVER = 1 (assuming its on the first CAN bus of the autopilot)
- GPS_TYPE = 9 (UAVCAN) or if it will be the secondary GPS, set instead
- GPS_TYPE2 = 9 (UAVCAN)
Make sure the UAVCAN compass driver is not disabled. (COMPASS_TYPEMASK bit 9 should not be set).
If your controller has multiple compasses attached already, you may want to set the attached compass as a higher priority than others, if it has better precision or performance.
To enable the integrated I2C RGB LED set:
- NTF_LED_TYPES bit 5 (UAVCAN) should be set in the autopilot.
The integrated safety switch is automatically used, if the autopilot has enabled the use of safety switches via BRD_SAFETYENABLE is “1” (default).
If you want to enable an attached I2C airspeed sensor, set:
- ARSPD_TYPE = 8 (UAVCAN)
If the attached sensor is not an MS5525 type with I2C address 0x76, then you must access your KitCAN’s CAN parameters to select Airspeed type being attached to the adapter. Using Mission Planner (or UAVCAN GUI), go to the menu SETUP/Optional Hardware/UAVCAN/SLCan Mode CAN1/Parameters. Once the CAN Adapters parameters appear, change the following (this changes them inside the UAVCAN adapter, NOT the autopilot, allowing the adapter to use the correct driver and convert the information to UAVCAN airspeed format):
- ARSPD_TYPE = 4 (is default for an I2C-MS5525 with an 0x76 address which prevents conflict with the DSP310 integrated onboard with address 0x77). If another sensor is used, change the type to match that sensor.
- ARSPD_USE = 1
- ARSPD_BUS = 0
This device uses the “f303-M100025” firmware located at https://firmware.ardupilot.org/AP_Periph. See the SLCAN section of UAVCAN advanced setup for downloading instructions, if changes are desired or updates become available.