전체상품목록 바로가기

본문 바로가기


현재 위치
  1. home
  2. community
  3. 기술문의 :)

기술문의 :)

기술문의 게시판 입니다.

상품 게시판 상세
subject 반응이 없어요 무엇이 문제일까요?
writer 이두환 (ip:)
  • date 2012-06-28 02:27:41
  • like 추천하기
  • view 72
rating 0점

const int ledPin =  12;      // the number of the LED pin
const int thresholdvalue=400;//The threshold to turn the led on
void setup() {
     pinMode(ledPin, OUTPUT);
}
 
void loop() {
  int sensorValue = analogRead(A0);//use A0 to read the electrical signal
  if(sensorValue>thresholdvalue)
  digitalWrite(ledPin,HIGH);//if the value read from A0 is larger than 400,then light the LED
  delay(200);
  digitalWrite(ledPin,LOW);

 

file 사운드센서.JPG
password 삭제하려면 비밀번호를 입력하세요.
댓글 수정

password :

/ byte

비밀번호 : 확인 취소

댓글 입력

commentsname : password : 관리자 답변 보기

/ byte

왼쪽의 문자를 공백없이 입력하세요.(대소문자구분)

회원에게만 댓글 작성 권한이 있습니다.

관련 글 보기

관련글 모음
번호 상품명 제목 작성자 작성일 조회
13538 미진열미재고[TE101020023] 사운드 센서 보드 E형 (Sound Sensor) 작동이 안돼요 석진욱 2015-03-28 72
13544 미진열미재고[TE101020023] 사운드 센서 보드 E형 (Sound Sensor) 정확한 상태를 알려주시면 확인해드리겠습니다. 아트로봇CT 2015-03-29 91
10484 미진열미재고[TE101020023] 사운드 센서 보드 E형 (Sound Sensor) 2개를 구입해서 구동하려고하는데 아트로봇 2014-06-09 70
2354 미진열미재고[TE101020023] 사운드 센서 보드 E형 (Sound Sensor) 반응이 없어요 무엇이 문제일까요? 이두환 2012-06-28 72
2355 미진열미재고[TE101020023] 사운드 센서 보드 E형 (Sound Sensor) 반응이 없어요 무엇이 문제일까요? 아트로봇 2012-06-28 71