View Single Post
  #3   Spotlight this post!  
Unread 18-09-2014, 18:22
jee7s jee7s is offline
Texan FIRSTer, ex-frc2789, ex-frc41
AKA: Jeffrey Erickson
FRC #6357
 
Join Date: Nov 2007
Rookie Year: 1997
Location: Dripping Springs, TX
Posts: 319
jee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond repute
Re: Programming a 12V relay with Arduino

Arduino is well documented, so I'm sure there's resources for the particular syntax. You'll probably want to use a simple output rather than a PWM. Just pulse the output to get your relay to switch.

The bigger deal is driving the coil. You'll need to make sure your relay will actually switch at the Arduino output voltage. If that doesn't cut it or if the coil needs more current than the arduino output can provide, you'll need some extra circuitry (like a transistor) to handle the coil drive.
__________________

2013 Alamo Regional Woodie Flowers Finalist Award Winner
2012 Texas Robot Roundup Volunteer of the Year
Texas Robot Roundup Planning Committee, 2012-present
FRC 6357 Mentor, 2016-
FRC 2789 Mentor, 2009-2016 -- 2 Golds, 2 Silvers, 8 Regional Elimination Appearances

FRC 41 Mentor 2007-2009
FLL Mentor 2006
FRC 619 Mentor 2002
FRC 41 Student 1998-2000

Last edited by jee7s : 18-09-2014 at 18:24.