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

    Homebrewing Facebook Group

HOWTO - Make a BrewPi Fermentation Controller For Cheap

Homebrew Talk

Help Support Homebrew Talk:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.
Status
Not open for further replies.
It would appear from that sequence that the Uno is dropping the configuration write transaction on the floor instead of updating its seeprom.

I don't think I've had that happen.

You might try uploading the rev C hex file again, only this time click off both of the "restore" functions. I think avrdude will wipe the serial rom...

Cheers!
 
My guess is that you already did a Coastal Wheat beer back in July/August, so when you named your new beer file the same thing it is just appending to your old data logs.



I typically timestamp my beer names on the day they start like Homegrown IPA 031715 for example if i brewed today.


10 thumbs up, that was it. Thanks so much!!!!!!!
 
when i uploaded the HEX file i had both restore functions checked for "NO". I've tried reloading it several times lol.
 
I'm having the same problem as Amartel916. I tried adding just the beer probe to Beer 1 as device 0 and had the same, non-save-after-refresh condition. The LCD displays the temp though.

Tonight I downloaded the Rasbian image from the raspberrypi site (I had used the included NOOBS before), checked the hash, reimaged my SD, patched with the apt-get update/upgrade, and rpi-update, left everything as default, including using wired network and not installing tightvnc. Then installed brewpi, including installing pip and upgrading pyserial and psutil in order to start the script. As part of the total reset process, I also plugged the arduino into my laptop, loaded the blink sketch, and then cleared EEPROM to ensure it was clear. I also took all my wiring apart and rewired. I loaded brewpi-uno-revC.hex from the brewpi page, and didn't restore settings or devices. I then added my devices, hit refresh and nothing saved. I then rebooted the Pi, reflashed the hex file, not restoring settings or devices, and added my devices again. This time I only clicked apply and not refresh. The LCD updated and I was able to successfully run a cooling and a heating cycle (including power to the outlets) based on a fridge constant profile. I went back to device configuration, hit refresh and had no installed devices, even while it continued to heat! After I saw I had no installed devices, I closed the settings, turned the profile to off and when I clicked apply, the relay clicked off. I don't get it.

Where can I find the logs?

heating.png


no devices.png
 
I'm using a third temp sensor for ambient room temp.

Here are screenshots of 1) my sensor configs, after hitting apply, 2) after hitting refresh, and 3) the logs immediately following those. 4) After scrolling the stderr log (Duh on where to find the logs.. I know just enough Linux to be dangerous lol)

I see the logs show no received devices, which seems obvious, but I'm at a loss..

EDIT: The other thing is my temps reverted to C through a reboot. It's like the arduino operates fine on ram, but can't write to permanent memory.

config.jpg


after refrsh.jpg


1st page.png


2nd page.PNG
 
Try running the fixPermissions.sh again. Did you do multiple manual installs or just the basic install script?
 
I haven't tried plugging anything in yet, I'll have to try that tonight and see if it works without it showing them as installed.
 
I ran fixPermissions last night to no avail. I just ran it again and still no change. I graphed the 3 temp probes through the night though. It seems to be working as designed, just without "installed" devices. So strange.

Is there a way to force a write to the arduino of the running config? Maybe temporarily editing a file or script?

I used the automated installer.
 
You'll need to go through the entire log. Somewhere there's either a bad line in a python script or there will be some kind of connection error or programming error. I had a similar problem months ago that I thought was just an issue of running Linux vm on a win8 machine sharing a USB port. But if I remember correctly it was some single file somewhere that didn't get the right permissions.

Are you using a licensed uno or is it some Chinese knockoff of a nano or something. There are some real dirty chips going around right now.
 
I'm using a sainsmart uno from the link in the OP. I'm beginning to suspect hardware.

Would you mind looking at the errors in post #3141? I get those same errors every time I flash the HEX via the website. They seem curious, considering what's going on...

How do I view the entirety of the logs? The web view seems limited.

Also, what version of brewpi is everyone running? I was looking through the brewpi.py script and it mentions the spark in several places. I'm just wondering if there's an error in the latest version, even though it's not really new.

Thanks all
 
It looks like a communication error. Where it says 'ser' it looks like that is a partial command
 
I'm changing to uno. I'm also not restoring anything most times.

From what I can tell 'ser' is a term in python, that I assume stands for serial. I think I'm going to end up learning more python than expected through this process lol.. I started digging in this morning

I'm also going to try flashing the uno without any devices attached, just to see if there's a difference.
 
Problem solved!!!!

Ran this command: echo -ne 'E\n' > /dev/ttyACM0

The EEPROM clear procedure I was using from the arduino site here just wasn't doing the trick I thought it was. I ran that command, DIDN'T reflash the HEX, added a device or 2 at a time and refreshed and they came up as installed as expected. I even did a reboot to be sure, and sure enough.. Still installed! So pumped!

There's a new brewpi forum and that's where I found the solution:

https://community.brewpi.com/t/detected-devices-cannot-be-installed/295

Thanks everyone for the effort and moral support with this :mug:
 
Now I remember how I fixed it. I didn't I just started using serial over bt and the problem kinda went away.
 
Interestingly enough, I was having the exact same issue until tonight. Recently I completely rebuilt my Brewpi box with a bunch of new stuff, and some stuff that I reused from my old setup that I was never truly pleased with. Mine is powered by an old dell laptop and a Sainsmart Uno. After reflashing the uno, I had the exact same problem with devices that are "Installed" but they are not popping up in the "Installed" list along with no functionality. After running the command that was previously listed, everything seems to be working...kinda. Devices are still not showing up as installed, however they ARE functioning as they should be. Far as my temp sensors go, I've noticed that my fridge temp sensor now reads down to a 100th of a degree. For example, Instead of fridge reading 68.7, It might read 68.70, or 68.71, which I never had before. The other thing is that the beer temp sensor occasionally blanks out, reading --.- but then after 2 or 3 seconds it comes back reading the proper temperature. Strange. Someday I'll get to the bottom of this but in the meantime, it IS working. I can say that that much at least.
 
Just ran that script real fast before I headed off to work and IT WORKS!! @hopsandhops you are my hero right now!
 
Last edited:
I'm glad it worked for ya man! When I saw that post on the brewpi site, I was like omg! That's IT! Ran the script and when I had an installed device I was just elated. SWMBO definitely knew there was success from the other room lol

I had placed an order for a real Arduino UNO yesterday at work, thinking that might be the problem. Luckily they hadn't shipped it and I was able to cancel it.

Now to wire it into the fridge and get something in there! :rockin:
 
That's what I'll be doing tonight is getting the fridge all ready to try a couple text runs with some water. The wife will be happy that I'll be returning the TV to the bedroom now haha!

Thanks again for all the help!!
 
Install tightvnc! You'll only need the TV to install rasbian and tightvnc, and then you'll be able to administer remotely. I use the windows tightvnc viewer. Bertus Brewery has a good writeup on how to set it up in step 4 of this post:

http://www.bertusbrewery.com/2013/04/how-to-monitor-your-fermentation-temps.html


I've been pretty much spending all my free time since the weekend getting brewpi working, so last night I told SWMBO she could have ME back lol
 
Rj-11 plugs are awesome. 3 pin aircraft connectors are cool to look at and work great. Last night I was looking at some usb connector ends I have laying around and thought about how well that would work too. Headphone jacks are not a good idea unless you intend to turn off your arduino, then plug in the connector before turning the arduino back on.
 
Status
Not open for further replies.

Latest posts

Back
Top