Potentiometer not acting as analogue input

For general Flowcode discussion that does not belong in the other sections.
Mikeatukstemdotuk
Posts: 7
http://meble-kuchenne.info.pl
Joined: Thu Sep 08, 2022 10:44 am

Potentiometer not acting as analogue input

Post by Mikeatukstemdotuk »

I have a10k pot with the wiper connected to A0 on an Arduiono R3. Setting a variable to be the value of this input doesn't seem to work. I'm trying o have the Pot control the off period for a flashing LED. When run the LED goes off for either 1s or 0s. Any help please. Thanks

chipfryer27
Valued Contributor
Posts: 1181
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 287 times
Been thanked: 417 times

Re: Potentiometer not acting as analogue input

Post by chipfryer27 »

Hi

If you could post your chart we can have a look and perhaps make suggestions.

Regards

medelec35
Matrix Staff
Posts: 1464
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 514 times
Been thanked: 474 times

Re: Potentiometer not acting as analogue input

Post by medelec35 »

Hello.
Also, take a look here and see if it resolves your issue.
Martin

Mikeatukstemdotuk
Posts: 7
Joined: Thu Sep 08, 2022 10:44 am

Re: Potentiometer not acting as analogue input

Post by Mikeatukstemdotuk »

Hi, apologies for delay - I've been away for a while.
(I'm not sure how to post the chart - the add picture function here doesn't work)

Is there support I can email to?

Thanks

stefan.erni
Valued Contributor
Posts: 760
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 150 times
Been thanked: 171 times

Re: Potentiometer not acting as analogue input

Post by stefan.erni »

Hi Mikeatukstemdotuk

Can you try with drag and drop the picture? And resize the picture if it's large.

regards

Stefan

Steve-Matrix
Matrix Staff
Posts: 1269
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 168 times
Been thanked: 285 times

Re: Potentiometer not acting as analogue input

Post by Steve-Matrix »

Mikeatukstemdotuk wrote:
Wed Oct 19, 2022 3:21 pm
I'm not sure how to post the chart
Click the "full editor & preview" button to reply to this post and click the "add file" button in the "attachments" tab to attach your Flowcode project file.

Mikeatukstemdotuk
Posts: 7
Joined: Thu Sep 08, 2022 10:44 am

Re: Potentiometer not acting as analogue input

Post by Mikeatukstemdotuk »

Hi When I click the 'add image button' I get this:

Image

There is no 'add file' button that I can see

Steve-Matrix
Matrix Staff
Posts: 1269
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 168 times
Been thanked: 285 times

Re: Potentiometer not acting as analogue input

Post by Steve-Matrix »

It will be here once you have clicked on the button to reply:
2022-10-19 17_12_28-Flowcode Support Board - Post a reply.png
2022-10-19 17_12_28-Flowcode Support Board - Post a reply.png (13.35 KiB) Viewed 1671 times

Mikeatukstemdotuk
Posts: 7
Joined: Thu Sep 08, 2022 10:44 am

Re: Potentiometer not acting as analogue input

Post by Mikeatukstemdotuk »

Hiya

See the attachments button now :D

Two files are there - neither of which works on Arduino although the simulation works fine
Attachments
Flowcode2.JPG
Flowcode2.JPG (58.87 KiB) Viewed 1669 times
Flowcode 1.JPG
Flowcode 1.JPG (68.17 KiB) Viewed 1669 times

medelec35
Matrix Staff
Posts: 1464
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 514 times
Been thanked: 474 times

Re: Potentiometer not acting as analogue input

Post by medelec35 »

Please, always post your project file that ends with .fcfx as from the images we can't see your component property settings that can have an effect on your hardware.
Martin

Post Reply