'Arduino'에 해당되는 글 3건
- 2017.01.14
- 2016.12.25
- 2016.12.24
아듀이노를 이용한 레이다 만들기.
(작동 원리)
아듀이노 시리얼 인터페이스 사용, 포트 COM5
초음파센서 로 물체 인식=> 거리측정
서브모터로 초음파 센서를 15도~ 165도 회전시킴
초음파센서로 읽은 물체와의 거리값을 포트 COM5로 송신
Processing (레이다 모양의 drawing) 모듈에서 Serial 통신으로 포트 COM5로 수신 실시간 물체의 거리 표시.
Processing 이것 참 신기한데... 프로그래밍된게 동적으로 잘 표현되네. 스케치북에 그리듯 표현되고 완성도가 높으면 Visual Art로. 맞게 이해한건가?
Ready ?
Ultrasonic sensor(HC-SR04)
+Servo Motor
+Arduino
+Breadboard
이건 아듀이노 회로도 표현하기 딱 좋으네. fritzing (http://fritzing.org/) : arduino circuit diagram maker
소스코드는 아래 참고 URL에 모두 있음.
refer to this : Arduino Radar Project
http://howtomechatronics.com/projects/arduino-radar-project/
아듀이노, LCD 디스플레이와 온도센서(LM35) 를 이용한 온도계 만들기. (0) | 2017.05.13 |
---|---|
아두이노 웹서버만들기 (1) | 2017.04.29 |
ubuntu에 arduino설치하기 (0) | 2017.02.19 |
(test)arduino, signal lamp(red/yellow/green) (0) | 2016.12.24 |
(test)arduino led with button (0) | 2016.12.24 |
<<Code>>
int potpin = 0;
int ledpin = 13;
int val = 0;
void setup() {
// put your setup code here, to run once:
pinMode(ledpin,OUTPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
val = analogRead(potpin);
Serial.println(val);
delay(1000);
}
조도 센서는 빛의 세기에따라 제어가 필요한 경우에 조건으로 사용가능. 응용을 어떻게 할까..
<<CODE>>
int REDpin = 6;
int YELLOWpin = 5;
int GREENpin = 4;
void setup() {
// put your setup code here, to run once:
pinMode(REDpin, OUTPUT);
pinMode(YELLOWpin, OUTPUT);
pinMode(GREENpin, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(REDpin, HIGH);
delay(3000);
digitalWrite(REDpin, LOW);
digitalWrite(YELLOWpin, HIGH);
delay(3000);
digitalWrite(YELLOWpin, LOW);
digitalWrite(GREENpin, HIGH);
delay(3000);
digitalWrite(GREENpin, LOW);
}
아듀이노, LCD 디스플레이와 온도센서(LM35) 를 이용한 온도계 만들기. (0) | 2017.05.13 |
---|---|
아두이노 웹서버만들기 (1) | 2017.04.29 |
ubuntu에 arduino설치하기 (0) | 2017.02.19 |
아듀이노 radar (0) | 2017.01.14 |
(test)arduino led with button (0) | 2016.12.24 |