Page 1 of 1

HC05/HC06 macro has strange response?

Posted: Sun Feb 05, 2017 1:37 am
by MJU
I've made the attached flowchart to send and receive data with the HC05 HC06 Bluetooth module.

It should respond to a certain number I send via a Bluetooth terminal.
In Arduino it works fine but in Flowcode I get this strange response.

It should dim a green led when it receives "1", and turn the green led on when receiving "2".
It should dim a orange led when it receives "3", and turn the green led on when receiving "4".

This is how it works in Arduino.
When I make the same program in Flowcode, the numbers it responds to aren't 1 to 4, but 98/100/102/104

These are double of the ASCII characters (I just found out when typing..)
Why are these values doubled??

Anyone an idea??

Re: HC05/HC06 macro has strange response?

Posted: Tue Feb 07, 2017 11:36 am
by LeighM
Hi,
It looks like a software UART timing issue, please could you try the attached updated CAL file?
It needs to go into your Flowcode7 installation "CAL\AVR" folder/directory.
Probably a good idea to make a backup of the one it will replace.
Thanks,
Leigh

Re: HC05/HC06 macro has strange response?

Posted: Wed Feb 08, 2017 12:36 am
by MJU
LeighM wrote:Hi,
It looks like a software UART timing issue, please could you try the attached updated CAL file?
It needs to go into your Flowcode7 installation "CAL\AVR" folder/directory.
Probably a good idea to make a backup of the one it will replace.
Thanks,
Leigh
This is it!
Now it works like it should!

Was that a flaw in the UART Leigh?

Thanks for your help!