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

Papirus setup not working #113

Closed myrdinwylt closed 7 years ago

myrdinwylt commented 7 years ago

I recently purchased a papirus and have been trying to use it. There appears to be a problem when I setup the papirus though. After following the guide carefully the demos will not work. I am using a 2 inch papirus screen with a new raspi 0 w running rasbian jessie with pixel. When I do any demo a error like this appears.

pi@raspberrypi:~ $ sudo papirus-clock
Traceback (most recent call last):
  File "/usr/local/bin/papirus-clock", line 131, in <module>
    main(sys.argv[1:])
  File "/usr/local/bin/papirus-clock", line 74, in main
    papirus = Papirus()
  File "/usr/local/lib/python2.7/dist-packages/papirus/epd.py", line 58, in __init__
    self._lm75b = LM75B()
  File "/usr/local/lib/python2.7/dist-packages/papirus/lm75b.py", line 22, in __init__
    self._bus.write_byte_data(self._address, LM75B_CONF_REGISTER, LM75B_CONF_NORMAL)
IOError: [Errno 5] Input/output error

Reading the message and corresponding source files it appears to be some problem with the LM75B sensor. Please help me correct this error if you can.

myrdinwylt commented 7 years ago

@DAlperin is working with me on this problem.

DAlperin commented 7 years ago

Due to the nature of the problem I am starting to think it is a hardware issue. The issue persists over multiple installs of the OS and software. Does that make any sense to you guys based on your knowledge of the hardware and software? Thanks!

shawaj commented 7 years ago

Did you turn on I2C and SPI?

What header have you soldered to the pi zero?

Is it the PaPiRus Zero?

Thanks

DAlperin commented 7 years ago

Hey thanks for the quick response. I am forced to wait until monday until I have the hardware again. (its at a sort of local makerspace) however I know it is PaPiRus Zero, I can not confirm the other to. I am really sorry to have to ask and then not be able to work on it for a bit. You can ignore this until I post here again. Im really really sorry again... Thanks for the help!

myrdinwylt commented 7 years ago

To answer your questions

  1. I am not aware of what 12c and SPI are
    1. We have not soldered a header on but are attaching the pi and papirus with the stuctaral pins included in the box in away that allows the stacking headers to touch the pi. We are using generic stacking headers.
    2. We are using the papyrus 0 2.0 inch
DAlperin commented 7 years ago

@myrdinwylt I think I enabled I2c and SPI. Also we are in fact using the PaPiRus Zero. Lets wait on this for now until we have access to the pi again. Thanks!

stocktoncycles commented 7 years ago

It sounds like I am having the same issue as myrdinwylt today with my Pi Zero W and the PiPiRus 2 inch. I was able to get the Python API to work ( I just tried sending text) but none of the demos work from the command line. As I am now reading some things about it, I see that this guy: http://frederickvandenbosch.be/?p=1483 mentioned you should be root when running the demo. I'll try that in a few minutes, I suppose but it did seem like there was an issue with the temperature sensor. The error I received (sorry I've not copied it here... I'm not near my Pi now) was related to the LM75B. I'm not sure I have all the required components installed. I probably have to set things up for this sensor, right?

francesco-vannini commented 7 years ago

The errors you have @myrdinwylt are because the I2C and SPI aren't enabled. There is a section in the README.md which tells you how to manually enable I2C and SPI. This has however been automated in the latest commit. For a brief time there was an issue with smbus not being installed automatically. This was needed by LM75B and it has now been included in the auto installation. In case you are not on the latest branch @stocktoncycles please run sudo apt-get install python-smbus which should fix your problems.

If you get confused what I suggest is to use a spare SD, flash the latest Raspbian and run the auto configuration once again. The post from our good friend @fvdbosch is now outdated and issues about sudo are no longer current. Please disregard the majority of that article as the issues have now been fixed in the current branch.

stocktoncycles commented 7 years ago

@francesco-vannini , I'm sure it's possible that I2C and SPI we're not enabled though I did manually enable them in the config tool before re-starting the pi. I will check to see if smbus is installed. Thanks.

francesco-vannini commented 7 years ago

@stocktoncycles and @myrdinwylt can you confirm whether you managed to make any progress on this? I don't think this is an issue though. I'll keep this open for a little while to give you time to get back.

DAlperin commented 7 years ago

Thank you guys for the help we will try you solutions on Monday and they all sound like they will work. Thanks!

vanillabrand commented 7 years ago

Hi i have the same problem. i've installed as instructed and enabled I2C & SPI but it's still showing me the same error. Is the error because it can't communicate with the screen? Help!

shawaj commented 7 years ago

@vanillabrand what is the error you are getting?

vanillabrand commented 7 years ago

Thanks @shawaj
pi@raspberrypi:~ $ sudo papirus-clock Traceback (most recent call last): File "/usr/local/bin/papirus-clock", line 131, in <module> main(sys.argv[1:]) File "/usr/local/bin/papirus-clock", line 74, in main papirus = Papirus() File "/usr/local/lib/python2.7/dist-packages/papirus/epd.py", line 58, in __init__ self._lm75b = LM75B() File "/usr/local/lib/python2.7/dist-packages/papirus/lm75b.py", line 22, in __init__ self._bus.write_byte_data(self._address, LM75B_CONF_REGISTER, LM75B_CONF_NORMAL) IOError: [Errno 5] Input/output error

I've tried installing manually too. Enabled SPI & I2C, installed everything using sudo but it still shows the same error. Any clues?

This is running on a new PiZero W

thanks!

shawaj commented 7 years ago

What's the result if you run sudo i2cdetect -y 1 ?

vanillabrand commented 7 years ago

` 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- --

10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- `

francesco-vannini commented 7 years ago

Can you please try on a different Raspberry Pi? Preferably one with a pre-soldered header. Which header did you use for your Pi Zero?

vanillabrand commented 7 years ago

Ah ok found the screen wasn't working. Got a new one on order. Thx

On Mon, 15 May 2017 at 12:51, Garage Tech notifications@github.com wrote:

Can you please try on a different Raspberry Pi? Preferably one with a pre-soldered header. Which header did you use for your Pi Zero?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PiSupply/PaPiRus/issues/113#issuecomment-301452810, or mute the thread https://github.com/notifications/unsubscribe-auth/AAlifYJ3ERG3dmnEOuIML6xPlEMUQH9Mks5r6DwpgaJpZM4NIB9h .

shawaj commented 7 years ago

@vanillabrand - the screen not working is very unlikely. We have had very few go wrong as they're tested in the factory.

What header are you using on the Pi Zero?

vanillabrand commented 7 years ago

It's pretty likely if it had a hairline crack running through it. New one arrived and works a treat ;) thx On Tue, 13 Jun 2017 at 23:43, Aaron Shaw notifications@github.com wrote:

@vanillabrand https://github.com/vanillabrand - the screen not working is very unlikely. We have had very few go wrong as they're tested in the factory.

What header are you using on the Pi Zero?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PiSupply/PaPiRus/issues/113#issuecomment-308269720, or mute the thread https://github.com/notifications/unsubscribe-auth/AAlifcBu0CyNLXtTqZxpwi7o7aoK3sOsks5sDxCGgaJpZM4NIB9h .

shawaj commented 7 years ago

@vanillabrand fantastic news!