Page 1 of 1
Arduino A0~A5 port can not input data
Posted: Sat Feb 05, 2022 4:58 pm
by liudeqiang_2008
Hello
I use A0~A5 ports to connect a button with a led, in simulation, the button can not get a ON/OFF data.
But if I use other digital pins, they work well.
I use Arduino UNO Chip.
Can you let me the reason?
Thanks!
Re: Arduino A0~A5 port can not input data
Posted: Sat Feb 05, 2022 11:54 pm
by medelec35
If you post your flowchart I will see if I can spot what's going on.
When you refer to simulation, are you referring to Flowcode or an external simulator like Proteus?
Re: Arduino A0~A5 port can not input data
Posted: Sun Feb 06, 2022 4:41 am
by liudeqiang_2008
Sorry, I put the flowcode program in attachment.
I use Flowcode Debug to simulate without realy chip or Proteus.
I use 2 buttons to read signal from D3 and A0, than send the value to D5 and D6 which connected with 2 leds.
Button connected with D3 work well.
Button connected with A0 has no reaction.
Re: Arduino A0~A5 port can not input data
Posted: Sun Feb 06, 2022 12:30 pm
by medelec35
Thank you for letting us know.
With - Use Chip References unticked can cause some issues for the higher values & when used with other components.
For a workaround, please try the following.
Delete the second switch, then add a new switch.
Leave the Use Chip References ticked.
Select port C (which are the analogue pins).
The simulation should now work as expected.
Re: Arduino A0~A5 port can not input data
Posted: Sun Feb 06, 2022 12:59 pm
by liudeqiang_2008
Got it, Thank you very much!
Re: Arduino A0~A5 port can not input data
Posted: Wed Feb 09, 2022 2:19 pm
by medelec35
Hi.
Just letting you know that All the Arduino targets have been updated.
Now the Use Chip References can be unchecked.
There should no longer be any issues if the analogue pins are assigned to LED's or switches etc.
To do the update, you will need to change Files in-use to Full database