LED Matrix Sand Toy

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
kpyogendran
 
Posts: 26
Joined: Mon Nov 27, 2017 4:31 pm

LED Matrix Sand Toy

Post by kpyogendran »

Hi Team - have been recreating the Project https://learn.adafruit.com/matrix-led-sand?view=all
LED Matrix Sand toy.
have got all the Parts from Adafruit
64x64 is working fine with RGB matrix bonnet
however i have connected LIS3DH and Powerboost when i try to run program sudo python buttons.py it does not work with Acceleration or doesnt lit up the LEDS.
its lighting up one portion only.
what is wrong in my setup ?

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: LED Matrix Sand Toy

Post by adafruit_support_mike »

Post a photo showing your hardware and connections and we'll take a look. 800x600 images usually work best.

User avatar
kpyogendran
 
Posts: 26
Joined: Mon Nov 27, 2017 4:31 pm

Re: LED Matrix Sand Toy

Post by kpyogendran »

back
back
IMG_1216 2.jpg (924.02 KiB) Viewed 421 times
Front
Front
IMG_1217 2.jpg (955.44 KiB) Viewed 421 times

User avatar
kpyogendran
 
Posts: 26
Joined: Mon Nov 27, 2017 4:31 pm

Re: LED Matrix Sand Toy

Post by kpyogendran »

i didnt solder the Reset Button and Mode button yet.
Just tried to run sudo python buttons.py from ssh connection

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: LED Matrix Sand Toy

Post by adafruit_support_mike »

Try working through the installation instructions for the Matrix Bonnet without any of the code from the sand toy project:

https://learn.adafruit.com/adafruit-rgb ... g-matrices

There are some known issues between the LED Matrix driver code and a RasPi's overclocking speed. That tutorial explains how to deal with them.

User avatar
kpyogendran
 
Posts: 26
Joined: Mon Nov 27, 2017 4:31 pm

Re: LED Matrix Sand Toy

Post by kpyogendran »

These modules of RPI RGB LED matrix were working fine.
after Soldering the button's on Pin 19 and 25 i do see the display is not good.

Also i do seee this message
FYI: Couldn't set affinity: Invalid argument
Size: 64x64. Hardware gpio mapping: adafruit-hat
Attachments
IMG_1218 2.jpg
IMG_1218 2.jpg (819.57 KiB) Viewed 392 times

User avatar
kpyogendran
 
Posts: 26
Joined: Mon Nov 27, 2017 4:31 pm

Re: LED Matrix Sand Toy

Post by kpyogendran »

Reset and mode buttons are soldered on Bonnet Hat 9 and 25 respectively.
and Ground is connected to the Ground port of Power boost along with SPDT switch ground.

Snow demo is working as expected however when i press the either of the buttons - reset or mode changes doesnt work .


pi@raspberrypi:~/Projects/LED-Sand/Adafruit_PixelDust/raspberry_pi $ sudo ./demo1-snow
FYI: Couldn't set affinity: Invalid argument
Size: 64x64. Hardware gpio mapping: adafruit-hat

User avatar
kpyogendran
 
Posts: 26
Joined: Mon Nov 27, 2017 4:31 pm

Re: LED Matrix Sand Toy

Post by kpyogendran »

Hello any suggestions?

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: LED Matrix Sand Toy

Post by adafruit_support_mike »

Let me check with the developer for that project. If the matrix works normally for the example sketches, we can probably rule out a hardware problem.

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: LED Matrix Sand Toy

Post by pburgess »

Is the 'E' solder bridge set to pin 8 on the back of the Matrix Bonnet board?
raspberry_pi_bonnet-bridge.jpg
raspberry_pi_bonnet-bridge.jpg (133.82 KiB) Viewed 316 times

User avatar
kpyogendran
 
Posts: 26
Joined: Mon Nov 27, 2017 4:31 pm

Re: LED Matrix Sand Toy

Post by kpyogendran »

Yes its. LED matrix 64 x 64 is connected and working as well.
only the Push buttons arent working ...

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: LED Matrix Sand Toy

Post by pburgess »

Oh! Misunderstood the issue. I get it now.

The button handling isn't processed by the demo programs themselves (demo1-snow, etc.). Instead, there's a Python wrapper program that reads the buttons and switches among the three demos:

Code: Select all

sudo python buttons.py

User avatar
kpyogendran
 
Posts: 26
Joined: Mon Nov 27, 2017 4:31 pm

Re: LED Matrix Sand Toy

Post by kpyogendran »

Yes i do understand that and i have added the python wrapper program into /etc/init.d to load during the startup as well.
even when i tried to run sudo python button.py after than both buttons never respond for changing mode or reset.

by default snow flakes effect is working when i issue the python wrapper command..

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: LED Matrix Sand Toy

Post by pburgess »

Can I see more of the back-side wiring? It's not clear where the buttons are connected.

The guide does show the GND connections from the buttons going to one pin of the switch...which, technically, should work, but conceptually is a bit roundabout, and might make more sense to split off from the ground connection on the bonnet.

User avatar
kpyogendran
 
Posts: 26
Joined: Mon Nov 27, 2017 4:31 pm

Re: LED Matrix Sand Toy

Post by kpyogendran »

Ground for both the buttons connected with SPDT switch Ground and soldered on Ground Pin of Power boost.
its not clear in the Guide video however i have followed the circuit diagram provided in the guide.

https://learn.adafruit.com/matrix-led-s ... it-diagram
Attachments
IMG_1298.jpg
IMG_1298.jpg (874.93 KiB) Viewed 269 times

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”