Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Waveshare 7.5" crashes and reboots Raspberry Pi zero when plugged on the HAT #92

Closed
ghost opened this issue Sep 5, 2020 · 31 comments
Closed

Comments

@ghost
Copy link

ghost commented Sep 5, 2020

Hello,

Using the 7.5inch E-Ink display HAT for Raspberry Pi, red / black / white three-color crashes and reboots the Raspberry Pi Zero W.

This is confirmed by Waveshare. A HW fix is available at the bottom of the description, or you can use the PHI 2.0 cable instead of the HAT connector; but there is no SW solution to this problem.

I also want to add Waveshare support has been very professional and friendly. They really care about their customers and I will gladly keep buying their products despite this minor issue. Thank you Betty!

Initial issue

Just after reboot, the screen is surprisingly usable, but after some time, the problem eventually reappears.

Here is the code I use:

#! /usr/bin/env python3

import epd7in5b_HD as driver
epd = driver.EPD()
epd.init()

It crashes precisely there:

(Pdb) bt
  ./main.py(5)<module>()
-> epd.init()
  ./e-Paper/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd7in5b_HD.py(80)init()
-> self.reset()
> ./e-Paper/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd7in5b_HD.py(50)reset()
-> epdconfig.digital_write(self.reset_pin, 1)

I am able to reproduce without Python nor the e-Paper library.

echo "17"  > /sys/class/gpio/export 
echo "out" > /sys/class/gpio/gpio17/direction
echo "1"   > /sys/class/gpio/gpio17/value  # system reboots

Basically, setting the RST line (GPIO 17) of the screen makes the Raspberry Pi 0 crash and reboot.

The problem does not appear with a Raspberry Pi 4. I also tried with various power supplies.

Update Sep 10th
The problem does not appear if the screen is connected via the PH2.0 colored wires instead of the 40-pin HAT connector.

Update Sep 13th
I ordered a second screen, to cross check but encounter the same issue. I also realized the problem appears even if I don't connect the AWM 20624 ribbon.

Update Sep 14th
This is the answer I got from Waveshare's customer service:

Dear customer,
Thank you for your information.
Because when it is directly plugged into the HAT, the entire circuit is working under 5V voltage, so the Raspberry Pi zero may restart due to power supply problems (it is normal if it is connected to Raspberry Pi 3B or Raspberry Pi 4B)
Regarding this problem on zero, we have noticed and are discussing how to solve it.
Please use PH2.0 to connect 3.3V at present.

Update Sep 17th

Last update.

Our tech team tested it with Pi Zero and the program you provided and Yes,it also shows the same problem.
The problem can't be solved by software.
We will update the version to solve this problem on pi zero.
[...]
Only driver hat should be adjusted as below steps.
1.Add a 0.1uF capacitor between VCC INT and GND (1uF has been tested and found to cause the module to restart when inserted)

thumbnail_image

2.And remove a 1uF capacitor between VCC and GND, leaving only 0.1uF capacitor

thumbnail_image (1)

@missionfloyd
Copy link
Contributor

missionfloyd commented Sep 9, 2020

Same problem here. Works fine on Pi 4.

Works sometimes on Pi 0.

The issue most likely resides in the HAT wiring (and not with the Pi 0 or the screen).

I'm not sure that's it, otherwise it would affect other pi's as well. I've noticed it'll randomly decide to work for a while, then stop working later.

@ghost
Copy link
Author

ghost commented Sep 12, 2020

You are right, I was being imprecise. It is a combination of both the Pi 0 and the HAT.

When you say it stops working, what do you mean by that? Do you also experience the reboot, and everything is fine afterwards? Have you tried using the colored wires?

I have ordered another screen on Amazon to see if I have a faulty unit. I am also discussing with Waveshare support team.

@missionfloyd
Copy link
Contributor

Yeah, It's rebooting and might work afterwards, but eventually reboots again. Basically exactly as you described.

I tried it with the wires just now, and it seemed to work.

@ghost
Copy link
Author

ghost commented Sep 13, 2020

Thanks.

I discussed with someone who has the same setup (Pi0 + Waveshare 7.5 + HAT), but they don't encounter any issue.

I ordered another screen on Amazon and will get it today. I'll share my results!

@ghost
Copy link
Author

ghost commented Sep 13, 2020

Same issue with another screen. I updated the description in the ticket and shared my results with their customer service.

@missionfloyd
Copy link
Contributor

missionfloyd commented Sep 13, 2020

I ordered a new screen as well. I'll let you know if it makes a difference, but now it sounds like a bad batch.

Amazon couldn't replace it.

@xtagon
Copy link

xtagon commented Sep 13, 2020

Same thing happening to me with a screen I just ordered. (Also using 7.5 black/white/red + Pi Zero W + HAT). Looking forward to hearing your results from Waveshare customer service 👍

@xtagon
Copy link

xtagon commented Sep 13, 2020

Wiring it up using the wire harness instead of the HAT fixes it for me too. Thank you for opening this issue, it was helpful! 💯

@ghost
Copy link
Author

ghost commented Sep 14, 2020

@missionfloyd sorry to hear that!

@xtagon you're welcome!

I updated the description with an answer from Waveshare.

@ghost ghost changed the title Waveshare 7.5" crashes and reboots raspberry pi zero Waveshare 7.5" crashes and reboots Raspberry Pi zero when plugged on the HAT Sep 14, 2020
@ghost
Copy link
Author

ghost commented Sep 17, 2020

Final update (see description). I will leave the issue open, but nothing more can be done.

@LLPP65
Copy link

LLPP65 commented Sep 18, 2020

I'm having the same issue with a black and white 7.5" V2 display. It pretty consistently reboots once per day. I remember seeing a wiring guide to use the SPI interface instead of the hat but I can't remember where. Can someone please point me to an image or wiring guide. Thanks in advance!

@xtagon
Copy link

xtagon commented Sep 18, 2020

@LLPP65 Wiki is here: https://www.waveshare.com/wiki/7.5inch_e-Paper_HAT I'm not sure if that's your exact model so you may need to double check. In that page go to Hardward/Software Setup at the top and there is a wiring guide for Raspberry Pi. You can use https://pinout.xyz/pinout/spi for an SPI-specific guide to the Raspberry Pi pins.

@LLPP65
Copy link

LLPP65 commented Sep 19, 2020

@xtagon Thanks for the tip. That doc didn't have all the connections in it but I found the rest in "RaspberryPi&JetsonNano/python/readme_rpi_EN.txt". The screen is currently running OK, fingers-crossed it won't reboot on it's own tonight.

If anyone is interested, I got the following reply from Waveshare support:

Hi,

Sorry about the problem you faced. That may be some driver problem when this e-paper working with Pi zero.
You can try to modify the driver board as below:
1.Add 0.1uF capacitor between VCC INT and GND

6TY9YB3PTL5)E3]]CODMM}L.png

2.Remove a 1uF capacitor between VCC and GND, and only reserve 0.1uF capacitor

B0OEM[3KI32L{APKD4HZ84R.png
And the Schematic diagram you can refer to our wiki:https://www.waveshare.com/wiki/File:E-Paper-Driver-HAT-Schematic.pdf 
But if you don't know how to modify the driver board, please contact us again, we can send you a new modifying driver board. 

The image files above are at https://padilla.net/oc/index.php/s/WCWrcL47n6s4Lxj

@LLPP65
Copy link

LLPP65 commented Sep 20, 2020

Confirmed - using the PH2.0 colored wires and not connecting the hat to the hat pins the Pi-0 did not reboot on its own after en entire day. Now I'm waiting for the modified replacement hat I was promised.

@LLPP65
Copy link

LLPP65 commented Oct 5, 2020

I've been running with the new, fixed hat for three days and it hasn't spontaneously rebooted. It looks like it is fixed, so specify the new hat if you are running a Pi Zero (W).

@dbrant
Copy link
Contributor

dbrant commented Oct 10, 2020

I've actually just received one of these HATs (the crashing version), and found this issue because my Pi Zero was crashing. Thanks for all the suggestions here.
Instead of messing around with capacitors, wouldn't it be simpler to do this:

  • remove (clip off / unsolder) the 5V pin(s) from the Pi header
  • attach the HAT to the Pi
  • solder a wire from the 3.3v pin to VCC on the HAT

@missionfloyd
Copy link
Contributor

I came up with something similar. An adapter, of sorts. I got a stacking header, cut off the 5V pins, and bent the 3.3V pin so it goes to 5V on the HAT.

@deslee
Copy link

deslee commented Dec 1, 2020

Can someone detail how to connect the colored wires to the pins on the Pi Zero?

@xtagon
Copy link

xtagon commented Dec 1, 2020

@deslee Look up your model on the Waveshare wiki, for example the 7.5 inch HD one is here: https://www.waveshare.com/wiki/7.5inch_HD_e-Paper_HAT

Click on "User Guides of Pi" at the top and there will be a pinout table that links the e-paper hat pins to the Pi pins. The HAT pins are labeled on the HAT itself by the connector. For the Pi, you can look at this to know what the names are for each pin: https://pinout.xyz/

@fileinster
Copy link

fileinster commented May 22, 2021

I have this issue on a 2.13in screen, marked on the back as "Rev2.1". What revision includes the fix for this problem?

@emilyboda
Copy link

Was this issue closed because it was fixed? Because I think I'm still having this issue.

@dbrant
Copy link
Contributor

dbrant commented Nov 19, 2021

@emilyboda This was a hardware issue that impacted a specific version of the e-ink HAT, and the manufacturer acknowledged that there's no software workaround. The previous comments in this issue discuss hardware workarounds that might work for you.

@fileinster
Copy link

fileinster commented Nov 21, 2021 via email

@emilyboda
Copy link

I have v2 hardware but still experiencing the same issue.

Do you mean you have v2 of the screen? Or is there a v2 of the HAT? Or.... v2 of the Pi Zero? Because I was thinking of buying the Zero v2, but I won't if this is still a problem.

@fileinster
Copy link

fileinster commented Nov 22, 2021 via email

@emilyboda
Copy link

For the record, I have four 7.5" waveshare displays running on Raspberry Pi Zeros. The displays were bought between 2017 and 2020 and only one HAT has this issue. I swapped out the HAT with the issue for a HAT that was known to be good and everything appears to be fine. To be clear, it was only the HAT I swapped out, I'm using the same Pi, same program, same screen, even the same cable between the HAT and the screen. Is waveshare willing to replace the affected HATs?

@xtagon
Copy link

xtagon commented Dec 9, 2021

Is waveshare willing to replace the affected HATs?

When I asked them regarding my affected HAT order, they said "The new version is not mass-produced yet, sorry about it."

@fileinster
Copy link

fileinster commented Dec 9, 2021 via email

@emilyboda
Copy link

Just for more information for people who will be finding this thread later:

I have four HATs working with Pi Zeros, three have no issues and have no version number. The one that says Rev 2.1 is the only one with the issue. Is this consistent with what other people have seen?

All my Pi Zeros are v1; haven't tried it with the v2 Pi Zero that just came out a month ago.

@emilyboda
Copy link

I contacted the company. They've confirmed that they have a new HAT. It is Rev2.2 and it does not have the Pi Zero issues.

@emilyboda
Copy link

Hello all- I've received the Rev 2.2 HAT and confirmed that there are no issues. See pictures here.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants