adafruit / pi_video_looper

Application to turn your Raspberry Pi into a dedicated looping video playback device, good for art installations, information displays, or just playing cat videos all day.
GNU General Public License v2.0
465 stars 242 forks source link

3.3v gpio trigger #229

Open lemon2007lemon opened 2 months ago

lemon2007lemon commented 2 months ago

hello all,

so complete noob here, i downloaded one of the prebuilt images and have set it up to suit my needs apart from one thing.

i can get the application to accept commands from the gpio when shorted to GND but have found that the sensors i will be using to trigger actually output 3.3v so is there a setting or could an option be implemented to trigger on pins when 3.3v is supplied?

i have messed with a few options but video_looper seems to always turn the pins high again.

again im a noob and this is my first try on the pi platform

thanks everyone

tofuSCHNITZEL commented 2 months ago

It is no problem to change it in the python code that sets up and handles the gpio. The gist is: Ssh into your install, clone the repo, edit the video_lopper.py, run the install script. But I can see that an ini option for this would also be a good addition.

lemon2007lemon commented 2 months ago

thank you so much for your reply

ah well that would be fantastic, as i say im completely new to this, could you please me an idea what to change in video_looper.py to achieve the needed result.

massive thanks!

tofuSCHNITZEL commented 2 months ago

I have implemented an ini setting in the next branch https://github.com/adafruit/pi_video_looper/tree/next

you can clone the next branch to your pi and run the install - would be great if you can test if it works and then I will release it on the main branch

lemon2007lemon commented 2 months ago

oh wow thats great thank you.

tested and working fine, i do however have a problem with bogus triggers, tried pull up and down combinations but still having a floater issue lol

thank you so much!

tofuSCHNITZEL commented 2 months ago

Hm what exactly are you connecting to the gpios? Do they have a common ground?