arduino uno R3

For general Flowcode discussion that does not belong in the other sections.
Post Reply
jeancharlesgras
Posts: 4
http://meble-kuchenne.info.pl
Joined: Fri Dec 03, 2021 5:25 pm

arduino uno R3

Post by jeancharlesgras »

problem compiling on arduino uno
when I transfer this file Flowcode1.fcfx to the arduino uno support, it works correctly the leds flash at the right frequency
but when I want to control the leds by a potentiometer essai arduinouno r3 pot.fcfx it does not work
Is it a driver or configuration problem?
Thank you for your reply

jcg
Attachments
Flowcode1.fcfx
(8.01 KiB) Downloaded 81 times
essai arduino uno r3 pot.fcfx
(10.07 KiB) Downloaded 89 times

Steve-Matrix
Matrix Staff
Posts: 1234
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: arduino uno R3

Post by Steve-Matrix »

Maybe an issue with the wiring on the Arduino?

In your first program, the LED is connected to pin12 and in the second it is connected to pin 13. Is that the problem? Also check that the pot is correctly connected to A2 as per your program.

jeancharlesgras
Posts: 4
Joined: Fri Dec 03, 2021 5:25 pm

Re: arduino uno R3

Post by jeancharlesgras »

yes, I noticed it, I fixed it but the problem remains the same. I still can't get my arduino to work with a potentiometer (ADC) as input
in simulation (debugging) this is ok, but not on the board
Attachments
essai arduino uno r3 pot.fcfx
(9.92 KiB) Downloaded 86 times

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 468 times

Re: arduino uno R3

Post by medelec35 »

Hi.
Now that you have fixed the issues Steve suggested.
The default Vref Option settings for ADC is AREF.
If you look at your ADC properties & change Vref Option from AREF to AVCC, you should be good to go.
Martin

jeancharlesgras
Posts: 4
Joined: Fri Dec 03, 2021 5:25 pm

Re: arduino uno R3

Post by jeancharlesgras »

Hello
I changed the AVref configuration to AVCC, but I still have the same problem, I think more of a driver or compilation parameter problem. I use AVRISPmkII , when I transfer to an ECIO28 it works correctly on the model

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 468 times

Re: arduino uno R3

Post by medelec35 »

Flowcode will program the Uno directly via USB.
There is no need to use AVRISP.
Just as a saintly check, I have tried the flowchart you posted on my Uno & it works as expected (after changing Vref options).
Is the Uno bootloader still intact, or has it been overwritten?
Martin

jeancharlesgras
Posts: 4
Joined: Fri Dec 03, 2021 5:25 pm

Re: arduino uno R3

Post by jeancharlesgras »

Hello
I just loaded the bootloader, I think it was faulty and this time it works fine
thank you very much
and happy new year 2022

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 468 times

Re: arduino uno R3

Post by medelec35 »

That's great.
Thanks for letting us know and happy new year to you too.
Martin

Post Reply