모터/기어박스 대여

1 view
Skip to first unread message

SeungBum Kim

unread,
Dec 13, 2010, 6:17:58 AM12/13/10
to honaya_pi...@googlegroups.com
방금 미현학생이랑 민정학생이 같이 와서 받아갔습니다.

작업에 모터가 필요하면 두 친구에게 연락해보세요.

총 9개 모터를 가져갔으니 나눠서 잘 쓰길 바래요. :)

--
김 승 범 (SB Kim)
http://piny.cc - PINY (Powerful Idea jourNeY)
Digital Literacy & Communication
010 - 2686 - 6855
http://xenbio.net | http://squeak.kr

김미현

unread,
Dec 13, 2010, 11:09:45 AM12/13/10
to honaya_pi...@googlegroups.com

모터 아홉형제 김미현한테 있습니다

 

010-9102-5848

 

수요일까지 전 언제든지 학교에 있으니

 

필요하신 분은 연락하시고 가져가세요

Donghee Park

unread,
Dec 13, 2010, 10:38:04 PM12/13/10
to honaya_pi...@googlegroups.com
모터드라이버(칩) 자매들도 형제들과 같이 있지요. 여러분 음~ 작업하는데 어려운거 없나요? 

--박동희

2010/12/14 김미현 <paran_...@naver.com>

양민주

unread,
Dec 14, 2010, 12:11:08 AM12/14/10
to honaya_pi...@googlegroups.com

질문에서처럼,

 

기말과제로 오토마타시간에 모터로 이용해서 움직이게하려고하는데요.

 

그 때, 필요할 것 같아 소스를 저장하긴했는데 ㅠ

 

이게 맞는건가요?ㅠㅠㅠ

 

속도조절하는건 저장이안되있는 것 같은데.

어디에 입력하면 되는건가요?ㅠㅠ

아듀이노 완전 초보라 ㅠㅠㅠㅠ

도움이 필요해요....ㅠㅠㅠㅠㅠㅠㅠㅠㅠ

 

 

char val; // Data received from the serial port

int motorPin1 = 3; // Set the pin to analog I/O 3
int motorPin2 = 5; // Set the pin to analog I/O 5

void setup() {

  pinMode(motorPin1, OUTPUT); // Set pin as OUTPUT   
  pinMode(motorPin2, OUTPUT); // Set pin as OUTPUT       
  Serial.begin(9600); // Start serial communication at 9600 bps
}

void loop() {
  if (Serial.available()) { // If data is available to read,
    val = Serial.read(); // read it and store it in val
  }
  if (val == 'H') { // If H was received
    digitalWrite(motorPin1, HIGH); // turn the Motor on
    digitalWrite(motorPin2, LOW);                
  } else if(val == 'K'){
     digitalWrite(motorPin1, LOW); // turn the Motor on
    digitalWrite(motorPin2, HIGH); 
  }
  else {
    digitalWrite(motorPin1, LOW); // Otherwise turn Motor OFF
    digitalWrite(motorPin2, LOW);        
  }
}

 


 

 

Donghee Park

unread,
Dec 14, 2010, 12:54:20 AM12/14/10
to honaya_pi...@googlegroups.com
프로세싱에서 속도 조절할려구요? 맞죠?
그럼 프로세싱에서 속도값을 val에 저장하면
    val = Serial.read(); // read it and store it in val
그 속도값을 모터 motorPin1에 넣어주세요.
     digitalWrite(motorPin1, val); // turn the Motor on
요렇게!

정리하면 

void loop() {
  if (Serial.available()) { // If data is available to read,
    val = Serial.read(); // read it and store it in val
}
    digitalWrite(motorPin1, val); // turn the Motor on
    digitalWrite(motorPin2, LOW); 
}

요렇게 하면 모터 속도만 조정할 수 있습니다! 여기서 부터 원하는 코드를 차근차근 넣어보세요.
간단게 잘되지 않거나 이해되지 않으면 복잡한것 할때 혼란스러워요. 차근차근.

마음에 평온이 있기를..

--박동희


2010/12/14 양민주 <al...@naver.com>

陰星(신혜림)

unread,
Dec 14, 2010, 3:39:08 AM12/14/10
to honaya_pi...@googlegroups.com

 

 

현재 과사에 있는 아르두이노가 모두 대여중인 상태예요

과제전 준비로 셋다 모두 깜빡했는데, 우리조가 온도센서를 이용한 달력이라서 꼭 아르두이노가 필요한데요,

오프라인으로 구입할 수 있는 곳이나 대여할 수 있는 곳 없을까요?

온라인으로 구입하면 내일 안 올거 같아서요 ㅠㅠ

배율

unread,
Dec 14, 2010, 4:40:42 AM12/14/10
to honaya_pi...@googlegroups.com

지금 816오시면 하나 드릴 수 있어요!

연락처를 몰라서 메일로 답장 드리는데... 빨리 보실지... ㅠㅠ

Reply all
Reply to author
Forward
0 new messages