You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
apologies for a newcomer question, but I was unable to find example code how to pwmWrite to a LED. My setup looks correct, and running Sunfounder Python code (04_pwmLed.py from the Superkit 2 code snippets) lets the LED pulse as expected.
With WiringPi-Node, I'm running the following snippet on my Pi 3:
...which lights up the LED but as soon as I run it, my Rasperry Ext4 filesystem crashes and the only option is to pull the plug. Google results suggest that these Ext4 FS errors occur due to power supply issues - as they do not occur with the Python code, and it's an power supply coming with a standard Rasperry Pi kit, I'd assume it's not hardware related.
Any ideas what's wrong? Any initialisation I skipped? Any code samples I could try? Is there a repository of more WiringPi-Node examples? Any pointers are appreciated.
Thanks!
The text was updated successfully, but these errors were encountered:
Are you running it with sudo? I ran into a similar problem with C using the PWM with GPIO 18 in that I had a program using PWM with an LED circuit and my Raspberry Pi with Raspbian crashed every time I tried to run it.
Then I discovered I needed to use sudo to run the program because the wiringPi library required administrator or root access to the PWM hardware.
I am using the Osoyoo Raspberry Pi Starter Kit (see http://osoyoo.com/2016/04/12/raspberry-pi-3-s/) and the lessons on the Osoyoo web site. I am doing the C language examples with wiringPi library.
Hi,
apologies for a newcomer question, but I was unable to find example code how to pwmWrite to a LED. My setup looks correct, and running Sunfounder Python code (04_pwmLed.py from the Superkit 2 code snippets) lets the LED pulse as expected.
With WiringPi-Node, I'm running the following snippet on my Pi 3:
...which lights up the LED but as soon as I run it, my Rasperry Ext4 filesystem crashes and the only option is to pull the plug. Google results suggest that these Ext4 FS errors occur due to power supply issues - as they do not occur with the Python code, and it's an power supply coming with a standard Rasperry Pi kit, I'd assume it's not hardware related.
Any ideas what's wrong? Any initialisation I skipped? Any code samples I could try? Is there a repository of more WiringPi-Node examples? Any pointers are appreciated.
Thanks!
The text was updated successfully, but these errors were encountered: