How to Use Collision Switch XD206 With SkiiiD
by skiiiD in Circuits > Arduino
238 Views, 0 Favorites, 0 Comments
How to Use Collision Switch XD206 With SkiiiD

A tutorial to develop Collision Switch XD206 with skiiiD.
Launch SkiiiD

Launch skiiiD and select New button
Select Arduino UNO

Select ① Arduino Uno and then click ② OK button
*This is Tutorial, and we use Arduino UNO. Other boards(Mega, Nano) have the same process.
Add Component

Click '+' (Add Component Button) to search and select the component.
Saerch or Find a Component

① Type 'collision' on the search bar or find the Collision Switch XD206 on the list.
Select Collision Switch XD206

② Select Collision Switch XD206 Module
Pin Indication and Configuration

then you can see ③ pin indication. (You can configure it.)
*This module has 3 pins to connect
skiiiD Editor automatically indicate pin setting *configuration available
[Default Pin Indication for Collision Switch XD206 Module] in case of Arduino UNO
OUT: 2
GND: GND
VCC: 5V
After configuring pins ④ click ADD button on the right below side
Check Added Module

⑤ Added Module has appeared on the right panel
SkiiiD Code of Collision Switch XD206

skiiiD Code is intuitive function-based codes. This is based on skiiiD libraries
void CollisionSwitchXD2060Interrupt0() {
if(digitalRead(2) == HIGH) {
// When triggerd
} else {
// When released
}
Contact and Feedback
We are working on components and boards libraries. Feel free to use it and feedback us, please. Below is contact methods
email: contact@skiiid.io
twitter: https://twitter.com/skiiiD_official
Youtube: https://www.youtube.com/channel/UCfS2RQL3m3hVoHkFo...
skiiiD user forum: https://www.facebook.com/groups/skiiiD/