Go to Post Its already begun folks...the Amanda you know is now one of us! mwahahahaha! - Andy Grady [more]
Home
Go Back   Chief Delphi > FIRST > Rumor Mill
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   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
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 13:55.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi