Page 1 of 1

reading a voltage

Posted: Tue Sep 23, 2025 12:35 pm
by siliconchip
hi all
ive made a flow chart to read my circuits voltage and if it drops to 3v a led will flash, ive used 2 10k resistors in series on AN3 connected to the 9v supply that goes through a buck convertor giving the circuit 5 volts i can adjust this output to below 3v in the hope it works but it doesnt, in simulation it works fine, any help would be appreciated cheers
bob

Re: reading a voltage

Posted: Tue Sep 23, 2025 1:41 pm
by chipfryer27
Hi

Without seeing your chart / circuit it is difficult to really offer muvh help.

If you post, along with a sketch of your circuit, it would help.

Regards

Re: reading a voltage

Posted: Tue Sep 23, 2025 2:05 pm
by siliconchip
hi chip fryer its attached

cheers

Re: reading a voltage

Posted: Tue Sep 23, 2025 6:18 pm
by chipfryer27
Hi

I have only had a chance for a brief look, hopefully I can look further later.

I don't see anything glaringly obvious, rather just general.

You are running FRC which is not great for accuracy, if possible consider a clock source.
Your chart will toggle the output very quickly on hardware. Tad will be anywhere between 1-6uS on FRC (x 11 cycles from my fading memory I think). Perhaps consider a delay in the loop of a few hundred mS to allow you to see the on/off?

I will look more later when I get a chance.

Regards