Wednesday, 2 November 2022

The threat of limited nuclear war in Europe conflict and misunderstanding are cultivated

 Created; 02-11-2022, changed; 25-11-2022, 26-11-2022

The threat of limited nuclear war in Europe has returned, it never went away but we could instead allow and encourage arms conversion to peaceful uses.  Teach children to resolve their conflicts and cultivate peace between our own and the people of the world.  Celebrate good things such as our health and social services and fund them better so they have slack in them rather than be one of the cheaper in the first world.  Rediscover our ability to make and enjoy things made last.  Appreciate the, by chance, and for a long time, the planet has been right for life to develop eventually symbiotic relationships so that life now more and more but just about keeps the planet's environment stable for life.  But it seems more misunderstanding is being sown between people, than was the case 50 years ago, people are more remote from war, that is World Wars 1 and 2 are a long time ago now. They were different to modern wars in that a lot of people died or the war was conducted on home grounds against all of us.  American nuclear weapons in Europe may be described as for Limited War, Strategic, Theatre, or Tactical but are unlikely to be limited to just UK and Europe nuclear missiles being smaller is misleading they are still very big.  Nuclear winter would more easily be the outcome than thought in the 1980s and would be triggered by 40 warheads which could be launched by one missile such as from a British nuclear submarine by consent of the USA. 

Little tolerance of diversity by us may mean the final demise of soviet Russia imminently?

In a conventional sense US nuclear weapon since the 1980s based in places like Germany have no counter reply to possibility by the USSR.  Early in the 1980s Perishing 2 was deployed in Germany and had a flight time of just five minutes to their targets in the USSR.  USSR's reply would take 20 minutes to land in the USA and blow up its targets, the old ICBMs USSR used to have taken a number of hours to fuel first unlike the sold fuel ICBMs USA had.  Similarly, Cruise missiles would fly for a number of hours undetected and then have a very high chance, as all the other new US weapons had, of destroying nuclear missile silos that had not already launched missiles.  USSR also developed SS20 missiles similar to cruise missiles, but these could not retaliate against the USA but only against us in Europe and the UK but with very high accuracy also similarly.  A victory for the peace movement was that Cruise missiles were withdrawn but that was a hollow victory, parts were reused, and many more mobile ground-launched missiles were deployed in the 1990s.  It is still very silly logic, particularly to push Russian Federation that its government seems with good reason to be nervous, with 14 countries with US-controlled weaponry pointing at it.   Arms reduction did occur during the 1990s although new weapons were then and are now being brought to Europe over the past decade.

 Soviet magazine cartoon about 1956 of the USSR's military generals eating excessively at the Soviet canteen table whilst all the other tables of government services, health etc. starve.

NATO was formed in 1949 but the USSR was refused entry and they subsequently formed the Warsaw Pact in 1955. 

In the 1950s USA had the only then overwhelming superiority using B52 bombers armed with nuclear warheads but USSR developed some Inter Continental Ballistic Missiles and had superior rocket technology.  At that time the nuclear warheads were very big the tests did a lot of damage which was not all settled and compensated for, the nuclear winter was not known about although electromagnetic pulse was understood and anecdote says the USSR had prepared for it by using valve technology which tends to spark but not break (somewhat capacitors and resistors also have their voltage limits).  In 1963 agreement was made to stop testing nuclear bombs in the atmosphere by USA and USSR,  this of cause does not resolve the question of why every other country should not have nuclear weapons to make them also so-called safe?  A comprehensive test ban treaty never came into force but no major country has carried out nuclear bomb tests since the 1990s.  Finally, Nuclear weapons became illegal in January 2021.  But countries have not complied with but have reinterpreted these international laws, there had been many steps leading to this such as an international judgement in 2000 by World court judges that could not foresee a legal use of nuclear weapons.  No First Use, A campaign to have states state that they will not use nuclear weapons first has been running for many decades.

My personal view which is not widely said or admitted to is that US President Trump (2017-2021) held the USA's military back from interference using negotiation and meeting with leaders instead (Such as Kim Jong-un of North Korea, and Vladimir Putin of Russia).  His period of less interference by the USA in the world allowed important international peace treaties to also be signed.  The problem is Donald Trump's vulgar and offensive manner and his aggressive business reputation has been used against him by those whose intentions are worse.

President Jimmy Carter is widely recognised as kind and a peace-maker in the world but nuclear weapons were deployed in Europe for war under his feet (whilst he was in office).  Similarly, President Barak Obama promised much but he seemed to have been too nice despite getting a Nobel prize proved to be ineffective.  Princess Dianna's campaign to ban landmines was effective,  Olof Palme the former Swedish Prime Minister's commission to making a nuclear-free zone in Europe the proposal was well supported by other countries but got little media coverage.  Various Generals around the world against nuclear weapons including Earl Mount Batten had switched from plotting against the Labour government to being vehemently against nuclear weapons. 

People are losing the ability to talk, debate and listen;
In one of the big shops in Tunbridge Wells the guy on the till was playing a game involving names of fruit and veg via the shop's internal radio communication system, this is fine, there are many well-educated people being creative outside of work.   I find that all till operators are polite, will spend a momentary time of day to comment and assist with your buying, and draw people to their till consequently.  The automatic machines don't do that, and I don't like them, but my mum used to like them, if you re-scan enough times the machine beeps, a manager runs about, and my mum then goes to the till and complains about the machine not working leaving the store with a big naughty grin.

Social skills, working and playing in cooperation are important, but I see less and less of them.  The Labour Party, and the Unions, used to make a point of teaching parliamentary rules of order, but I observe this is much less so everywhere.  I get the impression that the Parliamentary Conservative government are in a bad state with very public argument, but this makes news and the media of cause like to promote that regardless of how harmful it is, and counter to any duty to scrutinise and improve government.  I do not think the Labour Party is in a healthy state it lets itself be bounced into expelling people when they quote historical truths and support oppressed people in their own homelands such as Palestine.  The leaderships of significant political parties self-sensor more strictly than if they were challenged by reasoned argument.  By comparison, United States American citizens (when I visited New York) use British Roberts Rules of Order widely and these rule books can be purchased easily. 

People use phones and become hurt by discussion and debate rather than parting as friends who don't agree.  Girls and boys won't stop and ask a stranger for directions to a place they can't find, was an example I was given.  The teenager can get stressed about doing so.  Some of this is down to parental pressure on teaching.  Schools should give a general education, but they don't, one of the problems identified in the 1980s when the Campaign for Nuclear Disarmament advocated peace studies, teaching children to work and play and how to resolve conflict with each other.  Then the students need to be helped towards what interests them and gaining a general education but less what is expected of them so that they don't fail regardless of their prosperity in due cause.  I started work in 1975 when more so if you could do the job, you got the job and I have been an electronics design engineer qualified with 7 CSE's (GCSE's), and BTEC HND learnt day release at a technical college.  I could have left college my course tutor advised and gone to university.
The problem with teenage children being too shy to ask directions I was told of.   I observe that different classes and wealthy people behave differently plus children are not necessarily brought up with a diversity of those that have good or poor health, ability or wealth.  This is a decisive way of bringing up and educating children.
Super regenerative radio.  Many of the home-constructed radios made during the 1920s were similar to this design 
but used diode and triode valves.  Point contact diodes though invented were not being manufactured at this time. 
The transistor amplifies the radio frequency and the regeneration is set so that the transistor nearly oscillates, increasing the 
amplification called positive feedback.  The diodes rectify the radio signal this is the detector that demodulates the signal 
to audio which is also amplified by the transistor and also adds more positive feedback.  L1 filters out the radio signal and 
carry's the audio signal to the headphones.  The circuit works well without the reaction C2 which I did not fit considering 
there was enough positive feedback when I constructed the circuit in about 1970 using salvaged parts from radios, an 
OC44 transistor and diodes were similar to OA91.  The circuit is more complicated than it looks for example the choice 
of obsolete germanium parts makes the detector more sensitive.  The positive feedback makes the radio more selective so 
you can hear one station rather than a clutter of many radio stations.  An Engineers Perspective - Engineering - Electronics

I have worked for small companies mostly, but I have worked for big companies and seen very poor design work at job interviews with quite prestigious companies that employ the top marked students from universities.  They also need the boys and girls who made and disassembled things from perhaps before they went to school and know how to make things work.  The understanding of electromagnetic fields which is to do with radio interference is very important and can be missing, if the circuit simply does the job without additional components and a good PCB layout, it won't do that job well.  I have also worked for a big German-owned company it was an efficient and nice company to work for and different to an English company.  I have also worked for a short time for a company that could not design new equipment any more and a few bullies had settled in to resist change that would have exposed those bullies' incompetence.

Teachers, professionals, and old guys like me that end up fixing or making things right in the first place need to be learnt from (either listen to or watch what they do) but the teacher be permitted to teach a general education the student then knows how to ask and learn for the rest of there lives.  

Consequently, the risk of war is exasperated, and the first world has exploited this to its short-term advantage;
The USA have stacked nuclear weapons, with UK's consent, ready for war here since the Windscale fire in 1957, at that time it was not known if this nuclear reaction could be stopped.  The Soviet Union or The Russian Federation have not used nuclear or dirty nuclear weapons, and what they have might now be old technology.  The Soviet Union have always pulled back from the brink this has given us a very false sense of security and people say it won't happen and at the same time the same people used to say in the 1970s that Russian tanks will roll across Europe.  The build-up by the USA of warheads in Europe pointing at Russia is intensive, they no doubt try to ensure war is provoked but conducted away from the USA.  I do not know if the UK will push the nuclear button first, we already breaks international law by having nuclear weapons and the British defence minister boasted that we have a 3-1 superiority when the war in Ukraine started.  That is on top of the great difference in the culture I discuss above, and the lack of appreciation of the consequences of war and nuclear winter, compared to when I was a boy.

I don't see or trust people to vote for sensible government the BBC and the other media lead enough people badly.  There were periods in the 1960s and under Mrs Thatcher and Mr Gorbachev in the 1980s eventually governments did reduce the threat of nuclear war.  Following the fall of the Soviet Union Boris Yeltsin (1991-1999) probably gave away too much leaving Russians isolated, bullied and strategically important land outside of the Soviet Union and did not negotiate the former Soviet countries be no weapons zones.  They probably had no options to negotiate with and the country fell into corruption making a lot of friends in the USA, UK and other places.  The following Russian Federation Government Vladimir Putin (2000 to present) is much more nervous, understandably, but stands up against the anarchy following the fall of the USSR, hence his stronger-sounding words always.  I have not seen a British government working and for a long time Conservative governments look very broken, the rules of debate are not used and the division apparent consequently is evidently what the people vote for.

by comparison, a Soviet girl wrote to President Reagan, but her letter was dismissed, and a visit was not reciprocated by 
the USA.  During the 1980s peace groups were promoting writing to people and a lot of correspondence and visits 
occurred between the USA, USSR, UK and other countries.  It turned out that Mrs Thatcher was very popular in the 
USSR.  Perestroika and Glasnost were initiated under Presidents Andropov and Gorbachov were lightening up perhaps 
too quickly, but the soviet people wanted more even sooner.  The relationship between the USA, USSR and the allies 
was good during World War 2 and again under presidents Kennedy and Krushchev in the 1960s. 

Evidently, if governments don't govern then military interests will profit to our detriment.  The Ukraine war is about destroying the Russian Federation Government, evidently, a continuation of policy against most other countries not conforming to capitalist systems.  Some would have continued after Germany was defeated to turn on our big ally the USSR.  Animosity was cultivated against the USSR over the next three years after the end of WW2 and they were called the enemy instead.  The US military tricked USSR into excessive military expense.  It has always been necessary for the government to hold the vested interests back in doing that, but President Biden is not doing it sadly for the environment, and people of Europe in and surrounding the conflict.  I don't think there is any deep thinking, perhaps only that something seems to turn up and we survive, or that a bit of nuclear winter and population reduction by war will postpone the problem would be, okay?  The first model that worked was TTAPS in 1983, which warned of nuclear winter but also led to much better modelling of climate change, and predicted heating rather than another ice age coming, and this is due to man-made pollution.  The pollution is poisonous and kills many more people than road crashes and causes a high proportion of health services costs, but the warnings are needed and need to be headed more seriously.

Dad's Army TV series we laughed with them, not at them.  -  That was an important point, they made mistakes but we think of the real home guard, all the same, doing their best.  That culture of being in it together was cultivated and remained somewhat true until 1980.

The myth of a war conducted under British rules of gentlemanly behaviour;
Is a myth, whistleblowers are locked up, drones kill people remotely, and so-called conventional weapons are very destructive.  So how else would you train a soldier without, making him hate, fear, be very on edge and devalue people, that is, damaging him to make him harm someone he has no reason to dislike?  "total war", had been true prior to WW2.  British used poison, bacteria and torture in their camps in the 19th century at least as much as any other country.  World War two was somewhat an exception, prisoners were taken rather than killed, and officers got treated well in prison camps but German prisoners worked on farms with one token Tommy (British soldier to stop dozens of them from running away).   On the other hand, the Russians had been known for them fighting to their own death for their country, they had been surrounded by a dozen or so adverse countries for centuries and still are.

It seems that the "civilised" support the sycophants and bullies.  But those sycophants and bullies infiltrate everywhere if you do not stand up to them. 

Don't trust media they sow anger and conflict;
There are better documentaries than those on TV shows designed to inform instead, TV and radio mix both so mislead.  By comparison, TV broadcasts are designed to annoy or entertain but do not inform necessarily.  Rather more like The World About Us series that started when BBC2 first started.  These are available on the web such as TED talks or video-hosting sites, although I do not think many of The World About Us series which brought us films of things now gone, still exist; 

Life on Earth has evolved to manage the temperature with greater stability despite the sun being 30% hotter than when life on earth started about 3.8 billion years ago.  Fungi moved to the land and animals developed oxygen stabilised.  See; The Entire History of the Earth on explains how simpler life forms may have started more widely and briefly possibly as nearby as Mars.  Life has never been created in a laboratory for example.  The Gaia system we have and life that has advanced so far as it has, might be unique in our Milky Way galaxy, is the view of some scientists.  Life on Earth will revert to simpler forms, go dormant and peter out slowly over the next two billion years as the water is lost.  Douglas Adams said the complex life we have on Earth could be unique in the Universe. 

The mushroom network underground is like the brain but connects over a large distance of the mushroom that can be a number of square kilometres.  The peaceful nature of people taking psychotropic mushrooms or plants makes it easier for the police to deal with than drunk people, but those passive people don't fight wars willingly. 

Mrs May before becoming Prime Minister (2016-2019) coined the criticism of her own party, the Nasty Party, I think she tried like those before to make changes, but the populist pressure keeps it as it is if you want to get elected.  By comparison, the great orator Michael Foot (1913-2010) said in parliament to look after the little people because the big ones can look after themselves. 

Harold Wilson did not lead a left-wing Labour government (1974-1976) by the standards of the 1970s.  The Government policies were fairly similar to the preceding Ted Heath Conservative government (1970-74).  Most governments were not against organised labour although the media and the establishment were.  There are theories about leading people who effectively promoted peace but have been killed.  The BBC documentary from 2006, coup planned against the Harold Wilson government concluded the establishment believed its own propaganda though it was quite a ridiculous  Wikipedia

The cruise missiles promotional video show on BBC TV in 1979 woke a considerable number
of us up into worrying that the US military was walking us all into Nuclear war in Europe.  The 
peace camps at Greenham Common were formed, many many specialists, professional and 
ordinary groups organised at a local level and demonstrated.  The video of the cruise missile 
vehicle is out and ready to go. - it only use is to be used first despite what the video says.

As if to get a left-leaning green government that would limit war you have to vote Republican in the USA or Conservative in the UK.  But you then don't get what you wanted but what you voted for.   That is you rarely get the opportunity to vote for what you wanted approximately, and you won't get that by trying to second guess to counter the media spin.  It is what the consensus wants after informed discussion rather than the consensus suggested by the media interpose between discussion and mislead and misinform. 

That Mrs thatcher was allowed to do what less than a decade earlier the establishment and MI5 had acted to prevent although no such peace between different systems was being discussed.  It should have been thought rather than buying the Cheverlee upgrade to Polaris submarine to be delivered obsolete to be commissioned as the trident submarine delivered.
    • The military doesn't have to report their emissions but chose to seriously under-report them.  Recent studies find US military pollution is more than there most polluting other countries and UK military pollution is more than many of the more polluting countries.

Discussion points;
  • I understand that despite what is commonly said large wind turbines have a much more constant supply of wind at the greater height they work.  In addition, the airflow is more uniform, so the horizontal usually three-blade types are more efficient.  But they don't work in a cyclone.  HVDC grids are expensive and technically difficult but very efficient and one million-volt DC grids can transport electricity across a continent.  But we are not going to limit temperature rise to 1.5'C so the Earth will get hotter, the sea will rise, and fewer of the people and places that feed and supply the first world will survive. 
  • If basic income or other means people had enough money to buy and keep well-made things, then the environmental pressure caused by wastage being profitable could be reduced. This is how things were made until 1960 which seems to be the point where this changed, Raleigh Bicycles were not guaranteed forever anymore or made to last 100 years.

1946 Lenton sports, the bike is light, light to pedal, fast and very comfortable compared to modern bicycles.  Typical of 
many things textiles such as coats made to last a lifetime were still made in 1975 when I purchased my Burtons made-to-
measure overcoat, it was still in good order but for a loose button after 30 years of use and I was too big for it.  My 1974 
Timex watch was very accurate and robust and also lasted 30 years.  An Engineers Perspective: Lenton Sports bicycle
These things were not cheap but were nicer the longer they were used proving themselves over and over again.
The Peugeot Course sports bicycle made about 2000 is a more expensive bike to run, parts wear quickly but spares are 
available.  Modifications such as wider tires and a straight handlebar rather than the original drop handlebar both 
changes have made the bike very light to pedal and a lot less uncomfortable.   In other words, there are still options 
 other than buying veteran or vintage bike, but it now costs more to live in a greener way than it did in the past. 
People have used their buying power to make that repair less worthwhile.

Evidently, the English-speaking world is more aggressive, scared of and harmful towards each other and harmful to the living systems of the planet.  Although the climate is much more stable than it was 420 million years ago when life first moved on land and more stable than billions of years earlier when Gaia systems had not formed but the chance went the right way for the Earth for life to form and maintain since the formation of the Earth 4.5 billion years ago.

Modern human's effect on the living planet.

Popular Junk;
Designed to wear out or become obsolete seemed to start in 1960.  The era was changing.

Sinclair Scientific - still works was made in the late 1970s but they never worked well.

Sinclair never said what they made was junk whereas Gerald Ratner said his jewellery was crap and his jewellery chain of shops went out of business soon after.  Language has more force than physical feeling and seeing for ourselves. The term post-modernism is the term for this.  Shops preferred selling Sinclair over Commodore calculators because the former was more profitable, and Sinclair supported the product well.  The American product was and still is very much nicer, very clear reliable keypad so you can type a formula without looking at the display and then press = and the answer is right.  My SR9190R is very reliable and comprehensive some of the statistical functions are complex with the different parts of the answer placed in different memories.  The earlier models had a larger vacuum fluorescent display.  American, European and other countries have maintained higher expectations for what they buy generally, and their people keep them longer.

The kit matchbox-size radio and Sinclair's first four-function calculator were probably okay but after that, it was very well-marketed junk.  As teenagers and young men, we talked about it and bought junk out of curiosity.  I have a Sinclair scientific calculator unusually it probably still works but never worked reliably.  So, I bought a proper Commodore scientific calculator for college which is still a very nice calculator 45 years later.

Sinclair Scientific - Reverse polish notation some said, as a joke, to put the answer in before the question but the + key was Enter and then the Function key served as equals.  If a trig function took a long time, it was wrong, and that was explained in the little manual with the Sinclair Scientific.  Sinclair captured the era of buying junk playing with it and discarding it soon after.  Sadly, how bikes changed after the 1970s, clothes made to wear out and PCs with operating systems and software that wear out get unnecessarily bloated and slower.

Commodore Scientific calculator SR9190 of about 1977, at the present time, although the battery has no capacity 
the calculator is in perfect working order.  The keys have a particularly nice tactile click, so you don't need to 
look at the screen whilst you enter a formula.  I have hardly used the calculator since I left college though.

There are choices people have the buying power we need to choose to re-use, repair, and buy better.  We could choose to look after the people who have less choice due to poverty.   Restore some of the duties service providers, Financial service providers and others had once to provide honest advice - it seems that experience is very mixed on those things.  Use Tourist Information they check to a minimum standard before advising the booking fee is well worthwhile.


These changes to a sort of maturing after the Empire, have not occurred or were stopped.  But the interest is popular and occurred with the rise of the Momentum Labour and Green Party’s 2015 - 2019. This requires inspiration as happened and was led by people as much as the government during and after World War 2.  So, what does Russia have the first world wants more cheaply than by using trade? Perhaps it is nuclear materials?  Following the current dash for nuclear once again.

Momentum really meant what it said, and Jeremy Corbyn live the ways he campaigned for this drew out a lot of hypocrisy in people of a reasonable liberal nature who it turned out did not want those things after all.  The lie people spin was exposed.  Some pretend reasonableness when it comes apparent that they can't face saying they want to keep their cars, while others in the world have no choice but to walk and bike and only consume per person as much as running a fridge.  People have rebuilt their lies or some will have changed.
Criticism of nuclear power - for SGR 2022

My father reminded me that people used to be proud of being employed by a public or nationalised industry in the 1960s.  But the media criticism has been intensely against anything publicly run efficiently or not.

Dale Vince of Ecotricity supported Momentum Labour and the nationalisation of the energy industries.  If influential people support it, it will work.  If ordinary people support it we won’t hear much about it, unfortunately.

It seems that the British love having foreign companies run services so they can bash them particularly if they do what they do well rather than badly.  I observed this, particularly when Connex Southeast ran the trains in my region, they were good but bashed publicly for being French but their response to complaints was buried in lots of erroneous complaints.  It seems whoever runs a service has to manage the media and spin its story well rather than do its job well.  This is the bigger issue; I think it is a major factor of what is called Post Modernism - words matter more than action.

Bruce Kent dies in early June 2022;
Where CND scored over other protests was not to be divided.  That is non-violent-direct-action as well as those who did not want to do that were all supportive.  The CND never endorsed violence racism etc. Bruce Kent visited Greenham Common and other peace camps and cut wire symbolically to be arrested but also to emphasise the point as leader of the Campaign for Nuclear Disarmament.

In 1979 Wireless World (once the magazine of the Marconi company) published a very powerful editorial Microchip and Mega Deaths, Letters came in for about 18 months one of those came from Bruce Kent on behalf of CND.  This inspired many of us and Electronics for Peace was formed, and many other professional groups also formed at this time.  Some of these became;

I think the green movements thought that protest was easy but made bad divisive mistakes the CND had not made there were considerable pressures the CND office was overloaded with work and doing silly things but in 1980 membership was doubling every few months I think going past 500,000 from perhaps 10,000 members in a few years.

The risk to the state is that peace could break out.
  • 10,000s of the missionaries went native in past centuries when they found things better where they were and did not come home. We can choose our future better rather than let air quality for example stay poor.”

Just for a brief while during WW2 ordinary people were billeted together, isolated from the media, and there was a mutual bond between the classes for survival so that is when that control was broken over the people. Gradually the people gave that control of their lives away.  The state would not have another war on home grounds again.

A lesson from COVID;
The good things that came out of this have been the time people had with their children, cycling and a brief period of better air quality.  I develop this more in my blog;

The BBC has a shallow veneer of responsible reporting, interspersed with good programme creation. They make the story such as to Google when Excite was the best search engine.  Imbalance on Momentum Labour though they did correct that in the day in a token counter programme broadcast. I observe that if something they lead on does not come about then they balance it with a programme on Radio 4 during the day. 

It was shown how the Bush-Gore Presidential election was fixed with unserviced machines causing holes not to be punched, ballot boxes not collected and counted the result declared before the fraud was checked.  But in the USA the corruption is now hidden by invisible electronic transmission of data and Trump may well have had his victory stolen from him so that the US war machine would not be held back.  In the UK, Harold Wilson was plotted against by the establishment but Mrs Thatcher was eventually plotted against, although she respected government unlike recent conservative governments and would have resigned using due process if that process had been used, undoubtedly!

Poor India;
Serve us, their old ruler, at the expense of their own people.  The same is true in famine, where countries frantically export food, whilst their people starve, and British arms makers corrupt their governments to buy weapons.  First-world countries interfere and cause conflict to keep it always so, the UK is the No. 1 exporter of weapons in recent years.

Poor rest of the world;
Prestigious events such as sports events bring a lot of money to a few people in many counties but there is often a sad story of disposed poor made homeless and thousands of workers dying constructing the facility. 

Fairtrade is a good slogan but I get the impression that not much of it occurs?

What we gave up that the UK did well or could have done;

The best film of the 20th century is said to be 2001 A Space Odyssey, which is technically excellent.  Film producers used to come to England in order to get the best production work for some chosen films.  One of very few truly Science Fiction stories has one mistake Dave should have breathed out before crossing the vacuum of space back to Discovery.  The sequel film 2010 shows cooperation between the Soviets and Americans in space exploration which did come about in the 1980s, until then The USSR led in many areas of space and rocketry their space station MIR functioned for 14 years during that time the USSR fell.  It had an international team of visitors and holds many space records. 

What would have saved us from the Second World War would have been to have fed and protected the starving Europeans after the First World War.  King George V argued for that.  Nature is not Red in Tooth and Claw but has a lot of symbioses, hybridisation and cooperation.  Neither should any human system of governing need to be inefficient.  That is capitalism need not be Red in Tooth and Claw.  The mixed economy we had until 1979 worked well.

The pressure that the Soviet Union was put under by threat to it from us resulted surely in the successful rocket program and circling the moon and the eventual landing there although the Unions science was carried out with comparative secrecy;

First picture of the dark side of the moon taken in 1959

Luna 9 landed on the moon successfully in 1965.  Apparently, the Daily Mail reported the story and printed pictures from the moon's surface intercepted by Jodrell Bank before Russia confirmed the success.  The first pictures of the dark side of the moon had been sent back to earth by Luna 3 in 1959. And an earlier Luna 2 crashed to the moon.

I was wondering what NASA was doing at the same time and I looked up the infamous Papermate pen that was used in space by NASA. Papermate launched and advertised its new pen that could write upside-down in space in 1965.  Meanwhile, cosmonauts were using pencils (sensibly) but were put down.  The story is a myth but illustrates fairly accurately the waste in military spending the intended spin-off from space research.

Of the highest world military spenders, Britain and United States spend the highest on military, war and hate by the proportion of land area than any other country this is profitable for a few, but it is likely that the majority of people look the other way but think a few crumbs from the business of spreading hate and selling weapons is still a lot of crumbs for us. The Soviet Union was refused entry to NATO, and it embarked on an almost crippling programme of military spending and developed an Intercontinental Ballistic missile during the 1950s. This was counter to the USA's claimed superiority in being able to destroy the Soviet Union with its vast force of B52 bombers.

People support war and blame governments that conduct them for them;

I am disappointed that so few signed the petition below and the parliamentary one is now closed but 38 degrees is still running.  My wording is very similar to what Jeremy Corbyn said on behalf of the Labour Party. I think it is evidence that people still support the Bush/Blair wars, and that parliament was correct to vote for war even if it was mostly Conservative MPs who voted for such a war.

People wanted a scapegoat for the actions they also wanted.  I think it is more likely that the media make and spin popular conversation one way then the other way.  The USA and UK invade and cause more conflict in the world than any other countries and have done for centuries.

The Soviet pencil and the multi-million-dollar pen anecdote is well known and the problem seen of military spending on such a vast scale is mostly turned into no functional or useless output.  Atoms for peace was coined by General D. Eisenhower in order to produce nuclear warheads not to produce electricity.  Britain’s first nuclear power station, Calder Hall, was switched on to the grid by the Queen but it never produced electricity.  It is debatable if nuclear warheads are fitted and armed in reality the number of near misses and accidents and cock-ups happening should have, by now, but has not led to nuclear contamination or nuclear detonation.

Brexit Britain’s security policy: cutting aid to spend on weapons

Some of my information sources; 
Star Trek and Blake's 7, TV series, are two sides of the same coin view of the Federation. Like many Science fiction films and TV there 
is virtually no science in the stories but many of the stories portray human things but more easily by being elsewhere away from Earth.

In the 1980s the Government admitted to there being about 5-9 US bases in the UK, but good journalist research counted about 50 military bases and a similar number of non-military bases.  The present figure for US bases spread around the world is not big but is 900 in 2022,  USA's Military Empire: A Visual Database - World BEYOND War - these are not as a world policeman or the universes oppressor as science fiction would have it such as TV series's Star Trek, or Blake's 7 but to some degree, they both prevent as well as stir up conflict.  The same could be said of UK's former Empire and present financial interest and commonwealth perhaps?

In the 1970s space research started to form as opposed to for-military gain, Voyager space crafts have travelled beyond the solar system in that time.  Fantastic on a world scale for the longevity of the two missions and the science discovered.  The Earth can be observed looking back but it is less than one pixel.  So even if life on earth has developed to a unique degree in the Universe that does not make humans important or that any future life form will ever leave our solar system?  That is we are still unimportant in the scale of things, and what we think we know does not amount to much.

Tuesday, 29 September 2020

Electronics design project - Bicycle Dynamo maximum power and battery charging manager

Changed; 05-06-2022, 29-08-2021 

This electronics design exercise develops circuits that optimise the power taken from the dynamo above the quoted power to run bicycle lighting and battery charging.  Including USB charger output or charging input, data outputs, controls, and settings.  These additional features require the development of phone, tablet, and desktop computer applications.  This project will show how much more of the available power output from the Dynohub can be obtained. 

There is also a no-microcontroller solution.  The design includes controls and potentiometers for calibration made available, that would have been carried out in software otherwise.  This is a good solution with just a speedometer, power out, and a few controls. 

This blog goes into much greater depth than would occur in a real design project, in a real design project many avenues would not be explored and developed in such detail.  This blog has been written going back and developing earlier ideas put aside until a solution is clearer.  Eventually, the whole picture can be seen but in better detail is a realistic way to carry out design work. 

The LEDs could be fitted within the unit and run white light optimised fibre-optic cables to the lamp units.  The light from the fibre-optic would be dangerously bright.  The output of light instead of pulsed current reduces the risk of electromagnetic interference. 

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 modified by 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 are wired to short the lamp out in case a bulb fails so that the other lamp will operate. 


Evaluate alternatives - is an early design step is to evaluate what is already available, can you buy it but with additional features.  This alternative is very new and appears to have good power take optimisation but other alternatives are available.  

This bottle dynamo and unit does some of what this project aims to do; there are graphs on the website.  PedalCell allowed me to see the power output spreadsheet, thank you, for the dynamo outputs 3W from 6 MPH (road speed) and the power does not show a greater rate increase initially as more of the sine-wave output is used but one datapoint may be wrong?  In any case, it looks as if a higher output voltage four-phase (6 wire) stepper motor is used as a generator.  The output voltage therefore power increases linearly with speed as a textbook permanent magnet generator theory.  The traditional drawback with a bottle dynamo is their high friction losses due to high gearing but some of this criticism may have been mitigated in some cases by using a larger diameter pickup wheel.  The pickup wheel has a replaceable o-ring contact to the wheel rim instead of the smaller ribbed metal pickup wheel in contact with the sidewall of the tire to pick up the power of a traditional bike so-called bottle dynamo. 
Review of some bottle generators;

LED lighting set such as Bikemate branded (pictured right) front and rear lighting will function when powered from a USB charger.  
  • Aldi product ref. 086287232202700 (discontinued)
  • Rear 3.7V 300mAH and Front 1050mAH lithium cell,
  • Specified to run 3-5 hours (<100mA and <350mA),
  • Found to run perhaps 20 hours flashing low intensity (15mA and 50mA), 
  • Charge 3-4 Hrs and 4-5 Hrs (<100mA and <350mA). 
That is <2.5W lights, lights and charging <4.5W.  Lights set low intensity flashing mode; 50% of 800mW.  No figure for losses is included and I have not examined what is inside each unit but 20% to 50% is likely. 

The AC component from the Dynohub regulated to 5V, may not affect the battery charging function.  But if there is an AC component in the supply with the light on will cause lots of small battery discharge and charge cycles shortening the battery's life.  Waterproofing, when mated around the USB connector, is required.  A disadvantage with this plan is that the lights will not dim in a useful way when the power is low but will turn off and remain turned off until the cyclist switches the light on again. 

This bicycle lights set have a good light level, and provided the power required figures for this project but are not well suited for use with a bicycle generator. 

Estimated capability
LED lighting similar to Bikemate units above but suitable for operating from a bicycle Dynohub (permanent magnet generator).  With no battery and no power switch preferably. 

Expected of this project, that a slow cyclist could run lights on a low-intensity setting.  A regular cyclist could run and charge lights on a high-intensity setting and a fast cyclist could also run a USB device with a vintage 6V, 8V, or 12V Dynohub, more light and power to spare with a modern bicycle generator. 

By comparison, the simple regulator (AL-0035-01?) near the bottom of this page would run lighting similar to Bikemate lighting in a low-intensity mode with a vintage dynamo (GH6, GH8 or GH12).  More light with modern dynamo. 
The video below tends to cloud the issue as well as make options clearer;
The source blog is clearer but is not English language. 

I was surprised to hear that many modern hub generators generally consume power when there is no load, I have spoken to someone who has one on his bike thought the loading also increases with speed which it should not. I guess that the iron is not laminated to the same degree as a mains transformer or a motor. The eddy current losses and the magnetising losses are less than 1%, typically, I have been advised these hub generators as well as a vintage Dynohub are all good.  This video SON hub generator is the exception of the ones tested and is very good, but the graphs are complex and indicate that the system being measured is more than the generator. 

Guessing what the added complexity from a note on some graphs - It looks as if the extra circuit component may be a tuning capacitor, this increases the output voltage to 6V at resonance but then cause the voltage to then not increase further with generator speed.  The power factor then becomes poorer and the main loss is copper losses regardless of power used.  At resonance and maximum power is taken with a simple rectifier, the efficiency will be good.  Where my design should improve because only the required power is taken and the power factor is better. Guessing again the extra component in the generator might be a shunt regulator (2 x  22V Zenner diodes anti-series) to prevent high output voltage (24V say) by returning power to the wheel and wasting power but the graphs do not look like that.  Where my design should improve is by using a Triac or transistor crowbar regulator that returns more power to the wheel wasting less power.  Guessing that the SON hub generator might use a feature like this but disconnect the output to prevent over-voltage output instead and thereby minimise interaction with what is connected to the generator? 

Stepper Motors are typical of many motors generally have good magnetics designed for low loss and because of the higher frequency, the copper losses are lower.   A stepper motor used as a generator in modern rim generators turns out to work well. 

The battery chargers and power managers may first charge a battery system that can cope with variable input power and then output is a constant power over a minimum period of time to a USB charger.  This is no doubt done in order to avoid shortening the life of the connected device's lithium cell. 

Links  connected with this video;

I think Sturmey-archer used to claim their dynohub added no noticeable extra resistance to the cyclist?  Vintage Raleigh/Sturmey-Archer product was always very understated but a friend told me you could feel the difference.  The total extra loss is very small at 1.8W for the lights plus 0.45W due to copper losses and a little more for magnetising and eddy-current losses?

Sturmey-Archer's logo dynOhub for their bicycle hub dynamo does not appear to be a registered trademark but would be copyright.  Bicycle dynamo's do not have a commutator and brushes so it does not output direct current, to be correct is not a dynamo.  More correctly called a single-phase permanent magnet synchronous generator or a magneto.  The symbol is a sine-wave generator signal source. 

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 dynohub (such as a Sturmey-Archer GH6, made 1944-1983) is rated at 6V 1.8W, 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 up to 6W.  To get the maximum power from the dynamo, the current taken needs to be limited so that voltage does not drop severely. 

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 up to 15W.  The firmware should include calibration of its measurements as well as optimising the generator's maximum power transfer and storing these calibration constants. 

  • Manage two cell NiMH battery charging using a coulomb counting method.  Other circuit variants for Lithium-Fe-PO cell is also developed. 
    • It is best not to remove the battery's so that the battery state of charge and capacity information is retained.  Therefore use the USB port charging input preferably to take the battery out for charging. 
    • Lithium cells state of charge can be determined by the voltage and charging current between low, medium, high.  NiMH batteries can only be determined by the voltage and charging current between low, medium or overcharged. 
    • Recalibration of the battery state of charge and capacity if the battery is removed.  The coulomb counting system with voltage sensing of a high state charge and discharged limits.  An assumption is made that a replaced battery is charged and its capacity is low allows the unit to charge a replaced discharged NiMH battery a little, quickly and the remainder of the capacity reached slowly 0.03C (50 hours).  Alternatively, a replaced lithium cell can be fully charged at a fast rate. 
The 1960's Mini Couper has lots of lights.  Running the battery down should not be an issue unless you have lots of lights on your bike more than the dynamo can supply.  The Mini holds the road exceptionally well in some ways like a sports bike with a good high tensile steel frame.  It could be that flexibility in the frame and independent wheel car suspension came from bicycle frames technology in the 1930s?  But the idea was applied to electronics and the stiffness of using the metal frame 0V in valve design gave way to a flexible star point strategy in transistor electronics design in about 1960.  By 2000 stiff 0V the strategy was reverting to stiff solid 0V plane in PCB design but with flexibility. 
    • It is important that the Lithium cell holder or a connector should not allow the cell to be fitted reverse polarity. 
    • NiMH cells fully charged is usually determined by fast charging with a high current and detecting a small voltage increase (or temperature rise), which occurs when the cell is overcharged slightly.  The dynamo power is too variable to use this method but uses the coulomb counting method instead but also monitors for overcharging.  This method can be used to characterise a replaced battery if a USB power source is connected. 
    • Lithium 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) [Some Varta button cells 2C or higher}  or NiCD 2C to 4C (15 or 30 minutes) depending on the type chosen. 
    • Lithium-ion Phosphate (LiFePo4) - is slightly lower capacity Li-ion, less raw materials used. 1.2Ah or higher.  Fewer safety precautions are required. 

    • None of the circuits supports 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. 
    • A 5V supercapacitor is also a good choice the charging is simply constant voltage at as high a current as the power supply can deliver.  10F would deliver 100mA and drop 3V for 300 seconds (5 minutes) with progressively diminishing light output.
  • The USB port can also provide dynamo power output. 
  • 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.

The tilt sensor is used to reduce or increase the power taken from the dynamo using parameters set by the cyclist, such as when going up or downhill plus speed. 

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, but the lighting law changed and this is not done now I guess because the light could be mistaken for a tail light?  In any case, a light should be placed higher so the cyclist can be seen.  Red rear lamps are difficult to attach to the rear rack if you have pannier bags fitted. 

Software note;
LED dimming or intensity programming to be handled using a pulse width modulator (PWM) running at 100Hz to 300Hz. 

The first proposal for the dynamo power input

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.  These circuits will only start operating when the dynamo's output voltage is 10V (about 6.5Vrms) with no current drawn, which is a little under the rated speed.  The input boost section from the dynamo should be very efficient and ensure that the unit will continue to run at a lower bike speed once started up.  These solutions are software-driven; 

AL-0036-01F Power diagram based on motor control to operate at low-frequency boost switch-mode using the inductance of the motor.  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 some modern electric trains whistle.  CAD used: OrCAD cadence. 

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. 

It turns out that the dynamo's inductance is 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 about a second to reach full current but the period of the AC output is much shorter 10mS at a reasonable speed consequently the power output would be very low.  Alternatively boost to a few thousand volts at a very low current in a millisecond would be impractical, and the losses would be too high. 

The Generator model is not simple - The series inductance is so high but the open-circuit voltage is not so high, that very little power should transfer.   A modern motor drive and permanent magnet motor/generator are usually wound for lower voltage, high current, so consequently lower inductance.  The motor drive supply or output voltage is high, the current regulating chopping frequency lower, for lower losses and higher current.  The high inductance of the bike dynamo does not suit working with a chopping current motor drive. 

A GH6 dynamo has 5 ohms series resistance consequently at 6V, 300mA output that is 7.5V = 6V + (5R * 300mA) with no load.  The peak voltage no-load be 10.5V = 1.4 * 7.5V, at rated 6V minimum cycling speed ??.   For maximum power transfer, the maximum current drawn is <=300mA, and the load presented be >5R. 

Electromagnetic emissions and sensitivity;

Note the additional 0V screen cable bonded to the bike on both ends, the controller, and to the dynamo to minimise electrical emissions.  This measure is fairly essential, with the above strategy. 

  • There is a risk of electrical interference generation with home fitted and wired units.  Precautions such as using a paired wire should be mandated. 
  • But with the circuit proposals below a screened pair bond to 0V and the dynamo case both ends need not be required but recommended if a vintage AM radio be used nearby consequently better than to CE mark is required.
The two and three-phase boost regulators below the EMC profile are different but they are likely to have the best EMC performance of the power factor optimised options.

The above diagram is a 2-phase boost converter with a polarity switch (electronic commutation) AL-0036-02E is driven by two PWMs 180' out of phase.  This is a lower input/output noise and ripple current voltage step up.  PWM mode is less efficient under lightly load conditions.  Another pulse-width-modulator (PWM) is used to step the high voltage down to 2-5V (Vdd).   At start-up, all drivers are switched off and the substrate diodes act as input rectifiers providing start-up power.  The component values are not correct or complete

Motor driver IC's are comparatively more expensive, lower frequency operating and therefore require larger inductors.  The benefit is the main source of electromagnetic emissions is reduced to <50% for this 2 phase design compared to the other strategies below at the same operating frequency.  For a 3-phase boost, the RF emissions drop to <33%.  There are other sources of radio-frequency emissions, such as the switching transitions of the power supplies that need to be addressed.

There are advantages in using a buck regulator IC rather than the software above, they are self-starting, self-protection, efficient, good regulation, good value for money.  The diagram below does not have to be a three-phase boost one inductor need not be fitted if cost-saving and lower switching losses of running one less phase are more optimal.  

The diagram AL-0036-03D is a 3 phase multiphase boost pre-regulator.  Multiphase regulators have lower radio frequency emissions.  Changing the driver IC to DRV8955 will operate down to a lower voltage of 4.5V which works out that it will start up <50% of dynamo rated voltage/speed.  Both drivers are rated at 100KHz maximum so the inductors would need to be large.

The bridge driver proposed would be operating at maximum speed so are likely to have high losses.  By comparison, the buck converter IC is optimised for high-frequency operation so is a more efficient function block compared to the previous diagram.  It should not be necessary to use a screened cable bonded on both ends a paired cable should be adequate to minimise radio frequency emissions. 


These multiphase converters should be more efficient than the motor driver ICs they use external transistors - but may be unnecessary cost and complication;

LTC3871-1 may do 5-30V and possibly 1.2-100V (4.5V) two or more phases boost.  

LM5170 8.5V to 100V two-phase boost. 

ISL78227/9 5V to 55V two-phase boost.

ADI, Renesas, STM and On-Semi make several multiphase buck controllers (NCP4200, NCP81143,  PM6773, ISL6312) inverting the outputs and many other changes still do not look promising. 

Comparison of motor drive or gate drive IC's;

  • L6201 ST 1-4A Motor drive bridge driver - 12V minimum, Operates up to 100KHz. This driver can only hold an output high briefly so it may not be suitable.
  • 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 de-rated current.  The maximum frequency is unknown and is oversized.
  • DRV8844 TI, 8-60V, 2.5A dual half-bridge motor driver.  The maximum frequency is not specified but is probably 100KHz?
  • DRV8955 TI, 4.5-48V, 2.5A, dual half-bridge, <100KHz. --- This is a reasonable solution because of the lower starting up voltage possible but the over-voltage protection would operate often with so a newer type dynamo.
  • DRV8412 TI, 11-50V, 6A, dual half-bridge, <500KHz. But for the high start-up voltage, this driver has a good operating frequency.
  • 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 the 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. 


Improved dynamo input power supply;

Putting aside a motor drive IC solution, but boost pre-regulator is drafted further below in AL-0002-02 to -05.  These solutions do not use PWM mode synchronous rectifier but use a simpler boost and rectifier in software.  Beneficially these circuits startup at a lower bike speed and take all the available power from the dynamo. 

Another variation is investigated - this circuit is efficient but does not take the maximum power available from the dynamo but does take more of the available power than would be taken wired to traditional bicycle incandescent lights.   An efficient input bridge-rectifier is considered, using transistor switches plus many discrete parts and IC's is possible.  A boost stage is not included and the risk of producing electrical interference, with care is low. 

Simplified power diagram AL-0038-01E.  This design features no large step-up and smaller step-down voltages.  The micro-controller is powered directly from two rechargeable NiMh cells.  The rectified dynamo output ripple voltage will cause the LEDs to flicker slightly that may be perceivable at low speed.  CAD used CADSTAR.

This solution is similar to AL-0002-01? below, in that design Vgen capacitor is much smaller and the current taken is varied with the alternating current input so that more of the available dynamo power is taken.  That is because the power factor is better.

The first buck regulator could be replaced by a buck-boost regulator to improve the operating voltage range.  The power is taken from the dynamo also needs to be optimised under software.  A transformer-based flyback convert is investigated in AL-0038-02? further below. 

Buck-boost configuration;

One magnetic part is saved but costs many other parts.  The buck-boost configuration is an efficient solution that seems possible but difficult to implement using microcontroller timers, software and half-bridge drivers but likely to be more costly and turn out not to be so efficient.  Here are some buck-boost controller IC's; 


LT1810, ADI               4.5V to 100V (2.8V)
MAX20048, Maxim    4.5V to 36V (2V)
LM5176-Q1, TI          4.2V to 55V (2.5V) 
LTC3779, ADI            4.5V to 150V (1.2V)
ISL81601, Renasas    4.5V to 60V (0.8V)
ISL81801, Renasas    4.5V to 80V (0.8V)

Software for power input;
The dynamo current control software is likely to be difficult with a switch-mode power supply IC.  
  •  The power used must be adjusted continually with the AC input so that;
    • When the power reduces then the USB power output should be turned off,
    • The battery charging rate is reduced and turned off without current being drawn from the battery,
    • The LED drive is reduced and turned off when there is adequate average dynamo power,
    • Enough power must be provided for the microcontroller at all times.
Versions that use a PWM boost supply should be a lot more straightforward because changes can be made more slowly.  The control of the boost voltage should be straightforward.  Measure boost rail voltage if;
  • Hardware over-voltage protection occurs at >55V, may cause electrical noise?  Will return surplus power to the dynamo. 
  • Software over-voltage >50V then turn on both boost transistors, to return surplus power to the dynamo.  This software may not be required but the power factor should be overridden to prevent over-voltage from occurring.
  • An efficient low side of a bridge rectifier is implemented by turning on the low side transistor alternately synchronously with the dynamo AC input.  This reduces voltage drop in the bridge rectifier low-side diode.   The other PWM drives the other transistor boost regulator.
  • The boost voltage be set so that at minimum the troughs are above 10V, say? 
  • PWM for boost voltage creation is set proportionally with voltage.  This carried on steps to minimise the processor's workload.
  • If the current taken from the dynamo is above the optimum, its voltage will fall sharply, then reduce the current taken by setting the buck regulator power clamp DAC lower. 
    • Intelligent nudge up and down control - That is do not nudge the set-point if no more power is available but do nudge down to find out if more power can be taken.  That is take care to prevent set-point runaway.  Use indicators such as Pgood output.
    • If necessary, ask a support question to find out the voltage sensitivity and voltage range of the compensation pin.  Note that the simple transistor clamp circuit has a temperature coefficient.
  • The power priority is the same as the non-boost above but the adjustment and switching off does not need to be done quickly because power is stored in the boost rail reservoir capacitor that tide over AC voltage ripple.
  • The dynamo current is:  = I_out * V_boost / V_dynamo

Implementing a low loss rectifier;

The high side rectifier is implemented using Schottky diodes or more efficiently using ICs such as; TEA1993TS, TEA1999TS, UCC24612 or SRK1001.  But with the boost, pre-regulator options further below the voltages are higher and the benefit is small and not worth implementing.

Dual synchronous rectifier ICs; TEA2095T, TEA2095TE.

Low side and bridge rectifier controller ICs; TEA2206T, TEA2208T, TEA2209T.  These parts are new and fairly expensive but would save one boost inductor or transformer, but a discrete solution using transistors for a high side gate drive and a small reservoir/filter capacitor should be the best option.  The high-frequency parts are better priced and are suitable.

The low voltage drop rectifier on the low side could be implemented using a cross-coupled, bistable-multi-vibrator. This feature would save 200mW compared to using a Schottky diode bridge rectifier.  Alternatively, this is implemented in software. 

Diagram right SiMetrix model; AL-0034-01B - dynamo battery lights manager Synchronous rectifier controller - outputs inverted to drive MOSFET gates (small Red and Green waveforms).  Unlike a diode rectifier, this circuit ensures that one of the two transistors is nearly always on. 

SEPIC converter option used in no microcontroller solution below (AL-0038-02?) is not efficient but as good as can be done.  This synchronous rectifier is for consideration before placing it in that circuit.  Generally, there is no license issue using an IC from one manufacturer then switching to another manufacturer or using a discrete transistor solution.  But a company I worked for received a number of patent challengers, all claimed something was copied which we had not done but had come at the problem from an entirely different and better way.  The patent challenge probably is a pretext to find out what you do instead.  Components; amplifiers, motor makers all give you a license to use them for anything you can use them for.  They do not want to stop you from using a motor as a generator for example but they will compete on price or suitability. 
Diagram; AL-0034-02B - CADSTAR 18, synchronous rectifier using SRK1001.  Power consumption is high because of a linear regulator from the high voltage supply to power the IC.  

Table of Voltage and current input from the dynohub plus estimated bike speed 10-30MPH, 5V output.

Vin        Iout     Power     Vgen (MPH) Diode W Synchrous rectifier IC W Transistor W SR+Tr W

1.5V      300mA  0.45W 3.0V  (4.5)     0.03W=0.4V*0.08A    0.11W=17mA*(5+1.5V)   0.006W=0.08A*0.07R     0.12W

5V        300mA  1.5W       6.5V  (10)     0.12W=0.4V*0.3A    0.17W=17mA*(5+5V)       0.02W=0.3A*0.07R 0.19W

10V      600mA 3.0W       11.5V (18)     0.24W=0.4V*0.6A    0.26W=17mA*(5+10V)    0.04W=0.6A*0.07R 0.3W

15V      900mA 4.5W       16.5V (25)     0.36W=0.4V*0.9A    0.34W=17mA*(5+15V)    0.06W=0.9A*0.07R 0.4W

5V        0.5A    2.5W  modern hub generator    0.2W=0.4V*0.5A    0.17W=17mA*(5+5V)       0.035W=0.5*0.07R 0.21W

Where the switching loss in transistor gate drive is;  7.5mW = 5nC * 300KHz * 5V 

Where the transistor switching time constant is;  10nS = 5nC *  10R / 5V about 0.3%

These are approximately some of the switching losses they are small but should be added to the table above.

Power and dynohub speed based on a Sturmey-Archer tester, assuming; 26" wheel, GH6, first 1.5V@300mA required to overcome the dynohub (5R) resistance loss.  The synchronous rectifier transistor and gate drive switching losses have not been included, see AL-0042-01? further below.  I have approximated the duty cycle cancels out I^2 losses or constant diode voltage drop. 


No significant benefit is observed in using the IC.  If the comparison is done with the boost converter, the diode is more efficient because the current-carrying part of the duty cycle is shorter, and the IC is also more efficient because the ICs Vcc would be derived from 5V and the comparison with 5V input is relevant. 


Figures 11 and 3, TEA1993TS, (TEA1998TSTEA1999TS) datasheet NXPcut down to show just the relevant detail.

TEA199?TS can operate high side, for a SEPIC converter, with xv connected to 0V (otherwise IC power input) it is not clear from the datasheet what the minimum Vdrain needs to be but it may be 4.7V at much lower power than SRK1001 (further above).  Consequently, the IC will only operate when at higher voltage part of the input sinewave, unless a regulator is added to supply the xv input.  The disadvantage with this IC is that there would be a high reverse current caused by the 40nS delay before switch-off, it is likely that this is not as severe as it would appear?  When fitted to the low side the component count is reduced but the converter would operate in flyback rather than SEPIC that recovers power from the leakage inductance.  

AL-0034-03B to go with my questions.  The Schottky diode and the gate series resistor may not be required?

A reply to my NXP support request suggests that TEA1998 would be best but this part is only rated to 60V drain but is a lower Vxv part (10V).   Although the transistors are rated at 60V they incorporate a little higher voltage avalanche diode to protect the transistor and is too high for this IC.  Some efficiency curves are also provided, for a 25W flyback converter showing this part has fewer losses at light load. The differences between ic types and operating mode are small but the advantage over a Schottky diode is significant;  

The losses; 
  • TEA1993 plus the transistor from the table above are small from; 1.7mA * V, <8.5mW +Tr.  
  • TEA1999 plus the transistor from the table above are small from; 1.4mA * V, <7mW +Tr.
  • TEA1998 plus the transistor from the table above are small from; 1.3mA * V, <6.5mW +Tr.
 These losses multiply by Tr_Vdrain(SR) / 5. 

Vintage Raleigh Industries Sturmey-Archer DynoHub tester - Very Rare! | eBay

Design output files


Maximum power transfer;

Software and electronics combined diagram with a mixture of flow diagram symbols, electronic symbols and wires. The resistor-capacitor (RC) average is a simplification to show function but it is not correct but a sliding average of half or one cycle should be used.  Other signals are not shown such as Pgood signal low can be used to indicate whether the main regulator is limiting. The proportional part of the loop gain due to the amplifiers as a guide should be <50, that is a 2% change in any signal should result in less than 100% change in the output voltage. 

Below 1.5V the dynamo's power output substantially looks like a voltage generator with series resistance in this case of 5 ohms.  The power obtained by implementing this would be largely lost in other losses such as diode voltage drop loss.  This feature to be added to the diagram. 
Maximum power transfer strategy diagram AL-0043-01A.  Potentiometers set the maximum dynamo current and the output voltage limit, for battery charging.  The dynamo maximum current potentiometer should only be increased when the main power supply is limiting by that control to prevent set-point from running away. Similarly, the voltage output control is only effective when the power supply is limited by that control.  The potentiometers represent controls from other software functions.

Intelligent nudge - Calibration at the maximum power output;

  • At a steady speed test by increasing the current taken to see if the power increase or decreases - then adjust the maximum power accordingly.
  • The test can be carried out under varying speed conditions by testing using power x frequency or voltage.
  • A dummy load may need to be added.  Alternatively, keep the calibration strategy simple under variable speed and loading conditions available. 
  • The normal operation requires that the power factor be good when maximum power is required and that not too much current is drawn from the dynamo. 
I have drawn this diagram after developing circuits because I can now see more clearly how to show in a diagram what I am aiming for.   Consequently, the diagram is clear than my earlier abandoned attempts but also more closely fits with the circuit variants below.  It is also part of cross-checking those circuits AL-0002-???

Next step - build test rigs and test some of the functions 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  LED with a 5V drop so increases as the on-to-off duty cycle increase with the higher voltage generated by the dynamo. 

User Interface and refinements;

The diagrams below are mostly worked through but for a software assessment of their viability.  The low-speed crystal oscillator is not used so four port pins including 2* 0V screen pins were made available.  Each PCB could be calibrated for temperature change using the on-chip temperature sensor, oscillator and microcontroller's oscillator trimming registers. 

Some basic functions are provided but more controls and features such as distance travelled log requires a tablet or other computer to be connected to access those features. 

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

odometer, fuel gauge with other indicator lights 

Thank you for the photo

  • Battery charge rate and surplus power for USB power output control,
    • The tilt sensor senses the bikes inclination to determine if the bike is moving up or downhill so change the strategy between taking maximum or minimum power from the dynamo.  Programmed using:
    • When the battery's charge is very low the inclination control be overridden and the battery be charged at a higher rate.   
    • Learn mode to program the dynamo power taken strategy.
    • Control switches, LEDs and speedometer proposed;
      • 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 learned dynamo use strategy.
      • Switch to turn the lights on. 
        • Lights off
        • Lights on
        • Lights high or flashing.
      • Red/Yellow/Green - battery charge status LED. 
        • Red, Red/Yellow, Yellow, Yellow/Green', Green.
        • Steady indicates charging or dynamo power,
        • One colour flashing indicates discharging.
        • All colours, Red - Yellow - Green, flashing; Fault USB and dynamo charging or battery.
      • Blue - USB connected status LED.
        • Steady indicates charging and connected,
        • Flashing indicates connected.
      • Speedometer and possibly an odometer LCD display.
  • Alternatively;
    • LCD display and push-buttons.

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, use a traditional needle-type meter, a 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). Eddy current and 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.  Taut band types and also with damping are more robust. 


Speedometer circuits AL-0041-01C. 
1-3. Simple a series resistor with the meter from PWM output to VDD - the PWM will need to be set according to speed and measure VDD.

2-6. A resistor or capacitor is included to dampen the meter.  A damped meter is a better option.

4-6. With regulators so do not require measurement and calibration for fluctuations in Vdd. These are more expensive options and (6) is the most expensive option.

1-4. A buffer transistor may be required because the open-drain output of the microcontroller is fairly high resistance and may introduce a significant temperature coefficient when driving a higher current or shunt damped meter from a low voltage.

The switches selected are three positions on off on and they are red by;
  • Turn on pull-up and test the port pin for a low state. 
  • Turn on pull-down and testing for pin high state. 
  • If neither of those then the switch is in the open state. But if the microcontrollers port pin can not be configured with pull-down on the port output low drive be used instead.
  • The LEDs be driven from a high drive.  The blue LEDs from an open-drain configured port.
STM32 Cube MX software project files; 
  • Some of the meter drivers above require that the PWM be output from a high drive open-drain port but the project files do not seem to allow this to be done? 
    • Options requiring a high current open-drain port (6). 
    • Options requiring the output port be set high drive; all except for (4) and (5). 
Journey log recorder in the serial EEPROM;
The information is formatted and is for access via the USB port. The microcontroller keeps a count of the time since it was last powered up until the battery runs down.  It does not keep actual time. 
  • A record of various parameters is stored once every 10 seconds. Would be a 133M location resolution for a top cyclist who can achieve 60KPH briefly. 
  • A log is kept with record number 2^15 stored that is the last record number plus 1 and rolls around to zero.  The oldest record is overwritten by the newest record and so the next record would not be consecutive marking the start and end of the circular log.  The most significant bit indicates a new journey. 
n = MOD (n+1), (2^15)
  • Data stored, journey number, distance, direct change and gradient travelled since the last entry.  Additional information stored; supply voltage, current, battery state of charge, dynohub current and voltage. 
  • 6 axis accelerometer in three plains, rotation in three plains and gravity by an external sensor, inertial sensor; 6 words (12 bytes).  LSM6DSR, ST.COM (there are newer better value parts available $3ea/3000).  This may be a cheaper part and a 3-axis accelerometer such as IIS2DLPC should be adequate and would be a cost-saving. 
    • Alternatively, in many ways, a more suitable part is; FXOS8700CQ, NXP (not recommended for new design $1.60ea/1,000) This is a 6-axis accelerometer X, Y and Z and magnetometer X, Y and Z. so can measure absolute tilt and acceleration.  NXP makes many two-axis accelerometers that are less suitable and do not operate below 2V. There are many other makers and some are 9-axis.
    • There is a risk that with a new design a key part suddenly becomes unavailable for a number of months.   The manufacturer may be persuaded to release sample stock so that the design can be made.  That is preferable to using unknown source products, PCB assemblers are very reluctant to do that.  It could be possible to change the circuit board design to accommodate two or more lC types in case it becomes necessary to use an alternative.  
  • Calibration data for the time and all variables be stored.  Calibration systems need to be developed.
Note the number of write/erase cycles of the serial EEPROM is minimised by storing data consecutively but not including an index count pointer word.  Consequently, the record counter increments by one rolling over 7FFFH to 0000H but the last record are determined when the count does not increment but jumps in value.  The oldest record will be overwritten, data first then the new record number.  
  • A 2Mbit serial EEPROM has been included on the circuits AL-0002-??? that is; 256Kbytes but if we do some arithmetic to estimate what might be a useful size. 
    • Record number; 2 bytes, the most significant bit indicates first of a new journey.
    • Different information is recorded, at the start or continuation of a journey;
      • Time since last entry; 2 bytes, over 100 hours. (360 * 100),  to a resolution of 10 seconds.
      • Journey number 1 byte (depending on how the battery copes with start/stop cycling), 
      • Other data stored; switch settings, pre-power fail or restored, if these change a different information record be stored during a journey. 1 byte.
      • Average Vcc, 1 byte, 
      • Main buck regulator output current, 1 byte,
      • Battery state of charge; 1 byte,
      • Dynamo current; 1 byte. 
      • Dynamo voltage; 1 byte.
      • The remaining bytes are not used. (11 bytes used)
    • Usual information recorded, once the journey has started is;
      • Distance Dynohub pulses (up to ~2M per 20 cycles) previous entry; 1Km/ minute, 10M/second, 5 revs/second, 100 cycles second, <2000 cycles. 2 bytes.
      • Gradient, direction and acceleration travelled since the last entry 2*6;  12 bytes. Would need interpreting from x,y,z acceleration information. 
      • Average Vcc, 1 byte, 
      • Main buck regulator output current, 1 byte,
      • Battery state of charge; 1 byte,
      • Dynamo current; 1 byte. 
      • Dynamo voltage; 1 byte.
  • 21 bytes per record. EEPROM 256,000 bytes. No. records; 12,190 = 256,000/21.
  • 33.8 hours = 12,190 * 10 seconds / 3,600.
  • A 2Mb serial EEPROM should be replaced with the largest size 4Mb.  Alternatively, the amount of information stored may be reduced or be compressed.
Some filtering included preventing the log from filling with insignificant movements.  Data logged be analysed and the Dynohub power-take constants adjusted for improvement. 

If it is desired that the real-time be set from via the USB and retained.  This is a good PCB design from an old design that has been superseded;

The microcontrollers 32KHz crystal oscillator seem to be fairly tolerant if a good PCB design is practised.  Neighbouring ports and vias in the oscillator tracks can be used a user reported on ST community.  I would still connect the port pins on either side of the oscillator pins to 0V or an NPO/COG capacitor to 0V.  A NiMH two-cell battery, or a 3V Lithium primary cell is connected to the uC battery pin.    Even so, many design engineers do not anticipate the sensitivity warning to take care about using a crystal oscillator design so leading to many support requests to IC makers.

    AL-0002-02D old design version based on conventional recommendations for a crystal oscillator.  The crystal is surrounded by capacitors an 0V copper area outline has many vias to the internal 0V plane.  Draft view does not show copper area or track widths. 

      The variants of the detailed circuits to choose between

      It took a long time to find the parts for what I wanted to do originally which is investigate using bridge driver IC's.  Most of the IC's can not be configured as simple drivers instead of motor drivers.  The solution based on power supply IC's is good and was found more quickly.  


      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.  AL-0002-02? can be modified to work without the boost pre-regulator and is the best first design option.  There is little reason to have more than one of the variants priced and made in this case.

      Picture right Sturmey-Archer, AG - 3-speed dyno-hub, dated July 1953;  3-speed wide variable gear hub and 6V, 2W generator.  40 spoke.
      Anticipated behaviour based on a voltage-limited current source in series with a 5-ohm resistance but discounting the 5.5H inductance in the case of a GH6 type dynamo. The 5.5H inductance is not functionally in series with the generator but there is a small series inductance called leakage inductance that I do not know the value of? The test should also be carried out by the unit to characterise the dynamo fitted. USB power input be considered and battery power be used, the over-voltage clamp (version -02? to -05?) could be used. Therefore monitor the frequency, light or no-load measure voltage and short out the dynamo to measure the maximum current.
      Software implications;
      No pre-regulator solution requires fast power management (see AL-0002-01? and -02?).  The buck regulator compensation pin clamp voltage needs to increase and reduce with dynamo voltage increase and reduces to ensure that the limit of current is optimal but it must change continually.  A temperature coefficient is expected of (-01?) and a continual calibration process needs to be carried out under varying output conditions consequently but  (-02? configured without the boost pre-regulator) has an additional circuit function that partly takes care of this.
      The drawing right, Rectified sine-wave input half-cycle - optimum power take controlled by managing the power demand.  The white regions are where power is unavailable, an increasing angle/area of power that is unavailable as the speed and the voltage drops.  From 2V power for the lights and the microcontroller, 3.5V is a high enough voltage to fully charge the battery.  The graph shows that the dynamo output maximum current by phase angle or proportion of the average voltage;  420mA at 90', 270' and 300mA at 45', 135', 225', 315' but the voltage increases with bike speed.

      This solution is the most efficient but takes less of the available power from the dynamo at low bike speed.

      Analogue solution for power limiting necessary to achieve maximum power transfer (see AL-0038-02?).  No microcontroller is required if a manual calibration system is provided.  Uses a fly-back converter but there is a trade-off with transformer inductance selected; 
      • Fitting low-value inductance with high current pulses and better power factor could have high electromagnetic emissions and higher losses (4.7uH, 270KHz), works from less than 6VAC, 500mA to 20VAC, 300mA but the Power factor begins to deteriorate at 30VAC, 500mA,  Or 
      • Higher-value larger inductance (as a conventional fly-back design) but the power transfer would not be the highest would be more efficient (22uH, 270KHz).    Alternatively, the pulse width would need to change continually to correct the power factor, achieving more modest losses and lower electromagnetic emissions.  A current-mode boost controller probably would work better if this inductor value were used. 
      • This simulation shows that with a low-value inductor (4.7uH, 270KHz) a good power transfer efficiency at rated voltage with any bicycle dynamo.  At higher bike speeds or with a higher value inductor (10uH, 270KHz) less than maximal power can be taken from the dynamo.  10uH was a calculated value was a good starting assumption that 5V peak in and 5V output would be the worst case.
      It is probably best to stop with a less optimal solution.  Alternatively, a higher inductor value could be used to incorporate with the Power Factor current limiter section of circuit AL-0002-02n below.  This control system sets the maximum dynamo current to; dynamo current <= dynamo voltage/regulator output current and consequently, is roughly constant average current at peak load, as required.  That is the power limit increases arithmetically with dynamo voltage input. 

      The diagram right; AL-0042-01D power simulation (LTspice).  Slowly varying PWM drive gives a good Power Factor.  The transistors alternate between switch mode power supply or synchronous rectifier function to save power.  Sharing the input rectifier function with D3 and D4.  The transistor and gate drive and switching losses should be taken from the simulation.


      The simulation above; AL-0042-01D (LTspice) of a transformer-coupled flyback converter. - Slowly varying PWM drive and a low-value inductor gives a good Power Factor except when the bike speed is higher but then less than maximum power available need be taken. 
      • The power factor is good with the first graph even with a higher power dynamo (4.7uH, 270KHz, up to 30VAC, 300mA or 20VAC, 500mA). 
      • The second graph (4.7uH, 270KHz, 30VAC, 500mA) shows when the power used is high that the inductor transitions from pulses of current to continuous current mode as the voltage * current input increases. 
      • In the third graph, the inductance (22uH, 270KHz) is much too high in this case but would be correct for a conventional flyback switch mode power supply in which the drive pulse width varies. 
      The requirement is not necessarily for the power factor to be good but that the current is taken to be always below the optimum maximum.

      The transformer chosen inductance of 4.7uH but the part selected works well but a different size part could be used optimised for low losses at lower bike speeds.  Wurth, Murata, TDK, Vishay, and  CoilCraft have good part selection tools and models.  CoilCraft also has web tools that create efficiency graphs for the comparison of parts. Either of the two transformers selected is close enough and we can stop there.


      Boost pre-regulator 
      variants AL-0002-02? to 05? with a microcontroller control of boost transistors.  If the pulse width modulator (PWM) were varied slowly then in a boost configuration most of the current will be drawn at peak voltage input.  This is efficient but less power will be available.  Consequently, the microcontroller should continually adjust the pulse width and period.  Adjustments are made in steps perhaps once a millisecond or so;

      Simulation AL-0042-03B (right) shows a higher current transistor than is likely to be optimally efficient for the boost configuration but are suitable for the SEPIC design.  The gate drive is particularly fast and these Toshiba MOSFET'S gate threshold is a little higher, requires 5V and is well suited.  For the boost design, the other On-semî transistors listed may suit better? 

      Simulation graph left - of a boost pre-regulator driven by a fixed PWM shows the pre-regulator's current peaks (light blue, averaged) more sharply compared to the input voltage waveform so the power factor is poor. The other waveforms are two dynamo inputs, transistor drain's, Vcc and the polarity detector.

      Boost regulator inductor only carries a proportion of the power, the inductor operates in the continuous current mode so the peak current is lower.  Consequently, this regulator is more efficient than the flyback converter above.  Conversely, the high boost voltage followed by a large step-down buck is less efficient but should be quite good overall. 

      In all variants, the maximum current take is a sine-wave matching the voltage waveform.  A compromised control by changing the PWM's period and mark-space ratio in steps and power take management are proposed.  The power limiting needs to change quickly say at 1mS intervals.

      The diagram right AL-0042-02A LTspice XVII simulation boost input pre-regulator LT1812 IC.  To show approximately what is to be implemented in software instead of this ic.   This solution can draw too much current and does not limit current taken as required.
      This simulation shows that an input filter, similar to the input inductor shown but using capacitors followed by two inductors, needs to be added to all of these circuits.

      This power factor controller IC does not limit the current (light blue) in the way required, but the diagram shows approximately how the current should follow the input voltage (Green and blue) for the most efficient power transfer from the dynamo. The right-hand side of the graph shows the pre-regulator has settled and the power taken from the dynamo is optimal.

      Graph left lower; Would be driven by microcontroller PWM outputs in a series of steps rather than in a smooth transition shown.  The simulation shows that this type of IC responds slowly and is unlikely to respond quickly enough in this bicycle case to be useful.  The output voltage (red) fluctuates after the switch-on. This simulation is not very useful.

      The left top graph; is of the two transistor drains showing that they are driven alternately continually but if you were to magnify the time (X-axis) you would see the pulse width varies continually.


      Control of the buck regulator compensation pin is likely to be difficult in AL-0002-??? because of its voltage feed-forward feature.  Consequently, the power limiting mechanism is likely to be unstable when the current drawn is near the optimum maximum. 

      This is because the regulator with feed-forward or current mode will tend to take more current as the input voltage drops before software or other control have had time to react to restore and reduce the current taken.  If more current is drawn from the dynamo when the current taken is maximum then the dynamos output voltage will drop severely and could cycle on-off.  This instability may be negated if the control is fast, which the additional circuit below is intended to provide.  These components can be omitted so that the function is not provided.

      The diagram right; Power Factor current limiter section of circuit AL-0002-02n.  Is designed to save software load, difficulty and potentially take the maximum dynamo current more smoothly.  This circuit is only required when the boost pre-regulator is not used and is an option.  The input current at the rectifier is limited by adjusting the Comp pin clamp to a percentage of the measured Vgen+ peak, calibrated in software that has a setpoint output DAC (PWM_per_lim).  A resistor between Vgen- and 0V (buck regulator), not shown, monitors the dynamo current.  The matched transistor pair forms a voltage-controlled potentiometer.

      Design files for all variants;

      • AL-0039-01F Op-amp Ibatt resistor and LED PSU resistor networks.ods spreadsheets.
      • AL-0040-01B  Dynamo Battery Manager - Microcontroller select - Software.odt  --- Updated document to follow.
      • AL-0042-03B LTspice power simulation - improved transistor switching circuits with graphs generated.  More functions are included in this simulation so consequently, the simulation runs more slowly. Usually, the simulation would be better to break into smaller models but the purpose of the diagram is to put the refinements together but this larger simulation tests important functions operating together as well.
      • List of files; There is a spreadsheet list of files.


      The decoupling strategy is to place 100nF ceramic decoupling capacitors close to each IC power pin's, internal power planes 0V and Vdd for the microcontroller.  I/O has 1 - 10nF COG/NPO capacitor's near the connector pins.  The 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.

      --- AL-0002-01 Basic bicycle dynamo battery and lights manager - Draft ---

      • AL-0002-01M Circuit and PCB's - draft.  The design should fit under 100 x 100mm.
      • AL-0033-01F.ioc Micro-controller selector and configuration project file draft. ---
      • STM32L072C - 48 pin one test point and one spare pin.
      This type of moving coil of meter pictured right is clear to see 
      100-0-100uA, but a left hand zero type is required as a speed-o-meter.

      Advantages and Disadvantages of this design; 
      • The input capacitor should be small (1uF) for good power factor therefore efficient power transfer but options to fit higher value capacitors in case electromagnetic emissions turn out to be high or it turns out that the buck regulator becomes unstable.  If a higher value capacitor is used then the power factor will be poorer and less power can be taken from the dynamo that is the trade-off. 
      • A large capacitor is fitted to VCC, the main power to ensure that the microcontroller's power is not interrupted almost regardless of the batteries state of charge or whether a battery is fitted.
        • After providing power for the microcontroller software is required to manage the modulation of the LED current next priority, then USB output current if there is the power to spare.  The LED flicker may not be very noticeable but care needs to be taken to ensure that the brightness modulation frequency does not beat with 2x dynamo output frequency.  That is led brightness modulation frequency be set to a multiple of two times dynamo frequency or be a much higher frequency.
        • The battery will provide lighting power when the dynamo speed is low thereby allowing the light's to dim a little but preventing the lights from flickering severely at frequency's that are a health issue.  Perhaps dimming the lights but do not allow the lights to be off for more than say 10mS?
      • This is an efficient solution with basic functions.
      • There is no input boost supply rail and so the circuit will not operate at as low bike speeds as other versions below do.  
      • The switch-mode power supply IC includes feed-forward compensation could cause a problem to occur with more current attempted to 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.  This circuit is very simple and low cost consequently has a large temperature coefficient that must be continually corrected for in software.  Alternatively, the main regulator's output voltage is set using a PWM output be used.   
      • Speed-o-meter output - will drive a 0-50uA moving coil meter.   Scale illumination output needs to be developed. 
        • This is driven from an open drain PWM port pin will be compromised a little by the temperature and VDD coefficients of the port pins on-resistance (~50 ohms).
      • Replace the diode bridge rectifier with a bridge rectifier controller and transistors will save power at low input voltage.  This will save 15% losses at 6VAC input.
      • At the start of power input, the batteries are charged at a moderate rate until Vdd reaches a high enough voltage for the microcontroller to start up and take control.  In this case where at startup the battery is found to be low voltage and charging then an assumption be made that the battery was fully discharged, and the coulomb count is zeroed.  
      • Although batteries can be changed there is little protection against the batteries being fitted reverse polarity and in this case, the current sense resistor would burn out.  

      ---  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,
        • Start-up 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?  The IC is internally compensated.
      • LTC3649 ADI, 4A, 60V
        • Start-up down to >3.1V rather than > 4.3V with better external bias supply or-ing for lower start-up voltage.
        • Also, the compensation pin and current programming pins are available.

      --- AL-0002-02?  Software-driven with PFC input or software-driven with PFC boost supply for lower voltage operation --- Draft ---

      PCB size under 120x100mm 4 layer components on one side.
      • AL-0002-02N Circuit and PCB
      • AL-0033-02F CubeMX software project file. 
      • Vgen is boosted by PWM so that power is stored in the capacitor long enough to ensure that the LEDs do not flicker at 2x dynamo frequency.  
      • The circuit can also be operated without the boost pre-regulator and includes a power factor limiting circuit to save processing power and software work.  The electrolytic reservoir capacitor also needs to be removed.  But if the boost regulator is used, the limiting circuit should be disabled by shorting the soft-start pin driving transistor E to B.
      • STM32L052C6Tx 48 pin, microcontroller.  With one test point and one spare pin.
      • 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. 

      Advantages and disadvantages;
      • Power Factor Correction is approximated by the software-driven varying Pulse Width Modulator boost supply.  But the drawback is that boosting to a high voltage then dropping to low voltage is less efficient.  Conversely, if the reservoir capacitor is large then the boost voltage can be lower than the boost followed by buck regulators can be efficient topologies at low bicycle speed.
      • Current regulators for LED drive instead of voltage regulators to improve efficiency have not been implemented.  This could be implemented in the lamp units from the 2-3V lights output, with the addition of PWM outputs. 
      • An earlier version of this design (AL-0002-02D) used the ucc29910A PFC IC, which only requires a 5V power supply, but this design looked unnecessarily expensive and was abandoned.
      • This version is suited for evaluating both with or without a boost pre-regulator strategies, whereas version -03 is more efficient.  This version -02 but without boost pre-regulator is more efficient than version -01. 
      • The unit should have some power for lighting for up to the storage life specified of the battery perhaps, one year.  Dynamo power is available immediately regardless of the condition of the battery.
      • The battery could be changed the unit is protected against the batteries being fitted reverse polarity.  In addition, the unit will still run lights first priority.
        • To be refined after software review.
        • Add buck-boost SMP LED current drivers.  
        • Change the microcontroller to a larger;  STM32L072R - 64 pins and has two DAC's.
        • Add input filter capacitors followed by series inductors.
        • Implement the modifications provided to remove the input boost pre-regulator and thereby the circuit to become an improved version of -01? (above). 
          • The circuit may not operate to as low voltage but the risk of EMC non-compliance can be reduced if the large reservoir capacitor is fitted.  In that case, there would be no PFC and the power taken from the dynamo would be reduced.
          • Keep the input rectifier and over-voltage protection formed of low side software-driven transistors whiçh have lower losses than diodes used in version -01?. Therefore short boost inductors. 

        -- AL-0002-03 This variant uses a better low-side battery power switch. -- Draft ---
        • AL-0002-03o circuit and PCB. - This variant is similar to version -02?.
        • STM32L052C - 48 pin.  There is one spare pin and one test pin.
        • This variant has a more efficient battery charge/discharge power switch because an n-channel MOSFET is used that is driven from the higher boost 3-5V supply.  But the battery current drain is higher although not be too significantly when switched off because more functions remain connected.
        • This variant will operate if the battery cells become shorted (I do not know if this is a serious issue with NiMH cells compared to the older NiCd type).   Software is required to turn off outputs when Vcc voltage is low to keep the microcontroller powered from the reservoir capacitor. 
          • If it is found that a battery cell is shorted a low-intensity warning such as slow rate flashing of the battery state of charge LEDs when dynamo or USB power is available.
        • A circuit is included that limits the battery charge current;
            • Vcc maximum is controlled by the battery current monitoring amplifier but this function has not been fully developed.  A diode is shown "do not fit", to disable this function. 
            • The amplifier's gain would need to be calculated and resistors selected for the chosen battery.  There is no software adjustment of this current limit.
            • The additional circuit could cause instability in VCC, poor current monitoring and unnecessary complication.  Conversely, the circuit is more responsive and likely to have better than software-controlled current limiting.
            • The Ibatt amplifier does not include switch gain and current range for charge rating measuring but is suitable for measuring current and coulomb counting. 
          • Power-consuming peripherals and the microcontroller modes are set to low power or turned off when there is no dynamo or USB power.  
          • This circuit can operate like version -01?, without the boost pre-regulator, but power management must be well developed.  That is because the microcontroller is powered by the Vdd capacitor in which software must manage the loads to retain enough power for the microcontroller during the zero voltage part of the ac input from the dynamo. 
            • In this case, the power limiting circuit in version -02? could be pasted into this circuit (scroll up this blog to see).
          • This design may offer a small improvement on version -02? in handling a higher battery charging current. 
            • The battery switch transistor when turned off still provides a little power for the microcontroller.
            • Unfortunately, there is a small but significant current drain from the battery to the buck regulator consequently the battery may be run down over winter where a bicycle is only used in the summer.  Whereas other variants the NiMh battery should have some power for up to a year so the lights can always be used and the battery would have a little more life. 
          • 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.
          • The battery could be changed the unit is protected against the batteries being fitted reverse polarity.  In addition, the unit will still run lights first priority.


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

              • AL-0002-04J  PCB and circuit. 
              • AL-0033-04C  MXcube microcontroller project. -- To be updated
              • Uses STM32L052C 48 pin. - One test pin and one spare pin.  
              • 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 higher and the currents are lower so that I2R losses are smaller.
              • VCC power supply is disabled to save power when there is no USB power in or dynamo AC input.
              The Moving coil meter pictured right above is not so clear to see 0-1mA is not ideal as a speed-o-meter.
              • Speed-o-meter output - to 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 port pins' on-resistance temperature coefficient.
              Advantage and disadvantages;   
              • The second lights regulator provides up to 400mA at 1.2V to 5V and is described scroll down below. 
              • Although the battery could be changed and the unit used to charge batteries there is little protection against the batteries being fitted reverse polarity and in this case, the current sense resistor would burn out. 
              • Lithium cell holder or connector must include protection against reverse polarity connection.


              -- AL-0002-05 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 ---

              • AL-0002-05G circuit and PCB
              • AL-0033-05D.....ioc  STM32L151RCTx 64pin microcontroller project file -  has unresolved clock issues.
              • This variant is similar to -04?
              • Uses STM32L151R - 64 pin microcontroller.
              • This version uses a microcontroller with op-amps;
                • There could be a cost-saving.
                • Small signals are tracked across the PCB rather than amplified at the source then large tracked across the PCB.  This may not be an issue.
                • The op-amps are not optimal and the input current is quite high.
              • A speed-o-meter moving coil meter output is provided.  The LED illumination drive needs to be developed.
              Pulse counter for mileage counting with set and reset. This counter
              is heavy, requires 24V pulses, counts down and so is unsuitable.
              • Although the battery could be changed and the unit used to charge batteries there is little protection against the batteries being fitted reverse polarity and in this case, the current sense resistor would burn out.
              • Lithium cell holder or connector must include protection against reverse polarity connection.
              -- AL-0038-02 no battery, no microcontroller. 5V outputs for lights, USB power output plus a speedometer. --
              A combination of the above versions AL-0002-01? and -02? to -05? but using two transformer-coupled two boost regulators (SEPIC).
              • Circuit and PCB AL-0038-02D
              • The output capacitor is of a modest value consequently Vcc will have a high ripple voltage.
              • A boost voltage mode type switch mode power supply controller that has no feed-forward and is not current mode control would be the most manageable for optimum power transfer.
                • Buck controllers but using the high side driver to form a boost regulator, NCP1589A, NCP3020, NCP5269B, A6727, L6726A  - that manufacturers On-semi and ST confirms.
              • The synchronous rectifier at the output to save power would make this an efficient solution.   Because this option is not implemented on the high side this is a flyback converter instead of a more efficient SEPIC converter, a capacitor is shown don't fit, therefore requiring a snubber network that will waste some power.
                • It is possible that the synchronous rectifier won't work efficiently due to the cross-conduction prevention mechanism not configured for this application, so there is an option to use a diode rectifier instead.
                • An integrated circuit high side synchronous rectifier circuit could be added to replace the diode option.  Using a transistor and a high side synchronous rectifier controller based on ICs such as; TEA1993TS, TEA1999TS, UCC24612 or SRK1001. 
              • The dynamo current is calculated from the regulator output current to limit the average dynamo current.  Consequently, the dynamo power take is limited in a simpler and efficient way.
              This design idea could be developed as a quick but dead-end development demonstration, using evaluation boards and Veroboard prototyping.  Alternatively, a PCB be made by completing the design with or without connectors to mount a microcontroller evaluation board.

              Circuit diagram and incomplete PCB (CADSTAR).  Starting to place and group the parts by function.
              • The design is incomplete, component values and footprints are wrong.  The PCB shows an early design step of grouping functions together placing those groups and some routing to help to improve the placement.  Some footprints need to be defined to replace the temporary single inline connectors place holders.
              • The optimum current limit is set using a voltage clamp on the boost regulator compensation pin programmed with a potentiometer.  The output current is set as a proportion of input voltage, up to about 3A.
              • A switch allows the speedometer meter to be used to calibrate maximum power transfer.  
              • Switch the switch to calibrate maximum power transfer.  The dummy load is also connected;
                • Keep the wheel spinning steady speed that puts the meter needle about mid-scale.
                • Adjust the potentiometer for maximum meter deflection which is maximum power.  It will be necessary to let the wheel speed reduce in order to keep the meter reading about mid-scale.  The potentiometer should then be reduced slightly.
                • You will observe that the power will increase or reduce with wheel speed.  The power will drop severely at very low speeds.  This poorer low-speed performance may be improved by reducing the potentiometer a little if required.
              The Speed-o-meter section shows a trimmer potentiometer to calibrate the speed-o-meter for wheel diameter.  A jumper and several resistors for different wheel diameters could be provided instead. 

              The alternative switch position is for optimising the dynamo power, there is another potentiometer for this.  This shows some of the extra cost and complication is added in this case instead of using a microcontroller solution.
              • Many of the analogue functions are likely to be unstable and some circuit modifications may be necessary if this is a problem.
              Improvements and outstanding changes;
              A hub generator would be improved if it were a two-phase (4-wire) or three-phase (3-wire) the extra wiring cost is mitigated by integrating the rectifier, overvoltage protection and power management plus speed output into the generator.  But the single-phase generator was the most cost-effective and a good solution in the 1930s to the 1990s that has set the standard for voltage output.
              • Define missing PCB footprints, which have SIL connectors as placeholders.
              • Complete PCB layout, including adding more decoupling capacitors.
              • The circuit does not slightly increase the current taken with dynamo voltage increase.  This would have contributed a little extra power output.
              • The circuit does not ensure the load is >5 ohms.  Consequently, not all available power will be gathered at low dynamo speed.
              • Battery and charging circuit are not included but a Lithium cell and L6924U, L6924D and probably other ic battery charging controller IC will work with AC ripple on the power input.  Other IC battery charge controllers such as bq25017 have more features. 
              Design output files

              ToDo - list all variants of AL-0002-??? and AL-0038-02?;

              • The microcontroller needs to be changed to a 64 pin device.  To provide function or design revision flexibility.
              • Add backlight power for the speedometer. 
              • Consider using smaller batteries. Therefore change the battery holders.  
              • Consider removing the variable voltage control of the 5V USB output.  Software be configured to use the battery to fill in fluctuations in supply to the 5V USB output but leaving reserve for the lights.
              • Consider replacing the battery with a super-capacitor, (This is simpler to manage)
                • It is unlikely that the microcontroller needs to be kept running because there is an EEPROM for logging data.  But a small two-cell NiMH button battery, to maintain microcontroller Vdd and run the lights initially could also be added possibly?
                • If the time and date clock were required then the microcontrollers 32KHz crystal oscillator should be added and a NiMH two-cell battery is connected to the uC battery pin.     
              • Main power supply compensation needs to be calculated. It is roughly based on the data-sheet examples. 
              • Input filter stage needs to be added, for the dynamo power input.  A screened cable would also resolve the issue, this is catered for but could not rely on to be connected properly.
              • Select suitable boost inductors to replace the placeholder parts used. Depending on the selected operating frequençy for example 68uH at 100KHz.
              • Consider replacing rectifier diodes with synchronous rectifier IC circuits such as TEA1998 or TEA1999.
              • Consider adding buck-boost LED current source for all lights or at least for the front light for all AL-0002-xxx variants.  As AL-0002-04? or AL-0002-05?.  Alternatively add a PWM output for the power supply to be located in the light unit to form a 2-5V input light unit, instead of the PWM driven power output.
              • Change the accelerometer to a cheaper or likely better availability 3-axis part.
              Right; From Dynamo Maintenance blog  AL-0035-04B Phase control Dynamo to 5V DC a 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.  ST.COM recommends that an over-voltage transient absorber (TSV) such as SMBJ13A be added to this circuit.  I should say I think the issue is addressed well without the addition of a TSV. 

              No load loss due to the crowbar-shunt regulator is less than; <1
              W= 0.3Ag*1.5Rg + 0.3Ag*1.6Vt

              This simple regulator would run Bikemate lighting pictured near the top of this page in low-intensity mode.

              Which design to go forward with;

              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 good choices along with using an external dual operational amplifier.  For the Ibatt monitoring, it will be necessary to periodically turn off all major current inputs to calibrate the battery current measurement.   The A-to-D converter reference is VCC with a 1.25V internal reference connected to one channel to measure VDD.  This works over the entire voltage range of a two-cell NiMH battery.


              STM32L0??? And STM32L0??? Do not have op-amps and better suited external op-amps are used. 


              STM32L151, by comparison, is more expensive has two op-amps but the cost of the extra parts saved may break even.

              The op-amp PGA feature is only a simple 0V referenced set of fixed gain settings for the op-amps.

              STM32L433 some variants with 64 or more pins have a buffered reference output, so the A to D converter can be referenced to that instead of VDD, which varies.  In addition, there is an op-amp. 


              STM32L475 (two op-amps) variant with an on-chip reference buffer.   This microcontroller comes low down in the selection tool, so maybe a poorer value for money than the newer microcontroller below.

              STM32L552 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.  This is one of the faster newer low power microcontrollers that may be more suited to the variable PWM controller of the boost regulator.


              STM32F303 (four op-amps) or STM32F072 (no op-amps) are lower cost, without the low power and lower voltage features.  Is low enough power to be used with any variant with the boost regulator or lithium cell to provide VDD.

               --- STM32L072R is probably the best choice in all variants. ---


              Another possibility is to have several variants developed and made.  Then have one or two of each variant on a panel of PCBs and put as many different PCBs on a panel as possible.  But this may not be worthwhile PCB makers now put as many different jobs together on one panel in any case so it is necessary to check?

              Have at least two PCBs made but not assembled but the cost difference of assembling just one or all may now be comparatively small.   That depends on if pick-and-place or manual assembly is chosen.  It is necessary to ask each PCB supplier/assembler the same combination of questions?

              PCBs that are not assembled can be stored for up to 18 months and be assembled successfully.  After this period of time, the metal pads may have oxidised too much for the contact to be reliably made. 

              Prototype and ad-hoc development;
              Is now more common than, plan, model and building right first time as above.  Taking the design process in smaller steps shows something working early.  The disadvantage is that you are not necessarily testing the nearest to final version early particularly the PCB layout.   Also if a design is not fully understood then why it works then fails later is not predicted.

              The all analogue solution AL-0038-02A could be developed or combined with a microcontroller and avoids a lot of software work.  Software developers often ask for more hardware to save work.  A less optimal power transfer bridge rectifier, large input capacitor and SEPIC regulator instead of AL-0042-02? pre-regulator would reduce the risk of electrical interference.  It may not be much more than expensive but makes development possible in easy compromised steps for example.   Lithium cell and charge bq25017 or L6924u also be added with very little software work required. 

              The generator
              A hub generator would be improved if it were a two-phase (4-wire) or three-phase (3-wire) because the current is output continually.  Ripple would be 40% for a two-phase generator and just 15% for a 3-phase generator when full-wave rectifier.  

              Evaluation of a home-made bottle generator;

              See appendix in blog;

              Picture right; Astrosyn motor bottom left.

              There is no power factor correction and less than optimum power is taken between 0' 45' 90' 180' 270'.  But with a simple reservoir capacitor would output <2/3rds of the possible power.  Roughly calculating for 5V or 6V out buck SMP ICs; 

              • L7987L; 4.2W = 55V x 1.7 x 2 x 23mA,
              • LMR36510; 4.6W = 60V x 1.7 x 2 x 23mA 
              • LMR36506; 3W at 5V out.
               AL-0035-03A 4-phase stepper motor as a generator and input rectifier is centre-tapped, can be used with circuit variants AL-0002-??? with some adaption.  The over-voltage protection is unnecessarily efficient in this case and the OverV- diodes could be removed and the OverV- connected to 0V.

              A low power mains voltage power supply IC such as a mains to USB or phone charger probably could be adapted to start at lower voltage with the addition of current limiting taken from AL-0038-02  the ic use could be similar too; TEA1723 would take half the available power 20mA and require >20V to startup.  



              LED power supply for one or many identical LED's connected in parallel.   An LED running at 100mA is very bright and the maximum current available probably could be reduced.  White LED's voltage drop is 2.8V - 3.2V or <3.5V - 4.2V depending on the type but Red LEDs voltage drop is about 1.7V.

              Average current limited set by pulse width modulator for diving any 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 situated in the lamp with the addition of input protection.  The output current is set by R17.  AL-0002-04J sheet 5 is the small red square near the centre of the PCB.
              The lights regulator provides an average set by pulse width modulator proportion of the set current at 1.2V to 5V.  The voltage is not so high that damage an LED if the LED were reverse connected.  Operates 2V - 5V input.
              • Using an STBB3JCC buck-boost switch-mode current regulator
                • This regulator's current output could be re-configured by changing the programming resistor (Resistor = 100mV / Current_required).
                  • 100mV Feedback +-10mV.
                  • The current is set by a resistor to 400mA.
                  • The current is reduced by Pulse-width-modulation
                    • 100-300Hz, with <300uS turn on time when the current output ramps and the output capacitors determine the ramp-down rate. Determine the average current and any LED colour change.
                  • If the input power has an AC ripple component from the dynamo the frequency may beat with the PWM frequency causing the LEDs to flicker.  Therefore in this case use the highest PWM frequency 300Hz.  [This warning is applicable to AL-0002-01? and other variants with no pre-regulator]
              • The LED lamp is connected between Lamp- and Lamp+ 

              • Alternatively, a regulated 5.2V can be taken from Lamp+ and 0V.
              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 data-sheet below BCR421U Diodes Ltd. will keep the current more stable over the voltage range.

              Data-sheet 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, keep myself up to speed using CADSTAR 18 and other cad tools.  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.


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

              I have also considered software solutions by drawing a solution in electronics, which software engineers tend to call hardware. A hardware model in springs, levers and wheels is good but the software solution could be very different.  A springy Reynolds steel sports bike frame can be applied in inductors capacitors and resistors but electronics works better with the stiffness of bonding 0V everywhere for screening but uses springiness as well, both giving immunity to road vibration or electrical interference and efficiency of power transmission.  Transmission line theory applies to electronics. Maths such as averaging a signal over one cycle of the dynamo output is easy in software. 


              Technical discussion on the electronics

              Related blog Bicycle-hub-dynamo-maintenance-project

              Tony Hadland - How to repair old Sturmey-Archer hubs



              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, an energy harvesting strategy can be used.  Depending on the power required.

              AL-0035-02B,  single, 2, 3 or 4 phase stepper motor used as a permanent magnet generator.  A generator with a high number of poles should operate requiring less gearing, therefore lowering frictional losses.  The motor is a two-phase stepper motor but if the windings had centre tapped connections the motor would be called a four-phase stepper motor but is otherwise identical.  A 3-phase generator should be wired star or delta with three wires and connected to three of the four phases of the bridge rectifier inputs.  A three-phase generator connected full-wave rectifier has the smoothest output power. 

              A much smaller sized variation of the above design could be developed. 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 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. Power factor correction would be an unnecessary complication in this case but is not required with a multi-phase generator anyway.

              • 60V input, 50mA output switch mode power supply such as ADP2360 may be suitable?
              • L7983, 300mA output switch mode power supply 4-60Vin, 2.3 µA shutdown current.
              • LMR36506; 600mA output switch mode power supply 3-65Vin, 2.3 µA shutdown current. 

              Final note;
              I use spell checkers, grammar checkers and the web browser to check the spelling.  Grammar checkers vary in usefulness Grammatic 5 was very good over 30 years ago and Grammarly is a good one just now.  I use the free version Grammarly it works on many but not all combinations of web browsers and wiki websites;  My grammar and spelling so readability has improved but creating and refining a blog is very a slow process.  I similarly find embedded programming a chore moving from assembler to writing in C and using pclint (lint tools) helped but I have stopped doing that over a decade ago. 

              IF A=B THEN /* Is bad programming because is cluttered, ambiguous and wrong in C */

              if  (A == B) 
                  ; /* condition true but lint would give fewer warning */ 
                  A = B;