Point and shoot cam not working

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
arduinoman123
 
Posts: 6
Joined: Tue Jun 25, 2019 7:17 am

Point and shoot cam not working

Post by arduinoman123 »

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

User avatar
adafruit_support_carter
 
Posts: 29473
Joined: Tue Nov 29, 2016 2:45 pm

Re: Point and shoot cam not working

Post by adafruit_support_carter »

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.


User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: Point and shoot cam not working

Post by pburgess »

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!).

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

Re: Point and shoot cam not working

Post by arduinoman123 »

1. pi3 model b

2. PiTFT 2.8" Capacitive touchscreen

3. pi cam 2.1

4. buster version 10

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: Point and shoot cam not working

Post by pburgess »

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

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

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.

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”