Category Archives: BrewPi

Adventures with @Brewpi and my take on the particle nee spark

As well as dealing with my Blog being compromised and repairing the damage and securing it a bit more , This week I’ve been busy with my take on the Brewpi Spark !
I enjoy practical Electronics and that creative process. I have laid out a PCB using Cadsoft Eagle CAD and decided to get a couple of prototypes made rather than relying on the facilities at work !

3 for the price of 2
3 for the price of 2

I expect that I’ll have to try and modify and compile the code to reflect some changes , I was hoping that the code would work straight off but it doesn’t quite, It’s getting stuck not responding to the Touch with a ‘touch the cross with a stylus’ message… at first I thought I’d got my wires crossed…literally , but then realised I’d bought a screen without the touch driver , Doh…I wondered why it was 50P cheaper.. luckily only £2.50 from China so I bought another from a  UK Supplier but it’s still not playing ball….

the non touch version...there's a chip missing DoH !!
the non touch version…there’s the touch plate and a chip missing  DoH !!

I am still waiting on some connectors from Farnell but I have built it up and started testing.

IMG_20150821_161728812
Screen and LED testing
IMG_20150821_080356012
Back of the board awaiting connectors

As mentioned in my previous post it has initially been laid out to be home produceable without PTH’s and using DIP devices where possible, it is intended to be built up into and old equipment box to replace one of my arduino Brewpi boxes which already has a stable 5v switch mode PSU and uses SSR’s so no diode on the outputs, although you could use one of the many Arduino relay boards as most have protection built in.. .. as far as it being in a metal box… a duck antenna and  new photon are on the way and If  I use my works Laser cutter to do a nice Black perspex front panel I may not even need the Duck.. quack quack …

Put it in here with a black perspex front ?
Put it in here with a black perspex front ?

Lets have another try at learning C++ or at least being a bit more conversant with it…

V2 Board layout with no go zone…

Dana’s Delight #Brewday, Olicanabrew evening

Tuesday evenings Visit to @IlkleyBrewery for the first  Olicanabrew meeting looked like it was a roaring success lots of friendly people and very well supported by the brewery staff, thanks for making it a free event. I bought my Ticket for the next one before I left and I also have to thank Mary for being taxi driver and joining in with the Brewing conversations, I’ll have to investigate the train timetable from Guiseley for the next one Laughing.

I started late on the planned #brewday as a trip to Abbey Homebrew in Kirkstall was needed to top up my grains as the BrewUK parcel didn’t arrive until late afternoon (I also needed two new tyres before the white stuff appears on our roads !)

This is the second of the brews that I am doing for the Christmas period . I decided to do one that everyone seems to like and is easy drinking,  Dana’s Delight  a SMaSH Using Dana Hops, just spotted an error the Irish Moss should really be 1 tablespoon not a teaspoon as shown.. !

Dana's delight

the other Christmas Brew done the previous saturday is still in the brew fridge, following a profile

Screen Shot 2013-11-27 at 20.36.46

Here’s the recipe based from Beersmith repository suitably scaled for my equipement.

Chinook IPA recipe

more on @brewpi ver0.3

Hmm here’s the screen shot from this morning, the fridge without a beer in, just set to stay at 4.5 c

brewpi screenshot
Capture of my greenpi

There are a couple of things to note..

  1. The beer sensor trace dropped out and didn’t restart.
  2. The Temperature box is Blanked
  3. When enabling the room temperature the graph doesn’t rescale and won’t go full scale even when refreshed.

This was captured using safari on my mac and I couldn’t see how to manipulate the graph, unlike when I looked at the Green BrewPi interface using my iPad, I could manipulate the graph to my hearts content, pinch, drag etc it worked fine, .. too much bias towards mobile devices ?

Tonight it’ll beTime for me to track down that commented out line in the Beer-chart.js file to re enable the range selector bars and possibly look to see why the beer sensor isn’t re enabled !

Update:

After looking through the code for the arduino the beer sensor will only get restarted if its in mode is beer (profile or constant) hmm i’d still like it to restart and log the beer temp !  Although maybe thats my autistic side coming out, if it’s stopped when it was going, get it going again even though it’s not really needed, I think i might have to see if I can live with that one…Although what if you want to log  in the off state to see what heat  gets generated by the yeast activity ? Maybe i’m pondering too much on the inconsequential  ! Oh Really?

@BrewPi Latest Brew profile histories

On Sunday   just before I Dry hopped the Citra brew I recompiled the BrewPi binaries for my Leonardo rev A and C shields to take into account the profile bug I came across. I also took the opportunity to shorten the fridge on /off delays a little , I think it’s helped in reducing the yoyo-ing a little. I am also using a thermowell (thermopocket) in the Black IPA  FV for the first  time Cool

Screen Shot 2013-08-13 at 08.04.13
BlackPi doing a profile to ferment Black IPA
Screen Shot 2013-08-13 at 08.03.45
GreepPi hitting it’s 20c target to dry hop the Citra

@BrewPi rev c build oddities

I have a REV A BrewPi shield system up and running which has performed really well and upgrading to the latest dynaconfig Build went like a breeze. After getting another fridge/freezer I took the plunge and ordered a REV C shield to upgrade the DIY /Dev system ( and at the same time saw a cheap Mega 2650 on ebay  so I could still mess around with the planned I2C displays as the 2nd Leonardo would be permanently installed in the new REV C  system)

IMG_4125
 Nice Rev C Board


Once built, I pressed the Rev C system known as GreenPi to Bastogne Beer conditioning tasks and Initially set it to Beer contant mode, Beer probe duly placed on the Corny Keg under  a bit of foam and off it went, until on the 2nd of July  I came home to find the display blank. After restarting  I also put the second corny with the newly brewed out wheat beer in the fridge.

Brewpi Logs
IMG_4149
Wheat beer and Bastogne side by side

It wasn’t until a few days or later that I twigged the fridge temperature was now higher than the beer temperature. after a quick twitter conversation with Elco I switched to fridge contant mode but things didn’t settle down and I again came home to the display acting strangely.

[videojs mp4=”https://purpleogre.uk/wp-content/uploads/2013/07/IMG_4147.mov” width=”480″]

After  more advice and suggestions from Elco,  I  stripped the the GreenPi system down checked connections and reflashed the Leonardo with a freshly downloaded precompiled Hex. This has Improved things but there are still oddities. Temperature probes disconnecting etc….  So after lots of probe swapping and resetting device slots, to try and keep things simple… The  probes are still acting up ……
here’s a sample of the log…

Jul 08 2013 10:27:20 Arduino debug message: WARNING 2: Temperature sensor disconnected pin 22, address 28703057040000C2
Jul 08 2013 10:27:20 Arduino debug message: WARNING 2: Temperature sensor disconnected pin 22, address 28AF305704000022
Jul 08 2013 10:27:23 Arduino debug message: INFO MESSAGE 0: Temp sensor connected on pin 22, address 28703057040000C2
Jul 08 2013 10:27:25 Arduino debug message: INFO MESSAGE 0: Temp sensor connected on pin 22, address 28AF305704000022
Jul 08 2013 10:35:16 Arduino debug message: INFO MESSAGE 18: Negative peak detected: 11.6, estimated: 10.6. Previous cool estimator: 0.000, New cool estimator: 0.000.
Jul 08 2013 10:40:41 JSON decode error: Expecting object: line 1 column 102 (char 102)
Jul 08 2013 10:40:41 Line received was: T:{“BeerTemp”: 7.12,”BeerSet”:null,”BeerAnn”:null,”FridgeTemp”: 11.87,”FridgeSet”: 10.60,”FridgeAnn”:null
Jul 08 2013 10:40:42 Cannot process line from Arduino: ,”RoomTemp”: 26.81,”State”:5}
Jul 08 2013 10:44:44 JSON decode error: Expecting object: line 1 column 102 (char 102)
Jul 08 2013 10:44:44 Line received was: T:{“BeerTemp”: 7.15,”BeerSet”:null,”BeerAnn”:null,”FridgeTemp”: 12.02,”FridgeSet”: 10.60,”FridgeAnn”:null
Jul 08 2013 10:44:44 Cannot process line from Arduino: ,”RoomTemp”: 26.69,”State”:4}
Jul 08 2013 10:48:19 Arduino debug message: WARNING 2: Temperature sensor disconnected pin 22, address 28703057040000C2
Jul 08 2013 10:48:19 Arduino debug message: WARNING 2: Temperature sensor disconnected pin 22, address 28AF305704000022
Jul 08 2013 10:48:21 Arduino debug message: INFO MESSAGE 0: Temp sensor connected on pin 22, address 28703057040000C2
Jul 08 2013 10:48:23 Arduino debug message: INFO MESSAGE 0: Temp sensor connected on pin 22, address 28AF305704000022

The latest lead could be interference  from the fridge switching on but after looking at the latest logs this doesn’t quite match up !  Although it could be from the fridge next to it, but the Rev A shield system controlling this does’t seem to be effected, I’m confused  the Rev A system ( BlackPi) has less mains filtering on the mains input but is essentially the same build …
IMG_4129
Fridges next to each other
IMG_4130
The BrewPi systems
It will get sorted thats for sure, but it’s put my small attempts at getting my I2C displays going on the Mega2560 on the back burner, so far I’ve re hacked the hacked DIY shield, took a slight detour into testing  a DHT22 humidity sensor against the DS18B20 and started to change some of the latest Stable code in line with MDMA’s post on his findings but I’m keeping it local as I’m not sure I  have the coding skills to fork  a branch of the code for the Mega2560 version..

IMG_4138
Rough pin definitions
IMG_4144
Testing the Probes against each other

PS ..It’s been a warm day in the shed today just look at the temp chart !
it’s also just occurred to me that with both cornies in there in effect blocking and absorbing the cold it’ll probably need a fan to move the air past the refrigeration panel .

Screen Shot 2013-07-09 at 17.34.11
 ouch it’s a scorcher even with roof insulation

 

 

update New – Old Fridge

After a bit of a delay This evening I’ll be picking up my New-Old Fridge.
It’ll have to be transported on it’s side in the back of my Estate car Oops so after getting to the Brew Shed will have to be left to settle for a day or two as  I don’t want the compressor oil up it’s cooling tubes…Crying
Over those settling days I’ll start to convert it to a second BrewPi Fermentation Setup and then put it into use as a conditioning fridge!
Hopefully I’ll remember to take piccies of the conversion along the way !

******update 8th Jun*****

After picking up and defrosting the freezer with a hose and letting it settle overnight It’s now being used as a conditioning fridge with the STC1000  the @BrewPi is a bit too much overKill  Plus I’ve not currently got the coding Skills to get my dev system up and running …

IMG_4058 IMG_4076 Before and after shot of the freezer defrost

 

The fridge part nicely takes  a couple of corny kegs and there’s a convenient entry point for the CO2 and NTC thermister  at the back  Cool

IMG_4064 IMG_4066 IMG_4077
termostat housing convenient entry for Probe and CO2 line 2 kegs holding at 10.5 c

SSR purchase

After reading  Coombes69 troubles with Cheap Chinese  Fotek  SSR’s  and whilst  browsing on Ebay, I came across the following listing http://r.ebay.com/X1rmLN listed as ERL SSRs but are in fact ERI SSR’s made by Electronic Relays India and seem to have been around for 25 years so I decided to get a couple

$T2eC16N,!yEE9s5jE,)jBRn1oW3EI!~~60_57

I can’t find the exact model on their website  so I’m hoping they’re an old model
I’ll let you know how they work out Ha Ha

 

****Update****
  They have arrived, obviously not new other  as the seller said  the part number 009-0022313 suggests that they are from ATM machines and are possibly also made by powersem   data sheet  pdf 

@BrewPi thoughts I2C

Two new I2C boards arrived  very quickly from China .  I need to get on and get to grips  with my novice attempts at trying to use them in my BrewPi dev system,  I’m realising just what a novice at C++ I really am.
I found another library fron DigiSpark that works and looks more compact than ones listed on arduino-info site.

I’d tried to adapt the Brewpi code to use the i2c code on the arduino-info site without much success and It’s got to the point where because i haven’t read up enough  I’m thinking of replacing the functional code from the DigiSpark drivers into the SPi drivers done by Elco . I need to try and find more time to learn and read more tutorials on C++ Tutorial – Introduction to C++ – Cprogramming.com.  Maybe if I ask both Elco and MDMA they can integrate it into the Dyna build as an option but I’ll wait until the current build frenzy is out of the way…