CFE18 – Can Switch Board v2

CFE18 stands for “Can Bus Function Extension” or colloquially “Can Switch Board” – why is this module needed?

Can bus connections in the vehicle sometimes present our customers with great challenges. Especially in motor sports applications, when electronics have to be accommodated in the steering wheel and information from adjustment knobs (trimpots) or pushbuttons is then to be transmitted via Can Bus.

CANchecked now offers a small additional module which has 17 inputs: 8 for switches (low side) and 9 for analog inputs (0-5V signal). A voltage converter to ensure connection to a 12V vehicle electrical system is already integrated.

In the v2 (board v0.8) 3 switching outputs have also been added (low side max 0.5A)

CANchecked CFE18 can bus switchboard steering wheel

Here you come to the v1 version (board 0.6):  CFE18 – Can Switch Board V1

CFE18 - Can Bus Function Extension (Can Switch Board)

– The CFE18 hardware –


At just 29x27mm, the board is very compact and can fit anywhere. The pin spacing is 2.54mm – for the power supply, 3.81mm for safety reasons.

We have made a hole for attachment, which can be used as a screw connection.

CFE18 - can bus termination

CFE18 – Can Bus Termination

A solder jumper is attached to the circuit board.

If you close this, the Can Bus termination with 120 ohms is active. By default the solder jumper is OPEN .


– Connections –


12V / GND (top)Power supply 6-22V (protected against polarity reversal)
A0-A89 analogue inputs (0-5V)
D0-D8*9 digital inputs (maximum 5V) (internal pullup 20-50K)
*D8 omitted with v0.8
5V/SGNDPower supply for analog sensors or sensor ground
CANL/CANHCan Bus connection (Can Low, Can High)
CAN 2.0 A/B – 125, 250, 500, 1000 kbps
AUX1-3*Low side outputs 0.5A maximum – *from board v0.8
RX/TX/DTR/GNDoptional: for any updates
(additional hardware required)
CANchecked Switchboard CFE18 v2

– Motorsport steering wheel –


CFE18 motorsport steering wheel

One application would be a motorsport steering wheel. In the picture you can see the approximate size, with the steering wheel hub being 50mm in diameter. With just 4 connections via a spiral cable, a wide range of inputs can be transmitted via Can Bus.

Thanks to  PT Motorsport Electronics for the excellent example image of how our Can Switch Board can be integrated.


– connection options –


CFE18 can switch board connection

Switches and trimpots (adjustment knobs) can be connected to the CFE18.

But sensors such as oil pressure, fuel pressure, boost pressure, exhaust back pressure and integration into a separate housing would also be conceivable.


– CFE18 connection / Default Can Bus Stream –


The input data is queried and transmitted every 50ms (100Hz – changeable from 1Hz to approx. 300Hz – depending on smoothing ). The data is transmitted as “unsigned big endian”.

As soon as 12V and ground are connected, the green status LED on the front lights up and the Can Bus data is transmitted.

Can Bus ID: 0x700 ( Base Data CAN ID – changeable)

byte01234567
Base IDAIN0 0-1023AIN1 0-1023AIN2 0-1023AIN3 0-1023
Base ID +1AIN4 0-1023AIN5 0-1023AIN6 0-1023AIN7 0-1023
Base ID +2AIN8 0-1023bit masked DIN0-7bit masked DOUT1-3internalTempversion
CANchecked CFE18 can bus switchboard steering wheel
CANchecked CFE18 can bus switchboard steering wheel
CANchecked CFE18 can bus switchboard steering wheel

– Digital outputs –


*From hardware v0.8

The CFE18 has three digital outputs from hardware 0.8. These can be loaded up to a maximum of 500mA and switch to ground (LOW SIDE).

To do this, you send a Can Bus frame every 100ms (CAN Id is configurable here – if there is a 500ms pause between the frames, the timeout is activated and the outputs are deactivated): (
0=inactive, 1=active)

byte01234567
CAN RX ID (default: 0x640)AUX1
0/1
AUX2
0/1
AUX3
0/1
unused

The setting is made via Can Bus – see configuration options


– AIN smoothing –


*From software version 3

If the analog inputs fluctuate too much, they can be smoothed out using software. This can be configured separately for each analog input.

The analog inputs are evaluated each time a transmission is sent (default: 20Hz).

Attitudesmoothing
0no smoothing
12
24
38th
416
532
664

For example, if a smoothing factor of 4 is set, the average of the last 16 measurements is taken. As a result, the value becomes calmer (smoother), but also reacts with a delay to fluctuations. You have to find a healthy middle ground here.

The setting is made via Can Bus – see ” Configuration options “


– Configuration options –


The following values ​​can be adjusted via Can Bus:

Data CAN ID:with which Can Id the data is sentdefault: 0x700
Config CAN ID:with which CAN ID the board can be configured – RESTART requireddefault: 0x70A
Frequency:with which the data is sent via the Can Bus in millisecondsDefault: 10ms = 100Hz
Can Bus Speed:1=125kbps, 2=250kbps,3=500kbps,4=1Mbit – RESTART requiredDefault: 3 = 500kbps
Mode:0=default, 1=EMUv3, 2=Haltech IO12B, 3=Haltech IO12A+B, 4=MotecDefault: 0
*Smoothing:smoothing of the analog inputs, configurable for each input (0-6)Default: 1

*from software version 3

Byte 0+1 are always 0x0C and 0x0A
Byte 2 feature starting with 0x0A

Features:
can id: 0x0A (high byte) + 0x0B (low byte)
config can id: 0x0C (high byte) + 0x0D (low byte)
frequency: 0x0E
can bus speed: 0x0F
mode: 0x10
can id RX: 0x12 (high byte ) + 0x13 (low byte)  from CFE18 v0.8

Example 1: change data can id to 0x600

can idbyte 0bytes 1byte 2byte 3byte 4byte 5byte 6byte 7
0x70A0x0C0x0A0x0A0x06unused
0x70A0x0C0x0A0x0B0x00unused

Example 2: change frequency to 50Hz (20ms = 0x14 in hex)

can idbyte 0bytes 1byte 2byte 3byte 4byte 5byte 6byte 7
0x70A0x0C0x0A0x0E0x14unused

Example 3: change can bus speed to 1Mbit

can idbyte 0bytes 1byte 2byte 3byte 4byte 5byte 6byte 7
0x70A0x0C0x0A0x0F0x04unused

Example 4: change mode to EMUv3

can idbyte 0bytes 1byte 2byte 3byte 4byte 5byte 6byte 7
0x70A0x0C0x0A0x100x01unused

Example 5: change smoothing on AIN1 to 4 (=16)

can idbyte 0bytes 1byte 2byte 3byte 4byte 5byte 6byte 7
0x70A0x0C0x0A0x140x04unused

(0x14 = AIN1, 0x15 = AIN2, 0x16 = AIN3, 0x17 = AIN4, 0x18 = AIN5, 0x19 = AIN6, 0x1A = AIN7, 0x2B=AIN8)


– Control unit / ECU configuration –


The analog inputs provide 10-bit resolution and therefore values ​​from 0 to 1023. The value must be converted in the control unit. All values ​​are “unsigned big endian”

Examples:
5V voltage AIN0
0x700 Byte0+1
Multiplier: 5; divisor: 1023; Offset: 0

or multiplier: 0.004887585533

Exhaust gas temperature (type k) AIN7:
0x702 Byte6+7
Multiplier: 1250; divisor: 1023; Offset: 0

or multiplier: 1.2218963832


Either the individual bytes are used for the digital inputs. E.g. DIN6: 0x702 Byte 6 or the bitmask at 0x702 Byte2

e.g. DIN6: 0x702 Byte2 Mask:0x40

Analog input 4 with a type K converter

Digital input 6


– Documentation / Download –


You can also download this page as a PDF here: