Showing posts with label SAR. Show all posts
Showing posts with label SAR. Show all posts

Monday, February 25, 2013

V3 Upgrade–New Right Leg Sensors

DSC_9082

So V2 had some superior measurement features. If you recall here I discussed about how applying a torque through my foot caused the readings to skew. So installing a couple of strain gauges like V2 on the top and the bottom create a very good and more isolated sensor. This is ACTUALLY how Rotor Power works, but the gauges are on the INSIDE. I can’t do that, not unless I drilled holes… this would cause stress risers and likely lead to fatigue failure.

As an idiot, I used two gauges from different batches. This caused a mismatch in the wheatstone bridge causing a huge voltage offset. I therefore needed to drop the gain, but I didn’t have a high quality resistor to use, so I had to sub in a 1% through hole. I’m keen to move on to the next prototype with the ADS1247 as this type of issue becomes irrelevant.

image

I’m getting much more consistent readings now. The only problem is it won’t read 100% right, about 96% at best. I’m not quite sure why. However the strain gauges are sensitive enough to pick up the weight of the crank arms causing a torque due to gravity. I suspect that this is what is happening, but can’t be sure. I wish I had debug serial access while it was on the bike.

DSC_9083

DSC_9084

DSC_9085

You can see the old shear gauge still inside. It’s a bit of a rats nest of wires down there.

 

As an aside:

I’ve been sick the last week which has delayed testing and updating. However in my downtime I finally figured out the strain gauge arrangement used by Look Keo Power Pedals! It’s a differential sensor such that it can remove bending moments, that is why it requires 8 strain gauges per pedal. This setup has a decrease in sensitivity but it’s the only way they can make it work. I am thinking about making a video explaining how to do this and why, but it might be a while before I get around to it.

Wednesday, February 13, 2013

More Testing V3 Power Meter and ADS1247

image

Some longer testing (1.5 hours) today and I’ve come to a few conclusions.

  1. My calibration is off
  2. It doesn’t matter that my calibration is off, the crank shear gauge on the inside of the driven arm to measure torque can be skewed by adding a twisting moment to your ankle.
  3. As a result my power balance and power numbers are all wrong! And WAY off from the method of calculating averaged (non-accelerating) power for my Kurt Kinetic Road Trainer.

So I will be adding new strain gauges to V3 on the top and bottom of the crank arm. The arrangement removes bending so it will stabilize and remove this issue. I had said previously that it is the superior arrangement. I didn’t want to have to use two different types of gauges but my hand has been forced. However this raises the question about Stages power meter. What is their arrangement? I suspect it is not a shear arrangement, but rather a double bending arrangement but still on the back side of the crank. It’d lose sensitivity but gains in accuracy.

The ADS1247 is reading out. It’s looking noiser than I want, but this might be a function of my protoboard / power supply / poor wiring / random resistors used as a voltage divider. I still can’t find a potentiometer around my apartment anywhere even though I bought and wired one up specifically for testing months ago. I’ll make a trip to the dollar store tomorrow and hope

Thursday, January 31, 2013

ADS1247 / ADS1248

image

Well now that V3 is complete I’ve turned to debating what to do. I placed up my BT to ANT+ adapter, though few seem to have interest in that, or perhaps it was all the Hackaday traffic overshadowing everything on my V3 How To.

I mentioned that I might be looking to reduce complexity of the analog side and switch to a Sigma-Delta instead of an SAR. They are slower for the same amount of power but higher accuracy and less noise.

Well the 1247 (two differential input) and the 1248 (4 differential input) have been ordered as well as DIP Breakouts for the TSSOP-20 and TSSOP-28 from Proto-Advantage. I’m not in a rush currently as I have some major decisions to make in terms of continuing the power meter project.

That being said, Josh at Josh.to, has some ADS1247 code that he’s using to build an espresso machine. Like myself just over a year ago, he’s currently swamped in grad school. The code he’s developed in that time will certainly speed up my execution of the use of the ADS1247.

One thing Josh mentioned to me was that in order to switch inputs I would have to send a reconfiguration command. I infer I’d have to do a single read and then switch back and do another single read. While it would max out at 2000sps over 2 inputs, I’m sure the overhead in telling it to switch inputs would reduce that down.

An alternative would be to have an ADS1247 do one strain gauge and possibly a temperature sensor, and an ADS1246 single differential input do the other strain gauge but use the Vref from the ADS1247. These chips are about 12 dollars each, but compared to the 18 for the ADS8321 and the supporting electronics it still ends up being cheaper and simpler.

V4 would likely be coupled to an nRF51422 and again attempt for coin cell operation. This would be a copy of the reference design.

Sunday, January 20, 2013

V3 Accuracy

Thanks to Hackaday viewers, Ray Maker at dcrainmaker.com, the various forums, twitter, reddit, and more. Again, feel free to ask questions or put in some comments. I’ll be sure to reply, and I’d love to clarify any deficiency that people have pointed out – like this one.

I’ve seen some comments about the web wondering about the accuracy of my power meter design. The short answer is that due to the simplicity of the design, the left measure should be better than average, while the right should be in line with the Stages Stage One design.

One of the things that I’ve never seen is how SRM, Quarq, Powertap, Power2Max, etc come up with their accuracy claims. This is slightly concerning as it might be like response times on monitors; all practically made up and skewed depending on how. In this interview Jim Meyers, founder of Quarq, explained how you could have 50 strain gauges and terrible accuracy. He also claimed that the last one he calibrated was 0.25%, but their company claims 2% to give a margin – sensible!

Based on explanations it seems they base this accuracy on the torque measuring accuracy. So what would that mean? It means that rotational measures might be accurate enough that it’s not the significant contributor. Since the microcontrollers in these power meters run at a high frequency, the time sample measurement could be down to the microsecond accurate, that it doesn’t matter. Back to the torque, it’s likely based on static torque measures with various calibration weights and looking for the worse measurement. Careful that your calibration weights need to be highly accurate.

V3 right arm (and possibly Stages Stage One) should have increased error measurements as the shear gauge used can be affected by pedal offset and that should be calculated in – however I’m not even sure of the methodology to do so. I’d be curious even if Stages Stage One has this figured out. However, Quarq and SRM both require a decoupling algorithm and have 4 – 5 sensor pickups which measure you have several analog-digital stages that could contribute to error.

The long short of it is that the 2% that is often quoted is a function of the use of strain gauges and electronics to pick them up. So, empirically I can say that mine would be about 2%. However to confirm I would need to get some high accuracy calibration weights. Once actually fully calibrated in the range, it should easily be within 2%.

One thing to note on calibration. Technically it’s bad practice to use a load that is below a load you expect. For instance, if you expect 200 N-M of torque, using 20 N-M of torque is not a good idea. I’ve been involved in QA programs and testing. If you have a 100lb load cell it’s calibrated with usually about 5 test points including 100lb. You don’t test to 20lb and assume it’ll be linear even if you’re experienced enough to say so. That’s just bad engineering.

So my calibration currently is in the extrapolation range and is therefore a bad calibration. I’ll eventually rectify this and I’ve tested several different weights and taken the mean in the past and will again in the future.

Wednesday, January 16, 2013

V3–Power Meter–The Complete How To

For the current visitors to the blog, it's finally here! For new visitors welcome to the complete how to. What I am going to explain start to finish how to make and advanced left and right measuring power meter. The quickest and easiest way to figure out how to put your own together or find out how other power meters work such as SRM, Quarq, Cycleops or Power2max is watch the videos in sequence below.DSC_9066
Left to Right V1, V2, V3 of my power meter. Questions? kwakeham@gmail.com

Sunday, January 6, 2013

V3-Almost ready for prime time demoing

I found the problem that has been messing up V3 the last month and a half. It’ll be explained tomorrow evening. Suffice it to say that while I’ll test a new ADC, the current ones do perform now, and the meter measures look good. It was an electrical problem

More tomorrow

Saturday, December 29, 2012

V3–Maybe it will work

image

Okay, so if you look at the Arduino code in the image you’ll see a commented out delay(3); I had put this in the wrong location. Because I’m not properly reading the RTS line I put in the delay, and it cleared up ANT+ communications. However it’s in the wrong location and now it’s a delay after every read! Stupid I know!

More after the break. Also I’m starting to use breaks on the blog so the amount of posting will be short. Just click the read more if you visit the main page.

Saturday, December 22, 2012

Some more notes on ADC’s

I haven’t had much luck getting the SAR’s to work as I’d like. Honestly, it’d work better in Rotor’s or Garmin’s arrangement, that is, if you are essentially running two independent power meters and one just transmits its findings to the master. That way it would effectively double my sampling rate. However, as it stands, I can’t process the data on the Arduino fast enough to average out the signals to reduce the noise enough. I’ve thought about bumping to 16 Mhz. Several people have done this, and so long as you maintain good voltage it should be fine, however it is officially below the minimum requirement of the Atmega328 or Atmega32u4 chips requirements for 16Mhz.