본문 바로가기

아두이노-스케치

(19)
아두이노 버튼 연결하고 LED 켜고 끄기 푸시 버튼을 이용하여 LED를 켜고 끄는 방법에 대해 살펴보도록 하겠습니다. 아래의 스케치를 아두이노에 로드시키고 맨 위에 위치한 푸쉬버튼을 눌러보십시오. LED가 켜지는것을 확인한 후 다른 버튼을 눌러 LED를 끄십시오. 사진 출처 : http://wiki.vctec.co.kr/opensource/arduino/pushbutton 소스코드 int ledPin = 5; int buttonApin = 9; int buttonBpin = 8; byte leds = 0; void setup() { pinMode(ledPin, OUTPUT); pinMode(buttonApin, INPUT_PULLUP); pinMode(buttonBpin, INPUT_PULLUP); } void loop() { if (digit..
아두이노로 스피커 피에조 달고 연주음악 소스 코드들 아두이노를 사용하여 음악을 연주하기 위한 연결도면과 아래에 소스코드를 참고하세요~ 전부 7곡 연주. 생일축하 노래 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273//ONG LIT YIT 2013-07-20//This following code plays happy birthday melody on Arduino//Put Piezo Buzzer on GDN and 9 (Positive and negative are reversible)//this project requires a Piezo Buzzer and/..
아두이노 Due Pinout Diagram 여러가지 아두이노 핀 다이어그램 여러가지 버전으로 참고. 출처 : http://forum.arduino.cc/index.php?topic=132130.0 LATEST VERSION: (8 Jun 13) Web version (176kB) (900x1004, same as above) Due-pinout-WEB.png A4 version (628kB) (2676x2400px) Due-pinout-A4.png A3 version (884kB) (3679x3300px) Due-pinout-A3.png CorelDRAW vector file (672kB) Due-pinout.cdr SVG vector file (2.0MB) Due-pinout.svg PDF file (569kB) Due-pinout.pdf Note th..