• Welcome to National Homebrew Club Ireland. Please login or sign up.
April 27, 2024, 01:01:40 PM

News:

Renewing ? Its fast and easy - just pay here
Not a forum user? Now you can join the discussion on Discord


Brewpi on the Cheap

Started by darren996, March 24, 2017, 08:32:51 PM

Previous topic - Next topic

Shanna

pi zero, esp8266 & 10amp relay.with two sockets running off it. I have two one wire temp probes also. I see your not using any pi at all. Will spend a bit if time to try & figure out the wiring.

Shanna
Cornie keg group buy organiser, storeman & distribution point
Hops Group buy packer
Regulator & Taps distribution point
Stainless Steel Fermenter Group Buy Organiser
South Dublin Brewers member

Shanna

Actually just read your original explanation again after looking at the numbering on the D1 & the relay & things are much clearer. I will give it a try once I get a hold of a soldering iron.

Thanks for posting the pics.

Shanna
Cornie keg group buy organiser, storeman & distribution point
Hops Group buy packer
Regulator & Taps distribution point
Stainless Steel Fermenter Group Buy Organiser
South Dublin Brewers member

Shanna

Darren could I impose on you to take some photos of the electrical wiring for the power & the relays as its the only part not clear. There are loads of wires in the last photo & it's not clear what is going where?

Shanna
Cornie keg group buy organiser, storeman & distribution point
Hops Group buy packer
Regulator & Taps distribution point
Stainless Steel Fermenter Group Buy Organiser
South Dublin Brewers member

darren996

October 22, 2017, 11:06:07 PM #33 Last Edit: October 22, 2017, 11:18:58 PM by darren996
No problem, I will get a few pics tomorrow and throw them up

I switched to brewpiless, no need for a zero, very easy.

What brewpi implementation are you using?

Shanna

Quote from: darren996 on October 22, 2017, 11:06:07 PM
No problem, I will get a few pics tomorrow and throw them up

I switched to brewpiless, no need for a zero, very easy.

What brewpi implementation are you using?
Same one you posted in the original thread. Wondering how far the Wi-Fi on the D1 will work.Thanks by the way.

Shanna
Cornie keg group buy organiser, storeman & distribution point
Hops Group buy packer
Regulator & Taps distribution point
Stainless Steel Fermenter Group Buy Organiser
South Dublin Brewers member

darren996

Will put it together tonight. You will be able to power the d1 from the pi.

Would u consider brewpiless, no zero required and easy to set up. I have swapped all mine over

Wemos doesn't have greatest range

johnrm

I bought all the bits (WemosD1R2, ESP8266), but forgot Dupont leads.
These are on the way from China.

Upload and cabling seems easy enough - I did a quick bench test and could get into the Web interface.
The issue I have is that I cannot get temp from the one-wire probes.
Temps show either 0 or blank (can't remember)

I'll sit on this until the leads arrive and report back.

darren996

Quote from: johnrm on October 23, 2017, 09:58:50 AM
I bought all the bits (WemosD1R2, ESP8266), but forgot Dupont leads.
These are on the way from China.

Upload and cabling seems easy enough - I did a quick bench test and could get into the Web interface.
The issue I have is that I cannot get temp from the one-wire probes.
Temps show either 0 or blank (can't remember)

I'll sit on this until the leads arrive and report back.
Could be bad connections.
Are you using a 4.7k resister across the data and 3.3 v cable. I use a terminal block and solder the resistor to the live and data cables, this gives a really good connection
D6 data, and 3.3 v to temp probes
When you go to setup hardware then the temp probes should be connected

johnrm

Yep, using 4.7k, might be on 5v though.
Is this a pull-up resistor? (Came across this with another project about a year ago)
Once the postman arrives I will get back into this.

darren996

DuPont cables make it all a lot easier

Shanna

Quote from: johnrm on October 23, 2017, 09:58:50 AM
I bought all the bits (WemosD1R2, ESP8266), but forgot Dupont leads.
These are on the way from China.

Upload and cabling seems easy enough - I did a quick bench test and could get into the Web interface.
The issue I have is that I cannot get temp from the one-wire probes.
Temps show either 0 or blank (can't remember)

I'll sit on this until the leads arrive and report back.
I had the horrors originally getting those one wires probes to work originally. You have to be careful about wiring them as if you mis wire them they heat up & burn out in a few seconds.

Check this link out

https://raspberrypi.stackexchange.com/questions/37157/ds18b20-no-longer-working

If your still having trouble it could be the software module. Let me know if you need help & I will try & help. Also please post a picture of your wiring please?

Shanna
Cornie keg group buy organiser, storeman & distribution point
Hops Group buy packer
Regulator & Taps distribution point
Stainless Steel Fermenter Group Buy Organiser
South Dublin Brewers member

darren996

October 25, 2017, 01:23:53 PM #41 Last Edit: October 25, 2017, 11:56:13 PM by darren996
The original post is for thorraks brewpi
If following the original post get the latest update from thorrak.
Always follow the instructions on Github, this is the most up to date.

I followed the instructions here to the letter, very detailed
https://github.com/thorrak/brewpi-esp8266/blob/master/docs/INSTALL.md

If using thorraks brewpi the pin headers on the d1 mini board are

D0 - Heat
D1 - I2C SCL
D2 - I2C SDA
D3 - Buzzer (currently unsupported)
D4 - N/C
D5 - Cool
D6 - OneWire Data
D7 - Door (Untested)

The d1 mini also has a 3.3, 5v and ground pins. 
First thing I do is setup the d1 on a breadboard and split out the
ground and and live wires to the side terminals.  This allows you to
use multiple 3.3, ground and 5V terminals.

To make things easy on yourself invest in a bread board and male male, female male dupont cables. 
If not you have to junction off the 3.3v and ground cables as the d1 only has one of each.

If you want to setup BREWPILESS ( easier and less hardware ).
Wemos d1 mini
breadboard
dupont cables
temp probes
12c led screen (optional )


Software required.
Vitos brewpiless archive file on github
7-zip or someother software to unzip archive
Nodemcu flasher


Goto github and download unzip
https://github.com/vitotai/BrewPiLess

Unzip the file to a folder.

download nodemcu flasher and unzip
https://github.com/nodemcu/nodemcu-flasher

CONNECT THE D1 TO YOUR COMPUTER


Flash the software (oh behave)
Goto the nodemcu folder.
There will be two folders here Win32 or Win64, depending on your operating system select the correct folder,
in my case win64, open the release folder and execute ESP8266Flasher
Goto the config tab, you will see a table of entries
The first entry is INTERNAL://NODEMCU and it is ticked, untick this
goto the second row and select the bin you want to flash this is located in the folder you unzipped brewpiless.
There is a folder called bins, select the latest version, i selected BrewPiLess.v2.3.bin
in the offset colum select 0x00000 and tick the row as selected in the left column of the table
Select Operation tab on nodemcuflasher and hit the flash button and wait for the process to end
Reboot the d1.

Setup wifi on d1
https://github.com/vitotai/BrewPiLess#wifi-setting
Once the wifi is setup you will no longer see brewpiless on the network.

you can access brewpiless using http://brewpi.local or if you assigned an ip address access it that way

Setup hardware

Here are the pins for brewpiless

D0 Buzzer
D1 12C SCL
D2 I2C SDA
D3 INT from PCF8574 * Or Wakeup Button
D4 Door (not used)
D5 Cooling Actuator*
D6 Temperature Sensors
D7 Heating Actuator*

darren996

Some pics of the wiring I did, if you burn your house down or kill yourself I am not responsible, follow these instructions at your own risk.

First image is the wiring block. (wireblock.jpg)

I have one mains input, i use a strip to split the mains input to 3 outputs.
!. the mains to 5v converter
2. the fridge
3 the heater

1 live in and 3 live outs
1 Neutral in and 3 neutral out
1 earth in 3 3 earth out

Second is a clearer image of the wire splitting.
Third image is how I like to put the temp probes together.  I use dupont cables

The github page for brewpiless if very extensive and should answer all questions.
If you need anything else just reply

Shanna

Hi Darren,

That is super useful, I am interested in using the brewpiless approach. Not to be taking the piss but if you had links to the mains to 5V converter and also the usb type c that is powered by the 5V converter would be appreciated.

The wiring pictures really clear up a lot of questions but of course prompt some more if you will humour me please?

I am not sure I understand the Brewpiless pin assignment. How are the GPIO references below relevant?

GPIO16   D0   Buzzer
GPIO5   D1   I2C SCL
GPIO4   D2   I2C SDA
GPIO0   D3   INT from PCF8574 * Or Wakeup Button
GPIO2   D4   Door (not used)
GPIO14   D5   Cooling Actuator*
GPIO12   D6   Temperature Sensors
GPIO13   D7   Heating Actuator*
GPIO15   D8   

Shanna
Cornie keg group buy organiser, storeman & distribution point
Hops Group buy packer
Regulator & Taps distribution point
Stainless Steel Fermenter Group Buy Organiser
South Dublin Brewers member

darren996

Quote from: Shanna on October 25, 2017, 10:31:36 PM
Hi Darren,

That is super useful, I am interested in using the brewpiless approach. Not to be taking the piss but if you had links to the mains to 5V converter and also the usb type c that is powered by the 5V converter would be appreciated.

The wiring pictures really clear up a lot of questions but of course prompt some more if you will humour me please?

I am not sure I understand the Brewpiless pin assignment. How are the GPIO references below relevant?

GPIO16   D0   Buzzer
GPIO5   D1   I2C SCL
GPIO4   D2   I2C SDA
GPIO0   D3   INT from PCF8574 * Or Wakeup Button
GPIO2   D4   Door (not used)
GPIO14   D5   Cooling Actuator*
GPIO12   D6   Temperature Sensors
GPIO13   D7   Heating Actuator*
GPIO15   D8   

Shanna
Ignore the gpio reference. The above is lifted off the brewpiless site. When you download the archive there is a thorraks.bin file, this is fire pi and d1 mini configuration.

So if using  brewpiless just use the d1 mini pinout  I.e d1 d5 d6 etc. I will edit the other post

I will pull out the links for all the items I purchased for the build and post them tomorrow.

The power for the d1 mini is just a micro usb cable that I stripped myself, most homes would have these as spares in a drawer somewhere