Raspberry Pi Zero W #7194
Replies: 1 comment
-
Posted at 2017-10-26 by @gfwilliams You might have to run it with Also, does:
work for you in the shell? I'm not 100% sure how the Posted at 2017-10-26 by LouisvanGeldrop Your commands only work after: gpio export 23 output. Without this command setting, I am not allowed to write to the ..gpio23/value. Also using sudo doesn't allow me to write Posted at 2017-10-26 by @gfwilliams That's a bit weird. You know What OS are you using? Raspbian Stretch? I can't say I've used Stretch yet, but Jessie worked great. Posted at 2017-10-26 by LouisvanGeldrop sudo bash ... will only work after I typed: gpio export 23 output. I am using Raspbian Stretch. Posted at 2017-10-26 by @gfwilliams Hmm. Where do you type If Have you tried with any other GPIOs? It might be that 23 is used by something else? Posted at 2017-10-26 by LouisvanGeldrop the Gpio utility comes with wiringPi. However Espruino still no results on all gpio-ports. Posted at 2017-10-26 by @gfwilliams Well, it's a start I guess. What about running Espruino with Posted at 2017-10-26 by LouisvanGeldrop sudo will not help. Installing Jessie now. Maybe that helps. Posted at 2017-10-26 by LouisvanGeldrop Just installed Jessie. Unfortunately the same problem happens. Posted at 2017-10-27 by LouisvanGeldrop I finally got it working after the command: gpio export 23 output I have to run this command for each gpio port. Posted at 2017-10-31 by @gfwilliams Thanks for letting us know - it sounds a bit like it's not actually using WiringPi but the filesystem GPIO, but hey - if it works then great. Posted at 2017-10-31 by LouisvanGeldrop Do I need the wiringPi for rf433 support? Posted at 2017-11-01 by @gfwilliams rf433? You mean http://www.espruino.com/433Mhz, or something like http://www.espruino.com/RFM69 Posted at 2017-11-01 by LouisvanGeldrop The first one: 433Mhz Posted at 2017-11-02 by @gfwilliams Yes, you would if you want to receive - I think you might be ok for sending. You'll struggle a bit with reliability on Raspberry Pi anyway, because with the Operating System you can't guarantee accurate timing - you'd be much better off plugging an external microcontroller like the Pico into the Pi, so you can leave that to do the accurate timing stuff. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-10-25 by LouisvanGeldrop
I have successfully installed Espruino at my raspberry pi zero w. Also wiringPi is installed before the Espruino make.
In a command-box the following will switch on my led: gpio -g write 23 1.
However in Espruino: D23.write(HIGH) will not switch the Led.
What did I forget?
Beta Was this translation helpful? Give feedback.
All reactions