Ask Engineering

How to implement an equation in assembly language using PIC18F and display its result on LCD?

I had a project that requires to measure illuminance(lux) using LDR and display the result on LCD. Thanks to some references from Google, I had managed to build a equation that shows relation between Lux and LDR’s resistance which is: L = 1,48.(10^7).R^(-1,43) ADC input is voltage divider of LDR( as image showed below) The […]