Tuesday, 29 September 2020

Electronics design project - Bicycle Dynamo and battery charging manager

Changed; 19-01-2021, 18-01-2021


This electronics design exercise is an addendum to Bicycle-hub-dynamo-maintenance-project  To optimise the power taken from the dynamo in order to run bicycle lighting and battery charging.  Including USB outputs, controls and settings.  These additional features require the development of a phone or tablet computer user interface app.

1970's Eveready front light, Pifco rear light, unknown age Eveready rear light. The Eveready lamps are fitted 

with 2.7V 420mA bulbs that could be wired in series and run from the dynamo. The Pifco lamp's bulb is 2.5V 

300mA so this lamp could not be used with the dynamo without expecting bulbs to fail occasionally.    Eveready  

lamps are clean and corrosion-free inside so wires could be soldered to the brass contacts.  The switches 

wired to short the lamp out in case a bulb fails so that the other lamp will operate.  

Plan for a bicycle dynamo lights and battery manager;

Microcontroller based bicycle dynamo light and battery manager with a speedometer.  Design idea and exercise with STM32 microcontroller.   With interface by USB cable to a tablet or any computer.

The dynamo will output up to 20V when the bike is ridden fast I understand.  If we assume the dynamo will deliver 300mA then the output power is 7W but we can probably count on getting at up to 5W.  In order to get the maximum power from the dynamo, the current taken needs to be regulated so that voltage does not drop and the maximum power is transferred.

I also understand that modern bicycle hub-generators work from 2 MPH, produce up to 30V out and are rated 3W at 6V (0.5A).  That is 15W so you may count on up to 10W.  The firmware should include calibration of the many voltages such as a mechanism of zeroing when there is no current flowing but also quantifying the generator's maximum power transfer (the setting of maximum current of the particular generator connected) and storing these calibration constants.

  • Manage two cell NiMH battery charging using a coulomb counting method. Therefore it is best not to remove the battery's in order to maintain the battery state of charge and capacity.  Therefore use the USB port charging either direction.
  • On PCB bootloader switch for fast programming via USB port plus software debug connector.
  • Software functions;
    • Switches to set Dynamo output power or USB battery changing power input.
    • Switch to turn the lights off/on/flashing. 
    • Battery charge status LED. 
    • USB connected status LED.

Tilt sensor used to reduce the power taken from the dynamo using parameters set by the cyclist such as from a USB connected tablet computer.

LED lighting is much brighter than incandescent lights, such as pictured.  These lights do work in the dark if placed low down to light the curb.  One should be placed high so the cyclist can be seen.  Red rear lamps are difficult to attach to the rear rack if you have panniers. 

The power diagram;

Could be based on an industrial motor control system similar to that found in factories but also used to manage power from a wind turbine.  In this case without a power dump of excess power from slowing machine motors generating power.  This circuit requires 12V peak to start so the bike needs to be moving at a good speed initially;

AL-0036-01F Power diagram based on motor control to operate at low-frequency boost 

switch-mode using the inductance of the motor.  A voltage multiplier boosts the input 

voltage enough so that the power supplies to start up.  Most function blocks and parts 

are not shown and part values are not correct.  Expect the dynamo to whistle when

 running in the same way that the inverters and motors in a modern electric trains whistle. 

A dynamo power management based on an industrial motor control system but scaled-down looks promising but a solution based on standard IC type power supplies will probably be cheaper. The circuit will only work when the dynamo's output peak voltage is > 8V (6Vrms) for IC to start up. The input boost section from the dynamo should be very efficient. This solution is software-driven. Note the additional 0V screen wire connection to the Dyno-hub to minimise electrical emissions.  

It turns out that the dynamo's inductance is almost certainly too high for this configuration to output any significant power when the voltage is boosted.  That is because the period of the chopping oscillator needs to be a few seconds in order to reach full current but the period of the AC output is much shorter (<<100mS) consequently the current output would be very low.

The Generator model is not simple - The series inductance is so high but the open-circuit voltage not so high, that very little power should transfer.  Alternatively, this is an incorrect the generator model is something like a very high voltage source clamped? 

Generator model is not so straightforward - a modern motor drive and permanent magnet motor/generator the motor is usually wound for lower voltage high current.   Consequently, there is always a high input voltage that is reduced by switching drive.  When generating the low voltage output is boosted with the switching drive but the apparent high inductance in the dynamo does not arise because the motor's inductance is low.

Comparison of motor drive or gate drive ICs;

  • L6201  ST 1-4A Motor drive bridge driver - 12V minimum, therefore, the dynamo would need to run at 10V AC out or the circuit would require a voltage doubler to start up from 5V AC but won't start up from 1.8-2.5V battery. Operates up to 100KHz.
  • L6205, L6206, L6207  ST 8-52V (8-52V) 100KHz 2.8A dual bridge motor driver with various protection and current control options. These operate down to DC due to the Vboost charge pump.
  • L6225, L6226, L6227  ST 8-52V (7-52V) 100KHz 1.4A dual bridge motor driver with various protection and current control options. These operate down to DC due to the Vboost charge pump.
  • TLE9201SG Infineon 6A half-bridge motor driver - only operates to 20KHz, 8 - 28V.
  • L99MOD51XP, L99MOD54XP ST motor drive 3x half-bridge drivers 6A, 7-28V. 
  • BTN8962TA Infineon Half-Bridge motor driver - 30A, 8-18V or 5.5V-40V derated.  Maximum frequency unknown and is oversized.
  • DGD05463 Diodes Ltd. ISL6208, ISL6208B Renesas - Gate driver and discrete transistors. No significant frequency limit (500KHz) but requires more parts and is an expensive option. 

For Vbatt (1.8V - 3.5V) to 5V bidirectional - TC78H653FTG Toshiba dual half-bridge up to 2A, 1.8V - 7.5V, 500KHz.  Provides the option for a better power path with shortest paths to and from the battery.  Unfortunately, the IC can not be configured as simple half or full bridge drivers but only as a motor driver or use just use two of the four drivers.


A motor drive solution based on L6205 IC is promising but will not be pursued further but a boost input is drafted below in AL-0002-xxx which are simpler in software to implement. They also start-up and run at a lower bike speed.

Simplified power diagram AL-0038-01E.  This design features no large step-up or step-down voltages.  The micro-controller 

is powered directly from two rechargeable NiMh cells.  The rectified dynamo output ripple is transferred to the LEDs. 

The low voltage drop rectifier is not implemented or not fully implemented in any of the designs below but could be implemented using two TAE1993TS or TAE1999TS synchronous rectifier controller for the low side. For the high side, a cross-coupled, bistable-multivibrator using p-channel MOSFETs with gate protection would switch on alternately. This feature would save 200mW compared using a Schottky diode bridge rectifier and is not worth implementing.


LM5176-q1 may be a good choice for buck-boost regulator the compensation pin can be overdriven to reduce the current take to optimum for the dynamo.  Alternatively, a PFC controller ucc29910 be used as a buck regulator rather than a boost regulator.

Also, see; AL-0034-01A - dynamo battery lights manager Synchronous rectifier controller. Dual three-input OR gates would drive the power transistors from PWM, Over Voltage and this circuit.  Design output files A discrete solution like this is not better than the IC synchronous rectifier controller with high side drivers solution but may be cheaper in high volume.

Next step - build test rigs and test some of the functions;

http://minisystem.blogspot.com/2011/11/ has carried out some of these tests with dynamo LEDs and discovered that the dynamo will produce at least 5V peak operating down to 12KPH the current is low though because much of the output will be under 5V. The circuit above and circuits AL-0002-01? should operate down to <3V and <10KPH although with very poor efficiency.

The graph right does not belong to me, so I have asked if I can use it? The green line is relevant so disregard the blue line.   I have cropped the graph.

The current was presumably measured in series with the 5V drop LED so increases as on-to-off duty cycle increase with the higher voltage generated by the dynamo.

Buck-boost configuration https://www.ijedr.org/papers/IJEDRCP1401022.pdf

An efficient solution is likely to be to use a buck-boost configuration has not been pursued but these parts have been considered A  half-bridge bidirectional 5V to Vbatt 1.8V to  3.5V but the function blocks are likely to be more costly and turn out not be so efficient.  Here are some buck-boost controllers; LM5174, TI, LTC3779 ADI, MAX20048 Maxim.

Summary of full circuit and refinements;

The diagrams below are mostly worked through but for a software assessment of there viability.  The microcontroller needs to be changed to an at least 64 pin part instead of a 48 pin part with all pins used.  Thereby allowing the crystal oscillator, where used, to have 0V screen pins rather than using the port pins next to the crystal oscillator pins.  Note alternatively each PCB could be calibrated for temperature change using the on-chip temperature sensor, oscillator and microcontroller's oscillator trimming registers.

Above some basic functions are provided but full control requires a tablet computer be connected in order to access other settings.  The unit would be enhanced if those settings were included without requiring the tablet particularly to improve the systems water resistance.

Smiths BL/BMC (1960s-1970s) Mini speedometer, 

odometer, fuel gauge with other indicator lights 

Than you for photo https://www.digital-speedos.co.uk/

  • Tilt control potentiometer or up-down buttons with graphical representation on an LCD display - the inclination of the unit and therefore the bike where the maximum power is taken from the dynamo. 
    • When the battery charge is very low the inclination control will be over-ridden and the battery charged to a varying degree.   Otherwise, the battery is charged at the maximum rate and if power is available a USB device can be charged or powered as well.
    • Override buttons to boost or minimise the power taken from the dynamo.
    • Button and LED to indicate using learnt mode where the computer has adapted the strategy to the pattern of user use.
    • Alternatively, learn mode as proposed next;
  • Software proposed functions;
    • Switch Dynamo power;
      • ON 1 Minimum dynamo power and minimal charging current.
      • OFF 2 Managed dynamo power for lights, managed battery charging and surplus for USB.
      • ON 3 Maximum dynamo power with the surplus to USB (out). 
    • Switch to turn on USB charging/Learn/Set 
      • ON 1 USB (in) to provide charging current.
      • OFF 2 USB (not in), Learn dynamo use strategy.
      • ON 3 USB (not in), Use learnt dynamo use strategy.
    • Switch to turn the lights on. 
      • Lights off
      • Lights on
      • Lights high or flashing.
    • Red/Yellow/Green - battery charge status LED.   
      • Steady indicates charging or dynamo power,
      • Flashing indicates discharging.
      • Cycling Red - Yellow - Green; Fault USB and dynamo charging or battery.
    • Blue - USB connected status LED.
      • Steady indicates charging and connected,
      • Flashing indicates connected.
  • Speedometer and odometer LCD display.
Display types;
  • LCD Transflective, 25x50mm (128x64 dots),  LED backlight 60mA 3.2V (switched off in good daylight), 64128K Display Tech systems.
  • OLED 55x27mm (128x64 dots),   20mA 13V,  I2C bus, W12864XA Electronic Assemblies. 
  • EPD 27.5x27.5mm (152x152), 2mA 3V, I2C bus, MT-DEPG0154BNS800F5 Microtips technology - no illumination.
  • 2x Seven segment LED displays plus bar graph and LEDs <100mA 2V.
  • Alternatively, a needle and scale type traditional moving coil meter could be used.  Fitted with a shunt resistor or large capacitor to damp the movement would only require 50-500uW (10uW for the movement). Air damper types are more robust. These are not robust but the type in the car fuel gauge, above, is a hot wire type they are robust but they consume too much power.

The variants of the detailed circuits to choose between;

It took a long time to find these parts for what I wanted to do originally and the solution based on power supply ICs is good and was found more quickly.  Most of the ICs can not be configured as simple drivers instead of motor drivers.


The final design is likely to be based on a high frequency, inaudible, input boost power rail but using a bridge Power factor correction and power supplies will do the job well.  The dynamo's output could be boosted to 7W when cycling fast.   But the non-boost variant similar to AL-0002-01? would work well although testing needs to be carried out before a final decision is made. Alternatively, more than one of the variants should be priced and could be made.

Picture right Sturmey-Archer, AG - 3-speed dyno-hub, dated July 1953;  3-speed wide variable gear hub and 6V, 2W generator.  40 spoke.

Design files for all variants;

  • AL-0039-01D Op-amp Ibatt resistor and LED PSU resistor networks.ods spreadsheets. --- Updated document to follow.
  • AL-0040-01B  Dynamo Battery Manager - Microcontroller select - Software.odt  --- Updated document to follow.


The decoupling strategy is to place 100nF ceramic decoupling capacitor's close the each IC power pins, internal power planes for the microcontroller VDD.  I/O has 1 - 10nF COG/NPO capacitor's near the connector pins.  There is an 0V power plane provides screening for good EMC performance.


There are no thermal reliefs in the power and thermal planes. This also provides better electrical conductivity.

The part libraries are to an old standard that changed more than 25 years ago so many footprints should have the index in the centre but CADSTAR libraries have many parts with the index at pin 1. It is necessary to fix this before using the footprint or creating a footing. PCB assemblers can correct small discrepancies they have too but they can not correct for this error necessarily.


List of files;

There is a spreadsheet list of files.

--- Basic bicycle dynamo battery and lights manager  - Draft ---

  • AL-0002-01J Circuit and PCB's - draft.  The design should fit in under 100 x 100mm.
  • AL-0033-01F.ioc Micro-controller selector and configuration project file draft. ---
  • STM32L072C - 48 pin .
The type moving coil of meter pictured right is clear to see 
100-0-100uA, centre zero type is not suitable as a speed-o-meter.

Advantages and Disadvantages of this design; 
  • The input capacitor is not large and the voltage varies with dynamo AC ripple thereby allowing dynamo current to match the AC dynamo voltage and thereby transfer power fairly optimally.  
  • A large capacitor is fitted to VCC, the main power.  Consequently, the input capacitor could be reduced in value.  There is also an output isolating transistor from the battery to prevent the battery from carrying ripple current.
    • In software modulate the LED and USB output currents at 2x Dynamo output frequency.  LEDs to continue illumination at 70%-50% current during the low voltage part of the dynamos AC output cycle.  
    • The LED flicker may not be very noticeable.   The main power supply will run from 5V boost when the dynamo voltage is low.   The battery will provide power when the dynamo speed is very low thereby could not provide enough power and so thereby avoid flicker frequency's that are a health issue.
  • This is a simpler, efficient solution and shows the basic function.
  • This does not have a boost rail and so the operating range is not so wide and perhaps more suitable for a newer dynamo but is good for an old dynamo.
    • The LEDs power is therefore run at below the uC + Battery VDD using buck-boost current power supplies.
  • The switch-mode power supply IC includes feed-forward compensation so it is not possible to fix the output pulse width period over the full period of the generator's AC output.  Consequently, a problem could occur with a higher current be drawn when the dynamo's output voltage is lowest and the least current is available.   
    • The main regulator's power is controlled by DAC and a transistor AND-ing the soft-start function.  The main regulator's output voltage clamp is set using a PWM output.   Fairly complex software is required in order to prevent such an issue perhaps using a triangle wave or rectified sine wave phase-locked loop in software.
  • Speed-o-meter output - will drive a 0-50uA moving coil meter.  There is also a scale illumination output but this needs to be developed. 
      • This is driven from an open drain PWM port pin will be compromised a little by the temperature coefficient of the port pins on resistance (~50 ohm).

---  AL-0002-??? As above (01?) But with a different main regulator --- not developed --
  • Changed the main regular to lm76002-q1 TI, this is a more expensive IC,
  • Operates down to 3.5V rather than > 4.3V with better external bias supply or-ing for lower start-up voltage.
  •  Also, the compensation pin can be over-driven to reduce the power output similarly to driving the soft-start pin in version -01?.

--- Software-driven boost input, can be PFC for boost supply for lower voltage operation --- PCB size under 120x100mm 4 layer components on one side.  -- Draft ---

  • AL-0002-02H Circuit and PCB
  • AL-0033-02E CubeMX software project file.
  • The LEDs will not flicker at 2x dynamo frequency and the boost PWM approximately draws current proportionally to the output voltage or can be programmed to do that in order to maximise the power transfer.
  • To operate high-frequency boost or with some minor modifications lower frequency using the dynamo's inductance. 
  • Would not operate without the boost regulator efficiently or to as low voltage as -01? 
  • STM32L052C6Tx 48 pin, microcontroller.
  • The meter driver is for the highest current type with a 240' movement.   The movement is 500uA so the power taken is ~8mW = 2.5mA * 3.3V.
  • This design and layout to be refined after software review. 
The Moving coil meter pictured right is not so 
clear to see 0-1mA is not ideal as a speed-o-meter
Advantages and disadvantages;
  • More functions of the input power supply and synchronous rectifier have been moved into a larger micro-controller.
  • Power Factor Correction is approximated by the software-driven slow response Pulse Width Modulator boost supply.  But the drawback is that boosting to a high voltage then dropping to low voltage is inefficient.
  • Current regulators for LED drive instead of voltage regulators to improve efficiency has not been implemented.  This could be implemented in the lamp units from the 2-3V lights output.
  • To be refined after software review.
  • Use a larger microcontroller and provide more switches and LED's in order to configure the unit better.  Controls to vary the dynamo power take depending on road conditions and cyclist fatigue, without requiring attaching another computer.
  • This variant requires that the microcontroller be replaced with a larger 64 pin version because there are no spare pins. 

-- AL-0002-03 This variant uses a better low side battery power switch. -- Draft ---
  • AL-0002-03J circuit and PCB. - This variant is similar to version -02G.
  • STM32L052C - 48 pin.
  • This variant has a more efficient battery power switch because an n-channel MOSFET is used and also the MOSFET is driven from the boost power supply or VDD which the higher by software control. 
    • This variant will not operate if the battery cells become shorted (I do not know if this is such a serious issue with NiMH cells compared to the older NiCd type).

  • This variant directly controls the main power supply in order to limit the maximum current but this feature has not been fully developed.  
    • The amplifier does not switch gain and current range for charge rating measuring but is suitable for measuring current and coulomb counting. 
  • The meter driver is simple but the most expensive variant or the most efficient.   The movement is 100uA but would work with a 30 or 50uA movement with better damping and lower voltage VDD.
Improvements;  A current sense scaling and charge rate switch was considered.  Conclusions it looked like more parts fitted for no benefit.   The micro-controller will better manage to control the main voltage to maintain an average float charge of 10mA is a better strategy.
Pulse counter for mileage counting with set and reset.  This counter 
is heavy, requires 24V pulses, counts down and so is unsuitable.
  • This variant requires that the microcontroller be replaced with a larger 64 pin version because there are no spare pins.


-- AL-0002-04 this variant uses Lithium rechargeable (LiFePo4). Uses the on micro-controller op-amp which is good enough but must be turned off when the unit is inactive to save power. -- Draft ---

  • AL-0002-04F   PCB and circuit.  
  • AL-0033-04C   MXcube microcontroller project. -- To be updated
  • Uses STM32L052C 48 pin IC and its internal oscillator. - This needs to be changed to a 64 pin type.
  • Lithium protection is less demanding than for a laptop because the cell is a safer LiFePo4 type.
  • In this case, the uC be permanently connected to the battery and software manage the battery protection.
  • The power path is more efficient because the voltage is high so the step down from the dynamo is smaller.
  • The battery is more efficient only requiring charging 110% more power put back rather than 150% that a NiMH requires.
  • Rapid charging LiFePO4 is not possible but they charge at 0.3C, 0.5C or 1C (1-3 Hrs) depending on the type chosen.  By comparison, NiMh cells can be charged at up to 0.4C (2.4Hrs) or NiCD 2C to 4C (15 or 30 minutes) depending on the type chosen.
  •  Speed-o-meter output - will drive a 0-30uA moving coil meter.  There is also a scale illumination output but this needs to be developed.
    • This is driven from an open drain PWM port pin will be compromised a little by the temperature coefficient of the port pins on resistance.
Advantage and disadvantages;
  • Lithium-ion Phosphate (LiFePo4) - is slightly lower capacity Li-ion, less raw materials used. 1.2Ah or higher.  Fewer safety precautions required eg a lead-acid like battery charging.
  • Does not support Lithium-ion (Li-ion) - these require additional safety circuits within the battery that disconnects the battery if the supply voltage is too high or the cell voltage drops too low.  
  • The second lights regulator provides up to 500mA at 1.2V to 5V and is efficient because no series resistor should be fitted with the LED and the voltage is never too high to damage an LED if it were reverse connected. 
  • Using an STBB3JCC buck-boost switch-mode current regulator
  • STBB3JCC - 100mV Feedback +-10mV --- the part used.
  • STBB3JR - 500mV Feedback +-10mV --- could be fitted by changing some parts so that the output is fixed but closer tolerance voltage regulated.
  • The current is set by Pulse-width-modulation
  • This regulator's current output could be re-configured by changing the programming resistor (Resistor = 100mV / Current_required). 
  • Resistor = 100mV / (Current_required - 50mA) this has a maximum output voltage of 5V.  The LED lamp is connected between Lamp- and Lamp+
  • Alternatively, a regulated 5.2V can be taken from Lamp+ and 0V.


-- AL-0002-05C this variant uses Lithium rechargeable (LiFePo4). Uses the on micro-controller op-amp and another more accurate op-amp which is good enough but must be turned off when the unit is inactive to save power. -- Draft ---

  • This variant is similar to -04?
  • Uses STM32L151C - 48 pin microcontroller.
  • This version is compromised because the on microcontroller op-amps are used.
    • There could be a cost-saving.
    • Small signals are tracked across the PCB rather than amplified at source then large tracked across the PCB.  This may not be an issue.
    • The op-amps are therefore not optimal and the input current is quite high.
  •  This version does not include a speed-o-meter meter driver output because all the microcontroller's pins are used.   A larger microcontroller is required.

Design output files


Right; From Dynamo Maintenance blog  AL-0035-01C (4) Simple Dynamo to 5V DC regulated power supply such as USB power output.  The design returns surplus power back to the dynamo and therefore back to moving the wheel forward.  By comparison, the maximum power output is only; 1.5W = 300mA x 5V

Which design to go forward with;


ToDo - list all variants of AL-0002-???;

  • The microcontroller will need to be changed to a 64 or more pin device.  To provide function or design revision flexibility.
  • Improve PWM output to drive a moving coil meter with shunt resistor for damping, if necessary.  With backlight power. 
  • Consider using smaller batteries. Therefore change the battery holders.
  • Main power supply compensation need to be calculculated. It is roughly based on the data sheet examples.
  • Add a pull up to en pin of PSU ic and drive that pin from a uc pin to ensure PSU shutdown to the lowest power. The standby current of the ic will drop from 1mA to 11uA that is from draining the battery within a month to many years depending on the battery type.

The next version to be developed;

The cost and benefit of using a more expensive microcontroller with more functions on-chip some people cost things on 5p per pin used whereas other high volume users tend to simply avoid integrated circuits where cheap discrete parts can be used.   It is not clear cut without asking a PCB maker and assembler to price some variants in the volumes you are likely to use.

STM32L072R or STM32L052R are probably a good choice along with using an external dual operational amplifier.  For the Ibatt monitoring, it will be necessary to periodically turn off all major current inputs in order to calibrate the battery current measurement.   The A-to-D converter reference is VCC with a 1.25V internal reference connected to one channel so the VDD can be measured. This works over the entire range of a two-cell NiMH battery.


STM32L0??? And STM32L0??? Do not have op-amps which means a much better optimised external op-amp s are used. These are Value, lower-cost microcontroller s but STM32L151, by comparison, is more expensive has two op-amps but the cost of the extra parts saved may break-even.


STM32F303 (four op-amps) or STM32F072 (no op-amps)  these are lower cost, without the low power features but are low enough power but the higher minimum voltage will operate with the lithium cell variants.  Alternatively could be used with any variant if the boost regulator is used to also provide VDD via a regulator,  this is beneficial in providing an easier to manage stable supply voltage reference for the A/D.

The op-amp PGA feature is not a real PGA but internal 0V referenced set of fixed gain settings for the op-amps.

STM32L433 some variants 64 or more pin have a buffered reference output so the A to D converter can be referenced to that instead of VDD which is in any case varying.  In addition, there is an op-amp that can be used for better Dynamo current monitoring and being AC does not require a low offset voltage.  All variants of ST32L552 have two op-amps, a buffered reference output but in both cases, if the buffered reference is used it is only accurate with high VDD otherwise it reverts to tracking VDD.

Another possibility is to have a number of variants made, developed them further.  It used to be a valid option to make two of each variant on one panel of PCBs and putting as many different PCBs on a panel as possible.   All boards are then made, pick-and-placed comparatively more cheaply in one go but this option is now not beneficial. 

Prototyping with an STM32L433 (one op-amp) STM32L475 (two op-amps) variant with on-chip reference buffer might be the best option.  Plus use an op-amp for better quality battery current measurement, which is compromised in any case by requiring ~100mV offset which has a significant temperature coefficient. 



LED power supply for one or many identical LED's connected in parallels.

Average current limited set by pulse width modulator up to 450mA at 1.2-5V out suitable for white or any other not-pulsed LED.  The LEDs used if connected in parallel in the same assembly and from the same manufactures batch.  Alternatively lower voltage drop red LED's can be paired in series then multiple pairs connected in parallel.

This current regulator could be duplicated and situated in the lamp.  2V - 5V input, 450mA set by R15.

AL-0002-04D sheet 5 is the small red square near the centre of the PCB below.

The 2V to 3.5V output is suitable for a red LED + series resistor but the brightness will change depending on the state of battery charge and dynamo output.    That brightness can be managed in software by Pulse Width modulating the output alternatively the programmable current in the datasheet below BCR421U Diodes Ltd. will keep the current more stable over the voltage range.

Data-sheet above right; A single red LED will drop 1.7V consequently the LED current will reduce below 2.7V but not so severely as if a simple series resistor were fitted.  In any case, a simple resistor would be fine a 7:1 current changed would be noticed but would not be severe but 2:1 current changed would not be noticed.  BCR421U's current should be programmed by fitting a suitable external resistor between 10mA and 100mA but can be set to a higher current.

LED lights; - see section of Bicycle-hub-dynamo-maintenance-project




I have used this project as a design exercise to learn and formularise myself with some of the STM32 series microcontrollers and to keep myself, up-to-speed in using CADSTAR 18.  I have not got paid for support just now on that circuit and PCB CAD tool because I am not working. For example, there is a feature to click on a net and move promptly to other locations where it is used that I would like to use.


What I have not explored is whether I have chosen the best combinations of peripherals for the functions required, particularly timers.  This is partly why the design options are marked draft, they require software review and some testing of some function blocks.


Technical discussion on the electronics community.st.com/s



Power for a low power wireless long-range device.


For smaller Internet of Things a D-Cell lithium primary cell may last up to a decade,  alternatively, energy harvesting strategy can be used.  Depending on the power required.

A much smaller sized variation of the above design could be developed.   http://www.rotalink.com/ http://www.rotalink.com/our-products/10/ac-motors-optional-gearboxes.html make geared motors with strong ball-bearing bearings.  For example;

  • 4116 synchronous motor (48V or 24V) + 227 gearbox (25:2) with ball bearings.
  • SB2513 bipolar 24V stepper motor + 222 gearbox (~7:1) with ball bearings.

The bearing is strong enough to stand having a pendulum and weight fitted in order to create up to say 1W.

A lower power, power supply based on a higher voltage say 24V 48V  motor based on the circuit AL0002-01? above may be suitable using a low power switch mode power supply.

  • 60V input, 50mA output switch mode power supply such as ADP2360 may be suitable?

Thursday, 28 May 2020

Pandemic cycling and bicycle selection, going forward

Changed; 16/01/2021 - 15/01/2021

You never forget how to ride a bike.

 Thank you, Nicholas Bates (Facebook) for allowing me to use your photo

Nicholas's grandad said his bike was made by Colson - he referred to it as 'The Fairy Bike'.   I have previously heard of a "Fairy cycle" as a general term for a child's first bicycle.  "Hi Andrew.  It's black and white with added colour by me - I did a few for VE day to chart my Grandad from being a lad in the village through to the day he landed on the Normandy beaches and beyond.  The colour somehow made it more real - and more relatable for my own children.  Of course, you can use it for your blog. That'd be fantastic." 

That awful meaningless phrase "Going forward".  This blog intends to discuss different types of bicycle, share sources of tips and recommendations about bicycles and cycling.  The page also discusses changes that might come about as a consequence of the pandemic where people are cycling more but people are also worried about their financial security and the old hated being kept in.  Although the environment is very damaged by human activity species died, the climate changed but even in this short period big improvement in air quality is being enjoyed all over the world.  People are enjoying there own better health.

Check for loose parts and low-pressure tyres, pressing your thumb into the tyre as a quick guide before you start. 
Listen for rattles, rubbing noises and other changes, work out what they are and fix them on your bike.  
Look over your bike before moving off.

I plan to add more bicycle details at the present time this blog page discusses more of the other issues.
Experimental cycle lanes segregation in Tunbridge Wells.  This solution addresses the 
concerns new cyclist have about road safety following the lifting of the national lock-down.  
Update although criticised by car users the temporary plastic bollards also reminded car users not to cross into the lanes.  New cyclist reported they felt safer and personally I find that road better than it was 40 years ago before the new measures.  The bollards are now gone and cats eyes have been fitted.

Tunbridge wells had become very conjested with traffic 30 years ago so that vehicles could not travel through the town but now there are restrictions so that for vehicle's it is the same as 20 years ago but the town is improved by being less congested. The government under covid air quality and health measures have speeded up the measures and in some towns those measures were poorly designed and have been undone.  It is the nature of roads and towns that traffic management has always required planning studying and change continually and that the planners are often not listened to first due to public and interested party pressure.



Riding an adult bike for the first time;
Sit on the saddle don't pedal but scoot along using your feet on the ground. Some small children's bikes don't have pedals and are similar to 18th-century boneshakers in which the rider sits on and scoots the bike along.
  • Avoid dérailleur gears (or ask someone to select a gear for you then don't change gear) they are very distracting,
  • Chose either no gears bike but a hub gear bike is good (select 1st or 2nd gear if it is a three-speed or four-speed hub whilst moving the pedal a little, the bike can be stationary) it is very easy.  
  • A short wheelbase bike is easier to balance at low speed, such as mountain and folding bikes.  Long wheelbase bikes need more space to turn in and you need to be moving faster.
  • The Video; Put the pedal and pedal arms back on the bike (if you removed them) and carry on scooting then transfer your feet and pedal.  Finally set the saddle higher when you feel secure otherwise the bike will be hard to pedal.  Your front brake should be applied just before you apply the rear brake,  you should ensure most of your braking is at the front.
As easy as riding a bike -  Starting and stopping;
  • Simplest lean the bikes over then step over to form a wide triangle seated. Lift your pedal ready to push down whilst pushing off with the other foot. 
  • The video works well with a step-through bike use the pedal to start moving and seat yourself. 
  • Put your outside foot on the pedal scooting off with your inside foot then swinging your leg over. (I have never done this). 
Long wheel base bikes move with less effort but need more of a push off to start. 
  • As easy as falling off a bike so when stopping it is better to put your foot out wide and avoid putting your foot into a pot hole.

Riding a bike again after a long time; 
The next hurdle is to get your cycling strength up - just cycle up and down a road on a quiet day.  Doing no more than 200M then rest then repeat 200M, build up to 1KM over a number of weeks after that progress as you feel fit to. 
  • You should make up your mind in advance and start to manoeuvre early so that if you don't see what is behind you or don't manage to signal others on the road will see what you are doing in plenty of time.   Don't take your hands off the handlebars if to do so would make you unstable, such as the road has a bad surface ahead.  It is always better to push the bike on the pavement across a road junction or around a parked vehicle on a busy road with limited width.
  • Cycling on the pavement is fine if you take care and don't get caught.  The point is to put your foot down and stop or dismount if doing it worries pedestrians.  Cycle slowly on pavement even if you don't see anyone.  Modern policing mostly does not apply rules unless you are do harm.
  • Cyclists need to take their position on the road just the same as a motorbike user would be taught to or they/we will be driven into the kerb, broken glass or knocked off their bike.
Keep looking forward. Looking confident helps you feel confident and makes you safer. Give yourself plenty of space on the road don't cycle close to cars or the curb.

www.cyclingweekly.com  13-ways-increase-average-cycling-speed

Bicycle selection;
  • Differences between types of the bicycle;
    • Short wheelbase bicycle - mountain bikes very noticeably go in and out of all the bumps and take pedalling effort doing that.  You can turn sharply and move and manoeuvre at very low speeds.  A fun bike but more work to peddle and have a range of low to very low-speed gearing.  Some variants have higher speeds as well and others are much better bikes than the one pictured.  (Cheap Mountain bike pictured has [3 x 6] 18 gear dérailleur which provides 8 speeds, the bike is lightweight and sprung will protect the frame). This bike is not suitable for a heavy person.
    • Small wheel unisex, shopper and commuter bicycles - these are also short wheelbase and heavier to pedal if you try to travel at the speeds you would comfortably with a long wheelbase bike.  I guess you can balance easily at a lower speed than a long wheelbase bike so if you have one of those bikes and my guess is that you should not need to or expect to go anywhere quickly.  You can carry lots of shopping and move faster than walking.  [This paragraph needs observation to be checked]
      • The step-thru bicycle pictured (Astra made and imported in about 1985) is a good all-around bicycle.   Particularly because you can mount and dismount easily.  Step-thru bikes are heavier than bikes with a cross-bar.  These bicycles have a longer wheelbase which makes them a lot lighter to pedal.  This Soviet-era high tensile steel frame bike is lighter weight than a conventional steel frame bike at 15.5Kg.
      • Modern town bicycles - these also have greased bearings like the other modern bicycles.  The hub gears make gear changing very easy when stationary or moving so they are not a distraction when cycling on roads.  (The Astra pictured has a thin oil lubricated, 3-speed Sturmey-Archer AW hub made in England which is known for its robustness)
          • Bikes made before the late 1970s (I am advised) have a longer wheelbase makes the bike seem to fly over the bumps rather than go in out of them.  The increased length of the bike is small but the benefit is amazing (it is said).  You see a bump, feel the bump in your arms and have a moment to transfer your weight from the saddle to the pedals.  The flexibility in the Reynolds 531 steel frame in the Lenton pictured also contributes the lightness, smoothness of the ride and as well as giving the bike a very liked "alive" feel and light to pedal.  The wheel hubs are also thin-oil lubricated making these bikes transmission very efficient.  -- Longer Wheelbase mountain bikes are starting to come back again, I am advised.   Others also say bikes made before 1970 are better.
          • Pre-1961 bicycles are the lowest or comparable friction to any modern superbike the crank is also thin-oil lubricated but can be greased.  In addition, they have a long wheelbase which makes these bikes feel wow this bike seems to be helping me go along but hills are hills and spokes also break occasionally;   1946 Raleigh Lenton sports pictured cleaned with linseed oil, patched such as the bottle top for a pedal cap that I had crossed the thread on as a boy.  The low left-hand side lamp that shines into the gutter allows you to see hazards in the kerb when cycling in the dark.
        The gearing on the bike, high tensile steel frame and the long wheel base make the bike lighter, smoother as you go up the gears and go faster.  As if the frame were highly tuned.
          • Modern superbikes -  many people have an old lightweight high tensile steel frame sports bike and a modern lightweight such as a carbon fibre frame bicycle.  These superbikes and old bikes also have low friction ceramic comparable to the old thin-oil lubricated bearings on bikes made before 1961.   The old sports bikes corner much faster but are more wobbly at very low speed than some modern regular bikes. Many people like both many others say the much older bike is lighter to pedal and is better others say the newer bike will be 3-5Km/Hr. faster.  I believe this is true of some bikes made after 1890 and all hub geared bikes 1920 to 1961, these sports bikes are low, long and Raleigh's engineering was excellent during this period. [Comparison a competitive sports cyclist may start the day with a hearty fried breakfast, smoke before competing in the past but that is unlikely now]
          • The rack and the rear and panniers are good and stable.  It is best to avoid carrying any weight in a front basket. Alternatively, a front basket that is mounted so that it does not turn as you steer is more stable, I am advised. 
        • Pedals - metal types are better because they don't slip so easily as rubber pedals.  I have not ridden a bike with toe clips they scare me and I am advised that people do fall over with them.  My father used toe clips and a cycling cape with the Lenton sports pictured.

        • All bicycles are helped a lot by having gears either hub gears or the cheaper dérailleur gears.  Wide spacing gears for general use but medium or closer spacing gears are liked for sporting use so the cyclist can maintain his cadence.  Hub gears cater to both requirements but also allow gears to be changed when the bicycle is stationary.  Both British made elliptical gears and dérailleur gears have comparable efficiency but the hub gear is much more robust.  (Pictured; Bike stand so that dérailleur gears can be adjusted made from a second-hand car bike rack)
          • Some modern mountain bicycles have the gears in the crank (bottom bracket) with helical cut cogs for quietness and efficiency otherwise these are not new and here is a link to a 1937 Helvetica bicycle.  All the power is transferred by cogs to a lay-shaft then back the main shaft using cogs.  By comparison, only a fraction of the power is carried through the cogs in bicycle elliptical gears achieving good efficiency.   There have been a number of bottom bracket elliptical gears such as Dana USA but I don't know of a modern equivalent?  These are mostly heavier, less robust or less efficient than a British made Sturmey-Archer type hub gears. 
          • Generally, derailleur gears are close or medium spaced but wide spacing achieved by having many gears (Up to about 15% spacing compared to an AW 3-speed hub which has 33% spacing).  But it is possible to have widely-spaced derailleur gears but with poorer shifting.  Note derailleur gears are also called Disraeli gears.
        • Where the modern aluminium alloy or carbon fibre bicycles score is that they are lighter to carry and take on a train for example.  But only steel or high tensile steel and brazed lapped joint frame bikes have a reputation for not cracking or corroding.
        • Where most modern bikes score is they require less maintenance but the cost is that they don't last long.  They cost more to purchase or are so cheap and poorly made that they disappoint the cyclist.  Many new bicycles get very little use in any case. 
        I don't have the personal experience of many bicycle types but I have reference such as the video shows you how to set up a bikes Rod and Stirrup brakes.

        I recommend the amateur videos made by Velocipedium on YouTube.  They take care to show you how to maintain and enjoy a bicycle.  Even if you are not a starter do watch the videos anyway.  I had a bike with Rod and Stirrup brakes when I was a boy and I have replaced the brake blocks on the bike in the 1960s, I don't think you could still buy just the rubber part?  I have also bent calliper slightly as shown on my Lenton Sports cable and calliper type brakes to align the brake block that had always been slightly out of alignment tending to ware one block one end more than the other.

        Covid-19 a cartoon below circulating at the time that the lock-down started to be lifted in May 2020;

        Picture left Southborough 4th July 2020; 
        First day that cafes and pubs can serve sit down, eat and drink food since 20th March.

        It looks like Government thought the NHS was fine despite a decade of austerity then people in government got ill themselves and got scared.   The less important ill were kept out of hospitals sent home in case the more important people got ill.  Now people can visit a hospital but many have been scared or are staying away.
        By comparison Germany and northern parts of Europe had capacity in their health systems but took a varying degree of cautious approach and have coped better.  Sweden trusted their people but brought in measures as they became necessary in a measured way.  Sweden and all these countries will probably come through with the best outcome, that is that the people feeling most satisfied the best was done.

        USA's health systems only look after those who can pay and ill people who don't have money would die anyway.  Of cause, southern and northern states are quite different and each state has there own policies.

        The cartoon expresses the sort of concerns people have on the lifting of locked-down.  The government is managing the lifting of lock-down by manipulation and retraction thereby creating annoyance but as required slower return to normal or a new normal.  Fortunately "Social distancing" is not occurring but people are talking to each other and enjoying there families at a safe distance.

        Picture left; Barnett's Wood Nature Reserve, April to July 2020
        People enjoying nature, home cooking, cycling, social media, their children instead of work, cafes, consumption and shopping. 

        Momentum Labour at the last General Election, in December 2019, offered a path of social responsibility.  The government offered to promote peace in the world, the environment and toward each other.  Different from both New Labour and Old Labour, in not promoting self-interest.  I was very surprised that Momentum Labour captured so much support.  Momentum Labour's modernised 1945 Manifesto was very inspiring and I expect that Coronavirus would have been handled differently.

        The Iconic CND symbol - Designed for the Campaign for Nuclear Disarmament can 
        be used freely and is made up of the semaphore for "N" and "D" (Nuclear, Disarm).

        The Victorians built sanitation system in order to protect the rich from catching a disease from the poor.  Cricket and sport encouraged for the health of all.  But I doubt that the vastly rich will impose health, better food, air, cycling on us, this time but in order to save the planet from the adverse consequences of human activity. 

        Government promotes cleaner air, better health and bicycling
        There are others who promote zero movement and zero international transport and forced isolation China style, I believe?  
        And everyone is sceptical of business interest, Gates foundation in the 3rd world and policies of population reduction.

        I have had enough of being playing by the media (called politics), people set against each other - I'm going to ride a bike;

        Time will tell but I hope people do not become reliant on big pharma and disinfectant for a sort of living instead I wish we all learn to like good health and much less waste as a way of life.  There be less reliance on factory-farmed meat and more plant-based food.  A high correlation between poor air quality (such as in cities) and Covid-19 fatalities but vehicle emissions and crashes is the major cost to the National Health Service.  I hope people change their minds about cars.

        During this Covid-19 pandemic, people have been cycling more and enjoying better health due to the better air quality whilst road traffic has been greatly reduced.  Poor air quality in cities has been strongly linked too poor respiratory health long before the clean air act of 1956 and poorer survival to Covid-19.

        More Cycling
        This Astra bike (pictured above), which I purchased locally cheaply,  now has lights and reflectors.  It also has new tyres, all re-greased and running nicely.  The bike is easy to maintain and fully service and the bikes cost so far have been about £90.  The Astra imported from Czechoslovakia or Yugoslavia badged England and sold in the 1985 (the date on the Sturmey-Archer, England, 3-speed hub) The rims are German and the frame is a nice lightweight Soviet high tensile strength steel. [this paragraph to be replaced by other bikes]

        A rose, The De-La-Warr Pavillion, Bexhill-on-Sea, East Sussex.  Built by the Socialist Town Mayor, Earl De-La-Warr in 1935
        This building is one of the most beautiful architecture anywhere.  I can not be captured on film and I have not seen a picture
        that captures the impression that the building has now or had before its renovation.

        The pictures above were taken on a Canon AE1, using Fuji Slide film.  The best amateur camera of its time, 1976.

        The pleasure of owning an old bicycle;

        Many people run an old bicycle those bikes were made to work hard for a very long time and must be maintained regularly.  This bike is has been nicely kept and has a secret conversion to E-bike.  A lot of bikes run and look lovely just as they are but for being maintained and the frame cleaned with an oily rag or linseed oil.  Other bikes are brought back to almost new with detail restored and artisan finishes as well.

        Raleigh bicycle maker of Britain was once the biggest manufactured of bicycles in the world, representing the best in engineering.  British engineering, textiles and film industry were for a long time second to none.  Statutes to war leaders and heroes, slaver traders, bankers and the city of London are good representations of the country.  Perhaps the most prominently placed statue should be a heron to mark 125 years (1887-2012) that Raleigh existed in Britain and looking forward to cycling, walking, cleaner air, better health and kindness towards each other and harmony with nature.

        Like so many things The Mallard, Pacific A4 class locomotive distinctively beautiful because of its typically British understated design style by the British engineer Sir Nigel Gresley.  Along with the Flying Scotsman, A3 class were the fastest surface public transport in the world.  Although by the 1920s and '30s trains could now be made to be very reliable, but they were not efficient or clean.  At this time bicycles were as good as they were ever going to get.


        Electric trains started to be introduced on a substantial scale in the 1920s in South East England.  This region has the highest density rail network in the UK.  After World War two faster cleaner diesel and electric trains started to introduced all over the country.  Electrification of the rail network is still ongoing. 

        Old lessons have to be relearned by a subsequent generation of engineers; There are many subtle design features in machines that are not apparent until the designers have left.  A change to a design makes it apparent that there were important design features.  Each telephone made until about 1985 had a low pitch bell and each bell had a different pitch.  The low pitch telephone bell in an office made it easy to tell where the phone is and the different pitch if it was your phone.  The same mistake was made when the two-tone ambulance klaxon was replaced in the 1980's.  I suppose it is possible that the shortening of bicycles wheelbase that occurred in the 1970's, making bikes more work to pedal happened by accident but more likely happened with arguments where the arts farts case won?

        Newer hub gear designs;

        The Rohloff hub weighs 1.7Kg, British made Sturmey-Archer Hub gears weigh 1 to 1.4Kg but most hub gears weigh 1 to 2Kg.  But despite the long power train higher efficiency has been measured but other studies don't rate this hub's efficency highly.  It has 14 speeds but as with bicycle elliptical gears, only a percentage of the power is carried through the meshing cogs, which is why bicycle elliptical gears are efficient.  The spacing between speeds (13.6%) is similar to a medium ratio Sturmey-Archer hub.  None of the speeds are high efficiency but also the high ratios are surprisingly good - on paper.  By comparison, the vintage Sturmey-Archer FW is highly efficient in Normal (3 of 4), when its most apreciated and Bottom the least efficient highest ratio is not heavy when hill climbing when the efficenty is least noticed.

        Very typically German engineering design.  The design is an assembly of simpler functions blocks built up.  The first part of the video shows a Sturmey-Archer hub its design much more like a complex single function block where parts slide and move changing many things as they move.   The Sturmey-Archer design is typical of British design being elegant robust and cost-effective.  The design is simpler also because of the limitations of the time 1902 but in 1973 the s7, 7-speed hub used a rotating operating rod in which cams operate a different section of the hub was introduced.

        The advantage that fewer speeds is that the cable operation is reliable if higher or lower speeds were required with the old bikes you can unscrew the large sprocket and change the chain (see picture left). A complaint about modern bikes is that not all gear work and some bikes are difficult to set up.  The Rohloff Speed hub above resolves the indexing issue by placing the indexing mechanism within the hub.

        Pictures - The Riley 9 car (1930s) was fitted with a Wilson preselector gearbox.  This is an elliptical gear gearbox with friction clutches that operate selectively on the ring gears.  Otherwise, this type of gearbox is different from a bicycle gear hub having just one speed for each elliptical gear.  The gear oil should be changed every 3,000 miles but the oil-bathed friction bands need re-lining after at least 160,000 miles.

        The Wilson gearbox is very heavy to operate due to the effort operating the clutches but more modern power assited preselector gearboxes are lighter to operate.

        Willson preselector gearbox gear change can be operated stationary, moving or powered.  I have seen a video of bicycle gearing that does that based on elliptical gears Constantly variable planetary but the power direction is reversed and it is unlikely to be efficient.  Daff/Volvo varomatic and moblette moped V-belt drive automatic gearing are fairly efficient and this variation called Inception Drive probably is efficient.  With an additional no-slip between speeds feature added using freewheel mechanism on the lowest speed, perhaps another bicycle crank gear could be developed based on a Wilson pre-selector with friction bands.  This solution is likely to be big and heavy to operate.  The variable speed elliptical gear hub patented 118 years is very good and the variants developed by 1960 covered most things required.

        During the Coronavirus lock-down 2020 there was a big reduction in vehicle movements  I first noticed that my breathing improved between mid-March to the end of May when the traffic came back on the roads.  Also that my Tinnitus diminished greatly and quickly when I stopped drinking coffee; https://www.tinnitus.org.uk

        I hope for more kindness in the world.  UN Secretary-General's Appeal for Global Ceasefire during this pandemic;

        Cycling is a good exercise in that you can work hard then rest on the flat, particularly so on a 4-speed hub gear bike made before 1961.  You are not pounding sore feet and ankles on the ground.   In this respect, a bike that is at least 45 years old or is one of the newer long wheelbase bikes, with ceramic bearings coming is probably better.  You can still get off and push and also lift the bike onto a train.  Also, you tend to have higher peaks of effort than walking or e-biking which is good for reducing high blood pressure,  the Doctor tells me.

        I recommend you understand your bicycle so, therefore, carry out your own maintenance.   Cars, bikes and motorbikes all used to be easily maintainable - I have posted some pictures of some 1930s to 1950s publications below.  These are very comprehensive some have a cover price some were available on request such as Car Care from CC Wakefield Ltd. London the manufactures of Castrol oils.  Two colour lubrication diagrams for any car on were also available on request, for example.


        Envisioning a post-Covid-19 transport landscape: surface travel
        Prof John Whitelegg, Liverpool John Moores University, looks at how The UK can transition to a sustainable transport system by building on some of the changes pursued during the Covid-19 ‘lockdown’. In the first of two blogs, he focuses on surface travel. 

        The carbon footprint of British military spending is a level is similar to the emissions produced by over six million average UK cars;

        The military-industrial complex becomes a useless liability in the pandemic;

        If we don't look after the natural environment we will get unwell

        Sweden, light touch Coronavirus measures - May 2020

        Kent County Council - Learn to ride, Cycle training for children or adult;

        Department of Transport - Bikeabilty

        Cyclecraft by John Franklin (ISBN: 978-0-11-708243-4) - has been recommended.

        Active Travel - package of funding announced by Government during the Covid-19 pandemic;

        Transport and environment after the COVID lockdown
        To Tunbridge Wells Borough Council - requires login

        The Highway Code;

        The bicycling museums all over the world here are a few;

        Facebook - Disraeli Gears

        Facebook - Vintage bicycles UK

        Facebook - Raleigh Lenton and all the derivatives

        Facebook - Vintage Raleigh Bikes

        Facebook - The Raleigh Roadster Club. (Incorporating the Raleigh Superbe Owners Club)

        There are very many other cycling groups on Facebook but many bicycle brands were owned by Raleigh which in turn merged with Tube Investments.  Many of the bicycle groups on Facebook have document sections with good descriptions on how to do things.

        Picture; Brokes Wood - Informal BMX bike track
        now closed to the public by the present landowner.
        Reference given to me for wide the widest dérailleur you will find are modern
        1x systems. E.g. sram 10-50 12 speed cassette. This has a range of 500% with a spacing of about 15% between speeds.

        Sometimes it is necessary to buy a specialist tool in that case here is a US company with some useful tools (I have not used this company);

        Video right; A press tool like the one shown is also the best way to remove and put back the cotter pin. It is not just needed for a bike in poor condition. I've used a vice and a socket or ring spanner successfully. Don't hammer a cotter pin or tighten the nut too much but use the press because the metal is soft.

        More Bike Advice;
        Bike parts; Some bike shops can advise and supply but if you know what you want then
        SJS cycles supply parts efficiently.

        I am also told Laura Wakefield can supply parts that are not made anymore.
        Many people including can be found on many of the Facebook bike groups who paint, restore, sells head badges and hub-gear parts.  One of those members for example also dates bikes made by Raleigh.

        Other links;
        Story of my Lenton sports bicycle + General maintenance advice, technical and history;

        Dynamo maintenance and operation in theory (untested)