Page 1 of 1

EBLOCKS 2 Arduino shield bl0055 not reading inputs

Posted: Tue Dec 13, 2022 3:54 pm
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

Re: EBLOCKS 2 Arduino shield bl0055 not reading inputs

Posted: Tue Dec 13, 2022 4:23 pm
by Steve-Matrix
Please post your project and someone will have a look.

Re: EBLOCKS 2 Arduino shield bl0055 not reading inputs

Posted: Wed Dec 14, 2022 12:00 pm
by dhinson_wcg
i've enclosed project showing the problem , this affects all or machines using flow code
thank you for your attention

Re: EBLOCKS 2 Arduino shield bl0055 not reading inputs

Posted: Wed Dec 14, 2022 12:19 pm
by p.erasmus
Hi,

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


P1.JPG
P1.JPG (78.04 KiB) Viewed 4075 times
P2.JPG
P2.JPG (89.18 KiB) Viewed 4075 times

Re: EBLOCKS 2 Arduino shield bl0055 not reading inputs

Posted: Wed Dec 14, 2022 12:25 pm
by dhinson_wcg
hi thanks ive tried that but ill certainly give it another go

Re: EBLOCKS 2 Arduino shield bl0055 not reading inputs

Posted: Wed Dec 14, 2022 1:08 pm
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.

Re: EBLOCKS 2 Arduino shield bl0055 not reading inputs

Posted: Wed Dec 14, 2022 4:18 pm
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

Re: EBLOCKS 2 Arduino shield bl0055 not reading inputs

Posted: Thu Dec 15, 2022 2:16 pm
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

Re: EBLOCKS 2 Arduino shield bl0055 not reading inputs

Posted: Thu Dec 15, 2022 6:40 pm
by medelec35
You're welcome.
It does look like you can use D0 and D1 as outputs if required, just not inputs.