I had a nice idea of how to get the pll possibility to work analog too however making in a modern way … how would Stan make it if he was here today? With present technology?
https://www.analog.com/en/analog-dialogue/articles/programmable-amplifiers-use-digital-potentiometers.htmlWell basically there is this chips ad523x that are basically digital potentiometers
They can be used as the resistors in the filter and R1 and R2 of the pll this makes things easy to change the range of the frequency, ability to save different configurations all this controlled by the same esp32 via spi
The ad9833 also is controlled by spi…
I’m not sure if is totally needed to have the pll to work in analog mode too… from what I see the esp may be able to have a very high precision in current however I’m afraid the 12bit adc can be a little noisy and that I could maybe create instability jitter digital noise in the vco part… maybe I’m over thinking it… 12 bit gives 4000 points… so I imagine it can have around 1hz resolution for a 5khz if the band is around 5 kHz
However it increase if the range is reduced
The analog mode would go beyond that
I believe other controller could be used perhaps one even faster and with maybe 16 or even 24 bit this would improve the resolution possible
What is your opinion? Any one here did something like it? Any experience on that? I never used esp32 adc only esp8266 one
Esp32 has 80Mhz clock so I found it can be used to compare the phases with huge precision! By doing this the filter can be set also digitally… so no problem with bits.. I think it can work up to a megahertz if all this is correct
The ad9833 is 50Mhz connection to the esp via spi so it seems no bottlenecks for the working frequency… maybe it’s not even required I just decided to use it to make sure the controller won’t be changing the frequency while do other operations although is a two core controller
So basically I’m reducing it to few parts
Power supply
Controller
8digit display
Frequency module
Encoder
Current sensor
Bnc input and output connectors
Amplifier output 400w 2 channel (thanks again to Steve for the help getting it here)
For the feedback part I’m going to add two inputs
Although apparently any phase delay caused in one of the signals could be software compensated
Basically all that will be needed is the amplifier for the feedback and interface with the 3,3 v input of the esp
And of course the programming for all this
Gpt is helping on that some
I’m going to give the code for this only to those who contributed with me along this years like Steve and very few others…
It’s a lot of work and I want to compensate those who showed support with my hard high tech work
This include those who send me parts and send donations…
I’m trying to make it simple so anyone can build it with just few parts
Also the cell must be though in to be produced easily and i will get into that later
Stan complete system will involve
Power supply batteries alternator
Pll + feedback
Pressure sensor
Vic
Cell
Water reservoir
Filter
Pump
User input ( accelerator) or level of demand of energy for automated production for ex for on demand production
GMS as increase injector time —>>>> gate
gas processor
Vic for gas processor
Combustion engine
Alternator
Exhaust air treatment
Depending on how the things are connected I guess is possible to run all this from the esp32 or maybe it will need a second or third controller too
At least the pressure must go to the pll circuit too for safety reasons I think also the accelerator is possible to use with it
Than this same accelerator could ne connected to a second controller that is the pll for the gas processor or simply connect bothe controlers to each other via serial tx rx connection
So the second pll will work similarly as the first however the frequency may be lower since air is lower frequency than water
It’s possible to make all this with same encoder and display just sending the commands and getting the values to display thru serial
GMS need to mix exhaust air and the gas so 3 outputs for solenoids … 4 outputs for injectors, 1 input for engine timing, 1 input for lambda oxygen feedback
The outputs can be combined with one chip that multiplexes the output this can be cascaded so it expand the outputs of the esp for example if necessary Im using one of this chips in my CNC machine under build for that reason
https://www.ultrasonicadvisors.com/why-is-antiresonance-driving-good-and-why-could-it-be-bad