remote pressure monitoring

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

Help Support Homebrew Talk:

dtashmore547

Well-Known Member
Joined
Jan 8, 2020
Messages
74
Reaction score
28
this is my first post and I would like to give back a little to this forum for all the help it has given me.
does anyone else have the same problem as I had? having gone into pressure fermentation and finding it very advantageous I was concerned with monitoring my pressure, my fermentation chamber is in my brew shed at the bottom of the garden and proved awkward for monitoring the pressure from my kegland spunding valve, my solution was to put the information on my wifi via a esp8266 module. if anyone with sufficient soldering and programming (Arduino) skills would like the info please respond via this thread and I can post the details.
components used
I used an esp8266 esp-07 with external antenna plus ceramic antenna
for the distance required but others will suffice as it only requires 1 analog I/p and 1 digital output for a meter (pwm)
1 x 3135 20v digital meter ( changed solder points on back to give 1 decimal place)
1 x XGZP6847200KPG 200 kpg pressure sensor module (29psi)
1 x usb to serial module to program the esp module
1 x 80-250v to 5v 700mA supply
1 x 3cm by 7cm pcb prototype board
2 x project box 7cm W by 13cm L by 4cm H
4 x 10k resistors
1 x 5k6 resistor
1x 1k6 resistor
1x 1k resistor
1 x 4 pin single row 0.1in header to connect with the usb to serial module
2 x 0.1uF ceramic capacitor
so the cost is fairly minimal
 
OP
OP
D

dtashmore547

Well-Known Member
Joined
Jan 8, 2020
Messages
74
Reaction score
28
just wish you had replied a week ago, just had a disaster with my computer, lost my home partition and with it all my programs,stupidly not backed up for a few months, will have to get my program re-written but will take a few weeks as there are a couple of other items to recover first. I will post this project once I have it back. please excuse my error and keep an eye open for the update
 
Joined
Jan 19, 2013
Messages
3,760
Reaction score
1,590
Location
Rural Kansas
Oh no!

May I suggest something like GitHub in the future? Too many folks think GitHub is for "pros" and don't make use of it. The truth is, there's a lot of REALLY crappy code on GitHub. Never be embarrassed about sharing - someone else may jump in and want to help out and contribute making it even better.

I think the code to do this would be reasonably straightforward so I'd not get too twisted around the axle on that one. I'm curious about your physical implementation and potentially a schematic (or a pic of the hook-ups.)

Did you use the Analog meter as a pseudo-pressure gauge?
 
OP
OP
D

dtashmore547

Well-Known Member
Joined
Jan 8, 2020
Messages
74
Reaction score
28
hi Lee
you're spot on, never considered github, the code is only an adaption of an ajax server example from the net, when I have time I will duplicate it and post. for the time being I will put a circuit diagram together and a couple of photos and put them on this post.
 
OP
OP
D

dtashmore547

Well-Known Member
Joined
Jan 8, 2020
Messages
74
Reaction score
28
these are photos of the setup in situ.
the feed ours from a spunding valve into a pressure 200kpg (29Psi) transducer which gives out 0.5 to 4.5 volts, this is then reduced to 0.1 to 0.9 volts for the ESP8266 module.
the output of the ESP module is 0 to 5 volts via pwm and a filter the system is supplied by a 220v to [email protected] SMPS.
I utilised an ESP unit that requires an aerial due to the distance between my home and shed +- 25 meters.
the meter display is 5135 20 volt meter the meter has solder points on the back to change the regional point, this should be changed to show 1 decimal place. the input should be 2.9 volts at 4.5 volts from the pressure sensor. I live at 1500mts altitude, this changed the zero value so altitude should be factored into the output calibration of the ESP device.
the system was mounted on 0.1 inch prototype board.
I hope to upload a circuit diagram soon.
 

Attachments

  • IMG_20220121_151545.jpg
    8.8 MB · Views: 19
  • IMG_20220121_151417.jpg
    IMG_20220121_151417.jpg
    5.1 MB · Views: 36
  • IMG_20220121_151248.jpg
    IMG_20220121_151248.jpg
    5.4 MB · Views: 35
  • IMG_20220121_151803.jpg
    IMG_20220121_151803.jpg
    1.5 MB · Views: 33
OP
OP
D

dtashmore547

Well-Known Member
Joined
Jan 8, 2020
Messages
74
Reaction score
28
data sheet for the pressure sensor
 

Attachments

  • xgzp6847 pressure sensor.pdf
    525.4 KB · Views: 14
OP
OP
D

dtashmore547

Well-Known Member
Joined
Jan 8, 2020
Messages
74
Reaction score
28
this is the circuit diagram and ESP8266 data sheet
 

Attachments

  • Pressure Monitor Schematic Print.pdf
    21.6 KB · Views: 13
  • Ai-thinker_ESP-07_WIFI_Module-EN.pdf
    368.4 KB · Views: 8
OP
OP
D

dtashmore547

Well-Known Member
Joined
Jan 8, 2020
Messages
74
Reaction score
28
the pressure sensor is driven by the 5/16 inch gauge output of the spunding valve, the sensors come with a length of clear plastic pipe, to adapt from 5/16 to the small pressure sensor pipe I used 75mm of 1.2mm refrigeration copper capillary pipe and soldered it to 5/16 copper pipe.
attached is a screenshot of the web page
 

Attachments

  • IMG_20220121_184714.jpg
    IMG_20220121_184714.jpg
    70.4 KB · Views: 11
OP
OP
D

dtashmore547

Well-Known Member
Joined
Jan 8, 2020
Messages
74
Reaction score
28
hi Lee
the temperature controller is a small part of my fermentation cupboard, just there to prevent my heater (3 power resistors on a heatsink) from getting too hot the the main controller is of my own making and uses a pic16f866 with an mcp9808 temperature module to control the heater and a homemade refrigeration unit.
 
Joined
Jan 19, 2013
Messages
3,760
Reaction score
1,590
Location
Rural Kansas
uses a pic16f866 with an mcp9808 temperature module
I was talking about what looks like a XH-W1219 down below.

I greatly prefer monitoring and reporting pressure to some of the setups I've seen where people want to control it with a microcontroller. While you can get into pretty advanced pressure profiles to optimize ester production in some beers, I hate to think what would happen if the controller decided to crash or flake out. Such a setup would require a sounding valve on top of the solenoid to act as a fail-safe.
 
OP
OP
D

dtashmore547

Well-Known Member
Joined
Jan 8, 2020
Messages
74
Reaction score
28
my setup is just a very simple remote monitoring of the spunding pressure so I don't need to run to my brew shed all the time, just a quick check to see if all is well.
it is a w1219 controller, it is tied in with my heater to prevent overheat conditions, wouldn't want smoke and flames in a wooden shed, it simply turns off the heater when it reaches 50 sets it back on when it drops to 49.
 

pocketmon

Well-Known Member
Joined
Oct 12, 2015
Messages
723
Reaction score
243
Is your pressure reading stable?
I've tried ADC of ESP8266 for pressure reading in my BrewPiLess project. It's very unstable.
I checked the document of ESP8266, which states that ADC is used only for WiFi module and will be affected by WiFi operation.
I have to use an additional ADC module, ADS1115.
 
OP
OP
D

dtashmore547

Well-Known Member
Joined
Jan 8, 2020
Messages
74
Reaction score
28
@pocketmon I had no stability problems at all the readings are stable and consistent, have you got a good signal strength on your Wi-Fi connection? is your common connection solid? a poor common will cause noise and affect your analog, do you have a 0.1 or better ceramic capacitor across your 3.3v to common close to the pins?
 

pocketmon

Well-Known Member
Joined
Oct 12, 2015
Messages
723
Reaction score
243
@pocketmon I was thinking about that. With the ESP32 you can use the other ADC. With the 8266 could you shut off the radio, take your reading, then turn it back on?

I was planning to control pressure by venting, and I don't think it's feasible solution by turning off the radio.
 

pocketmon

Well-Known Member
Joined
Oct 12, 2015
Messages
723
Reaction score
243
@pocketmon I had no stability problems at all the readings are stable and consistent, have you got a good signal strength on your Wi-Fi connection? is your common connection solid? a poor common will cause noise and affect your analog, do you have a 0.1 or better ceramic capacitor across your 3.3v to common close to the pins?

Those might be some of the problems.
However, I believe that the radio does interference ADC according my googling, like Fluctuating ADC with stabilized source · Issue #2070 · esp8266/Arduino
 

DuncB

Well-Known Member
Joined
Jun 5, 2019
Messages
2,203
Reaction score
1,237
Location
Paremata New Zealand
Hasn't vitotai already sorted this out for pressure monitoring and autospunding on brewpiless?


I haven't taken the plunge yet with the vitotai solution and might do in the future.

For monitoring pressure remotely my solution a little less teccy works okay,

Using a clever dog camera ( usb powered wifi connected )

point it at spunding valve gauge, has infra red so works inside the fridge/ ferment chamber without a light.

App allows viewing of it anywhere with internet access. Would be better if the camera had a shorter focal length.

Cleverdog20220123173343.png.jpg
 
Top