일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- FujiFilm GFX50s
- ZeissIkon ZI
- cf50/4 fle
- 2019 유럽여행
- Nikon 28Ti
- 4870
- Kodak 5222
- Minolta CLE
- Mamiya 7
- Contax G2
- M-Rokkor 40/2
- Kentmere 400
- Leica M7
- Kodak Ektar 100
- Kodak 400TX
- N80/4
- cs50/2.5
- FujiFilm C200
- GRD2
- Rollei35s
- SONY A7
- kodak t-max 400
- Germany
- fujifilm velvia 50
- Minolta TC-1
- 2018 미국출장
- G28/2.8
- Hasselblad 500cm
- Kodak T-Max 100
- cf80/2.8
- Today
- Total
목록컴퓨터/Firmware (47)
J 창고
모터쉴드, 2상 스테핑모터(6Lead) 시리얼 입력으로 스테핑모터 RPM 조정 #include AF_Stepper motor(48, 1);String sCommand = "";char cTemp; void setup() { Serial.begin(9600); // set up Serial library at 9600 bps Serial.print("Stepper test!"); Serial.println(" Speed : 60rpm"); Serial.println("set Speed"); motor.setSpeed(60); // 10 rpm delay(1000);} void loop() { sCommand = ""; motor.step(20, FORWARD, SINGLE); while(Serial.ava..
참고 http://cafe.naver.com/arduinostory/12721 http://whwodud98.blog.me/50173201374 아두이노CDS값 출력 int a=A4;void setup() { Serial.begin(9600);}void loop() { int ab=analogRead(a); Serial.println(ab); delay(50);} MATHLAB에서 clc delete(instrfindall) s2=serial('COM3'); fopen(s2); time =0; for i=1:10000 time = time +1; a =str2double(fscanf(s2)); plot(time,a,'*'); xlim([0 1000]); hold on; drawnow; endfclose(..
Adafruit Motor Shield 링크 Ebay표 중국산 모터 쉴드를 구매했는데 Adafruit사의 모터 쉴드와 똑같아서 그대로 이용. 사용하기 전에 Adafruit사에서 배포한 라이브러리를 설치할 것. #include AF_Stepper motor(48, 1); void setup() { Serial.begin(9600); // set up Serial library at 9600 bps Serial.println("Stepper test!"); motor.setSpeed(60); // 10 rpm motor.step(100, FORWARD, SINGLE); motor.release(); delay(1000);} void loop() { motor.step(200, FORWARD, SINGLE);..
Auduino Keypad 라이브러리 링크 Pin NumberRow Pin = 1, 2, 3, 4Col Pin = 5, 6, 7, 8 example #include const byte ROWS = 4; // Four rowsconst byte COLS = 4; // Four columns// Define the Keymapchar keys[ROWS][COLS] = { {'1','2','3','A'}, {'4','5','6','B'}, {'7','8','9','C'}, {'*','0','#','D'}};// Connect keypad ROW0, ROW1, ROW2 and ROW3 to these Arduino pins.byte rowPins[ROWS] = { 12, 11, 10, 9 };// Connect..
int led_red = 4;int led_blue = 5;int ledState_red = LOW;int ledState_blue = HIGH; long previousMillis = 0; long interval = 1000; void setup(){ pinMode(led_red, OUTPUT); pinMode(led_blue, OUTPUT);} void loop(){ unsigned long currentMillis = millis(); if(currentMillis - previousMillis > interval){ previousMillis = currentMillis; if(ledState_red == LOW){ ledState_red = HIGH; ledState_blue = LOW; } ..
#include LiquidCrystal lcd(7, 8, 9, 10, 11, 12); int state = 0; void setup() { lcd.begin(16, 2); attachInterrupt(0, lcd_print_F, CHANGE); } void loop() { lcd.setCursor(0, 0); lcd.print(millis()/1000); if(state == HIGH){ lcd.setCursor(0, 1); lcd.print("Button ON"); } else{ lcd.setCursor(0, 1); lcd.print(" "); }} void lcd_print_F(){ state = !state;} ================================================..