How To: BrewPi Over Bluetooth

Homebrew Talk - Beer, Wine, Mead, & Cider Brewing Discussion Forum

Help Support Homebrew Talk - Beer, Wine, Mead, & Cider Brewing Discussion Forum:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.
[...]Here's some minion porn (!) tho...

4NoXEzG.jpg

DAYAAAMMM! :mug:
 
[ETA: In order to "Future-Proof" this article, I have created a page for it on the BrewPi Remix website. You can read the most up to date version there.]

I wanted to share what I think is an easier way to initially setup the HC-05 for BrewPi use. What @day_trippr lined out in the beginning is still valid, however for some people (like me, I'm not ashamed to admit it) "whipping up" a voltage splitter is not necessarily straightforward. It also leverages an Arduino and special sketch to set up the BT device which intimidates some folks. I found a different way that's likely more straightforward for most Windows users.

On Amazon I found a package with an HC-05 Bluetooth Module, a case for that module, Dupont jumpers, and a CP2102 USB to TTL Converter for $12.99 on Prime. That seems like a pretty good deal and provides some pretty good value for a person new to it. When you get a drawer full of "crap", the Dupont wires certainly have less value, but I kinda like the case. So, I'm writing this with that USB to TTL Converter being used:
View attachment 617959
DSD TECH HC-05 Bluetooth Module Kit with CP2102 USB to TTL Converter for Arduino

Buy that ... come back ... now we're ready.

Without further adieu, download some software. You'll probably need the CP2102 drivers, and to follow this you will definitely need the DSD TECH Bluetooth Tools Software. Download and install both of these (actually the "Bluetooth Tools" doesn't install, just unzip to a handy directory):
Don't plug the converter into the USB on your computer yet. Connect the TTL converter and the BT module like so:
View attachment 617962
I actually used the 3.3v the first time, the module will run on 3.3-6v for VIN I believe, but the data channel needs to be 3.3 volts. No worries, the USB to TTL converter handles that for you. Here's the connections in text form:

Converter <-> BT Module
3v3 <-> VIN
TXD <-> RXD
RXD <-> TXD
GND <-> GND


Basically, remember to connect transmit to receive and vice versa. When you are ready and the jumpers are connected properly, connect the device and set programming mode (called "AT mode") by doing the following:

Input low level to PIN34, supply power to the module, input high level to PIN34, then the module will enter to AT mode. Just kidding, I have no idea what that means either. I promised this would be for mortals. :)
  1. Hold the button down on the Bluetooth Module (note about some of the modules sold elsewhere which are insulated with shrink-tube: You may have to cut the tube away from the button in order for it to function correctly)
  2. Plug in the USB to TTL Converter
  3. The light will come on for about a second, and then shut off
  4. Let go of the button on the Bluetooth Module
If you have done this correctly, the module should be flashing on and off slowly. Done incorrectly, the device will be flashing rapidly. If you don't get it the first time, unplug the converter and try again.

Now run the "DSD TECH Bluetooth Tools Software" you unzipped. You will be executing "SHTester.exe".
View attachment 617964
  1. Select the last tab which is "HC-05".
  2. Drop down the UART box and select the port. On most systems there will be only one. If you have some other COM port device installed there may be more than one listed. If this is the case you will need to open Windows' "Device Manager", look under "Ports (COM & LPT)", and see what COM port is associated with the "Silicon Labs CP210x" device.
  3. Set Baud Rate to 38400, then click "Open".
  4. Click the "Test" button, and in the status windows you will see the "AT" command being sent and "OK" received. This will not work unless you are in AT mode (slow flashing). If you don't get anything back it's likely a Baud Rate mismatch. Click on "Close", select a different Baud Rate, "Open" and try testing again till you get an "OK" back.
  5. Now set "Bluetooth Name" to whatever you'd like it to be, Baud Rate to 57600, PIN (really no reason to change this but remember it), and set Role to "Slave". Click "Set" after each change.
  6. Now "Close" the UART up top again and you can close the app.
To test the device over BT:
  1. Unplug the USB dongle and unplug the two TX and RX wires.
  2. Plug it back in and now the Bluetooth Module will be flashing rapidly indicating it's ready to be paired.
  3. Open the Windows Bluetooth settings and click "Add a device."
  4. Select the name you gave the module above and enter the PIN you used.
  5. Click "Connect" and if successful, the device will flash briefly every two seconds or so.
Congratulations! You can unplug the device now, it's ready to be connected to your Arduino.

So this is where you can go a couple different ways. In order to connect you do need to use a voltage splitter so that the voltage on the communications circuit does not burn out. If you are using @CadiBrewer's shield, this is handled for you. Connect as follows:

Shield <-> BT Module
TXD <-> RXD
RXD <-> TXD
GND <-> GND
VCC <-> VIN


If you are going all rogue and want to do it without a shield, at least you were able to skip the whole Arduino sketch setup thing. You will need:
  • 1 x 1K ohm resistor (1/8W axial)
  • 1 x 2K ohm resistor (1/8W axial)
  • Dupont jumpers
Wire them according to this diagram which @day_trippr shared in the beginning so that the voltage into the RXD pin on the module is cut to 3.3v:
View attachment 617965

The rest of the configuration is in this post above.
@LBussy Continuing the topic form the other thread. Im going to go ver your procedures you spelled out in these 2 posts. But at first glance i see it is for brewpi. Would it work the same with fermentrack, before i dig into this??
 
Good question. Ultimately, this creates a serial port to which the script will connect. So, yes, I suspect it would but the port may need to be manually configured. @Thorrak might be able to add color.
 
@LBussy Continuing the topic form the other thread. Im going to go ver your procedures you spelled out in these 2 posts. But at first glance i see it is for brewpi. Would it work the same with fermentrack, before i dig into this??

Yep, you just might need the manual workflow to specify the serial port by hand.
 
Yep, you just might need the manual workflow to specify the serial port by hand.
Ok i have the box all hooked up and ready to install it. Im reading your manual right now. and from what i see, ill need to setup the HC-05 device first, then connect the controller to the pi and used the Manual workflow setup. I will guess i need to follow LBussy's instructions but use fermentrack's manual work flow. If you have any words of advice or anything, let me know. You have a "Todo" marker to rewrite the manual workflow section, so im shooting from the hip.
 
Ok i have the box all hooked up and ready to install it. Im reading your manual right now. and from what i see, ill need to setup the HC-05 device first, then connect the controller to the pi and used the Manual workflow setup. I will guess i need to follow LBussy's instructions but use fermentrack's manual work flow. If you have any words of advice or anything, let me know. You have a "Todo" marker to rewrite the manual workflow section, so im shooting from the hip.
I'm going from memory and it has been a couple of years, so cut me some slack if I remember this incorrectly, but...when I set one of my minions up via bluetooth, it was rather straightforward. Use the automated workflow and get your device working through the normal USB approach. Once it is connected and talking to the Fermentrack software, go through the steps to get the HC-05 programmed. Wire it to your board. Then go into the manage device/view logs tab for that device in Fermentrack and change the port from dev to whatever rfcomm port you assigned during the HC-05 setup when you bound it to the Pi. Should work as expected.
 
DAYAAAMMM! :mug:
I forgot to take a pic last night but im using a project box like yours and damn..... i should have heeded your warning about it being a huge task to get everything to fit in there. I mean i did it, kinda, but is is PACKED! Im giving my self a win on this but it isnt too pretty in there. And i still havent wired the LEDs yea. Still trying to figure out how to mount them to the box. i have another one to build so im thinking of finding a bigger box to put this in.
 
I'm going from memory and it has been a couple of years, so cut me some slack if I remember this incorrectly, but...when I set one of my minions up via bluetooth, it was rather straightforward. Use the automated workflow and get your device working through the normal USB approach. Once it is connected and talking to the Fermentrack software, go through the steps to get the HC-05 programmed. Wire it to your board. Then go into the manage device/view logs tab for that device in Fermentrack and change the port from dev to whatever rfcomm port you assigned during the HC-05 setup when you bound it to the Pi. Should work as expected.
Man if it is that straight forward im going to be so happy!! i might build my 2nd one in this box.

https://www.parts-express.com/parts-express-desktop-plastic-project-case-box-885-x-65-x-354--320-486
 
I am officially wireless with a HC-05. I followed LBussy's instructions for the HC-05. But i couldnt change the info in fermentrack (im gonna bring that up in the other thread) so i just deleted the device from fermentrack and reinstalled it to the serial port /dev/rfcomm# Now i need to finish my 2nd bluetooth minion then on to building one of @Thorrak 's esp wifi's for the kegerator out back. I feel so accomplished. Here is my 1st box. @day_trippr was right, stuffing all of this in that small box was a chore.
mfwLv7D.jpg

13GwqlO.jpg

PmsQzW8.jpg
 
hahaha! Kudos on cramming all that in there! :mug:

I see you used the same type of switched/fused/lighted AC bulkhead as I did. Note that while the bulkhead is rated for 10A the switch is likely rated for only 6A (which you can't determine without physically separating the switch module from the bulkhead).
Depending on the fridge/freezer you're controlling that switch may (will) eventually fry one or both poles. I ended up bypassing the switch on all four of my minions...

Cheers!
 
thank you it wasnt pleasant.

yea i thought it was a great idea to be able to unplug it where you could just move a box, and have a on off switch. I actually tried to re arrange the parts in there at first so it wasnt a "direct" copy of yours.

These are the ones i got. https://www.amazon.com/gp/product/B07B6JV52J/ref=ppx_yo_dt_b_asin_title_o09_s01?ie=UTF8&psc=1

It does say "Rocker Switch: Illuminated to show power status, 6A 250V AC 10A 125V AC." So we will see.

Also, mine isnt illuminating because i believe i dont have that wired. im guessing it has to do with the gold terminal.
here is my wiring.
 

Attachments

  • 71po+e64CKL._SL1200_.jpg
    71po+e64CKL._SL1200_.jpg
    169.5 KB · Views: 24
Hmm...that bulkhead is the same but the switch module is different. Mine are DPST with four pins, so both hot and neutral are switched through the module and the integrated lamp straddles (micro-neon, I presume) the "out" contacts.

If you have an ohmmeter you may be able to determine whether the third contact is for a neutral connection to light up the lamp...

Cheers!
 
Back
Top