Data Sheet
4/27/2018 OpenCR1.0
http://emanual.robotis.com/docs/en/parts/controller/opencr10/ 45/50
Supply Voltage : 3.3V to 5V
Interface : Analog
7. 7. 5. 1. Code
If the flame is detected, turns on the led.
Fire near the sensor, it outputs a high value close to 1024.
If the output exceeds 800, led will turn on.
Signal is connected to A0 of Arduino.
7. 7. 5. 2. Result
OpenCR 06 Flame Sensor Example
7. 7. 6. Joystic Sensor
It is joystic test on the OpenCR board.
#define BDPIN_LED_USER_1 22
#define flame 0
void setup()
{
Serial.begin(9600);
pinMode(BDPIN_LED_USER_1, OUTPUT);
}
void loop()
{
int val;
val=analogRead(flame);
if(val>800)
{
digitalWrite(BDPIN_LED_USER_1, LOW);
}
else
{
digitalWrite(BDPIN_LED_USER_1, HIGH);
}
Serial.println(val,DEC);
delay(100);
}
OpenCR1.0
Back to Top ▲