background image

CANifier 

User’s

 Guide                                                                www.ctr-electronics.com                                                                10/8/2017 

 

Cross The Road Electronics                                                                    Page 19                                                                              10/8/2017 
 

4. Functional Limitations 

4.1. Future features to be implemented. 

Current version of firmware (CANifier-Application-0.9.crf) supports the following 

features…

 

-

 

Pulse width decoding on PWM 0, 1, 2, 3. (Tested with LIDAR v3, various hobby RC Radios, CTRE Mag Sensor, etc.). 

-

 

PWM output on PWM 0, 1, 2. (Tested with Talon SRX in PWM mode). 

-

 

General purpose digital inputs on all pins. 

-

 

General purpose digital outputs on all pins. 

-

 

Common anode LED strip control. 

-

 

PWM outputs have a fixed period of 4.2ms. 

Future versions of firmware will include…

 

-

 

General I2C/SPI support over CAN bus. 

-

 

NeoPixel compliant protocol for addressable LED strips. 

-

 

PWM output on PWM 3 (CS) 

-

 

Custom control of PWM output period. 

… and future 

CAN bus features that communicate directly with Talon SRXs/Pigeon-IMUs/etc. 

4.2. When hot-swapping certain sensors, CANifier may reset. 

Certain sensors may have an in-rush (on-boot) current draw that exceeds the sensor

s typical continuous current draw. 

An example of this is the LIDAR-Lite V3 sensor, which has an initial current draw far greater than 500 mA. 
Thus, disconnecting/reconnecting the LIDAR Lite sensor while CANifier is powered may cause CANifier to reboot as the supply 
rail may reset.   
 
Since hot-swapping sensors is typically not done during robotic movement, no workaround is needed beyond ensuring robust 
connectivity with sensors. 

4.3. roboRIO Self-test will be added in future. 

When Self-Test button is pressed, Web-

based configuration will report “not supported in firmware”.

 

This will be added in a future update.  The other features in the roboRIO Web-Based Configuration currently function after 
using HERO LifeBoat to update the roboRIO. 

4.4. Reverse Limit signal is missing ESD diode. 

The current hardware version of CANifier does not have the ESD diode populated for the reverse limit signal. 
Though there is protection (series 22

Ω resistor

), this means LIMR does not meet the full 8KV ESD rating. 

 
This is only a concern during direct ESD strikes occurring on this specific trace. 
 
Regardless, users should take precautions to prevent ESD strikes to electronics under all circumstances. 
When approaching robot chassis, be sure to discharge to robot by touching robot chassis before handling electronics.   
When handling electronics, take measures to ensure handler is grounded via a wrist strap or grounded work surface. 

4.5. Silkscreen suggests max input voltage is 33V.  Vdd-max is 28V. 

Silkscreen is incorrect.  Max input voltage is 28V. 
 
 
 
 
 
 

Summary of Contents for CANifier

Page 1: ...CANifier User s Guide www ctr electronics com 10 8 2017 Cross The Road Electronics Page 1 10 8 2017 CANifier User s Guide Revision 1 0 Cross The Road Electronics www ctr electronics com...

Page 2: ...ose Insulate CANifier assembly 16 3 Phoenix Framework Software 17 3 1 Software Examples 17 3 2 Status Frame Rates 17 3 3 Custom Platforms 17 3 4 HERO LifeBoat roboRIO Web based configuration 18 4 Func...

Page 3: ...cumentation possible to ensure successful use of your CTRE products To this end we will continue to improve our publications examples and support to better suit your needs If you have any questions or...

Page 4: ...ototyping need to quickly add another sensor Example use cases solved by CANifier Integrates PWM sensors like LIDAR Sonar into a CTRE HERO FRC CAN Bus control system Add more sensors into the FRC CAN...

Page 5: ...Limit switches o Pixy CMUcam5 o Pulse width ultrasonic e g MaxBotix MB1013 o LIDAR Lite v3 o Talon Tach o Digital Sharp distance sensors Outputs for common devices including o PWM motor controllers o...

Page 6: ...round 6 QUAD B Quadrature channel B 7 INDEX Quadrature Index 8 LIMF Limit Switch Forward 9 GND Ground 10 LIMR Limit Switch Reverse 11 GND Ground 12 CS PWM3 SPI Chip Select PWM input 3 13 CLK PWM0 SPI...

Page 7: ...28 0V 12 24 mA Vdrop_5V 5V rail dropout voltage At Vdd 6 5 2 V Vdrop_3 3V 3 3V rail dropout voltage At Vdd 3 9 3 V Vdrop_CAN CAN dropout voltage At Vdd 5 2 V Imax_5V Max continuous 5V current draw 50...

Page 8: ...CANifier User s Guide www ctr electronics com 10 8 2017 Cross The Road Electronics Page 8 10 8 2017 1 4 Electrical Schematic Note that V 5V 3 3V GND CANH and CANL have exposed pads on the PCB...

Page 9: ...he table below shows the possible color states and their respective operation Note 1 LEDs Alternate Status LEDs are always different colors The 2X LEDs will swap colors when blinking Blink Codes LEDs...

Page 10: ...ittent change in LED activity If this is being witnessed ensure that the LED pattern isn t simply an intermittent red LED blink superimposed on to the typical orange LED pattern This is typically obse...

Page 11: ...ery use case will require power and ground wire leads and CAN bus Twist rat tail splice two CAN pigtail wire pairs so that it can be easily soldered This allows for daisy chaining of CAN bus devices P...

Page 12: ...y increase the risk of fire PDP breakers fuses do not improve this problem since they do not open until 10 40A of continuous draw depending on which fuse breaker type If in doubt feel the wire harness...

Page 13: ...nfigurations are documented below 2 3 1 1 LIDAR Lite V3 Distance Sensor More information can be found in the LIDAR Lite V3 Operation Manual Be sure to tie pull down resistor to ensure LIDAR continuous...

Page 14: ...CANifier User s Guide www ctr electronics com 10 8 2017 Cross The Road Electronics Page 14 10 8 2017 2 3 1 3 Limit Switch Inputs...

Page 15: ...mponents as soon as they are received Many of these components have manufacture warranties that can expire if a boxed component is left unused untested for an excessive period Spare backup components...

Page 16: ...sensors etc Alternatively the CANifier can be mounted to a fixed location using a 3D printed enclosure Fixed mounting is accomplished via the two mounting holes in the CANifier These holes are 0 125...

Page 17: ...m CrossTheRoadElec Phoenix Examples Languages FRC LabVIEW https github com CrossTheRoadElec Phoenix Examples LabVIEW 3 2 Status Frame Rates After CANifier boots application firmware it transmits the f...

Page 18: ...the latest HERO LifeBoat Connect roboRIO with USB cable and press the Update RIO Web based Config button Afterwards CANifier s will appear in the device list of the roboRIO Light Device LED can be use...

Page 19: ...connecting the LIDAR Lite sensor while CANifier is powered may cause CANifier to reboot as the supply rail may reset Since hot swapping sensors is typically not done during robotic movement no workaro...

Page 20: ...uestions FAQ 5 1 Certain features are not working but this document indicates they should work Update to the latest CANifier firmware CANifier ship firmware is 0 4 which is missing most features 5 2 S...

Page 21: ...Electronics Page 21 10 8 2017 6 Firmware CRF Version History CRF Version Date Description 0 9 7 Sept 2017 First public release 0 4 4 Sept 2017 Ship Firmware 7 Revision History Revision Date Descriptio...

Reviews: