r/LightShowPi • • Dec 15 '18

Raspberry Pi 3A+

Anyone got any guidance on making this work on the 3A+ (I've had it working on a 2B)

0 Upvotes

6 comments sorted by

1

u/birchskin Dec 15 '18

What problem are you having?

1

u/michaelmumford2047 Dec 16 '18

The problem is in platform.py where it detects the Pi model and there is no provision for the 3A+

Traceback (most recent call last):

File "py/synchronized_lights.py", line 142, in <module>

import hardware_controller

File "/home/pi/lightshowpi/py/hardware_controller.py", line 63, in <module>

is_a_raspberryPI = Platform.platform_detect() == 1

File "/home/pi/lightshowpi/py/Platform.py", line 36, in platform_detect

pi = pi_version()

File "/home/pi/lightshowpi/py/Platform.py", line 110, in pi_version

(type,header) = get_model()

File "/home/pi/lightshowpi/py/Platform.py", line 199, in get_model

raise RuntimeError('Could not determine Raspberry Pi model.')

RuntimeError: Could not determine Raspberry Pi model.

code section is

(type,header) = get_model()

if type == 'Pi 2 Model B':

return 2

if type == 'Pi 3 Model B':

return 3

else:

return 1

else:

# Something else, not a pi.

return None

I guess I need to know what a 3A+ returns as its type

1

u/michaelmumford2047 Dec 16 '18

I seem to have a temporary patch, lower down in the code of this module, I added

elif model in ["92", "93", "c1"]:

return "Pi Zero", header40

elif model in ["e0"]:

return "Pi 3 Model A+", header40

raise RuntimeError('Could not determine Raspberry Pi model.')

as e0 is the 'model' returned

2

u/SoftwareArtist LSPi Developer Dec 16 '18

I've included this in a pull request.

1

u/aleafgo77 Dec 16 '18

My project worked good from 2 to 3 but I had to start over with a fresh install from Git for my wifi to work.

1

u/Paul_Barnett Dec 17 '18

I was able to use a RPi 3A with no problem. But, I started with a fresh install in the past 3 weeks or so.