Go to Post A robot that can't move isn't a robot. It's just furniture. - John Neun [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-02-2010, 15:08
TD912 TD912 is offline
Registered User
AKA: Chris Leung
FRC #1989 (Viking Robotics)
Team Role: College Student
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Vernon, NJ
Posts: 156
TD912 has much to be proud ofTD912 has much to be proud ofTD912 has much to be proud ofTD912 has much to be proud ofTD912 has much to be proud ofTD912 has much to be proud ofTD912 has much to be proud ofTD912 has much to be proud ofTD912 has much to be proud ofTD912 has much to be proud of
Wiring 3.3V Sensors to 5V Analog Breakout...

Because we somehow managed to fry the KoP accelerometer, we decided to purchase another one (this time analog) from SparkFun electronics - the MMA7260Q (http://www.sparkfun.com/commerce/pro...roducts_id=252 )
We're trying to ensure that we don't short out this one, so we read the directions and other documenation before attempting to wire it to the analog breakout. We Just noticed the analog breakout outputs 5V of current, but the sensor calls for 3.3V...

Will it with with 5V? Did we get the wrong sensor? Is there a way to lessen the voltage?
  #2   Spotlight this post!  
Unread 02-02-2010, 15:20
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,770
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Wiring 3.3V Sensors to 5V Analog Breakout...

Chris,
You cannot use a 3.3 volt device with a 5 volt power supply. The good news is there are three terminal regulators that will take the 5 volt power and regulate down to 3.3 volts. You are looking for one that is defined as a "low dropout regulator". There is some in the Digikey catalog but I bet Mouser and others have some to.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #3   Spotlight this post!  
Unread 02-02-2010, 15:43
billbo911's Avatar
billbo911 billbo911 is online now
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,355
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Wiring 3.3V Sensors to 5V Analog Breakout...

Quote:
Originally Posted by TD912 View Post
Because we somehow managed to fry the KoP accelerometer, we decided to purchase another one (this time analog) from SparkFun electronics - the MMA7260Q (http://www.sparkfun.com/commerce/pro...roducts_id=252 )
We're trying to ensure that we don't short out this one, so we read the directions and other documenation before attempting to wire it to the analog breakout. We Just noticed the analog breakout outputs 5V of current, but the sensor calls for 3.3V...

Will it with with 5V? Did we get the wrong sensor? Is there a way to lessen the voltage?
Since you already have a working relationship with Sparkfun, one of my favorite sites, try using this regulator from them. It will more than handle your needs.
You could also use this one, but it will require a small bit of support circuitry.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #4   Spotlight this post!  
Unread 02-02-2010, 16:38
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Wiring 3.3V Sensors to 5V Analog Breakout...

Any reason not to use a resistor connected to the 5V Analog Breakout?

Let's do the math.

V=IR
R=V/I

Voltage drop needed across the resistor will be 5V - 3.3V = 1.7V

From the data sheet, it uses 500μA typical. I'm not sure how the sleep current will work out.

So..
R = V/I
R = 1.7V/500μA
R = 1.7/500x10^-6
R = 1.7/0.0005
R = 3400Ω = 3.4kΩ

Now, the accelerometer has a bit of flexibility. You should be good with any resistor between:

V = 5V-2.2V = 2.8V
R = 2.8V/500μA = 5.6kΩ

and

V= 5V-3.6V = 1.4V
R = 1.4V=500μA = 2.8kΩ

I would stay away from either extreme, preferably lower since I'm not sure what will happen with the sleep current.

Before doing this though, let some of the more experience engineers take a look at what I provided before going with it. You could get a 3.3V voltage regulator, and it will work fine. Resistors seemed simpler and easier to acquire (@ RadioShack or in your shop).
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
  #5   Spotlight this post!  
Unread 02-02-2010, 16:52
billbo911's Avatar
billbo911 billbo911 is online now
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,355
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Wiring 3.3V Sensors to 5V Analog Breakout...

Quote:
Originally Posted by RyanN View Post
Any reason not to use a resistor connected to the 5V Analog Breakout?

Let's do the math.

V=IR
R=V/I

Voltage drop needed across the resistor will be 5V - 3.3V = 1.7V

From the data sheet, it uses 500μA typical. I'm not sure how the sleep current will work out.

So..
R = V/I
R = 1.7V/500μA
R = 1.7/500x10^-6
R = 1.7/0.0005
R = 3400Ω = 3.4kΩ

Now, the accelerometer has a bit of flexibility. You should be good with any resistor between:

V = 5V-2.2V = 2.8V
R = 2.8V/500μA = 5.6kΩ

and

V= 5V-3.6V = 1.4V
R = 1.4V=500μA = 2.8kΩ

I would stay away from either extreme, preferably lower since I'm not sure what will happen with the sleep current.

Before doing this though, let some of the more experience engineers take a look at what I provided before going with it. You could get a 3.3V voltage regulator, and it will work fine. Resistors seemed simpler and easier to acquire (@ RadioShack or in your shop).
Ryan, your logic is sound, but there may be other things to consider. The one that pops to mind is, how is the output of this device affected by varying input voltage. If the device is stable across the input range, then your process will work. Now, if the output varies much at all with varying supply voltage, then I would go for a clean requlator.


Here is a quote from the spec sheet for this device
Quote:
Within the supply range of 2.2 and 3.6 V, the device operates as a fully calibrated linear accelerometer. Beyond these supply limits the device
may operate as a linear device but is not guaranteed to be in calibration.
So, I would say it should work.

( Honestly, you can pick up a 3.3v regulator at Radio Shack for a couple bucks and just be more confident.)
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #6   Spotlight this post!  
Unread 02-02-2010, 17:32
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Wiring 3.3V Sensors to 5V Analog Breakout...

Quote:
Originally Posted by RyanN View Post
Any reason not to use a resistor connected to the 5V Analog Breakout?
...
As Bill said, this idea only works in theory. In practice, it is likely to end in tears. I've been down that road many times, each time thinking "this is the time I can get away with it!". That time has never come.

It is bad for two reasons:
1) Inaccurate voltage.
just as Bill said, your output voltage is dependent on your load. Your load is unknown AND variable. Since your output is ratiometric ( the signal is expressed as a fraction of the input voltage ), this is very very very bad.
2) High output impedence.
Output impedence is a measure of the effective resistance of a power rail. Usually it is (much) less than an ohm. This technique would place it in the thousands of ohms. It is an important measure for many reasons, but the most relevant reason here is the ability to deal with switching. (( Bypass capacitors are used to lower it further (for high frequencies))).

You may think that an analog gyro is an analog device, but internally they are chopping in the high tens of kilohertz. A poor output impedence will interfere with this chopping and do "funky things". I'm not positive what, but I'd imagine that you'd end up with a weird offset error.


Bottom Line: Use a regulator. They are cheap and good.
  #7   Spotlight this post!  
Unread 02-02-2010, 18:39
JCharlton's Avatar
JCharlton JCharlton is offline
Registered User
AKA: JC
no team
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Montreal
Posts: 123
JCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to behold
Re: Wiring 3.3V Sensors to 5V Analog Breakout...

Um, can you send it back and get one that's 5V?
__________________
"There is no problem so bad that you can’t make it worse." - via Chris Hadfield
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Analog Breakout l.li Electrical 5 12-02-2010 15:56
Analog Breakout Board EricWilliams FRC Control System 5 02-02-2010 12:16
Wiring a potentiometer to the Analog Breakout rsisk Electrical 6 19-01-2009 12:49
Wiring analog breakout? excel2474 Electrical 5 31-12-2008 17:30
5 Amp Fuses for Analog Breakout & Solenoid Breakout finman Electrical 3 10-12-2008 11:59


All times are GMT -5. The time now is 12:27.

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