Data Sheet
4/27/2018 OpenCR1.0
http://emanual.robotis.com/docs/en/parts/controller/opencr10/ 43/50
OpenCR 03 Rotation Sensor Example
7. 7. 4. Capacitive Touch Sensor
It is capacitive touch sensor test on the OpenCR board.
Pinouts
Green : Signal
Red : Vcc
Black : Gnd
Specification
Capacitive Touch Sensor Specification
Supply Voltage : 3.3V to 5V
Interface : Digital
7. 7. 4. 1. Code
When you put your hand on the sensor, the led turn on/off sequentially and then the LED
turns off when you take your hand.
Tilt sensor is a digital sensor, signal of sensor is connected to D0 of OpenCR.
#define SensorINPUT 0
#define BDPIN_LED_USER_1 22
#define BDPIN_LED_USER_2 23
#define BDPIN_LED_USER_3 24
#define BDPIN_LED_USER_4 25
int LED[] = {BDPIN_LED_USER_1, BDPIN_LED_USER_2, BDPIN_LED_USER_3, BDPIN_LED_USER_4};
int i = 0;
void setup()
OpenCR1.0
Back to Top ▲