본문 바로가기

arduino6

Webpage제어를 통한 Arduino + Ethernet 모듈 LED ON/OFF 웹페이지(파폭)브라우저에서 Submit 버튼을 누르면 LED Status가 ON/OFF명령을 번갈아가면서 명령을 주게 됩니다. 동영상을 통해 LED가 깜박거리는 것을 확인할 수 있습니다. 아래 소스코드로 쉽게 테스트 해볼 수 있습니다. #include #include byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; // MAC주소--예제에서 copy/paste byte ip[] = { 203, 237, 51, 12 }; // IP 주소 설정 byte gateway[] = { 203, 237, 51, 254 }; // 게이트웨이 주소 설정 byte subnet[] = { 255, 255, 255, 0 }; // 서브넷 마스크 주소 설정 .. 2010. 8. 11.
아두이노를 통한 LED Turn On/OFF test 아두이노를 통한 LED Turn On/OFF test int ledPin1=11; int ledPin2=12; int ledPin3=13; void setup() { pinMode(ledPin1,OUTPUT); pinMode(ledPin2,OUTPUT); pinMode(ledPin3,OUTPUT); } void loop() { digitalWrite(ledPin1,HIGH); delay(500); digitalWrite(ledPin1,LOW); delay(200); digitalWrite(ledPin2,HIGH); delay(500); digitalWrite(ledPin2,LOW); delay(200); digitalWrite(ledPin3,HIGH); delay(500); digitalWrite(led.. 2010. 7. 29.
TouchOSC, OSCulator 프로그램을 통한 Wi-Fi 통신 이전에 올렸던 '아두이노를 통한 모터카 디자인 (2010/7/12 17:12)'의 Chapter#1 TouchOSC, OSCulator Program을 통한 Wi-Fi 통신방법에 대해 소개하고자 합니다. 1. TouchOSC 첫번째 실험으로 위와 같은 LED통신을 테스트하고자 합니다. TouchOSC는 http://www.hexler.net에서 참조하시기 바라며 위 프로그램은 Windows / Linux / MaxOS 에서 모두 동작 가능합니다. 세팅방법은 다음과 같습니다. Network Port(Outgoing) : 8000 Network Port(Ingoing) : 9000 서버(호스트:작업하시는 컴퓨터) IP와 iPod Touch / iPhone의 IP가 동일 Wi-Fi 를 써야합니다. Host가 .. 2010. 7. 28.
리눅스에서 AVRDUDE 5.8 패치 AVRDUDE 5.8 with FTDI bitbang patch on Linux 1.If you’re on Ubuntu or Debian, install the prerequisites with: Code: sudo apt-get install patch build-essential libreadline-dev libncurses-dev libusb-dev sudo apt-get build-dep avrdude avrdude-doc - 위 라이브러리를 설치하고 빌드한다. 인스톨 전에 필요한 작업이다. 2. Start by grabbing a copy of AVRDUDE 5.8, untarring it in the directory, and switching to that directory: Code: w.. 2010. 7. 27.