'IoT/아두이노'에 해당되는 글 8건
- 2017.06.14
- 2017.05.14
- 2017.05.13
- 2017.04.29
- 2017.02.19
- 2017.01.14
- 2016.12.24
- 2016.12.24
https://learn.sparkfun.com/tutorials/electret-mic-breakout-board-hookup-guide
제조업체 SparkFun Electronics
부품 번호 BOB-12758
인체감지센서 (0) | 2017.05.14 |
---|---|
아듀이노, LCD 디스플레이와 온도센서(LM35) 를 이용한 온도계 만들기. (0) | 2017.05.13 |
아두이노 웹서버만들기 (1) | 2017.04.29 |
ubuntu에 arduino설치하기 (0) | 2017.02.19 |
아듀이노 radar (0) | 2017.01.14 |
스케치코드))
int ledPin = 13; // LED 연결핀
int inputPin = 2; // 센서 시그널핀
int pirState = LOW; // PIR 초기상태
int val = 0; // Signal 입력값
int LED_PIN = 4;
void setup() {
pinMode(ledPin, OUTPUT); // LED Output 설정
pinMode(inputPin, INPUT); // 센서 Input 설정
pinMode(LED_PIN, OUTPUT);
Serial.begin(9600);
}
void loop(){
val = digitalRead(inputPin); // 센서값 읽기
if (val == HIGH) { // 인체감지시
digitalWrite(ledPin, HIGH); // LED ON
digitalWrite(LED_PIN, LOW);
if (pirState == LOW) {
// 시리얼모니터에 메시지 출력
Serial.println("Motion detected!");
pirState = HIGH;
}
} else {
digitalWrite(ledPin, LOW); // LED OFF
digitalWrite(LED_PIN, HIGH);
if (pirState == HIGH){
// 시리얼모니터에 메시지 출력
Serial.println("Motion ended!");
pirState = LOW;
}
}
}
BOB-12758 사용방법 (0) | 2017.06.14 |
---|---|
아듀이노, LCD 디스플레이와 온도센서(LM35) 를 이용한 온도계 만들기. (0) | 2017.05.13 |
아두이노 웹서버만들기 (1) | 2017.04.29 |
ubuntu에 arduino설치하기 (0) | 2017.02.19 |
아듀이노 radar (0) | 2017.01.14 |
아듀이노, LCD 디스플레이와 온도센서(LM35) 를 이용한 온도계 만들기.
준비물 : 브레드보드, 포텐시오미터, 16x2 LCD, LM35, 아두이노 uno
참고 url)
BOB-12758 사용방법 (0) | 2017.06.14 |
---|---|
인체감지센서 (0) | 2017.05.14 |
아두이노 웹서버만들기 (1) | 2017.04.29 |
ubuntu에 arduino설치하기 (0) | 2017.02.19 |
아듀이노 radar (0) | 2017.01.14 |
참고 url) http://www.instructables.com/id/Arduino-Ethernet-Shield-Tutorial/
인체감지센서 (0) | 2017.05.14 |
---|---|
아듀이노, LCD 디스플레이와 온도센서(LM35) 를 이용한 온도계 만들기. (0) | 2017.05.13 |
ubuntu에 arduino설치하기 (0) | 2017.02.19 |
아듀이노 radar (0) | 2017.01.14 |
(test)arduino, signal lamp(red/yellow/green) (0) | 2016.12.24 |
참고)
https://www.arduino.cc/en/guide/linux#toc2
아듀이노, LCD 디스플레이와 온도센서(LM35) 를 이용한 온도계 만들기. (0) | 2017.05.13 |
---|---|
아두이노 웹서버만들기 (1) | 2017.04.29 |
아듀이노 radar (0) | 2017.01.14 |
(test)arduino, signal lamp(red/yellow/green) (0) | 2016.12.24 |
(test)arduino led with button (0) | 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 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 |
refer to the site : https://www.youtube.com/watch?v=YWY_Is0L7fE
아듀이노 led 샘플.
코드
---------------------------------------------------------
int LED = 12;
int BUTTON = 4;
void setup() {
// put your setup code here, to run once:
pinMode(LED, OUTPUT);
pinMode(BUTTON, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
if(digitalRead(BUTTON) == HIGH)
{
digitalWrite(LED,HIGH);
}
else
{
digitalWrite(LED,LOW);
}
}
---------------------------------------------------------
아듀이노, LCD 디스플레이와 온도센서(LM35) 를 이용한 온도계 만들기. (0) | 2017.05.13 |
---|---|
아두이노 웹서버만들기 (1) | 2017.04.29 |
ubuntu에 arduino설치하기 (0) | 2017.02.19 |
아듀이노 radar (0) | 2017.01.14 |
(test)arduino, signal lamp(red/yellow/green) (0) | 2016.12.24 |