Go to advanced search

by backmailingbox
Mon Dec 28, 2020 7:45 am
Forum: Other projects
Topic: Is it grounding problem?
Replies: 6
Views: 226

Re: Is it grounding problem?

I connected 0v from RPi with case.... no change, the problem remain the same
by backmailingbox
Sun Dec 27, 2020 3:53 pm
Forum: Other projects
Topic: Is it grounding problem?
Replies: 6
Views: 226

Re: Is it grounding problem?

button events are caught with:
GPIO.setup(cfg.FACE_PLUS, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
GPIO.add_event_detect(cfg.FACE_PLUS, GPIO.FALLING, callback=self.btn_face_plus_pressed, bouncetime=cfg.bounce_time)

touching this metal screw cause the problem, sometimes...
by backmailingbox
Sun Dec 27, 2020 3:50 pm
Forum: Other projects
Topic: Is it grounding problem?
Replies: 6
Views: 226

Re: Is it grounding problem?

thanks for response. Quick response :-) There is no HDMI, no connection to TV. there are only passive loudspeakers conneected to IQaudio amp. For buttons I used the scheme from: https://coder-tronics.com/switch-debouncing-tutorial-pt1/ There is part with name hardware solution. I used it. with 1 res...
by backmailingbox
Sun Dec 27, 2020 2:21 pm
Forum: Other projects
Topic: Is it grounding problem?
Replies: 6
Views: 226

Is it grounding problem?

I have a audio project. it is done and successfully running. It is Rpi3 with IQaudio amp. It is powered by 18V to IqAudio card. Rpi has power from IQaudio card. There are many buttons (with capacitors and resistors) The whole device is in aluminium frame. Inside the frame is acrylic sheet, plexiglas...
by backmailingbox
Mon Apr 20, 2020 6:31 pm
Forum: Raspberry Pi OS
Topic: how to add sleep into lxde autostart
Replies: 35
Views: 1693

Re: how to add sleep into lxde autostart

so it looks that it is my last post I think that problem is solved after boot always are running 2 instancies of python script one is standard second one is started for VNC server and when I worked with sw only it was no problem for me when I started to connect HW my problems started 2 instancies we...
by backmailingbox
Mon Apr 20, 2020 6:03 pm
Forum: Raspberry Pi OS
Topic: how to add sleep into lxde autostart
Replies: 35
Views: 1693

Re: how to add sleep into lxde autostart

Sorry that I am sending so many posts. But now I am 100% sure I connected keyboard directly to Rpi I pressed ctrl alt T and I am able to use console alarmclock.py is after boot running twice and this is the source of my problem and my question is, why my python process is running twice the test was ...
by backmailingbox
Mon Apr 20, 2020 5:56 pm
Forum: Raspberry Pi OS
Topic: how to add sleep into lxde autostart
Replies: 35
Views: 1693

Re: how to add sleep into lxde autostart

And I can see another funny thing. When I boot raspberry pi and my app has a button which doesn't work and I go to win pc and start VNC and I connect to rpi I can see running my app immediately after start and I can see the action on display (for example menu is open) which was done with the button,...
by backmailingbox
Mon Apr 20, 2020 5:52 pm
Forum: Raspberry Pi OS
Topic: how to add sleep into lxde autostart
Replies: 35
Views: 1693

Re: how to add sleep into lxde autostart

my autostart now(when i ustart via another script) look like: @lxpanel --profile LXDE-pi @pcmanfm --desktop --profile LXDE-pi @xscreensaver -no-splash point-rpi @xset s noblank @xset s off @xset -dpms #python3 /home/pi/AlarmClock/alarmclock.py /log /nobeep /boot & /home/pi/AlarmClock/aci_start
by backmailingbox
Mon Apr 20, 2020 5:49 pm
Forum: Raspberry Pi OS
Topic: how to add sleep into lxde autostart
Replies: 35
Views: 1693

Re: how to add sleep into lxde autostart

my problem is that my app is really full screen, no window, really full screen. so I have no access to terminal. I dont know why but ctrl-alt-T doesnt start console... so I can not check it easyly but when I close my app and I when i immediately go to console and I grep all python processes I can se...
by backmailingbox
Mon Apr 20, 2020 5:14 pm
Forum: Raspberry Pi OS
Topic: how to add sleep into lxde autostart
Replies: 35
Views: 1693

Re: how to add sleep into lxde autostart

I do next and next tests now I don't use @ I do it directly from lxde autostart or also from script started from LXDE autostart My opinion is that it is still starting 2 instancies of my python app problem is that my app is really full screen and is on the top but if I close my app correctly, I can ...
by backmailingbox
Mon Apr 20, 2020 4:36 pm
Forum: Raspberry Pi OS
Topic: how to add sleep into lxde autostart
Replies: 35
Views: 1693

Re: how to add sleep into lxde autostart

I don't know about any error in my app during startup. when I run it from keyboard everything is ok.
why OS thinks that my app generates error and as the result run it 5 times?????
and after boot it is running 5 instancies, so where is the error?????
I don't understand the meaning of @
by backmailingbox
Mon Apr 20, 2020 4:20 pm
Forum: Raspberry Pi OS
Topic: how to add sleep into lxde autostart
Replies: 35
Views: 1693

Re: how to add sleep into lxde autostart

yes I know, or I think so...
but why all other commands in this script start with @
there is also screen saver disabled
3 commands
all whith starting @
why???
by backmailingbox
Mon Apr 20, 2020 4:04 pm
Forum: Raspberry Pi OS
Topic: how to add sleep into lxde autostart
Replies: 35
Views: 1693

Re: how to add sleep into lxde autostart

i have another miracle.... i really don't understand this linux system i have changed my script like somebody upper wrote and i can run it from console it looks sleep 8; @python3 /home/pi/myscript.py do you know what happend? my application was started 5 times I have running 5 instacies of my proces...
by backmailingbox
Mon Apr 20, 2020 12:06 pm
Forum: Raspberry Pi OS
Topic: how to add sleep into lxde autostart
Replies: 35
Views: 1693

Re: how to add sleep into lxde autostart

Now my autostart has these lines

Code: Select all

#@python3 /home/pi/AlarmClock/alarmclock.py /log /nobeep /boot  &
@/home/pi/AlarmClock/ac_start start > /home/pi/Temp/ac_start.log 2>&1
But after reboot there is no

/home/pi/Temp/ac_start.log

file was not created
directory exists
by backmailingbox
Mon Apr 20, 2020 7:42 am
Forum: Raspberry Pi OS
Topic: how to add sleep into lxde autostart
Replies: 35
Views: 1693

Re: how to add sleep into lxde autostart

so I have changed the autostart to:
@/home/pi/AlarmClock/ac_start start
and no success again
by backmailingbox
Sun Apr 19, 2020 9:37 pm
Forum: Raspberry Pi OS
Topic: how to add sleep into lxde autostart
Replies: 35
Views: 1693

Re: how to add sleep into lxde autostart

:-) it is too late so I will try it tomorrow,
now I undestand little bit better,
ok so I need to add param "start"

so I will try it :-)
and I will write here tomorrow

yes and it is visual gui application (clock - radio)
by backmailingbox
Sun Apr 19, 2020 9:28 pm
Forum: Python
Topic: Python Tkinter and GPIO
Replies: 5
Views: 329

Re: Python Tkinter and GPIO

maybe I try to write it again I have application, it is python script I start it during boot in LXDE - autostart - in 50% there is a problem (which problem I can write later) I can kill it and restart it from keyboard connected directly to RPi. it is always OK in 100% I can kill it and start it remo...
by backmailingbox
Sun Apr 19, 2020 7:49 pm
Forum: Python
Topic: Python Tkinter and GPIO
Replies: 5
Views: 329

Re: Python Tkinter and GPIO

did you do a project which use tkinter gui and also physical hardware buttons? the problem is that when I start from boot (autostart) script sometimes has problems. when I start it by keyboard or remotely from keyboard (vnc) it is always ok. I think that problem is initialization part of hw buttons ...
by backmailingbox
Sun Apr 19, 2020 7:44 pm
Forum: Raspberry Pi OS
Topic: how to add sleep into lxde autostart
Replies: 35
Views: 1693

Re: how to add sleep into lxde autostart

Paeryn: sorry I don't understand you, maybe problem is on my side. I am not linux expert. you aren't passing any arguments to ac_start ... ac_start don't have any arguments I only want to start ac_start file nothing more, no arguments are needed as you can see in my commented line - it was my test t...
by backmailingbox
Sun Apr 19, 2020 3:16 pm
Forum: Raspberry Pi OS
Topic: how to add sleep into lxde autostart
Replies: 35
Views: 1693

Re: how to add sleep into lxde autostart

my situation is similar but doesn't work

on pic is situation when I commented new line and I am running old way
because new way doesn't work
by backmailingbox
Sun Apr 19, 2020 8:53 am
Forum: Raspberry Pi OS
Topic: how to add sleep into lxde autostart
Replies: 35
Views: 1693

Re: how to add sleep into lxde autostart

Paeryn: thanks for info. I have an autostart in lxde folder which as user Pi starts successfuly my python script I commented this line, I created new line where I start another shell script /home/pi/AlarmClock/ac_start ac_start is new script where I now start this python script I set also perms sudo...
by backmailingbox
Sat Apr 18, 2020 7:01 pm
Forum: Python
Topic: New to Tkinter
Replies: 1
Views: 183

Re: New to Tkinter

what do you want. create such button in tkinter?
one info first. as I know tkinter doesn't support swipe
by backmailingbox
Sat Apr 18, 2020 6:19 am
Forum: Raspberry Pi OS
Topic: how to add sleep into lxde autostart
Replies: 35
Views: 1693

how to add sleep into lxde autostart

is there posibility to set sleep in raspbian buster lxde autostart?
what does mean "@" at the start of every line?
where is the docu to this file?
i am speaking about /etc/xdg/lxsession/LXDE-pi/autostart
or as always with raspbian... I have to try try try try....?
by backmailingbox
Sat Apr 18, 2020 6:16 am
Forum: Python
Topic: Python Tkinter and GPIO
Replies: 5
Views: 329

Python Tkinter and GPIO

anybody who has experience with this combination. There is a big problem.
the python script during boot has differenr behaviour like the same scripot started by keyboard later.
it is about thread and handling gpio add_event. is here anybody who solved this problem?

Go to advanced search