I saw [this][1] schematic and I had problems finding out how it works:

[![CD4069 LED bar graph][2]][2]

> As the voltage increases from zero, the first LED grows in brightness.
> Just when that LED is fully lit, the next LED begins to glow slightly.
> Each LED represents about 1 volt of change, when the circuit is
> operating from 9 volts.

According to the 4069 [datasheet][3], the gates are not Schmidt triggers nor buffered, and the diagram for a gate seems quite simple:

[![a single 4069 gate][4]][4]


If I'm right, the resistors form a voltage divider and just drive the LEDs.

I have these questions:

1. How does the circuit work? Why doesn't the next LED light up until the previous one is fully lit?
2. What does the first gate (left most gate, with two 1Mohm resistors) do?
3. What kind of modifications do I have to do, to make it work with a 5V supply? The supply would be a constant 5V and the input would be a variable 5V.

regards.


  [1]: http://techlib.com/electronics/bargraph.htm
  [2]: https://i.sstatic.net/Lkh9I.jpg
  [3]: https://assets.nexperia.com/documents/data-sheet/HEF4069UB.pdf
  [4]: https://i.sstatic.net/CoEco.png