| Arduino Forum ::  Members :: aidan_aidan
 Show Posts Pages: [1] 2
 1 Using Arduino / Sensors / Re: Problem with Polulu 3-Axis Accelerometer (MMA7341L) on: May 10, 2013, 12:54:34 pm I will do this. I don't think its a range issue as the only range options for this chip are 3 and 11 g's. 11's would be waaaay off so i am confidant it is set to 3g mode. As for my math i suppose it could be wrong but i have checked it a ton.
 2 Using Arduino / Sensors / Re: Problem with Polulu 3-Axis Accelerometer (MMA7341L) on: May 09, 2013, 07:27:03 pm I have looked att he speced maximum and minimum V/g and my measurements are still way off. Do you still suggest just calibrating it as it is?
 3 Using Arduino / Sensors / Problem with Polulu 3-Axis Accelerometer (MMA7341L) on: May 09, 2013, 06:36:28 pm I am using the analog pins on my arduino, and have the 3v3 regulator from the accelerometer connected to the aref pin and have set the analog reference to external. I am using the fact that according to the polulu site and the datasheet there is 440mV per g in 3g mode which is what it is set to by default and what i have left it at. I have also measured the 3v3 voltage regulator on the accelerometer with all the outputs connected and measured exactly 3.291V. So in my code I have the calculations go like this: (analogRead() - 511.5) / ((0.44 / 3.291) * 1023)). 0.44 being volts per g, 3.291 being reference voltage and 1023 being the resolution of the ADC. I have the -511.5 because the 0g output voltage is centered between ground (0V) and aref (3.291). This gives me values of -0.02g for y, 0.13g for x and 0.83g for z. This is while the accelerometer is very close to being perfectly flat. Am i doing something wrong or is there something wrong with my accelerometer? Ask me if i left anything out.
 4 Using Arduino / Project Guidance / Re: Powering Arduino on 5.5V via USB on: January 19, 2013, 03:39:27 pm Perfect! thank you very much. I will but a diode in series just in case. got lots of rectifier diodes laying around anyway.
 5 Using Arduino / Project Guidance / Powering Arduino on 5.5V via USB on: January 11, 2013, 03:47:11 pm The ESCs I am using for my quad copter have a 5.5V regulator on them for all the electronics. 5.5V is out of spec (10%) from the USB standard (5%) and I was wondering if it would work, or if it is too much. I can use diodes or something to drop it down if necessary.
 6 Using Arduino / General Electronics / Re: Measuring Voltage of Small Lithium Polymer battery, analog errors? on: April 06, 2012, 10:48:09 pm how would i go about doing this? how would i use the internal 1.1volt reference?Thanks btw.
 7 Using Arduino / General Electronics / Re: Measuring Voltage of Small Lithium Polymer battery, analog errors? on: April 06, 2012, 10:30:12 pm the readings are spot on now! is there any way of reading the arduino's 5 volt output? and then using that in my calculations?
 8 Using Arduino / General Electronics / Re: Measuring Voltage of Small Lithium Polymer battery, analog errors? on: April 06, 2012, 10:28:17 pm Quote from: RuggedCircuits on April 06, 2012, 10:09:54 pmHere's a thought....measure the +5V output of the Arduino.I bet it's less than 5V --The Rugged Circuits Yellowjacket: 802.11 WiFi module with ATmega328P microcontroller, only 1.6" x 1.2", bootloaderyikes! its 4.65! I'm running it of usb. that would explain that. ill try replacing 5 with 4.65 and see if that helps.
 9 Using Arduino / General Electronics / Re: Measuring Voltage of Small Lithium Polymer battery, analog errors? on: April 06, 2012, 10:24:10 pm it reads the analog pin like ~200 times. then every 200 milliseconds takes the average of all those readings and calculates actual volts. Its about 0.3v too high. I'm waiting for the battery to wear down somewhat to see if the 0.3 volts remains consistent. I suspect that it won't.
 10 Using Arduino / General Electronics / Re: Measuring Voltage of Small Lithium Polymer battery, analog errors? on: April 06, 2012, 10:08:21 pm i am doing all those things. The problem is that the arduino is showing a value *higher* than my multimeter.
 11 Using Arduino / General Electronics / Re: Measuring Voltage of Small Lithium Polymer battery, analog errors? on: April 06, 2012, 09:57:12 pm It does work some what because it shows a large voltage drop if i connect a load that draws a fair amount of current from it (small motor). Its just inaccurate.
 12 Using Arduino / General Electronics / Re: Measuring Voltage of Small Lithium Polymer battery, analog errors? on: April 06, 2012, 09:37:47 pm The negative terminal is hooked to ground.Thanks for the code bit there, I will put that in immediately.