Snowboard‎ > ‎4. Resources‎ > ‎

How to Use Custom Sensor with Snowboard

Let us assume that you have a 3x3 FSR matrix sensor as shown below:
Connect rows R0, R1, and R2 to Snowboard's D0, D1, and D2 pins, respectively.
Similarly, connect columns C0, C1, and C2 to Snowboard's A0, A1, and A2 pins respectively.

Or you can connect rows Ri to Ai pins on Snowboard while Ci to Di connection are established.

That's all for hardware connection.

Next step is to test your sensor with Snowboard.
First prepare for an INI for this sensor as shown below and run Snowforce using this INI file.
For 1007 sensor connector, driveindex is responsible for D pins while senseindex is for A pins on Snowboard.
For 1610 sensor connector, driveindex is responsible for A pins while senseindex is for D pins on Snowboard.

Note: Snowboard is working well with a sensor whose resistance range is around 10 kohm.

ndrive=16
nsense=10
activerange=1,3,1,3
interpscale=4
port=auto
xdir=true
ydir=true
zdir=true
driveindex=0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
senseindex=0,1,2,3,4,5,6,7,8,9

Contents of INI file is same with that of snowboard_1610.ini. The only difference is that this INI file tells to display only the first 3 columns and 3 rows while scanning 16x10 rows and columns.

In the figure below, pinout configuration and accompanying INI file are shown for 1007 sensor.


ndrive=7
nsense=10
activerange=1,7,1,10
interpscale=4
port=auto
xdir=true
ydir=true
zdir=true
driveindex=0,1,2,3,4,5,6
senseindex=9,8,7,6,5,4,3,2,1,0

In the figure below, pinout configuration and accompanying INI file are shown for 1610 sensor.


ndrive=16
nsense=10
activerange=1,16,1,10
interpscale=4
port=auto
xdir=true
ydir=true
zdir=true
driveindex=8,9,10,11,12,13,14,15,7,6,5,4,3,2,1,0
senseindex=0,1,2,3,4,5,6,7,8,9
Comments