ibmtjbot / tjbot

IBM TJBot
https://ibmtjbot.github.io
Apache License 2.0
481 stars 282 forks source link

Pi 4 support #149

Closed d1runberg closed 4 years ago

d1runberg commented 4 years ago

Is Tjbot supported using the pi 4? The docs say nothing about it and want to be sure before making recommendations on hardware.

jweisz commented 4 years ago

From a software side, I believe everything should work, but I haven't tested it myself yet.

From a hardware side, we have a community member who altered the design of the 3D print to accommodate the RPi 4. @maryamashoori has more info on the status of this.

d1runberg commented 4 years ago

Awesome! Do we know if the cardboard laser cut files work, or do they need to be modified in some way?

Derek Runberg Strategic Partnerships / Author / Educator

SparkFun Electronics, Inc. p: 303.284.0979 <(303)%20284-0979> m: 971.344.2355 a: 6333 Dry Creek Pkwy Niwot, CO. 80503 w: sparkfun.com e: derek.runberg@sparkfun.com first.last@sparkfun.com https://facebook.com/sparkfun https://twitter.com/sparkfun https://instagram.com/sparkfun https://youtube.com/sparkfun

On Mon, Oct 21, 2019 at 8:32 AM Justin Weisz notifications@github.com wrote:

From a software side, I believe everything should work, but I haven't tested it myself yet.

From a hardware side, we have a community member who altered the design of the 3D print to accommodate the RPi 4. @maryamashoori https://github.com/maryamashoori has more info on the status of this.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ibmtjbot/tjbot/issues/149?email_source=notifications&email_token=ACGT6VA5FUAOQWIUYGJH7F3QPXDPZA5CNFSM4JCK6FH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB2XX2Q#issuecomment-544570346, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACGT6VE3DDZWUZYPY7YPFNLQPXDPZANCNFSM4JCK6FHQ .

chunyianliew commented 4 years ago

The 3D print for the Raspberry Pi 4 is almost the same as for the Raspberry Pi 3 B+, except for the jaw. The holes in the jaw for the usb and network ports needs to be mirrored. The tjbot node-red install process almost results in a working tjbot. The only issue I ran into so far is that when the led is enabled in the tjbot node configuration the deployment fails/hangs/loops...

chunyianliew commented 4 years ago

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/nodemodules/rpi-ws281x-native # node-gyp rebuild

So tjbot is now fully operational on a Raspberry Pi 4, at least mine tjbot is.

jweisz commented 4 years ago

Closing due to inactivity.