09-22-2021, 06:08 AM
(This post was last modified: 09-22-2021, 06:30 AM by DRONE7.
Edit Reason: Code tags
)
(09-22-2021, 06:00 AM)fdealexa Wrote:Yes I have a 5" screen connected directly to the RPI pins and the HDMI out of the RPi is connected to the HDMI in of the screen(09-22-2021, 05:44 AM)Pranjal Wrote:(09-22-2021, 04:53 AM)fdealexa Wrote:(09-22-2021, 04:11 AM)Pranjal Wrote: Thank you everyone, phew one step crossed. Now hit another hurdle, While testing the working of peppymeter I get the undermentioned error
pi@moode:~/PeppyMeter $ sudo python3 peppymeter.py
pygame 1.9.4.post1
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "peppymeter.py", line 290, in <module>
pm.init_display()
File "peppymeter.py", line 150, in init_display
pygame.display.init()
pygame.error: Unable to open mouse
Can I please receive your esteemed guidance how to cross this hurdle
Hi Pranjal,
Have you modified the
Quote:/home/pi/PeppyMeter/config.txtas reported on the tutorial?
I did Francesco, but in Moode 7.3, this option is not there
Code:"screen.size = large"
Could you please try:
Code:cat /home/pi/PeppyMeter/config.txt
Yes certainly, the results are as below :-
Code:pi@moode:~ $ cat /home/pi/PeppyMeter/config.txt
[current]
meter = random
random.meter.interval = 20
meter.size = large
screen.width =400
screen.height =800
exit.on.touch = False
output.display = True
output.serial = False
output.i2c = False
output.pwm = False
output.http = False
use.logging = False
use.cache = True
frame.rate = 30
[sdl.env]
framebuffer.device = /dev/fb0
mouse.device = /dev/input/event0
mouse.driver = TSLIB
mouse.enabled = True
video.driver = dummy
video.display = :0
double.buffer = False
no.frame = False
[serial.interface]
device.name = /dev/serial0
baud.rate = 9600
include.time = False
update.period = 0.1
[i2c.interface]
port = 1
left.channel.address = 0x21
right.channel.address = 0x20
output.size = 10
update.period = 0.1
[pwm.interface]
frequency = 500
gpio.pin.left = 24
gpio.pin.right = 25
update.period = 0.1
[http.interface]
target.url = http://localhost:8000/vumeter
update.period = 0.033
[web.server]
http.port = 8001
[data.source]
type = pipe
polling.interval = 0.033
pipe.name = /var/tmp/peppyfifo
volume.constant = 80.0
volume.min = 0.0
volume.max = 100.0
volume.max.in.pipe = 100.0
step = 6
mono.algorithm = average
stereo.algorithm = new
smooth.buffer.size = 4
-------------------------------------------------------------------------
Thanks and regards,
Francesco
Please help
Hi dear,
The "meter size" and "screen size" difference is due to the new Peppymeter version: sorry.
The simptom seems to be related to the output display: have you a flat screen directly connected to the display port of your Raspberry?
Regards,
Francesco