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!
Arduino A0~A5 port can not input data
-
- Posts: 9
- http://meble-kuchenne.info.pl
- Joined: Wed Jan 12, 2022 8:25 am
-
- Matrix Staff
- Posts: 1924
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 623 times
- Been thanked: 645 times
Re: Arduino A0~A5 port can not input data
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?
When you refer to simulation, are you referring to Flowcode or an external simulator like Proteus?
Martin
-
- Posts: 9
- Joined: Wed Jan 12, 2022 8:25 am
Re: Arduino A0~A5 port can not input data
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.
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.
- Attachments
-
- Button with LED.fcfx
- (10.78 KiB) Downloaded 452 times
-
- Matrix Staff
- Posts: 1924
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 623 times
- Been thanked: 645 times
Re: Arduino A0~A5 port can not input data
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.
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.
Martin
-
- Posts: 9
- Joined: Wed Jan 12, 2022 8:25 am
-
- Matrix Staff
- Posts: 1924
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 623 times
- Been thanked: 645 times
Re: Arduino A0~A5 port can not input data
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
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
Martin