BrewPi@ESP8266, no need of RPI and Arduino.

Homebrew Talk

Help Support Homebrew Talk:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.
The relays claim they have 5 volt coils so you need to hook the DC+ to +5VDC, the DC- to GND, and the IN1 and IN2 to your cool/heat or heat/cool GPIO, whichever way you go, making sure the relay outputs go to the corresponding actors. That dual relay module is still using opto-couplers on the control inputs, and they typically will work fine using the 3.3V GPIO pins provided on ESP controllers...

Cheers!
 
It would be very odd if there were not a rudimentary schematic on the listing.

Dave’s note is what I would try - but there are jumpers there too.
 
Didn't actually notice the jumpers before but it appears they may set the GPIO operating polarity.

Typically these relay modules use "low asserted" GPIO inputs to cause the relays to select their NO outputs, but it's possible the jumpers can enable either low or high assertion levels. Of course, that's a bit of cruft, because one can simply swap the relay output connections from the NO to NC pins instead of fiddling with input polarity 🤷‍♂️

Cheers!
 
Thank you for this, I did connect the GPIO pins D5 and D7 to the IN1 and IN2.
Also connected 5V + supply to DC+ and -ve / gnd of 5V supply to DC-.
With the gnd tied / common to the D1 and to the relay DC-.

With the jumper on HI and com when powered up both lights for relay red come on after a few seconds and the other hi volt side is live.
Changing control settings in brewpiless has no effect.
Swapping the jumper to lo and com the lights don't come on spontaneously and don't get affected by the brewpiless setting.

The D1 webpage and interactions to it are as before.
 
Make up a wire jumper so you can put 3.3V or GND on either of the input pins and use that to see how the channels behave.
Also, do you have a link to where you purchased that relay module?

Cheers!
 
That helps.
- "High and Low Level Trigger Relay Control" confirms my expectation wrt those S1 & S2 jumpers.
- 5ma input "trigger current" shouldn't be an issue for an ESP GPIO.
- the only thing lacking is a spec for the opto-couplers used to determine what the input thresholds actually are...

Cheers!
 
The GPIO pins are 3.3 V and touching either of the wires ( D5 or D7 ) to the IN1 or IN2 causes the light to come on the relay to work with jumpers on low and Com.
 
Okay put it all back together, as my original wiring and as suggested by @day_trippr .
Moved the jumpers onto hi and common.
Relays went straight on both of them.

I then went into the menu and in devices could see all the sensors and the heater and cooler.
So deleted eeprom, refreshed and reinstalled the devices. Swapped the pins from inverted to not inverted and low and behold just doing this turned the relays off.

Then all appeared to be working fine, power to the heat socket when needed. But then no heating although the socked that the heat belt plugged into was working with another device. Then I tested the cable to the heat belt and found a failure in it.
I've cut out the bad bit of cable, rejoined it and now it's all working.
Now I'm wondering if the esp8266 development board I had before had broken or if it was this heat belt having an intermittent problem.
I'll now need to test the old board and relay to see if they work together
 
Testing with BrewPiLess, as it seems to be one of the projects that is still actively developed and I have a couple of questions.

I intend to use a floating hydrometer for temperature measurements and control. I have a Tilt, but the BPL docs make it sound like Tilt is not recommended. Is an iSpindel a better option?

Second question - Beyond the screen support, is there any difference between BPL and BPLGX? Is one going to be deprecated over the other?

Thanks all!
 
Testing with BrewPiLess, as it seems to be one of the projects that is still actively developed and I have a couple of questions.

I intend to use a floating hydrometer for temperature measurements and control. I have a Tilt, but the BPL docs make it sound like Tilt is not recommended. Is an iSpindel a better option?

Second question - Beyond the screen support, is there any difference between BPL and BPLGX? Is one going to be deprecated over the other?

Thanks all!

1. ESP8266 doesn't have bluetooth capability, and only ESP32 works with Tilt. I don't have a Tilt, and I used iPhone to simulate Tilt while testing. It is difficult, if not possible, to test things that I don't have or don't use. By the way, after breaking three iSpindel, I am using a Pill over bluetooth now.

2. The cores of BPL and BPLGx are basically the same, except that BPLGx requires ESP32. However, having another GitHub resposity is easier instead of using a lot of #ifdef's. Having different repositories means they are different projects.

I don't think are many features to be added to these two projects. In fact, there are already too much for me to handle. People are still using classic/original BrewPi@Arduino that was developed like a decade ago, and they are happy. Just pick one that fits your need. If you don't already have a device, my recommendation is an ESP32S3 device, like WT32 SC01+.
 
Back again with another question or two.

Which GPIO pins do i connect a DHT22 humidity sensor to?
Also wanting to connect a heat pad via a relay ( planning to use the same pin as for my brewing setup)
Temp Sensor as per the brewing setup or is there a temp sensor in the humidity sensor?
I have a humidifier that requires 5 V, can this be run and controlled off the 5v outputs of the esp 32 or should I wire it into the relay?


I've got one of these expansion boards for the ESP 32 and wonder how it may change the way I do the wiring.

https://www.cytron.io/p-nodemcu-esp32-with-expansion-board

Can i use the jumper to set the V pins to 3.3v but the pins at the bottom left for anything needing 5V?
 
Okay think I've answered most of my questions.
I set the jumper on the expansion board so that the Voltage is 3.3 for the pins.
I have a DHT11 humidity and temp sensor ( not a DHT22 ). I connected this to pin 19, in devices I assigned this as Slot 2 and chamber humidity sensor then option to choose humidity sensor type occurred. I left it on DHT11 as that was autodetected. Then applied and refreshed devices, now further chamber heater temp sensor appeared. Selected chamber temp and slot 4 for this. Then applied and refreshed.
Strangely now have a further humidity sensor on pin 19 and slot 6 with a humidity reading of 255%. This doesn't affect the humidity sensor reading from the " first " humidity sensor on pin 19. I can't seem to get rid of it.
Heating works fine off the relay. The relay is powered off the 5 V pins on the expansion board.
The humidifier has 5 V from the expansion board going to COM1 on the relay, out of NO1 it goes to the humidifier positive, ground from the humidifier goes to G on the 5 V part of the expansion board.
This doesn't work when the control for humidity is set to a higher level than the measured value and applied.
The humidifier does get powered if I set the device to non inverted but no control through the relay possible. I will try it with com1 and NC1 and see if that changes behaviour.
Heater is on Pin 26 and humidifier on pin 27.

I have a 1.3 OLED but need to adjust this
" To use SSD1306, add -DOLED_LCD=true to build_flags " how do I find where this is to adjust it please. Display scrambled at present, I have installed the latest OLED compatible firmware.

Final task to set up a fan which should be a piece of cake!

Thanks for any advice and hope this helps someone. Plan is to use this for a mushroom fruiting chamber.
 
Seems the second relay on the board to control the humidifier is broken. It only works if set to not inverted and then it's just continuously on. So placing order for a new 2 way relay.

Still not sorted out why the OLED not working correctly.
 
Some updates.
Both channels working fine on relay now ( so possibly a loose wiring error ).
OLED I used platformio on VSC and made a mistake by loading the zip of all of brewpiless and had multiple failures when trying to build and upload.
Then realised I needed to use the zip for the brewpiless 4.4 oled and edit the build_flags.

Still no success the OLED continued with corrupted display.

Then I found out that the larger display ( 1.3 inch ) was not the 1306 but the other option an 1106. Adding the correct option
to build_flags -DOLED_LCD=true -DBREWPI_OLED_SH1106=true

then the display works fine.

The relay does turn the 5V supply to the humidifier on and off.


Fitted all into a small case, just need to wait for the next stage of mushroom development.
 
Back
Top