Printrboard EXP2 pinout for generic LCD and encoder?

Code hacking talk

Printrboard EXP2 pinout for generic LCD and encoder?

Postby vdubskey » 2013-Oct-Sat-17-Oct

I purchased a Hitachi 20x4 LCD and click encoder by themselves and using the unified firmware on a spare Printrboard. Because im not using the actual Printrbot LCD I don't know what pins are what on the board itself. Ive looked at the schematic and eagle files but I just don't see how they relate to the pin numbers in Marlin. Can someone tell me which pins on the EXP2 connector correlate to these pins in Marlin?

#define LCD_PINS_RS 9 = ?
#define LCD_PINS_ENABLE 8 = ?
#define LCD_PINS_D4 7 = ?
#define LCD_PINS_D5 6 = ?
#define LCD_PINS_D6 5 = ?
#define LCD_PINS_D7 4 = ?

#define BTN_EN1 16 = ?
#define BTN_EN2 17 = ?
#define BTN_ENC 18 = ?

So I already have +5v and Ground, those are pins 1 and 2 on the Printrboard. My LCD powers up but no characters. I don't know the rest. Ive tried many different combinations with no luck.

Thanks,
Joey
  • 0

vdubskey
Levelling print bed...
 
Posts: 38
Joined: 2012-Jun-Mon-17-Jun
Reputation: 1

Printrboard EXP2 pinout for generic LCD and encoder?

Sponsor

Sponsor
 

Re: Printrboard EXP2 pinout for generic LCD and encoder?

Postby REPRAP SQUAD » 2013-Oct-Sat-21-Oct

Very interesting stuff and I wish I could have helped but I'm using this as a place marker to reference this info.
  • 0

Twitter: @REPRAPSQUAD
Check it out: Build logs, 3D printer news and all things Printrbot--http://reprapsquad.wordpress.com
PC Case Mods 3D printed:
http://www.enviousmods.com

RepRap Squad's The 1st Simple (XL)
* Custom built that towers over the LC

Printrbot Plus V2 W/
*Dual extruder PB Version (2-Ubis 1.75mm hotends)
*Heavily Modded and all axis extended
User avatar
REPRAP SQUAD
Metal hotbed butt
 
Posts: 1628
Joined: 2013-Feb-Sun-11-Feb
Location: Pacific NW Oregon-US
Reputation: 71

Re: Printrboard EXP2 pinout for generic LCD and encoder?

Postby vdubskey » 2013-Oct-Sun-13-Oct

Yea I've found so many different variations of pin numbers for the printrboard of none of them seem to work. And understanding exactly how the firmware knows which pin is which is beyond me.
  • 0

vdubskey
Levelling print bed...
 
Posts: 38
Joined: 2012-Jun-Mon-17-Jun
Reputation: 1

Re: Printrboard EXP2 pinout for generic LCD and encoder?

Postby vdubskey » 2013-Oct-Sun-15-Oct

So I had a chance to mess around with the LCD a little more and made slight progress. I came across a link to the Teensylu page with the pinouts for Arduino! Its located at http://www.pjrc.com/teensy/pinout.html . Its under the Teensy 2.0 section. And then I referenced the Printrboard schematic to see what those pins were on the EXP2 connector. Ive attached pictures of the EXP2 schematic and board for reference as well as the Teensylu pictures. So this is what ive got so far.

#define LCD_PINS_RS 9 = PE1
#define LCD_PINS_ENABLE 8 = PE0
#define LCD_PINS_D4 7 = PD7
#define LCD_PINS_D5 6 = PD6
#define LCD_PINS_D6 5 = PD5
#define LCD_PINS_D7 4 = PD4

#define BTN_EN1 16 = PC6
#define BTN_EN2 17 = PC7
#define BTN_ENC 18 = PE6

Next I checked the schematic to see which pins on the board those were. When looking at snapshot of the board when from right to left, PIN1 is GND and PIN8 is +5v:

PIN1 = GND
PIN2 = EMPTY
PIN3 = PD7
PIN4 = PD5
PIN5 = EMPTY
PIN6 = PE1
PIN7 = ?? PC6 ??
PIN8 = +5v
PIN9 = EMPTY
PIN10 = PD6
PIN11 = PD4
PIN12 = PE0
PIN13 = ?? PE6 ??
PIN14 = ?? PC7 ??

So PIN7, PIN13, and PIN14 don't match the schematic. The schematic says PC1, PC2 and PC0. They are suppose to be PC6, PC7 and PE6. But there are exactly 3 pins left for my encoder so I assumed that's where I should plug my encoder too, and that's what I did. With everything hooked up like above all I get is 2 lines of yellow blocks that pulse every couple seconds. So im still at a loss. Hopefully you guys can understand my pin layout above.

Thanks,
Joey
  • 0

You do not have the required permissions to view the files attached to this post.
vdubskey
Levelling print bed...
 
Posts: 38
Joined: 2012-Jun-Mon-17-Jun
Reputation: 1

Re: Printrboard EXP2 pinout for generic LCD and encoder?

Postby Tdeagan » 2013-Oct-Sun-17-Oct

Some useful info in this thread, reference the linked spreadsheet that cross references all the various pin numbering schemes. viewtopic.php?t=4891
  • 0

Tim Deagan
KC5QFG
(optional Dual Extrusion) Printrbot Plus V1 [3/2013]
bed stabilizers, bed levelers, Y & X belt tensioners,
50mm fan mount, LED ring light, Z-axis screw Isolators,
Z-shaft stabilizers,optional Bowden conversion, GT2 belts/pulleys,
M8x1.25 Z Screws, Flex. Z-couplers,
RAMPS 1.4 w/ LCD,
Quick Change Extruders:
Option 1- Dual hybrid geared Wade's/Bowden w/ 3mm & 1.75mm Ubis,
Option 2 - Dual direct geared Wade's w/ 3mm & 1.75mm Ubis
Option 3 - Single geared Wade's w/ 3mm or 1.75mm Ubis
Option 4 - Single belt drive Wade's w/ E3D
MIC-6 metal bed
Thingiverse Profile: http://www.thingiverse.com/tdeagan/designs
User avatar
Tdeagan
Waiting for printbed temp...
 
Posts: 149
Joined: 2013-Feb-Fri-14-Feb
Location: Austin, TX
Reputation: 11

Re: Printrboard EXP2 pinout for generic LCD and encoder?

Postby vdubskey » 2013-Oct-Sun-20-Oct

Well that would have saved me an hour or too. Lol. Unfortunately all the info is the same with what I came up with so I'm still stuck in the same spot. Thank you for the link though.

Joey
  • 0

vdubskey
Levelling print bed...
 
Posts: 38
Joined: 2012-Jun-Mon-17-Jun
Reputation: 1

Re: Printrboard EXP2 pinout for generic LCD and encoder?

Postby vdubskey » 2013-Oct-Sun-21-Oct

After looking at your spread sheet closer your physical EXP2 pin numbers are different from the way the eagle .brd file has them listed. In the picture I have attached, pin number 1 starts on the top right and goes left and pin 8 would be the bottom right. So I decided to try out how I think you have them listed, counting the number 1 pin on the top right, then pin 2 below that and so on. Now I don't get any yellow blocks at all, just blank. Can you explain how you have your physical EXP2 pin numbers listed? I'm starting to think there are settings somewhere else in the firmware that need to be altered. I have #ULTRALCD and #UTILPANEL enabled in config.h and have the pins in my first post entered in the pins.h. Not sure what else to look for.
  • 0

vdubskey
Levelling print bed...
 
Posts: 38
Joined: 2012-Jun-Mon-17-Jun
Reputation: 1

Re: Printrboard EXP2 pinout for generic LCD and encoder?

Postby lwalkera » 2013-Oct-Sun-21-Oct

Here's how I hooked up the first prototype that was used to make the official PB LCD. Use the firmware here to talk to it: https://github.com/Printrbot/Marlin/rel ... unified-v2

12080019.jpg

12080021.jpg
  • 0

You do not have the required permissions to view the files attached to this post.
Laine Walker-Avina
Printrbot Beta-tester and Printrboard Designer
lwalkera
Honeycomb infill 25%...
 
Posts: 291
Joined: 2012-Feb-Sat-04-Feb
Location: Folsom, CA
Reputation: 32

Re: Printrboard EXP2 pinout for generic LCD and encoder?

Postby vdubskey » 2013-Oct-Sun-21-Oct

Thanks Laine for the pictures. I have my LCD and encoder wired already, I just don't know which pins on the EXP2 they plug into and with those pictures I still cant see which wires plug into which pins. Is it possible you could just list them with how they are numbered in the eagle .brd file? Right to left, top to bottom? Or just use what I have listed above and point out the errors?

Thanks,
Joey
  • 0

vdubskey
Levelling print bed...
 
Posts: 38
Joined: 2012-Jun-Mon-17-Jun
Reputation: 1

Re: Printrboard EXP2 pinout for generic LCD and encoder?

Postby Tdeagan » 2013-Oct-Tue-11-Oct

vdubskey wrote:After looking at your spread sheet closer your physical EXP2 pin numbers are different from the way the eagle .brd file has them listed. In the picture I have attached, pin number 1 starts on the top right and goes left and pin 8 would be the bottom right. So I decided to try out how I think you have them listed, counting the number 1 pin on the top right, then pin 2 below that and so on. Now I don't get any yellow blocks at all, just blank. Can you explain how you have your physical EXP2 pin numbers listed? I'm starting to think there are settings somewhere else in the firmware that need to be altered. I have #ULTRALCD and #UTILPANEL enabled in config.h and have the pins in my first post entered in the pins.h. Not sure what else to look for.



I took the schematic values in the spreadsheet from http://reprap.org/mediawiki/images/d/d5 ... tic150.png.

The numbering on the brd png image (http://reprap.org/mediawiki/images/6/62 ... ard300.png) is misleading. The silkscreen numbers represent rows, not pin numbers. Since this is a header and not a DIP, the pins are numbered top left , top right, 2nd left, 2nd right ... (HDR style), instead of left top to bottom and then right bottom to top (DIP style).

does that answer your question?
  • 1

Tim Deagan
KC5QFG
(optional Dual Extrusion) Printrbot Plus V1 [3/2013]
bed stabilizers, bed levelers, Y & X belt tensioners,
50mm fan mount, LED ring light, Z-axis screw Isolators,
Z-shaft stabilizers,optional Bowden conversion, GT2 belts/pulleys,
M8x1.25 Z Screws, Flex. Z-couplers,
RAMPS 1.4 w/ LCD,
Quick Change Extruders:
Option 1- Dual hybrid geared Wade's/Bowden w/ 3mm & 1.75mm Ubis,
Option 2 - Dual direct geared Wade's w/ 3mm & 1.75mm Ubis
Option 3 - Single geared Wade's w/ 3mm or 1.75mm Ubis
Option 4 - Single belt drive Wade's w/ E3D
MIC-6 metal bed
Thingiverse Profile: http://www.thingiverse.com/tdeagan/designs
User avatar
Tdeagan
Waiting for printbed temp...
 
Posts: 149
Joined: 2013-Feb-Fri-14-Feb
Location: Austin, TX
Reputation: 11

Re: Printrboard EXP2 pinout for generic LCD and encoder?

Postby vdubskey » 2013-Oct-Tue-14-Oct

Not really. The way you are describing whether I start from left or right, they land on dead pins. Sorry but I'm just not understanding from your reply. Because either way I try your example I land on dead pins. I would love if someone could use the numbering from the brd file image above and fill in the blanks below with GND being PIN1 and +5V being PIN8. If done like that I can visually look at the brd file and know for sure. Thank you guys for the help.

#define LCD_PINS_RS 9 = ?
#define LCD_PINS_ENABLE 8 = ?
#define LCD_PINS_D4 7 = ?
#define LCD_PINS_D5 6 = ?
#define LCD_PINS_D6 5 = ?
#define LCD_PINS_D7 4 = ?

#define BTN_EN1 16 = ?
#define BTN_EN2 17 = ?
#define BTN_ENC 18 = ?

As of right now this is how I have it using the numbering from the brd file. All I get is 2 lines of yellow blocks.

#define LCD_PINS_RS 9 = 6
#define LCD_PINS_ENABLE 8 = 12
#define LCD_PINS_D4 7 = 3
#define LCD_PINS_D5 6 = 10
#define LCD_PINS_D6 5 = 4
#define LCD_PINS_D7 4 = 11

#define BTN_EN1 16 = 13
#define BTN_EN2 17 = 7
#define BTN_ENC 18 = 14

Joey
  • 0

vdubskey
Levelling print bed...
 
Posts: 38
Joined: 2012-Jun-Mon-17-Jun
Reputation: 1

Re: Printrboard EXP2 pinout for generic LCD and encoder?

Postby RetireeJay » 2013-Oct-Tue-15-Oct

I've looked at the schematic and the board layout, and Tim is correct about the way pins are numbered on headers.

exp2_pins.jpg

In this picture, Pin #1 is adjacent to the silkscreen #1
Pin #2 is opposite Pin 1
Pin #3 is adjacent to the silkscreen #2
Pin #4 is opposite Pin 3
Pin #5 is adjacent to silkscreen #3
and so on.

I verified this by following Port D Bit 7 (for example) from the ATMEL Pin 32 to Expansion Header 2, Pin 8.

HOWEVER, There is no rational relationship that I can discern between Header pin numbers and Arduino or Teensylu or FastIO pin numbers. Lwalkera and PxT are the gurus who hold the keys to those deep dark secrets. So numbers you see in the header file defining pin numbers are referring to a layer of abstraction translation table that I've never been able to locate.
  • 0

You do not have the required permissions to view the files attached to this post.
Printrbot Plus operational January 2013
Brass threaded rods (5/16" X 18) & nuts for Z axis
GT2 belts & pulleys
Cable chain to reduce probability of fatigue failure in wires
E3D V5 Hot End, 0.4mm nozzle, also 0.8 and 0.25 in use occasionally
PB fan mount + 40mm fan -- using printed mount adapter, not the E3D supplied fan
Injection molded extruder gears
Optical Z "endstop" (custom designed and built)
Have used many pounds of T-Glase filament. Now also doing some work with Ninjaflex SemiFlex
Print on glass with Scotch Craft Stick or other glue stick
User avatar
RetireeJay
My next printer is...
 
Posts: 4718
Joined: 2013-Jan-Wed-13-Jan
Location: Greenville, SC
Reputation: 477

Re: Printrboard EXP2 pinout for generic LCD and encoder?

Postby Tdeagan » 2013-Oct-Tue-18-Oct

I have a RepRap discount smart controller (http://reprap.org/wiki/RepRapDiscount_Smart_Controller) working on the printrboard.

here's the pin mapping I used (PB.* = Printrboard EXP2; EXP1.*, EXP2.* are the two headers on the LCD controller, see schematic linked below):
PB.1-EXP1.9
PB.2-EXP1.10
PB.5-EXP1.8
PB.6-EXP1.7
PB.7-EXP1.6
PB.8-EXP1.5
PB.10-EXP1.3
PB.11-EXP1.4
PB.12-EXP2.5
PB.13-EXP2.3
PB.14-EXP1.2


Here's the schematics of the board (so you can trace through to the LCD) http://reprap.org/mediawiki/images/7/70 ... scount.pdf

Here's the relevant pins.h section from the firmware I'm using (standard printrboard/Marlin)
#define LCD_PINS_RS 9
#define LCD_PINS_ENABLE 8
#define LCD_PINS_D4 7
#define LCD_PINS_D5 6
#define LCD_PINS_D6 5
#define LCD_PINS_D7 4

#define BTN_EN1 16
#define BTN_EN2 17
#define BTN_ENC 18//the click
  • 0

Tim Deagan
KC5QFG
(optional Dual Extrusion) Printrbot Plus V1 [3/2013]
bed stabilizers, bed levelers, Y & X belt tensioners,
50mm fan mount, LED ring light, Z-axis screw Isolators,
Z-shaft stabilizers,optional Bowden conversion, GT2 belts/pulleys,
M8x1.25 Z Screws, Flex. Z-couplers,
RAMPS 1.4 w/ LCD,
Quick Change Extruders:
Option 1- Dual hybrid geared Wade's/Bowden w/ 3mm & 1.75mm Ubis,
Option 2 - Dual direct geared Wade's w/ 3mm & 1.75mm Ubis
Option 3 - Single geared Wade's w/ 3mm or 1.75mm Ubis
Option 4 - Single belt drive Wade's w/ E3D
MIC-6 metal bed
Thingiverse Profile: http://www.thingiverse.com/tdeagan/designs
User avatar
Tdeagan
Waiting for printbed temp...
 
Posts: 149
Joined: 2013-Feb-Fri-14-Feb
Location: Austin, TX
Reputation: 11

Re: Printrboard EXP2 pinout for generic LCD and encoder?

Postby vdubskey » 2013-Oct-Tue-22-Oct

Yes, I tried the way Jay described above the first time you linked your spread sheet, because that's the only way I wouldn't land on any dead pins using your numbering scheme. The way you described it in your earlier recent reply just wasn't making sense to me the way you worded it.

Either way, hooked up how I have it now I get all blocks and they go blank when I press the encoder down, hooked up the way you described I get nothing and no response from encoder at all. Really at a loss.

Joey
  • 0

vdubskey
Levelling print bed...
 
Posts: 38
Joined: 2012-Jun-Mon-17-Jun
Reputation: 1

Re: Printrboard EXP2 pinout for generic LCD and encoder?

Postby Tdeagan » 2013-Oct-Wed-10-Oct

I'm confused at what you're looking for at this point. Here is a schematic that should allow the connection of any standard 16pin 20x4 LCD and rotary encoder to the Printrboard EXT2 using the most recent firmware.
LCD.jpg
  • 0

You do not have the required permissions to view the files attached to this post.
Last edited by Tdeagan on 2013-Oct-Fri-11-Oct, edited 1 time in total.
Tim Deagan
KC5QFG
(optional Dual Extrusion) Printrbot Plus V1 [3/2013]
bed stabilizers, bed levelers, Y & X belt tensioners,
50mm fan mount, LED ring light, Z-axis screw Isolators,
Z-shaft stabilizers,optional Bowden conversion, GT2 belts/pulleys,
M8x1.25 Z Screws, Flex. Z-couplers,
RAMPS 1.4 w/ LCD,
Quick Change Extruders:
Option 1- Dual hybrid geared Wade's/Bowden w/ 3mm & 1.75mm Ubis,
Option 2 - Dual direct geared Wade's w/ 3mm & 1.75mm Ubis
Option 3 - Single geared Wade's w/ 3mm or 1.75mm Ubis
Option 4 - Single belt drive Wade's w/ E3D
MIC-6 metal bed
Thingiverse Profile: http://www.thingiverse.com/tdeagan/designs
User avatar
Tdeagan
Waiting for printbed temp...
 
Posts: 149
Joined: 2013-Feb-Fri-14-Feb
Location: Austin, TX
Reputation: 11

Re: Printrboard EXP2 pinout for generic LCD and encoder?

Postby vdubskey » 2013-Oct-Thu-01-Oct

Yes, as I said in my last post I have tried hooking it up exactly as you just posted and get nothing, blank. I'll have to look elsewhere in the firmware for the culprit or troubleshoot the LCD itself if that's the case its not working. Thanks for your help.

Joey
  • 0

vdubskey
Levelling print bed...
 
Posts: 38
Joined: 2012-Jun-Mon-17-Jun
Reputation: 1

Re: Printrboard EXP2 pinout for generic LCD and encoder?

Postby Tdeagan » 2013-Oct-Thu-09-Oct

one last thing to check. We had very similar problems to the ones you're noting with the shipped Printrbot LCD's. This turned out to be due to them being 3.3V instead of 5V LCDs. This thread talks about how to identify and rectify this problem:
viewtopic.php?f=15&t=4903

Last idea, not free, but lots of fun, is to score an Arduino (at Radio Shack or online,) and use it to test the LCD. Having an extra arduino around is always good for the soul.

Good luck.
  • 0

Tim Deagan
KC5QFG
(optional Dual Extrusion) Printrbot Plus V1 [3/2013]
bed stabilizers, bed levelers, Y & X belt tensioners,
50mm fan mount, LED ring light, Z-axis screw Isolators,
Z-shaft stabilizers,optional Bowden conversion, GT2 belts/pulleys,
M8x1.25 Z Screws, Flex. Z-couplers,
RAMPS 1.4 w/ LCD,
Quick Change Extruders:
Option 1- Dual hybrid geared Wade's/Bowden w/ 3mm & 1.75mm Ubis,
Option 2 - Dual direct geared Wade's w/ 3mm & 1.75mm Ubis
Option 3 - Single geared Wade's w/ 3mm or 1.75mm Ubis
Option 4 - Single belt drive Wade's w/ E3D
MIC-6 metal bed
Thingiverse Profile: http://www.thingiverse.com/tdeagan/designs
User avatar
Tdeagan
Waiting for printbed temp...
 
Posts: 149
Joined: 2013-Feb-Fri-14-Feb
Location: Austin, TX
Reputation: 11

Re: Printrboard EXP2 pinout for generic LCD and encoder?

Postby lwalkera » 2013-Oct-Thu-12-Oct

vdubskey wrote:Yes, as I said in my last post I have tried hooking it up exactly as you just posted and get nothing, blank. I'll have to look elsewhere in the firmware for the culprit or troubleshoot the LCD itself if that's the case its not working. Thanks for your help.

Joey


Shot in the dark, but have you tried adjusting the contrast?
  • 0

Laine Walker-Avina
Printrbot Beta-tester and Printrboard Designer
lwalkera
Honeycomb infill 25%...
 
Posts: 291
Joined: 2012-Feb-Sat-04-Feb
Location: Folsom, CA
Reputation: 32

Re: Printrboard EXP2 pinout for generic LCD and encoder?

Postby vdubskey » 2013-Oct-Fri-00-Oct

I too was thinking about getting an arduino to test it out and see if the board or LCD is the factor of error, but wanna hold off on spending more money.

The panel is definitely a 5V LCD according to the data sheet. So I know that's not it. But I don't have anything hooked up for contrast. Do think that could be contrast? Because the 2 rows of blocks that I was getting on screen came in nice and bright. I might have to give that a go if I can find a spare trimmer.

I do see one difference now in that last schematic you posted tdeagon. You have two LCDRS pins on the LCD, is one of those suppose to be LCDRW? Because I currently dont have anything connected to the LCDRW pin on my LCD as I didn't see it listed?

Joey
  • 0

vdubskey
Levelling print bed...
 
Posts: 38
Joined: 2012-Jun-Mon-17-Jun
Reputation: 1

Re: Printrboard EXP2 pinout for generic LCD and encoder?

Postby Tdeagan » 2013-Oct-Fri-11-Oct

Good catch. I had to make that part up in KiCad and I apparently screwed up the labels. I have revised the schematic.
LCD.jpg



It's all taken from: http://reprap.org/mediawiki/images/7/70 ... scount.pdf
and revised to work with the Printrboard EXT2 header

You really do want something more than a no connect on the contrast line.
  • 0

You do not have the required permissions to view the files attached to this post.
Tim Deagan
KC5QFG
(optional Dual Extrusion) Printrbot Plus V1 [3/2013]
bed stabilizers, bed levelers, Y & X belt tensioners,
50mm fan mount, LED ring light, Z-axis screw Isolators,
Z-shaft stabilizers,optional Bowden conversion, GT2 belts/pulleys,
M8x1.25 Z Screws, Flex. Z-couplers,
RAMPS 1.4 w/ LCD,
Quick Change Extruders:
Option 1- Dual hybrid geared Wade's/Bowden w/ 3mm & 1.75mm Ubis,
Option 2 - Dual direct geared Wade's w/ 3mm & 1.75mm Ubis
Option 3 - Single geared Wade's w/ 3mm or 1.75mm Ubis
Option 4 - Single belt drive Wade's w/ E3D
MIC-6 metal bed
Thingiverse Profile: http://www.thingiverse.com/tdeagan/designs
User avatar
Tdeagan
Waiting for printbed temp...
 
Posts: 149
Joined: 2013-Feb-Fri-14-Feb
Location: Austin, TX
Reputation: 11

Re: Printrboard EXP2 pinout for generic LCD and encoder?

Postby electroman12345 » 2013-Oct-Mon-16-Oct

You might find this page I made useful: https://labitat.dk/wiki/Panelolu_and_Printrboard_the_easy_way Sorry I'm a bit late ;-)
  • 0

electroman12345
Waiting to connect to printer...
 
Posts: 1
Joined: 2013-Oct-Mon-16-Oct
Reputation: 0


Return to Hack talk

Who is online

Users browsing this forum: No registered users and 1 guest

cron