Stop Bluetooth

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
User avatar
Jan Lichtenbelt
Posts: 797
Joined: Tue Feb 17, 2009 8:35 pm
Location: Haren GN, the Netherlands
Has thanked: 128 times
Been thanked: 264 times
Contact:

Stop Bluetooth

Post by Jan Lichtenbelt »

To start bluetooth will be done by initialising UART. If the microchip will be connected, everything is OK. But what if the connection failes? In that case I want to stop the bluetooth unit to send signals, to save power consumption. But how to do manage to stop the bluetooth unit (it stays LED flickering continously)?

Kind regards

Jan

ronaldlijs
Posts: 139
Joined: Tue Jan 05, 2010 10:07 am
Has thanked: 20 times
Been thanked: 25 times
Contact:

Re: Stop Bluetooth

Post by ronaldlijs »

Hi Jan,

From my experience with HC-06 cheap bluetooth devices...

I have included in my cirucit a 3.3V LDO with enable pin to turn on an off the bluetooth device at will (with an MCU pin - easy), this has become VERY handy when dealing with error control and proper init routines... I can control when the bluetooth module is turned on and off at start time and also during program run.
I have found that a proper way to re-initialize the device is to take the power off, wait 15 seconds, enable power and wait 5 seconds and then initilaize the device in software... before sending anything else to it.

Hope this helps!
R

ronaldlijs
Posts: 139
Joined: Tue Jan 05, 2010 10:07 am
Has thanked: 20 times
Been thanked: 25 times
Contact:

Re: Stop Bluetooth

Post by ronaldlijs »

The program logic I use in my setup, it does work well...

Hope this helps!
R
Attachments
JDY31_HC06_BLUETOOTH_INIT_EXAMPLE.fcfx
(15 KiB) Downloaded 201 times

Post Reply