-
Notifications
You must be signed in to change notification settings - Fork 283
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
I managed to get the led working on a Raspberry Pi 4. #158
Comments
I just started TJbot High School project using Pi 4 and ran into the LED issue described by @chunyianliew. I applied the commands above to my node v10.15.2 environment with no success. The node-gyp returned OK, but the stty.js (../recipes/speech-to-text) blocks when ran with sudo privileges. |
If |
Thank you, we'll do!. Any thoughts on the first issue? Failure occurs while TJBot is initializing LED. I attempted many recommended fixes short of changing DMA settings. |
@melaurean, I am organising similar workshops at work for kids of colleagues, so I can share some of my own findings I ran into myself with the Led, assuming that the node-gyp rebuild didn't throw any errors:
|
@chunyianliew, many thanks for sharing your findings. I tried both NeoPixel and DIGI_KEY LEDs and so far with little success. All works fine on Pi 3, but not yet on Pi 4. Since the failure occurs in the LED init code I researched that aspect and found a few posts mentioning the need to change DMA channel on Pi4 to 10. I started reading the code but did not jump into making the change yet... |
@melaurean, another option is to try out the following suggestion from @jweisz: #153 (comment) If you have some patience: I am planning to create a new golden master SD card image for the Raspberry Pi 4 within the coming 2 weeks. I use this image to clone multiple SD cards in one go for the workshops. I can share the instructions to create one yourself together with the actual image with you when I am ready. The workshop is fully focused on usage of Node-Red with the tjbot though. |
@jweisz Is there a list of S/W component versions that I should observe for TJ? For example the documentation recommends back versions of node.js (6 & 9). |
Sounds good. The LED issue seems to be related to a a misunderstanding
between the initialization routine ws281x-native and RPI. Do you plan to
change that locally, or work with the OS team for a more generic approach?
…On Tue, Mar 3, 2020 at 6:43 PM Chun-Yian Liew ***@***.***> wrote:
@melaurean <https://github.com/melaurean>, another option is to try out
the following suggestion from @jweisz <https://github.com/jweisz>: #153
(comment)
<#153 (comment)>
If you have some patience: I am planning to create a new golden master SD
card image for the Raspberry Pi 4 within the coming 2 weeks. I use this
image to clone multiple SD cards in one go for the workshops. I can share
the instructions to create one and the actual image with you when I am
ready. The workshop is fully focused on usage of Node-Red with the tjbot
though.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#158?email_source=notifications&email_token=AN4TAPZMLYPCQTTPFSHL5WLRFWIZ5A5CNFSM4LARYT62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENVTONA#issuecomment-594229044>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AN4TAP72JFH4H3ZPLTR26Z3RFWIZ5ANCNFSM4LARYT6Q>
.
|
Closing this issue as the tjbot 2.0.0 release adds instructions for getting neopixel LEDs working on RPi 4 in the new TROUBLESHOOTING.md guide, as well as support for common anode LEDs. |
I managed to get the led working on a Raspberry Pi 4.
The led does not initialise with the imported node_rpi_ws281x-native module. It does not report any errors, it just hangs when trying to initialising the led control.
This issue is also described here.
I managed to resolve the issue for now by replacing the imported rpi_ws281x library (of a specific tree version) in the source folder of node-rpi-ws281x-native by the master branch.
Here are the commands when running node-red:
# cd ~/.node-red/nodes/node-red-contrib-tjbot/node_modules/rpi-ws281x-native/src
# rm -rf rpi_ws281x/
# git clone --recursive https://github.com/beyondscreen/rpi_ws281x.git
# cd ~/.node-red/nodes/node-red-contrib-tjbot/node_modules/rpi-ws281x-native
# node-gyp rebuild
So tjbot is now fully operational on a Raspberry Pi 4, at least mine tjbot is.
Originally posted by @chunyianliew in #149 (comment)
The text was updated successfully, but these errors were encountered: