bug with pca9685

Any bugs you encounter with Flowcode should be discussed here.
aderito
Posts: 32
http://meble-kuchenne.info.pl
Joined: Sun Jan 29, 2023 12:49 pm
Location: portugal
Has thanked: 15 times
Been thanked: 2 times

bug with pca9685

Post by aderito »

Hi, I came here to report what I think is a bug with the "pca9685" component.

After some time trying to get it to work with a simple test program, I discovered that in the properties window for this component, if both channel 1 and channel 2 are selected, it simply doesn't work.

However, if software mode is selected, it works without any problems.

Any ideas?

Thanks in advance.

aderito
Posts: 32
Joined: Sun Jan 29, 2023 12:49 pm
Location: portugal
Has thanked: 15 times
Been thanked: 2 times

Re: bug with pca9685

Post by aderito »

here are the related files
Attachments
teste proteus.jpg
teste proteus.jpg (213.56 KiB) Viewed 752 times
PCA9685.fcfx
(11.8 KiB) Downloaded 40 times
flowcode configuracao.jpg
flowcode configuracao.jpg (96.66 KiB) Viewed 752 times

medelec35
Matrix Staff
Posts: 2120
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 658 times
Been thanked: 716 times

Re: bug with pca9685

Post by medelec35 »

Have you tried using Embedded hardware or just simulating?
There are occasions where the simulator is the issue and I want avoid that.
Can you let me know if hardware has the same issue?
Martin

aderito
Posts: 32
Joined: Sun Jan 29, 2023 12:49 pm
Location: portugal
Has thanked: 15 times
Been thanked: 2 times

Re: bug with pca9685

Post by aderito »

Hi Martin, thanks for the reply.
I've only simulated with Proteus so far, but what I noticed was the difference in setup times during the four macros (separated by a 1-second delay) before entering the loop.
I don't yet have the PCB with the PCA9685 chip physically with me to test.
I usually test with Proteus whenever possible before moving on to the "physical" part, and so far I haven't had any problems.
If anyone here has the opportunity to test with hardware, that would be great.

aderito
Posts: 32
Joined: Sun Jan 29, 2023 12:49 pm
Location: portugal
Has thanked: 15 times
Been thanked: 2 times

Re: bug with pca9685

Post by aderito »

I'm out at the moment, as soon as I can I'll take a screen capture with the software configuration and the dedicated channel configuration.

aderito
Posts: 32
Joined: Sun Jan 29, 2023 12:49 pm
Location: portugal
Has thanked: 15 times
Been thanked: 2 times

Re: bug with pca9685

Post by aderito »

As promised, I will post 6 screenshots. The first 3 refer to the configuration in "software" mode and the next 3 in "channel 1" mode.
Attachments
teste proteus channel 1_3.jpg
teste proteus channel 1_3.jpg (182.78 KiB) Viewed 692 times
teste proteus channel 1_2.jpg
teste proteus channel 1_2.jpg (183.05 KiB) Viewed 692 times
teste proteus channel 1_1.jpg
teste proteus channel 1_1.jpg (181.35 KiB) Viewed 692 times

aderito
Posts: 32
Joined: Sun Jan 29, 2023 12:49 pm
Location: portugal
Has thanked: 15 times
Been thanked: 2 times

Re: bug with pca9685

Post by aderito »

each capture represents the three configuration steps plus the loop

aderito
Posts: 32
Joined: Sun Jan 29, 2023 12:49 pm
Location: portugal
Has thanked: 15 times
Been thanked: 2 times

Re: bug with pca9685

Post by aderito »

These three screenshots refer to software mode
Attachments
teste proteus software 3.jpg
teste proteus software 3.jpg (182.34 KiB) Viewed 691 times
teste proteus software 2.jpg
teste proteus software 2.jpg (183.28 KiB) Viewed 691 times
teste proteus software 1.jpg
teste proteus software 1.jpg (182.06 KiB) Viewed 691 times

aderito
Posts: 32
Joined: Sun Jan 29, 2023 12:49 pm
Location: portugal
Has thanked: 15 times
Been thanked: 2 times

Re: bug with pca9685

Post by aderito »

The simulation order is: 1,2,3 for software mode and: 1_1,1_2,1_3
for channel 1.
For reference, the same tests were performed on channel 2 and the results were the same.

aderito
Posts: 32
Joined: Sun Jan 29, 2023 12:49 pm
Location: portugal
Has thanked: 15 times
Been thanked: 2 times

Re: bug with pca9685

Post by aderito »

this is the test program
Attachments
PCA9685.fcfx
(11.72 KiB) Downloaded 33 times

Post Reply