# Board Feature Switches

### Version 2:

The latest version update of the sensor uses the following switches:

#### Spike Mode: DIP Switch 1

DIP Switch 1 ON - This will allow the sensor to work with SPIKE Prime.

<div align="left"><img src="https://4213710887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwumhy9Amexb1fvjNOGl8%2Fuploads%2F57YXlrdyMLtGDLVyzvyS%2FDipSwitch%20-%201%20on.png?alt=media&#x26;token=8bd92ada-b6a1-4820-9a79-0ae4b40a75eb" alt=""></div>

DIP Switch 1 OFF - This will allow the sensor to work with EV3 Labview, Arduino or other platforms.

<div align="left"><img src="https://4213710887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwumhy9Amexb1fvjNOGl8%2Fuploads%2FtWeKeHRJ02VnLXmewbAq%2FDipSwitch%20-%201%20off.png?alt=media&#x26;token=94bf835f-31bf-4b8d-879e-5ed425cfca53" alt=""></div>

#### Advanced Mode: DIP Switch 2

If DIP Switch 1 is enabled and DIP Switch 2, the sensor will appear as a Spike Colour Sensor where the reflected light can be used for the direction and the raw red value of the sensor can be used for the signal strength.

<div align="left"><img src="https://4213710887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwumhy9Amexb1fvjNOGl8%2Fuploads%2Fzc68CU7k9YYgSbaUUKWT%2FDipSwitch%20-%20Advanced%20Mode%20-%20Colour.png?alt=media&#x26;token=ecf35b72-b34a-4f54-9dfd-7b00ed37e5aa" alt=""></div>

If DIP Switch 1 is enabled and DIP Switch 2 is off, the sensor will appear as a Spike Distance Sensor where the distance value is used for the direction. No signal strength is available in this mode outside of the hardware setting (DIP 3).

<div align="left"><img src="https://4213710887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwumhy9Amexb1fvjNOGl8%2Fuploads%2FYbs75FtobQF1qtlF7M8c%2FDipSwitch%20-%20Advanced%20Mode%20-%20Distance.png?alt=media&#x26;token=04bd7397-19a8-410b-aa3b-7c2ad1b9cea6" alt=""></div>

#### Hardware Signal Strength: DIP Switch 3

DIP Switch 3 used with DIP Switch 1 will only return a value to the Spike if the ball is within half a field distance. This can be used to build a defender style robot that only attacks when the ball is close to the robot.

<div align="left"><img src="https://4213710887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwumhy9Amexb1fvjNOGl8%2Fuploads%2FrBvHsARToOCSVF0iO75s%2FDipSwitch%20-%20Signal%20Strength%20-%20Hardware.png?alt=media&#x26;token=3847104b-2881-41cd-ba61-a10356b3ec5f" alt=""></div>

{% hint style="info" %}
The following information relates to Version 1 of our IR seeker. If you are unsure which version you have please contact us at <info@buildingblockrobotics.com> and we can provide the correct firmware files.
{% endhint %}

### Version 1: Spike Prime Distance Sensor Mode

To use the IR Seeker as a Spike Prime distance sensor, move the switches to the following position:

1 - On, 2 - Off - 3 - Off

![](https://4213710887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwumhy9Amexb1fvjNOGl8%2Fuploads%2FAEmnzVYEOSe2ZU3wJ1l8%2FDefaultSwitchPos.png?alt=media\&token=b030d26c-6cd0-4bb8-b8ca-a065807a2a88)

### Advanced Mode - Including EV3 Labview

In order to receive both the ball direction and ball strength from the sensor, the switches should be moved to the following position:

1 - Off, 2 - On, 3 - Off

![](https://4213710887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwumhy9Amexb1fvjNOGl8%2Fuploads%2FNTQLWEEINvULZfBmkvvB%2FAdvancedPosition.png?alt=media\&token=ed3c1eed-2cfc-4b88-accb-3bb510922131)

This position should be used for Arduino development. More information can be found here

{% content-ref url="../guides/advanced-arduino" %}
[advanced-arduino](https://irseeker.buildingblockrobotics.com/guides/advanced-arduino)
{% endcontent-ref %}

### Defender Mode

In order to use the Spike as a Distance sensor, but with reduced visibility we can move the switches to the following position:

1 - On, 2 - Off, 3 - On

![](https://4213710887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwumhy9Amexb1fvjNOGl8%2Fuploads%2FergNRFQddAxXlEaAMR9K%2FDefenderPos.png?alt=media\&token=4b2e226e-d57b-4c07-9e36-6eaa2b73a9ab)

This will operate the same as the standard mode, however the sensor will only report the direction when the ball is within roughly half a field radius (around 50cm).&#x20;
