EBLOCKS 2 Arduino shield bl0055 not reading inputs

For general Flowcode discussion that does not belong in the other sections.
Post Reply
dhinson_wcg
Posts: 5
http://meble-kuchenne.info.pl
Joined: Tue Dec 13, 2022 3:39 pm
Been thanked: 1 time

EBLOCKS 2 Arduino shield bl0055 not reading inputs

Post by dhinson_wcg »

Hi all
I have an issue with Flowcode and Eblocks 2 . Flow code in simulation only and debugger works perfectly. Flow code compiles to target fine . once compiled push switches etc are not read and the inputs are high regardless of switch presses . outputs however are fine leds , lcds etc work ok
Drivers seem ok
For Reference this is the arduino shield Bl0055 , on ports B and D, also tried Analogue port C in desperation with no luck.
the arduino driver seems fine , the usb is connected to a com port ok , i've tried various settings of Bl0055 and arduino uno R3 PDIP in both new project and Project options
any help would be great

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

Re: EBLOCKS 2 Arduino shield bl0055 not reading inputs

Post by Steve-Matrix »

Please post your project and someone will have a look.

dhinson_wcg
Posts: 5
Joined: Tue Dec 13, 2022 3:39 pm
Been thanked: 1 time

Re: EBLOCKS 2 Arduino shield bl0055 not reading inputs

Post by dhinson_wcg »

i've enclosed project showing the problem , this affects all or machines using flow code
thank you for your attention
Attachments
Eblocks 2 BL0055 Arduino shield not reading inputs.pdf
explanation of problem
(583.49 KiB) Downloaded 42 times
Flowcodepb.fcfx
project
(9.27 KiB) Downloaded 36 times

User avatar
p.erasmus
Posts: 434
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: EBLOCKS 2 Arduino shield bl0055 not reading inputs

Post by p.erasmus »

Hi,

Try using the component macro calls for the componets you are using, ;)


P1.JPG
P1.JPG (78.04 KiB) Viewed 1244 times
P2.JPG
P2.JPG (89.18 KiB) Viewed 1244 times
Regards Peter - QME Electronics

dhinson_wcg
Posts: 5
Joined: Tue Dec 13, 2022 3:39 pm
Been thanked: 1 time

Re: EBLOCKS 2 Arduino shield bl0055 not reading inputs

Post by dhinson_wcg »

hi thanks ive tried that but ill certainly give it another go

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

Re: EBLOCKS 2 Arduino shield bl0055 not reading inputs

Post by medelec35 »

Hello.
D0 and D1 are used for serial communication.
They are hardwired to the Rx and TX of an ATMEGA16U2 via 1K resistors,
The boot loader will enable the UART by default, which takes over D0 & D1
For that reason, D0 and D1 will remain high.
Can you try changing D0 to D2?

I have also tried your project with A0 as the input and it's working for me.
Martin

dhinson_wcg
Posts: 5
Joined: Tue Dec 13, 2022 3:39 pm
Been thanked: 1 time

Re: EBLOCKS 2 Arduino shield bl0055 not reading inputs

Post by dhinson_wcg »

thanks Martin i will try this tonight , although i did try reading the whole port a few times , ill give the c port a try too
and thanks for the prompt reply

dhinson_wcg
Posts: 5
Joined: Tue Dec 13, 2022 3:39 pm
Been thanked: 1 time

Re: EBLOCKS 2 Arduino shield bl0055 not reading inputs

Post by dhinson_wcg »

Thanks Martin
that seems to work fine , switches on Port C , Led's on D port and ignore D0,D1
phew

Don

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

Re: EBLOCKS 2 Arduino shield bl0055 not reading inputs

Post by medelec35 »

You're welcome.
It does look like you can use D0 and D1 as outputs if required, just not inputs.
Martin

Post Reply