3d 프린팅 주요 사이트
https://www.arduino.cc/
- 예제 : https://www.arduino.cc/en/Tutorial/HomePage
- https://www.arduino.cc/en/Main/Products
* auduion uno2560을 일반적으로 사용한다. 저렴하다.
* 회로도 다운로드 : https://www.arduino.cc/en/uploads/Main/arduino-mega2560_R3-sch.pdf
<아두이노 문법>
setup()
{
명령 구문1
~
명령구문n
}
Loop(){
명령 구문1
~
명령구문n
}
<흐름도>
setup() - 초기화 - loop() - 검출 - 분기 - 처리 # - 저장 - 출력 - 처리#2 - 반복
<Blink 예제>
// the setup function runs once when you press reset or power the board
void setup() { //1번실행
// initialize digital pin 13 as an output.
pinMode(13, OUTPUT);
}
// the loop function runs over and over again forever
void loop() { //반복 실행구문
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level) high - 5볼트를 출력하라
delay(1000); // wait for a second 기다림, 1,000 = 1초
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW 13번에 LOW(0)볼트
delay(1000); // wait for a second 1초 기다림
}
http://www.123dapp.com/