0

Point and shoot cam not working
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Point and shoot cam not working

by arduinoman123 on Wed Sep 22, 2021 12:27 pm

So i tried out adafruits point and shoot camera project and everything works exept the size of the preveiw is too small and the python progam does not respond to touch.

Help would be greatly appreciated.

-finn

arduinoman123
 
Posts: 6
Joined: Tue Jun 25, 2019 7:17 am

Re: Point and shoot cam not working

by adafruit_support_carter on Wed Sep 22, 2021 4:35 pm

Can you link to the guide you are following. We've got a couple of camera like projects, so want to make sure we're following the same one.

adafruit_support_carter
 
Posts: 21405
Joined: Tue Nov 29, 2016 2:45 pm

Re: Point and shoot cam not working

by arduinoman123 on Wed Sep 22, 2021 4:40 pm


arduinoman123
 
Posts: 6
Joined: Tue Jun 25, 2019 7:17 am

Re: Point and shoot cam not working

by pburgess on Thu Sep 23, 2021 4:23 pm

Trying to do a walkthrough to reproduce the problem, but there seems to be apt server issues at the moment. I’ll have to try again later.

So, in the meantime, could you elaborate on both the hardware and software you’re working with?

• What model of Raspberry Pi?
• Which PiTFT, exactly?
• Which Raspberry Pi camera?
• What OS release & variant?

I’m wondering if the too-small preview might be related to the different resolutions between the V1 and V2 camera modules (this was written in the V1 camera era…obviously…I mean wow, look at that antique Pi 1!).

pburgess
 
Posts: 4079
Joined: Sun Oct 26, 2008 2:29 am

Re: Point and shoot cam not working

by arduinoman123 on Sun Sep 26, 2021 10:14 am

1. pi3 model b

2. PiTFT 2.8" Capacitive touchscreen

3. pi cam 2.1

4. buster version 10

arduinoman123
 
Posts: 6
Joined: Tue Jun 25, 2019 7:17 am

Re: Point and shoot cam not working

by pburgess on Mon Sep 27, 2021 8:04 pm

After several hours I still don’t have this fully working, but some things I’ve learned thus far…

/etc/apt/preferences.d/libsdl needs to have "buster" added to the list of disabled releases, i.e. insert:
Code: Select all | TOGGLE FULL SIZE
Pin: release n=stretch
Pin-Priority: -10


The guide specifically mentions that cap touch screens aren’t supported. I did get it almost working by editing the cam.py script and commenting out the two lines:
Code: Select all | TOGGLE FULL SIZE
os.putenv('SDL_MOUSEDRV'   , 'TSLIB')
os.putenv('SDL_MOUSEDEV'   , '/dev/input/touchscreen')

Initial touch works but subsequent touches are somewhat unpredictable.

The one time I did get it running (don’t recall what sequence of installation steps and edits I had to follow to get it to this stage … sounds like you’ve gotten further along than I have), the 2.1 Pi camera did fill the display correctly. Not sure what’s up with that.

pburgess
 
Posts: 4079
Joined: Sun Oct 26, 2008 2:29 am

Please be positive and constructive with your questions and comments.