Hello All, I've a pretty basic problem with simulating inputs to a PICAXE where the power rail of the input voltage is not the same as the PICAXE.
I want to sense the Aux line voltage in a car. I'll use a 7805 to power the PICAXE and a resistor divider to cut down the nominal 12V Aux line to a safe value for the adc input on P2 (pin 5) see attached design and listing.
The problem I'm having is that simulation of readadc is always "0" when not using the default power rail.
I use a +12V power terminal to represent the car battery.
If I remove the "+12V" string in the "Edit Terminal Label" dialogue the simulation shows a value for the readadc, as I assume the power terminal defaults to the standard 5 volts commoned with the PICAXE chip's V+.
I've tried defining a new +12V Power Rail Configuration (using the associated dialogue) but this power rail doesn't appear in the drop down list for the 12V power terminal.
How does one simulate an input voltage sourced from other than the default 5V power rail associated with a PICAXE?
Thanks in advance,
Neville
I want to sense the Aux line voltage in a car. I'll use a 7805 to power the PICAXE and a resistor divider to cut down the nominal 12V Aux line to a safe value for the adc input on P2 (pin 5) see attached design and listing.
The problem I'm having is that simulation of readadc is always "0" when not using the default power rail.
I use a +12V power terminal to represent the car battery.
If I remove the "+12V" string in the "Edit Terminal Label" dialogue the simulation shows a value for the readadc, as I assume the power terminal defaults to the standard 5 volts commoned with the PICAXE chip's V+.
I've tried defining a new +12V Power Rail Configuration (using the associated dialogue) but this power rail doesn't appear in the drop down list for the 12V power terminal.
How does one simulate an input voltage sourced from other than the default 5V power rail associated with a PICAXE?
Thanks in advance,
Neville
Attachments
-
100.4 KB Views: 30
-
657 bytes Views: 22