Thread: arduino help
View Single Post
  #6   Spotlight this post!  
Unread 16-04-2012, 12:01
kalfuswi kalfuswi is offline
Registered User
AKA: Billy K
FRC #1676 (Pascack Pi-oneers)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Pascack Valley
Posts: 12
kalfuswi is an unknown quantity at this point
Re: arduino help

Here the code you could use:

/***********
connect an NPN transistor driving a motor to pin 9 on arduino
***********/

int motorPin = 9;

void setup() {
pinMode(motorPin, OUTPUT);
delay(45000);
digitalWrite(9, HIGH);
delay(1000);
digtalWrite(9, LOW);
}

void loop() {
}
__________________
William Kalfus
Team 1676, The Pascack Pi-oneers
Reply With Quote