Hi all,
Been banging my head thinking about how to do a cheap reasonably linear VFC for measuring isolated solar panel voltages, the frequency output could be coupled optically, through a capacitor or by transformer (to name a few). Of course there are also isolation amplifiers but I don't want to break the piggy bank!
First off I came up with a 555 circuit using current mirrors but the latter was the problem as RS only sell them in silly quantities and the design called for both pnp & npn.
Later I looked at chips like the LM331 but put off by the prices.
Then I thought of the ubiquitous Microchip PIC, the problem is not so much the ADC (pays your money gets your resolution) but how to get the frequency out of it particularly if you want more than 8 bit resolution (that I do). There is no clock output from any timers and the PWM isn't exactly designed for frequency jumps (more duty changes). The SPI interface looks promising but limited to 8 bit resolution, the UART bit rate generator however can be put in 16 bit mode with a 16 bit synchronized load even in an 8 bit processor. By using this interface in synchronous master mode the clock comes out of a pin Aaahhhh.
The only downside is the BRG is reset on every load, meaning the interval between loads needs to be several clock cycles for the receiver to be able to synchronize.
The cost, if I use a PIC16L/F1782 I have used before ~£1.80, this has a 10bit ADC.
Please if someone has a favorite low cost single supply VFC tell me as I have searched everywhere..........
Comments including your nuts because xyz welcome
PS I would have tagged on the end of the other threads on VFC's but there all closed due to age.