Dynamo Speed Sensor

Page may contain affiliate links. Please see terms for details.

Solocle

Über Member
Location
Poole
Currently in the early phases of this project. But behold!
AFCC6B55-8B8C-4519-9C14-CA266C710ACE.jpeg

It seems that 220 mph is about the limit with ANT+ and the Roam...

Currently I'm just fiddling with one of the ANT+ sample projects on an nRF51 discovery board. However, the nRF51422 seems to be a fairly capable chip.
7605F69E-76B4-4D5C-B7A1-D1F91F358592.png

The idea is to run the rear dynamo wire through a current sense resistor (that way the speed sensor also doubles as "your light is still going!"). This will be connected to a current sense amplifier (basically an op-amp), with over-gain parameters. I don't really care about the magnitude of the current, just that there is current, so setting the gain high like this should give a nice digitalish signal to run into the microcontroller, which should just need to increment a count and reset a time count!
 

C R

Guru
Location
Worcester
Interesting project. So, are you aiming to map current to speed?
 
OP
OP
Solocle

Solocle

Über Member
Location
Poole
Interesting project. So, are you aiming to map current to speed?
Current would be hard to map to speed, especially as it ideally produces 500 ma. No, the output is AC, and the frequency correlates directly to speed. I already have an op-amp arrangement that can detect current reversal, and have tested the cycle counter functionality. All that remains is to wire it all up, and then handle the fact that with a 28 pole dynamo you get 28 cycles per rotation! I'm not sure whether I can handle that by just setting my wheel circumference to 2155/28 = 77 mm (- 500 ppm), or whether I'll have to stick an extra counter in the interrupt handler.
 
  • Like
Reactions: C R

C R

Guru
Location
Worcester
Current would be hard to map to speed, especially as it ideally produces 500 ma. No, the output is AC, and the frequency correlates directly to speed. I already have an op-amp arrangement that can detect current reversal, and have tested the cycle counter functionality. All that remains is to wire it all up, and then handle the fact that with a 28 pole dynamo you get 28 cycles per rotation! I'm not sure whether I can handle that by just setting my wheel circumference to 2155/28 = 77 mm (- 500 ppm), or whether I'll have to stick an extra counter in the interrupt handler.

Ah, that makes more sense. Cool project.
 
OP
OP
Solocle

Solocle

Über Member
Location
Poole
What I’m getting at, is that with DC there won’t be a frequency from which to derive speed.
Almost certainly not the case on my setup. B&M topline brake plus. I think that depends on an AC supply to the rear.
 
Top Bottom