Wednesday, April 13, 2011

TTL Bluetooth Transceiver with Linux

I recently got one of these cheap chinese TTL to Bluetooth transceivers.

http://gb.suntekstore.com/wireless-bluetooth-transceiver-module-rs232-||-ttl.html

I got mine off ebay delivered for under US$7. The seller unfortunately didn't have a pinout diagram or any real info about the module (or maybe couldn't understand enough English to work out what I was asking).

I figured that all of them on the market are probably the same design so it shouldn't be a big deal.

Luckily I was right. The best resource I found was this:

http://www.egochina.net.cn/e-shop/ebay/datasheet/Bluetooth_Module_L6.rar

A number of diagrams, manuals and pieces of software in that archive.

The only problem is they are all windows specific.

The Ubuntu Bluetooth applet let me see and pair with the device, but no clue on how to use it.

Time to learn a little more about the Linux bluetooth stack.

hcitool scan
Scanning ...
 00:19:5D:24:B7:63 OBDII

Ok so we can see it from the command line and see it's address, it's the only thing found.

Most of the other diag tools didn't return any useful info.

Eventually I found the following to work.

sudo rfcomm bind /dev/rfcomm0 00:19:5D:24:B7:63

picocom -b 38400 /dev/rfcomm0

At that point I could talk to my MCU over bluetooth!

Brewbot in the final 10

The big news is that the Brewbot made the final 10 in the Renesas design competition.

http://www.renesasrulz.com/message/12324#12324

With the main work out of the way I've been playing with some other fun hacks for it.

Namely getting a python interpreter running in the RX62N with FreeRTOS:

http://www.renesasrulz.com/message/12347#12347

Monday, March 7, 2011

Testing

The brewbot logs temperatures and stores them to internal flash memory.

Here is a plot of the result of a recent test.


Sunday, February 27, 2011

Hop droppers

I saw that tiny chinese servos can be had for $2 on ebay so bought a few with plans to use them for the hop droppers.

The plan was to have some little cups on hinges driven by the servos.

Unfortunately I couldn't find any small stainless steel cups locally, and am too short on time to wait for a delivery, so decided to go with some PVC pipe for now.





Tuesday, February 22, 2011

New pot and bag

The pot I have been using is a cheap Chinese aluminium one, which is pretty thin. It's actually good for prototyping. Very easy to drill and work with.

But the downside is that it dents and bends and corrodes. And it's not easy to weld/solder to.

So time to upgrade to the real thing, stainless steel. More stronger and I can braze and silver solder my fittings to it.

I wanted pretty much everything in contact with the wort to be stainless steel. So I got some 316 stainless steel mesh to make the bag with.


The 1" socket for the heating element:



The socket for the temp probe:

This was my first try at silver soldering. It wasn't that hard, but the results aren't perfect. Much better than leaky weld-less fittings however. 

I also spent the money on good brand solder and flux than comes with a MSDS so I knew there were no nasties in the solder or flux.

The 3-piece valve body soldered directly to the kettle: 

The inside with all the fittings in place.



Next on to the bag. First I had a 12" square sheet of thin gauge 316 stainless. Decided to make a 1.5" wide hoop to go around the top edge. So cut and bend.


Next the stainless mesh was cut into a circular bottom piece 10.5" in diameter and some walls 8" high.


 I stitched the bag together with 316 stainless steel wire. Surprisingly easy.




Then I began work on the stirrer.
 Here it is all together.


Tuesday, February 8, 2011

Maiden test brew

Pretty early on in the construction I wired up the heating element, Solid State Relay and got the MCU reading temperatures from the DS1820.

So it would already have been able to do a mash and boil with manual intervention at various points.

Kelly has been wanting to test a Hoppy Red Ale recipe in a small batch for a while and I have been telling her to avoid doing it on the stove (temperature is hard to regulate there by hand). The brewbot can do the temperature part.

Well we finally did tonight.

It was good to get a sense of how the system dynamics are and if the basics are working.

I set up FreeRTOS on the RDK with some simple tasks to monitor temperature and the push buttons.

Up/down would control the temperature set point, and after some experimentation, left/right buttons would control the heating duty cycle. On the LCD was display both those parameters as well as the current temperature in the thermowell.

We did a test boil in the pot the night before and the boil was very vigorous, splashing water out of the pot, so I decided to add the duty cycle adjustment feature before doing a mash.

Kelly had a bag that fit the pot perfectly. Keep in mind that the true bag will be stainless steel mesh and quite a bit smaller.

The test recipe called for a OG of 1.066, so a relatively big beer. We were aiming for a final volume into the fermenter of about 2 gallons. This should nicely validate the volumes and sizing of the pot.

The first step was to setup in the laundry near the 240V outlet.


The laptop is there for final code tweaks and eventually won't be needed.

Then dough-in and some experiments.

Without constant stirring it seems a hot pocket would form and rapidly overshoot but the overall mash temp would slowly drop.

Constant stirring seemed to solve this.

Luckily constant stirring is part of the final design, just not yet implemented.


We also discovered that for the mash I needed to turn the duty cycle right down on the heating. Down near 10% to prevent too much overshoot.

I may also implement the PID control algorithm to help with this.

The boil was run at 50% duty cycle. So about 1750W. This means I probably didn't need to use 240V power, and could probably run this off an ordinary 120V outlet.

The SSR and it's heatsink didn't get warm at all, so I think we are well within spec there (I have heard that these need to be massively overrated and can explode quite violently in some conditions).

The boil causes this rocking of the wort to form.

Post boil, whole hops floating:

 No-chill into a 10 litre sankey keg I got off ebay:
 We did have some problems with hops clogging the tap. Will have to come up with a more permanent solution that the strainer Kelly held over the outlet.
 Some minor caramelisation on the element.

But overall seems to be a successful first test batch.

Now on to build the bag and stirrer. Build the hop dropper. Write a ton more code. And write it all up and submit my contest entry.