PiSupply / PaPiRus

Resources for PaPiRus ePaper eInk displays
https://www.pi-supply.com/product/papirus-epaper-eink-screen-hat-for-raspberry-pi/
Other
346 stars 88 forks source link

Running the 2.7" Screen on the pi zero phat #126

Closed uselesshippy closed 7 years ago

uselesshippy commented 7 years ago

Is it possible to run the 2.7" screen on the phat for the pi zero rather than the full pi version.

I want to do this as the full size hat uses pins I want to use for other phats, but the pi zero phat doesn't use them, specifically BCM18.

Thanks

uselesshippy commented 7 years ago

Alternately can I change the underlying code for the Papirus to use a different pin and then wire that pin to the correct pin on the board?

shawaj commented 7 years ago

@uselesshippy yes it is entirely possible to use any of the screens with any of the boards. Just insert the 2.7" screen as you would any other, and then in the software just run sudo papirus-set 2.7 and it should just work with the PaPiRus Zero pHAT.

@francesco-vannini do you have any idea why PaPiRus HAT uses BCM18 and PaPiRus Zero doesn't? Is this definitely correct?

Thanks!

shawaj commented 7 years ago

@uselesshippy @francesco-vannini just checked it - for some reason the HAT has a PWM output to the display.

I have a funny feeling that this is not needed on the V231 film, as it is not on the Zero board, so perhaps it is something left over from our legacy support of the older displays.

@repaper @CharmingSu do you know about this at all? Would it cause malfunction if @uselesshippy just cut the trace from this pin and did not use it?

uselesshippy commented 7 years ago

That would be fantastic if I could just do that.

repaper commented 7 years ago

Please visit this link to download the COG driver interface. For V231 with G2 driver IC, the PWM is no longer needed in the driving circuit. The Appendix at the last two pages has the explanation.

shawaj commented 7 years ago

@repaper can you look at the schematic here and let me know if we can just not connect the PWM pin and for it to still work?

@uselesshippy which was it that you wanted to do? Use the PaPiRus Zero or cut a trace on the HAT?

uselesshippy commented 7 years ago

@shawaj If I can cut the trace on the HAT without affecting functionality that would be my preferred solution. I was only going down the PaPiRus Zero route as I know that the pHat doesn't use that pin.

shawaj commented 7 years ago

Hopefully @repaper can take a look and clarify :-)

We will also test in the office this week if we get a chance

shawaj commented 7 years ago

@uselesshippy - our main man @francesco-vannini just tested this and it works perfectly without BCM18 with the 2.7" screen. We did it by getting a 40 pin through hole extension header and "cutting" pin 12 out.

uselesshippy commented 7 years ago

Fantastic thank you for all of your help.

shawaj commented 7 years ago

@uselesshippy - no problem!

Have added it to the hardware readme here too - https://github.com/PiSupply/PaPiRus/blob/master/hardware/PaPiRus%20HAT/README.md#pwm-pin---bcm-18--pin-12