안녕하세요
아날로그 출력되는 제품은 아날로그 입력 명령한줄만으로 센서값 인식이 가능합니다.
가령, 아두이노 IDE에 이미 기본 포함된 Example > Basics > AnalogReadSerial 예제를 참고 하실 수 있습니다.
// the setup routine runs once when you press reset:
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
}
// the loop routine runs over and over again forever:
void loop() {
// read the input on analog pin 0:
int sensorValue = analogRead(A0);
// print out the value you read:
Serial.println(sensorValue);
delay(1); // delay in between reads for stability
}
아트로봇 드림
---------- Original Message ----------
예제파일없나요??
회원에게만 댓글 작성 권한이 있습니다.