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

Rpi no boot after pwm #39

Open
eEQK opened this issue Dec 19, 2018 · 4 comments
Open

Rpi no boot after pwm #39

eEQK opened this issue Dec 19, 2018 · 4 comments

Comments

@eEQK
Copy link

eEQK commented Dec 19, 2018

I've launched code on my raspberry pi 3b+ which is simillar to this https://github.com/stianeikeland/go-rpio/blob/master/examples/pwm/pwm.go
on my raspberry pi 3b+

func main() {
        err := rpio.Open()
        if err != nil {
                os.Exit(1)
        }
        defer rpio.Close()

        pin := rpio.Pin(7)
        pin.Mode(rpio.Pwm)
        pin.Freq(60*60)
        pin.DutyCycle(0, 60)
        // the LED will be blinking at 60Hz
        // (source frequency divided by cycle length => 60*60/60 = 2000)
}

iirc it was exactly like this. After running it ssh freezed and after restarting raspberry, wont boot again. Do you know what could be the problem?

@drahoslove
Copy link
Collaborator

The issue is probably the same as #38, unfortunately I'm not sure what exactly is the problem.

Are you sure your Pi won't boot again? Like never ever?
Have you tried to:

  • ground RUN pin to restart?
  • re-attach power supply?
  • disconnect everything from gpio pins?
  • re-inject SDcard?
  • create empty file ssh on SDcard again?
  • use another SDcard with clean Raspbian install?

@eEQK
Copy link
Author

eEQK commented Dec 20, 2018

I've done everything you said except for creating empty file ssh on SD card which I don't get. Tried booting from different card (which is new), as well as booting from USB stick.
Nothing from this list won't work too.

PSU itself should be okay, as it's solid 5V/2A, I've checked a couple of times whether my pi is throttled, as I had no peripherals connected to it - it was okay.

It's a shame my pi died, I had it for like 4 days, even started doing project on it. Do you think that it's refundable? I'm sure I haven't short-circuited anything, the fan I've connected shouldn't cause overload and even if so - there's a polyfuse. The only thing that caused it seems to be the code snippet I've sent yesterday.

@gabzim
Copy link

gabzim commented May 17, 2019

@drahoslove is there risk of ruining my pi by using this library? maybe that should be added as a disclaimer. what exactly should I avoid using from this lib?

@shanghuiyang
Copy link

not all pins support pwm. please try pin 12, 18, 13 or 19, and need to use sudo to run your app.
pwm works well with pin 13 on my pi 3.

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

4 participants