• Please visit and share your knowledge at our sister communities:
  • If you have not, please join our official Homebrewing Facebook Group!

    Homebrewing Facebook Group

How To: BrewPi LCD Add-On

Homebrew Talk

Help Support Homebrew Talk:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.
Not if you go the bt route. all you need to do is upload the hex with the method I posted before or use xloader. under Windows you may need to find drivers for the ch340 chipset.
 
Hopefully the last question for the shield, guys. Day_trippr has caught a couple of fatal mistakes in my layout and has spent more time than I bet he wanted to on this, so mucho thanks to him.

Anyway, all of my HC-05 ad HC-06 modules have a right angle male header soldered on top of the module, like the one here that was posted earlier by day_trippr and wbarber69.

hc05_bottom.jpg

Is that what most of you guys are getting? Or are you getting modules without headers or with straight headers soldered to the top or bottom? I need to know what the majority of us are using so I can place the bluetooth header accordingly.
 
ok so im hitting a roadbloack and dont know where to go from here. I have setup virtualbox on win10 and went with debian9 for the os so i can mock up my test system before setting up the pi. i got everything installed and updated as the multi0chamber walkthrough goes. i have all permissions and whatnot setup, and i have all the config files configured to use my uno and i can see it in the /dev/ listing. but the problem i have is that after all this the webpages come up blank. nothing loads up, just a white page. ive even tried accessing the webpage from another system on the network and its the same. is there some new setting we need to change in apache to see the subfolders?

whenever i view source it only shows "1"
 
Sounds like a PHP package is not installed or installed correctly. You might check the error log: /var/log/apache2/error.log

You might also try creating a simple index.html file with only: <?php phpinfo(); ?>

Is that system running iptables?
 
the problem appears to be php7 since this install calls for php5 and php5 is depricated and no longer is a usable package for later versions of debian i dont know how to procede. i am currently using php7 and i got all the packages to install by removing the 5 and letting it choose the latest versions, but it is a no go so far.
 
Sounds like a PHP package is not installed or installed correctly. You might check the error log: /var/log/apache2/error.log

You might also try creating a simple index.html file with only: <?php phpinfo(); ?>

Is that system running iptables?

this works as it brings up the specified php info page, but it still doesnt fix the problem with brewpi
 
Did the errorlog give any information about what in your pages might be causing the issue? It's possible that there are some minor edits (deprecated or renamed functions) that would be easy fixes.
 
error logs from apache

Code:
[Sun Feb 05 13:22:57.785785 2017] [mpm_event:notice] [pid 486:tid 139660188157120] AH00489: Apache/2.4.25 (Debian) configured -- resuming normal operations
[Sun Feb 05 13:22:57.785868 2017] [core:notice] [pid 486:tid 139660188157120] AH00094: Command line: '/usr/sbin/apache2'
[Sun Feb 05 13:31:05.990331 2017] [mpm_event:notice] [pid 486:tid 139660188157120] AH00491: caught SIGTERM, shutting down
[Sun Feb 05 13:31:35.050874 2017] [mpm_event:notice] [pid 464:tid 139680547153088] AH00489: Apache/2.4.25 (Debian) configured -- resuming normal operations
[Sun Feb 05 13:31:35.289577 2017] [core:notice] [pid 464:tid 139680547153088] AH00094: Command line: '/usr/sbin/apache2'
[Sun Feb 05 13:43:54.728916 2017] [mpm_event:notice] [pid 464:tid 139680547153088] AH00491: caught SIGTERM, shutting down
[Sun Feb 05 13:43:54.769356 2017] [mpm_prefork:notice] [pid 7527] AH00163: Apache/2.4.25 (Debian) configured -- resuming normal operations
[Sun Feb 05 13:43:54.769455 2017] [core:notice] [pid 7527] AH00094: Command line: '/usr/sbin/apache2'
[Sun Feb 05 13:43:55.052307 2017] [mpm_prefork:notice] [pid 7527] AH00169: caught SIGTERM, shutting down
[Sun Feb 05 13:43:55.119410 2017] [mpm_prefork:notice] [pid 7582] AH00163: Apache/2.4.25 (Debian) configured -- resuming normal operations
[Sun Feb 05 13:43:55.119467 2017] [core:notice] [pid 7582] AH00094: Command line: '/usr/sbin/apache2'
[Sun Feb 05 13:56:57.602913 2017] [mpm_prefork:notice] [pid 7582] AH00169: caught SIGTERM, shutting down
[Sun Feb 05 13:57:31.182477 2017] [mpm_prefork:notice] [pid 480] AH00163: Apache/2.4.25 (Debian) configured -- resuming normal operations
[Sun Feb 05 13:57:31.196083 2017] [core:notice] [pid 480] AH00094: Command line: '/usr/sbin/apache2'
[Sun Feb 05 14:31:49.381795 2017] [mpm_prefork:notice] [pid 480] AH00169: caught SIGTERM, shutting down
[Sun Feb 05 14:33:27.602912 2017] [mpm_prefork:notice] [pid 510] AH00163: Apache/2.4.25 (Debian) configured -- resuming normal operations
[Sun Feb 05 14:33:27.612429 2017] [core:notice] [pid 510] AH00094: Command line: '/usr/sbin/apache2'
[Sun Feb 05 14:34:17.577373 2017] [:error] [pid 521] [client ::1:56784] PHP Fatal error:  Uncaught Error: Call to undefined function mb_convert_encoding() in /var/www/html/chamber1/index.php:53\nStack trace:\n#0 /var/www/html/chamber1/index.php(24): prepareJSON('{"beerName": "S...')\n#1 {main}\n  thrown in /var/www/html/chamber1/index.php on line 53
[Sun Feb 05 14:34:31.096950 2017] [:error] [pid 520] [client ::1:56786] PHP Fatal error:  Uncaught Error: Call to undefined function mb_convert_encoding() in /var/www/html/chamber1/index.php:53\nStack trace:\n#0 /var/www/html/chamber1/index.php(24): prepareJSON('{"beerName": "S...')\n#1 {main}\n  thrown in /var/www/html/chamber1/index.php on line 53
[Sun Feb 05 14:34:40.133897 2017] [:error] [pid 522] [client ::1:56788] PHP Fatal error:  Uncaught Error: Call to undefined function mb_convert_encoding() in /var/www/html/chamber2/index.php:53\nStack trace:\n#0 /var/www/html/chamber2/index.php(24): prepareJSON('{"beerName": "S...')\n#1 {main}\n  thrown in /var/www/html/chamber2/index.php on line 53
[Sun Feb 05 14:40:10.401596 2017] [:error] [pid 519] [client ::1:56866] PHP Fatal error:  Uncaught Error: Call to undefined function mb_convert_encoding() in /var/www/html/chamber1/index.php:53\nStack trace:\n#0 /var/www/html/chamber1/index.php(24): prepareJSON('{"beerName": "S...')\n#1 {main}\n  thrown in /var/www/html/chamber1/index.php on line 53
[Sun Feb 05 14:40:50.494749 2017] [:error] [pid 521] [client ::1:56868] PHP Fatal error:  Uncaught Error: Call to undefined function mb_convert_encoding() in /var/www/html/chamber1/index.php:53\nStack trace:\n#0 /var/www/html/chamber1/index.php(24): prepareJSON('{"beerName": "S...')\n#1 {main}\n  thrown in /var/www/html/chamber1/index.php on line 53
[Sun Feb 05 14:43:18.231268 2017] [:error] [pid 520] [client ::1:56870] PHP Fatal error:  Uncaught Error: Call to undefined function mb_convert_encoding() in /var/www/html/chamber1/index.php:53\nStack trace:\n#0 /var/www/html/chamber1/index.php(24): prepareJSON('{"beerName": "S...')\n#1 {main}\n  thrown in /var/www/html/chamber1/index.php on line 53
[Sun Feb 05 14:43:31.321325 2017] [:error] [pid 522] [client ::1:56872] PHP Fatal error:  Uncaught Error: Call to undefined function mb_convert_encoding() in /var/www/html/chamber2/index.php:53\nStack trace:\n#0 /var/www/html/chamber2/index.php(24): prepareJSON('{"beerName": "S...')\n#1 {main}\n  thrown in /var/www/html/chamber2/index.php on line 53
[Sun Feb 05 14:43:41.297644 2017] [:error] [pid 523] [client ::1:56874] PHP Fatal error:  Uncaught Error: Call to undefined function mb_convert_encoding() in /var/www/html/chamber3/index.php:53\nStack trace:\n#0 /var/www/html/chamber3/index.php(24): prepareJSON('{"beerName": "S...')\n#1 {main}\n  thrown in /var/www/html/chamber3/index.php on line 53
[Sun Feb 05 14:45:33.090528 2017] [mpm_prefork:notice] [pid 510] AH00169: caught SIGTERM, shutting down
[Sun Feb 05 14:46:08.969627 2017] [mpm_prefork:notice] [pid 486] AH00163: Apache/2.4.25 (Debian) configured -- resuming normal operations
[Sun Feb 05 14:46:08.993085 2017] [core:notice] [pid 486] AH00094: Command line: '/usr/sbin/apache2'
[Sun Feb 05 14:46:51.828766 2017] [:error] [pid 517] [client 192.168.1.17:61467] PHP Fatal error:  Uncaught Error: Call to undefined function mb_convert_encoding() in /var/www/html/chamber1/index.php:53\nStack trace:\n#0 /var/www/html/chamber1/index.php(24): prepareJSON('{"beerName": "S...')\n#1 {main}\n  thrown in /var/www/html/chamber1/index.php on line 53
[Sun Feb 05 14:53:28.476065 2017] [:error] [pid 516] [client 192.168.1.17:61688] PHP Fatal error:  Uncaught Error: Call to undefined function mb_convert_encoding() in /var/www/html/chamber1/index.php:53\nStack trace:\n#0 /var/www/html/chamber1/index.php(24): prepareJSON('{"beerName": "S...')\n#1 {main}\n  thrown in /var/www/html/chamber1/index.php on line 53
[Sun Feb 05 14:53:34.088602 2017] [:error] [pid 515] [client 192.168.1.17:61690] PHP Fatal error:  Uncaught Error: Call to undefined function mb_convert_encoding() in /var/www/html/chamber2/index.php:53\nStack trace:\n#0 /var/www/html/chamber2/index.php(24): prepareJSON('{"beerName": "S...')\n#1 {main}\n  thrown in /var/www/html/chamber2/index.php on line 53
[Sun Feb 05 14:53:48.069387 2017] [:error] [pid 514] [client 192.168.1.17:61691] PHP Fatal error:  Uncaught Error: Call to undefined function mb_convert_encoding() in /var/www/html/chamber1/index.php:53\nStack trace:\n#0 /var/www/html/chamber1/index.php(24): prepareJSON('{"beerName": "S...')\n#1 {main}\n  thrown in /var/www/html/chamber1/index.php on line 53
[Sun Feb 05 15:02:21.450071 2017] [mpm_prefork:notice] [pid 486] AH00169: caught SIGTERM, shutting down
[Sun Feb 05 15:04:25.489888 2017] [mpm_prefork:notice] [pid 472] AH00163: Apache/2.4.25 (Debian) configured -- resuming normal operations
[Sun Feb 05 15:04:25.520087 2017] [core:notice] [pid 472] AH00094: Command line: '/usr/sbin/apache2'
[Sun Feb 05 15:06:49.565824 2017] [:error] [pid 481] [client ::1:38910] PHP Notice:  Use of undefined constant \xe2\x80\x98display_errors\xe2\x80\x99 - assumed '\xe2\x80\x98display_errors\xe2\x80\x99' in /var/www/html/chamber1/index.php on line 2
[Sun Feb 05 15:06:49.579649 2017] [:error] [pid 481] [client ::1:38910] PHP Fatal error:  Uncaught Error: Call to undefined function mb_convert_encoding() in /var/www/html/chamber1/index.php:55\nStack trace:\n#0 /var/www/html/chamber1/index.php(26): prepareJSON('{"beerName": "S...')\n#1 {main}\n  thrown in /var/www/html/chamber1/index.php on line 55
[Sun Feb 05 15:07:41.854586 2017] [:error] [pid 479] [client ::1:38912] PHP Notice:  Use of undefined constant \xe2\x80\x98display_errors\xe2\x80\x99 - assumed '\xe2\x80\x98display_errors\xe2\x80\x99' in /var/www/html/chamber1/index.php on line 2
[Sun Feb 05 15:07:41.854701 2017] [:error] [pid 479] [client ::1:38912] PHP Fatal error:  Uncaught Error: Call to undefined function mb_convert_encoding() in /var/www/html/chamber1/index.php:55\nStack trace:\n#0 /var/www/html/chamber1/index.php(26): prepareJSON('{"beerName": "S...')\n#1 {main}\n  thrown in /var/www/html/chamber1/index.php on line 55
[Sun Feb 05 15:07:47.267159 2017] [:error] [pid 482] [client ::1:38914] PHP Fatal error:  Uncaught Error: Call to undefined function mb_convert_encoding() in /var/www/html/chamber2/index.php:53\nStack trace:\n#0 /var/www/html/chamber2/index.php(24): prepareJSON('{"beerName": "S...')\n#1 {main}\n  thrown in /var/www/html/chamber2/index.php on line 53
[Sun Feb 05 15:07:53.573774 2017] [:error] [pid 483] [client ::1:38916] PHP Notice:  Use of undefined constant \xe2\x80\x98display_errors\xe2\x80\x99 - assumed '\xe2\x80\x98display_errors\xe2\x80\x99' in /var/www/html/chamber1/index.php on line 2
[Sun Feb 05 15:07:53.573860 2017] [:error] [pid 483] [client ::1:38916] PHP Fatal error:  Uncaught Error: Call to undefined function mb_convert_encoding() in /var/www/html/chamber1/index.php:55\nStack trace:\n#0 /var/www/html/chamber1/index.php(26): prepareJSON('{"beerName": "S...')\n#1 {main}\n  thrown in /var/www/html/chamber1/index.php on line 55
[Sun Feb 05 15:16:56.042989 2017] [mpm_prefork:notice] [pid 472] AH00169: caught SIGTERM, shutting down
[Sun Feb 05 15:17:32.097649 2017] [mpm_prefork:notice] [pid 484] AH00163: Apache/2.4.25 (Debian) configured -- resuming normal operations
[Sun Feb 05 15:17:32.137202 2017] [core:notice] [pid 484] AH00094: Command line: '/usr/sbin/apache2'
[Sun Feb 05 15:18:01.069399 2017] [:error] [pid 517] [client 192.168.1.17:61800] PHP Notice:  Use of undefined constant \xe2\x80\x98display_errors\xe2\x80\x99 - assumed '\xe2\x80\x98display_errors\xe2\x80\x99' in /var/www/html/chamber1/index.php on line 2
[Sun Feb 05 15:18:01.083119 2017] [:error] [pid 517] [client 192.168.1.17:61800] PHP Fatal error:  Uncaught Error: Call to undefined function mb_convert_encoding() in /var/www/html/chamber1/index.php:55\nStack trace:\n#0 /var/www/html/chamber1/index.php(26): prepareJSON('{"beerName": "S...')\n#1 {main}\n  thrown in /var/www/html/chamber1/index.php on line 55
 
Did the errorlog give any information about what in your pages might be causing the issue? It's possible that there are some minor edits (deprecated or renamed functions) that would be easy fixes.

easy fixes that may require us to fork a new branch off of legacy...
 
Okay I believe (have not tested) that this is because mb_convert_encoding() is not supported in your base version of php. Try the following:

sudo apt-get install php7.0-mbstring
sudo service php7.0-fpm restart

.. or reboot if the second command does not work.

From what I can tell, multibyte functions are supposed to be installed by default, but from a Google, you are not the only one having the issue.

Keep in mind I do not have a system with PHP7 right now, so this is an untested fix.
 
bam i was right ahead of you in google.

a simple "apt-get install php-mbstring" did the trick
 
another easy fix. apparently there is a bug in the webui. you must go to advanced settings and scroll all the way down to the bottom of the bottom window and hit "reset controller to factory defaults" then you can install devices
 
that wasnt too hard. now all thats left is to wait for my lcd cables to come in and i can test that the pfet is installed correctly
 
one thing that could also be added to v1.2 is to add 2 more pins to the led output and drive them directly from pin 5 and 6.
 
The relay header gets it's own copies of D5 and D6, and there are the standard header pins for D5 and D6.
They don't work on your build?

Not positive but I suspect v1.2 is frozen...

Cheers!
 
So - Are there more hoops and barrels needed to be jumped in order to get BrewPi installed?I crap my pants every time I see the heavy hitters having problems getting BP to chooch.
 
Between the OS and layered software there's a big moving target, but we muddle forward :)
What wbarber69 just ran into is the first I've seen mentioned, but it likely won't be the last.

Someone said the other day he upgrades often.
I don't...

Cheers!
 
The relay header gets it's own copies of D5 and D6, and there are the standard header pins for D5 and D6.
They don't work on your build?

Not positive but I suspect v1.2 is frozen...

Cheers!

it would still be convenient for people who want to use dupont cables. since the current setup requires you to either splice 2 wires to one pin, or wire the led directly in line of the relay header. if there were pinouts for the leds then one could essentially just install the led directly to the board if they so wished.
 
Between the OS and layered software there's a big moving target, but we muddle forward :)
What wbarber69 just ran into is the first I've seen mentioned, but it likely won't be the last.

Someone said the other day he upgrades often.
I don't...

Cheers!

correct, im using the latest os and the latest php. im using these posts so i can reference them once its time to update the wiki. im also wading into what i can expect to come across when i go full pi3 jessie in a week. now i have to start testing bluetooth (once i figure how to port it through to vm). i figure if i can nail that down doing it from scratch, then i shoulnt (hopefully) run into any terrible roadblocks down the way.
 
So - Are there more hoops and barrels needed to be jumped in order to get BrewPi installed?I crap my pants every time I see the heavy hitters having problems getting BP to chooch.

also take into account, that i havent messed with this project in almost 2 years. im starting fresh with the rest of you, since my pi's have been bouncing around from project to project all this time. i gave up last time because i had to hand make every component of the build and it got too heavy. now theres a simple shield again... i can spend less time on hardware troubleshooting.
 
it would still be convenient for people who want to use dupont cables. since the current setup requires you to either splice 2 wires to one pin, or wire the led directly in line of the relay header. if there were pinouts for the leds then one could essentially just install the led directly to the board if they so wished.

I'm confused - are you not installing headers atop the shield?

The entire Arduino IO are available atop the shield, so IO D5 & D6 are duplicated between the standard Uno header layout and the relay header.
There should not be any splicing or daisy-chaining required, at least for those two signals...

Cheers!
 
Should not be on a Pi .... this was on Debian on a PC.

Remembering where Raspbian and most of the applications come from, it's just a matter of time.
Especially for significant packages like php where the maintainers will sunset older versions to avoid having to support them all...

Cheers!
 
I'm confused - are you not installing headers atop the shield?



The entire Arduino IO are available atop the shield, so IO D5 & D6 are duplicated between the standard Uno header layout and the relay header.

There should not be any splicing or daisy-chaining required, at least for those two signals...



Cheers!


Once again I'll put it out there. the arduino pins are not situated next to the led pins on the boards. Meaning you would have to run separate wires to each side of the LEDs. making a standard 2 pin cable a hassle. and no im not running thin pin through headers… which are not the proper way to stack shields anyway. a proper stacking header would have female pins up top. not male like the ones you've posted before. Also, on the current shield it wouldn't be that hard since the io for 5 and 6 travel very close to where the power pins for the leds pin out.
 
Remembering where Raspbian and most of the applications come from, it's just a matter of time.

Especially for significant packages like php where the maintainers will sunset older versions to avoid having to support them all...



Cheers!


This actually causes the installer script to not function at all, at least for pc installs. since php5 doesn't exist anymore in that os.
 
Remembering where Raspbian and most of the applications come from, it's just a matter of time.
Especially for significant packages like php where the maintainers will sunset older versions to avoid having to support them all...

Cheers!
Eventually, everything will be superseded. I did a full update last night though and all is still well with Raspbian.
 
[...]and no im not running thin pin through headers… which are not the proper way to stack shields anyway. a proper stacking header would have female pins up top. not male like the ones you've posted before.[...]

Unless one is planning on actually stacking another shield, it doesn't make a lot of sense to forgo male pins on top and then complain about needing more pins...

Cheers!
 
I'm not complaining that the arduino doesn't have the pins, im saying it's kinda pointless to put the led header on there and still have to splice around to make it work. it's labeled h and c but it's just a vcc line tied through a resistor to a pin. they really don't serve their purpose. of your gonna put pins out for that you might as well bring the traces over from pins 5 and 6 too. what if I wanted to build a shield out just to test arduinos as I was programming them. id have to have an led cable hooked up instead of just dropping the led into the pin holes on the board. im not saying the whole thing needs to be redesigned but if you're gonna put a header on there for leds it's kinda pointless if it doesn't include the io with it. kinda like the Bluetooth pins, if they don't line up with the pins on the bt dongle then you have to use 4 separate DuPont single pin wires instead of a 4-4 pin cable or even plugging it directly to the board. Just like it would be more useful to make an encoder pin header instead of having to use separate cables again. I don't like single DuPont wires, they aren't stable enough for me.
 
I'm not complaining that the arduino doesn't have the pins, im saying it's kinda pointless to put the led header on there and still have to splice around to make it work. it's labeled h and c but it's just a vcc line tied through a resistor to a pin. they really don't serve their purpose.

Actually, those two pull-up pins were on my original shield for my purposes, and for my purposes they work perfectly.
And as neither of them travel with the four wires to the relay module, a 6-lead ribbon cable would be useless, so there wasn't any point in grouping them.

As for the BT header, I didn't attempt to make it "plug compatible" as I didn't need to for my purposes, preferred a better location than laying the radio on the shield, and I didn't know or care at the time if there was any pin out standard that could be exploited.

Cadibrewer simply took my working shield design and translated it into a pcb.
Not a lot of effort was expended in consideration of unusual implementations.

Put another way, it's a clone of a clone ;)

Cheers!
 
So I assume the pinout on the board matches the pinout of the lcd…. Troubleshooting a blank display…. I think it may be my potentiometer since turning it does nothing, already traded out the shift register just in case
 
I think there was only one run of boards with the end-to-end swap of the silkscreen vs signals (I built one of those, too).

Is the backlight working just no characters?

Cheers!
 
I think there was only one run of boards with the end-to-end swap of the silkscreen vs signals (I built one of those, too).

Is the backlight working just no characters?

Cheers!

Yes, there are only three incorrect pinout boards in existence and they are in use by day_trippr and me. I corrected that mistake before I sent the files out for public consumption. Those boards might be worth something someday &#128522;.

FWIW, the backlight works both ways, just not the characters.

Have you tried turning the screw on the trimmer more times than you think you need to? On my last build, I had to turn it maybe ten or more complete turns before anything started showing up on the screen.
 
I removed the pot and it's exactly the same so I've destroyed this one and I'll solder up another tomorrow. yes the backlight works but no characters. I found it interesting that it wasn't true when I pulled the shift register. shouldn't the backlight work no matter what?
 
Probably not. The shift register blanking output signal is low active (low = shut off the back light), and removing it is letting the FET gate float low...
 

Latest posts

Back
Top