Go to Post Maybe Dean Kamen can appear in Levi's advertising? - David Brinza [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 14-02-2012, 23:54
Captain Slacker's Avatar
Captain Slacker Captain Slacker is offline
Registered User
FRC #0571 (Team Paragon)
Team Role: Alumni
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Windsor
Posts: 53
Captain Slacker will become famous soon enough
Re: arduino help

i do not have an h bridge but i only need it for one directionality shoulding i be able to power the board and then just power the motor from the board and control it with a delay
__________________
Who Rocks This House?!

PARAGON!!!
Reply With Quote
  #2   Spotlight this post!  
Unread 14-02-2012, 23:58
MAldridge's Avatar
MAldridge MAldridge is offline
Lead Programmer
AKA: Rube #1
FRC #0418 (LASA Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Austin
Posts: 117
MAldridge will become famous soon enoughMAldridge will become famous soon enough
Re: arduino help

pardoning the broken speech, a relay will sufice if you just need the motor to spin one way.

You should NEVER source drive current from an arduino. Each pin is wired for only 20ma. You should source your motor current from the main bus rails of whatever you are building. If you are bent on only needing 3.3v, then you should use something like an LM317 to drop the voltage.
__________________
'Why are you a programer?' --Team Captain
'Because the robot isn't complicated enough!' --Me
Reply With Quote
  #3   Spotlight this post!  
Unread 15-02-2012, 00:39
Captain Slacker's Avatar
Captain Slacker Captain Slacker is offline
Registered User
FRC #0571 (Team Paragon)
Team Role: Alumni
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Windsor
Posts: 53
Captain Slacker will become famous soon enough
Re: arduino help

how would i set up a relay for the motor?
__________________
Who Rocks This House?!

PARAGON!!!
Reply With Quote
  #4   Spotlight this post!  
Unread 15-02-2012, 22:22
MAldridge's Avatar
MAldridge MAldridge is offline
Lead Programmer
AKA: Rube #1
FRC #0418 (LASA Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Austin
Posts: 117
MAldridge will become famous soon enoughMAldridge will become famous soon enough
Re: arduino help

http://www.instructables.com/id/Conn...ay-to-Arduino/

the relay uses a 12v coil, but the same steps apply to using a 9v one
__________________
'Why are you a programer?' --Team Captain
'Because the robot isn't complicated enough!' --Me
Reply With Quote
  #5   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:54.

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