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
reading a voltage
-
- Posts: 4
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 16, 2020 10:38 am
-
- Valued Contributor
- Posts: 1719
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 379 times
- Been thanked: 593 times
Re: reading a voltage
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
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
-
- Posts: 4
- Joined: Wed Dec 16, 2020 10:38 am
-
- Valued Contributor
- Posts: 1719
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 379 times
- Been thanked: 593 times
Re: reading a voltage
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
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