sunfounder / pironman

GNU General Public License v2.0
15 stars 13 forks source link

Slow Youtube video + no sound when i install Pironman software - Raspberry Pi 4 8GB #5

Open framboise314 opened 1 year ago

framboise314 commented 1 year ago

Hi I wrote an article on Pironman . Now i use it as a desktop computer I have a Raspberry Pi 4 8GB RAM. I just create a fresh 32 GB SD card (SanDisk Ultra) with Raspberry Pi Imager, using Raspberry Pi OS Full (32-bit) version : 2023-02-21 After update/upgrade I launch youtube and look a video Video is fluid and sound is ok on my amplified loud speakers. I use 3.5mm jack output I stop youtube and close the browser

Now I install Pironman software using your procedure

=========== Pironman installation =======================

pi@raspberrypi:~ $ sudo nano /boot/config.txt
pi@raspberrypi:~ $ git clone https://github.com/sunfounder/pironman.git
Clonage dans 'pironman'...
remote: Enumerating objects: 590, done.
remote: Counting objects: 100% (124/124), done.
remote: Compressing objects: 100% (100/100), done.
remote: Total 590 (delta 48), reused 87 (delta 24), pack-reused 466
Réception d'objets: 100% (590/590), 59.48 Mio | 3.76 Mio/s, fait.
Résolution des deltas: 100% (235/235), fait.
pi@raspberrypi:~ $ cd ~/pironman
pi@raspberrypi:~/pironman $ sudo python3 install.py
pironman 1.2.8 install process starts:
 - update apt... Done
 - update pip3... Done
Install dependency
 - install python3-smbus... Done
 - install i2c-tools... Done
 - install libopenjp2-7 ... Done
 - install libtiff5... Done
 - install rpi-ws281x... Done
 - install pillow... Done
 - enable i2c... Done
create WorkingDirectory
 - create /opt... Done
 - create dir... Done
 - copy service file... Done
 - add excutable mode for service file... Done
create config file
 - copy config file... Done
check startup files
 - enable the service to auto-start at boot... Done
 - run the service... Done
Finished.
You can manually clear the installation files now.
pi@raspberrypi:~/pironman $ pironman -c
config file:/home/pi/.config/pironman/config.txt
temp_unit = C
fan_temp = 50
screen_always_on = False
screen_off_time = 60
rgb_switch = True
rgb_style = breath
rgb_color = 0a1aff
rgb_blink_speed = 50
pi@raspberrypi:~/pironman $ pironman 

config file: /home/pi/.config/pironman/config.txt

Usage:
  pironman 

============== End of Pironman installation ==================

All is ok for Pironman BUT when I launch again youtube, the video is very Jerky and i have NO SOUND except for a faint crackle in the speakers every 10 seconds

A reboot is useless, i have the same issue

I stop Pironman

pi@raspberrypi:~/pironman $ pironman stop
stopping pironman
pi@raspberrypi:~/pironman $ 

but this has no effect : video very jerky and no sound via 3.5mm jack even after reboot

Any Idea ? It's very nice on the desk the Pironman box, but if you can't use it normally ...

Lovmong commented 1 year ago

I'm sincerely sorry. The 3.5mm audio cannot be used due to the PWM conflict between the RGB light of ws2812 and the 3.5mm audio of the Raspberry Pi system. https://github.com/jgarff/rpi_ws281x#pwm You can turn off the RGB lights with "pironman -rw off", or use HDMI audio. The 3.5mm PWM audio of the system is turned off by default in the code of version 1.3.0.

framboise314 commented 1 year ago

OK thank you i'm sorry too i only have an old screen nin DVI and i have to use amplified loud speakers I think this should be mentionned in the Pironman web page... https://www.sunfounder.com/products/raspberry-pi-4-case... no ?

Lovmong commented 1 year ago

@framboise314 Hello! If you want to use 3.5mm audio and rgb lights at the same time, you can use spi to drive rgb lights. You need to complete the following steps:

  1. Connect the RGB pin of the pironman expansion board and the MOSI (10) pin of the Raspberry Pi with a Dupont cable, as shown in the figure: image
  2. Clone the code of the v2.0 branch and install it: sudo apt-get update sudo apt-get install git -y sudo apt-get install python3 python3-pip python3-setuptools -y cd ~ git clone -b v2.0 https://github.com/sunfounder/pironman.git cd ~/pironman sudo python3 install.py

In the version 2.0 program, you can choose to control the gpio of rgb through the command, (these io can choose 10, 12, 21) eg: pironman -rp 10