How To: BrewPi LCD Add-On | Page 6 | HomeBrewTalk.com - Beer, Wine, Mead, & Cider Brewing Discussion Community.

Homebrew Talk

Help Support Homebrew Talk by donating:

  1. Dismiss Notice
  2. We have a new forum and it needs your help! Homebrewing Deals is a forum to post whatever deals and specials you find that other homebrewers might value! Includes coupon layering, Craigslist finds, eBay finds, Amazon specials, etc.
    Dismiss Notice

How To: BrewPi LCD Add-On

Discussion in 'Fermenters' started by day_trippr, Dec 31, 2014.

 

  1. ubermick

    Well-Known Member

    Posted Apr 9, 2015
    Oh, you magnificent bastard! I owe you a pint. Sensors and whatnot are now stored. Hopefully they'll survive a reset this time! Now onto the shield...
     
  2. ubermick

    Well-Known Member

    Posted Apr 10, 2015
    Okay, so the Arduino itself seems happy now. In it's shieldless configuration, everything seems to be working away. Hooray!

    When the shield is added though, it's not seeing the onewire goodies at all. Sees the digital pins (heater cooler action) without issue, but it won't show the thermoprobes under devices. Nor is it showing any of their data in the LCD screen. This is confusing me, since for all of the wiring and shenanigans going on with the shield, the onewire is just a resistor connected to the 5v rail, then jumped onto the shield's analog pin 4, right? The simplest thing in all of it? Checked my work there, and don't see any issue - pulled out the multimeter, and not seeing any issue either. Anyone got any thoughts on that?
     
  3. ubermick

    Well-Known Member

    Posted Apr 10, 2015
    Well, weird. I went over the connections again with the multimeter, this time checking for voltage to make sure there was power getting to that rail. Had a weird needle spike when I measured, almost like the capacitor needed to discharge, and now... and now...

    Think it's just the [email protected]#[email protected]# rotary encoder now!

    IMAG0192.jpg
     
  4. wbarber69

    Well-Known Member

    Posted Apr 10, 2015
    It was just waiting for the profanities to cease
     
  5. ubermick

    Well-Known Member

    Posted Apr 11, 2015
    I'm Irish... Never happen!!!
     
    BazzookaBuddy likes this.
  6. Mikmonken

    Well-Known Member

    Posted Apr 12, 2015
    To be sure
     
    ubermick likes this.
  7. ubermick

    Well-Known Member

    Posted Apr 14, 2015
    Oof, rotary encoder is a pain in the buttocks! I assume centre pin of the three to common, and one f the two switch pins there too?
     
  8. Mikmonken

    Well-Known Member

    Posted Apr 14, 2015
    Ubermick have you just edited your post? I don't think the rotary encoder attaches to the 10k pot the three wires attach to the capacitors and resistors to the left of the shift register I think. Those are attached to the ground rail, see the diagrams on page 2 I think.
     
  9. ubermick

    Well-Known Member

    Posted Apr 15, 2015
    Yep, I spoke before I thought. Or rather, I posted before I Googled. Based on the wiring diagram on page 2, and having never worked with rotary encoders before, I assumed pins 7, 8, 9 ran to the bottom three pins on the encoder, with the top two unused. Which I tried, and not surprisingly, didn't work. Then I googled a wiring diagram, and read that only one of the pins (either switch side or rotary side) need to be grounded. Turns out the way I have it, both the centre pin of the rotary side, and one of the pins on the switch side need to be grounded (so five wires running from the Arduino instead of three in the diagram). Of course, I'll pull out the soldering iron and jump the two grounds together meaning just four. But still more than the three I assumed. (and we all know what happens when I assume, haha).

    But... drumroll... it's all working now! I got the wifi finally (FINALLY!) working on the Pi, the Arduino is now magically (no CLUE why this changed) remembering settings, the display is working, the rotary encoder is working... so all I need to do is make some nicer jumper wires from some ribbon cable, plop this in an enclosure, and I should be good to go.

    Big thanks to everyone for their help! (But still think we should put together a board and do a group buy!)
     
  10. wbarber69

    Well-Known Member

    Posted Apr 15, 2015
    I'm down if we can get day_tripper to design it with all his free time...
     
  11. ubermick

    Well-Known Member

    Posted Apr 15, 2015
    Pfft, if he has time to faff about in the Carribean... ;)
     
  12. day_trippr

    We live in interesting times...

    Posted Apr 16, 2015
    lol!

    As anyone gainfully employed (which rules out anyone working for any form of government - or financial institution) two weeks of vacation just means the deadlines are two weeks closer :rolleyes: And my primary customer just bombed me with new projects. Great for the revenue stream, not so much for free time.

    btw, that reminds me, I never replied to your PM. I actually pulled over the official Eagle files for an Uno R3 shield that I could use as the basis for an Allegro design. I'll probably dabble at it when I'm not too fried from my real work.

    But for heaven's sake, don't hold your breath.

    One obvious disconnect is I don't need this myownself. I have a wee fleet of hand-wired minions plus a spare already doing their collective thing managing two fridges and a keezer, and don't see further expansion in the offing.

    So...

    Cheers!
     
    Exception13 likes this.
  13. wbarber69

    Well-Known Member

    Posted Apr 16, 2015
    My plan is to build my own boards for where and how I need them. So a 1 size fits all board isn't in my future. With different types of arduinos and needing multiple arduinos in some builds and single one-off boards for others I don't think I'll be needing one. But if we did a group buy I'd get a couple just to have. I am planning on building at least one nano minion with lcd and bluetooth. But I'm also planning a dual mini minion to handle rpints as well as brewpi for my kegerator. Once I have things nailed down I'll release my layout files for anyone who wants them.
     
    Bigdaddyale likes this.
  14. ubermick

    Well-Known Member

    Posted Apr 16, 2015
    Yeah, completely understandable. (And I feel your pain massively on vacation never being actual vacation, it's just a week frontloaded followed by a week of backloaded work - just started two weeks of paternity leave, and last week was hell - and the emails are already dropping for "when I get back")

    And also understand about having functional brewpis already making it a bit of a non priority, since mine is up and working (mwahahah!). But looking through the thread, see plenty of folks who've been having issues, myself included. And know from my perspective, they all stemmed from (well, aside from my own idiocy) my soldering jobs on the wire side. (Missing jumper pins, etc.) So for folks who don't want the spark, or have the $160 or so it costs to have it sent over from Holland, the Arduino based one is the only way to go. Suppose the LCD is just a blingy option though, so not really needed, since folks can just do it all via the web interface. (Sure is pretty tho!)
     
    Bigdaddyale likes this.
  15. Mikmonken

    Well-Known Member

    Posted Apr 16, 2015
    I have managed to get hold of the perfect brew fridge. It's a retro fridge with all the access to make it easy to get probes in etc. a separate top so I can cut in a display and a rotary dial, I just need my blood arduino and protoboard to arrive from China, I'd buy more but like ubermick I could have bought the brewpi for cheaper than its cost me. This time I'm going try the pqlyt ssr s instead of a relay and hope they stop the display from scrambling.
     
  16. Mikmonken

    Well-Known Member

    Posted Apr 16, 2015
    Whoops thumb slip---
    In the meantime though I second the desire to have an easier to solder board
     
  17. wbarber69

    Well-Known Member

    Posted Apr 26, 2015
    starting a new layout in fritzing. am i to assume that the instructions in the op are up to date with no missing parts?
     
    Bigdaddyale likes this.
  18. day_trippr

    We live in interesting times...

    Posted Apr 26, 2015
    There were numerous documentation bugs that were fixed along the way, then I added the fet for the LCD blanking. Haven't made any changes since.

    You might consider including connectivity for the I2C LCD...

    Cheers!
     
  19. wbarber69

    Well-Known Member

    Posted Apr 26, 2015
    Why? Did they actually start actively supporting i2c while I wasn't looking. I know you can tweak the avr code to support it, but I've already got a few tweaks running now and I don't need another headache.
     
  20. wbarber69

    Well-Known Member

    Posted Apr 26, 2015
  21. day_trippr

    We live in interesting times...

    Posted Apr 26, 2015
    There was a short run in the BrewPi thread, I think, where someone came up with the code mods to make it work successfully. Pretty sure it was the person who shows two-side hard-to-read wiring diagrams in place of actual schematics. It'd be pretty simple - might not have to actually do anything - just make sure there are header pins for the two AVR signals he used for SCL and SDA...

    Cheers!
     
  22. wbarber69

    Well-Known Member

    Posted Apr 26, 2015
    still it must require modifying the code in atmel studio
     
  23. day_trippr

    We live in interesting times...

    Posted Apr 26, 2015
    Ok, I mistook your post as potentially offering up a board to the unwashed masses, in which case providing the option of supporting an I2C display would be handy for those who'd rather not futz with the shift register.

    Yes, it needs code mods, but for those who aren't rolling their own AVR code there's apparently a hex file that works.

    But if this is just for yourownself, carry on...

    Cheers!
     
  24. wbarber69

    Well-Known Member

    Posted Apr 26, 2015
    A hex file that probably needs to be updated to 0.2.8
     
  25. ubermick

    Well-Known Member

    Posted Apr 27, 2015
  26. day_trippr

    We live in interesting times...

    Posted Apr 27, 2015
    Not the sub-thread I was thinking of, but that's another example...

    Cheers!
     
  27. Mikmonken

    Well-Known Member

    Posted Apr 27, 2015
    I'm nearly back up and running in terms of pulling my display together again.

    What is the benefit of have having a 10k resistor built on to the encoder? the product features description is a tad confusing to the like of me.

    I just need to order that and a pfet and hopefully i'll have a working display.
     
  28. wbarber69

    Well-Known Member

    Posted Apr 27, 2015
    Day_tripper added to his design 3 10k resistors for the encoder a while back. Something to do with signal noise I think. I was just pointing out that these come with the resistors installed already on a breakout pcb for easy wiring.
     
  29. Mikmonken

    Well-Known Member

    Posted Apr 27, 2015
    Ok I see, so you could do away with the long wires running to pins 10,11 and 12 and the left of the centre rails (build_05.jpg page 3 of this thread) ?
     
  30. day_trippr

    We live in interesting times...

    Posted Apr 27, 2015
    fwiw, the pull-up resistors for the three rotary encoder signals are accompanied by capacitors, all part of Elco's rev C shield design. The pull-ups are stronger than what you can program into the AVR; the capacitors are there to try to cut down the encoder switch-point noise...

    Cheers!
     
  31. ubermick

    Well-Known Member

    Posted Apr 28, 2015
    Stoopid question regarding the LED panel indicators - decided they'd be nice, so connected a pair of LEDs and... they're always on? Should they not both be off, and only active if heating/cooling is going on? (Positive anodes to the pins as laid out in the shield, and cathodes to ground?)

    Ooop, and now my LCD backlight has gone for a walk...
     
  32. day_trippr

    We live in interesting times...

    Posted Apr 28, 2015
    Hooked up to the same inverted outputs that switch the relays, my LEDS only light when the channel is hot.

    Might want to fix that ;)

    Cheers!
     
  33. ubermick

    Well-Known Member

    Posted Apr 28, 2015
    Hmm, think I see the problem with the LEDs, when I wired them up per the post on page 2: http://www.homebrewtalk.com/showpost.php?p=6604600&postcount=16

    just noticed that the LEDs aren't actually wired to a pin - they're pulling power directly from the central 5v rail, through the resistors, and out to the LEDs.

    As to the backlight, found the culprit. My 10k pot quite literally fell apart last night. So now need to get that off there somehow, and replace it without any desoldering tools. FUN! Looks like I might have to make another one...
     
  34. waverz

    Well-Known Member

    Posted Apr 28, 2015
    I ordered all the parts to add a lcd screen and rotary knob to my brewpi but decided to just use an old phone instead.

    That said I'll be posting the parts in the classified section later today if anyone is interested.
     
  35. ubermick

    Well-Known Member

    Posted Apr 28, 2015
    Frankly, just gutted now. I was ->this close<- to having this thing assembled, fully working, and ready to go, and then the display crapped out. Made an absolute pig's ear of trying to fix the issue with the trim pot, so had to make another shield, which doesn't work at all.

    The amount of money, time, effort, and sanity I've sunk into this is ridiculous now. I wish to @#$# Elko was still producing shields. $50 and this would have been DONE, rather than constantly ordering components, making a mess of various shields, and everything else. Guarantee I've sunk 3-4 times that into this now.
     
  36. ubermick

    Well-Known Member

    Posted Apr 29, 2015
    Okay. Deep breath. In. Out.

    Salvaged what I could, and have it back to where it was before - working, but without the backlight. (And the indicator lights are still permanently on).

    Knowing that pin 15 is what supplies power to the backlight, that's gotta be the culprit. Connecting it straight to the 5v rail instead of through the diodes and 20ohm resistor has it lighting up nicely. So clearly there's an issue with the connection SOMEWHERE along that line. Grabbing the multimeter and ohming out the line, there's zero reading across the first diode (going from the 5v rail) so assuming that's blown and replacing it would be in order? (Or could just say screw it, and run 5v directly in there, knowing it'll go pop at some point, hahah)
     
  37. wbarber69

    Well-Known Member

    Posted Apr 29, 2015
    Is your diode going the right way?
     
  38. ubermick

    Well-Known Member

    Posted Apr 29, 2015
    Yup, deffo is. Everything was working happily until... It suddenly wasn't!
     
  39. seixi

    Member

    Posted Apr 30, 2015
    Could anybody please repost this picture from page 16?

    Trying to figure the rotary encoder wiring out with not much success... I don't understand where the resistors and capacitors go, neither the PFET...

    Thank you!
     
  40. froot

    Well-Known Member

    Posted Apr 30, 2015
    this post is the one your looking for post 16 not page 16 note pics didn't show in quote
     
    Last edited: Apr 30, 2015
Draft saved Draft deleted

Share This Page

Group Builder