Cost comparison


Item Analog [€] Digital [€] Comment
LED module 12V/1.8W 185lm / 2700K 2.66 2.66 This is the equivalient of 19W
LDR 0.17 0.17  
Supply module Hi-Tech 12V/5W 3.00 3.00  
Transistor BC547 0.02 0.02  
Transistor BD139 0.07 0.07  
Potentiometer 20k PCB mount 0.13 0.13  
Potentiometer 20k Brightness/Dim 0.40 0.40  
Potentiometer 4M7 or 20k On-Time 0.40 0.40  
CPU A-star 328PB 3.3V/8MHz   0.50 These CPUs range from €0.36 to €31.19 (...)
RTC DS3231 module   1.81  
Battery CR2032   0.80 Strictly speaking: Battery is not needed (delta time)
NE555N (3x used) 0.33    
Diode 1N4148 (3x used) 0.03    
Capacitor 100nF (3x used) 0.03    
Elco 1000uF- 4700uF / 25V 2.19    
TOTAL 9.43 € 9.96 €  


Note: These prices represent realistic purchases at 'best price' distributors, where medium volumes are used. Example: I never buy a single CPU or RTC but order per 10, for other small components it is per 20 or 100 pricing.

Analog "on-time" of the LED:
Formula: t = 1.1 x R x C 
IF: R=4M7, C=4700uF then: t = 6.7 hours.

Conclusion:
One would maybe expect that the analog implementation is much cheaper, but due to the relative high price for the elco to implement a large on-time, the price difference between analog and digital is neglectable (for a hobbyist).

The advantage of the digital implementation is the flexibility to add more rules to get precisely what one wants for the behaviour of the LED "time-on" function.

Another difference is the development time. Analog it took me more time to get the minimum functionality, while digital this was a no-brainer and routhly 4 hours for coding and soldering.

Analog is of course more fun when your education is in digital technology (not meaning ICT !, but HW/SW).

Would be intersting to figure out what the cost is when the components are directly soldered on an own developed PCB, produced in China (JLC-PCB) using SMD components.