DazzF
Posts: 22
Joined: Sun Aug 19, 2012 5:32 pm

Using the IR Camera on an Air Rifle Gun Sight

Sun Apr 26, 2015 8:09 pm

Hi,

Not sure if this is possible, but there are now a number of ‘night-scopes’ on the market for air rifles, that would at face value appear to be a normal scope with an IR camera on the end, feeding a small computer and video screen. The one on the link below actually adds an IR touch at the front to provide illumination.

http://www.nitesite.com/products/scope-mounted/viper

I already have a PI, the IR Camera module and a PiTFT Plus 320x240 2.8" TFT Touch screen, so my questions will be about getting a proof-of-concept up and running.

So firstly, do people that know the camera module intimately think this could be achieved?

Many thanks in advance

Darren

kcx
Posts: 15
Joined: Tue Apr 21, 2015 10:29 pm
Location: Central Texas

Re: Using the IR Camera on an Air Rifle Gun Sight

Mon Apr 27, 2015 2:33 am

This is exactly what I am trying to do with a Raspberry Pi2 and a NoIR camera. Unfortunately I haven't been able to get the camera working on the Pi2 but it works fine on two other Pi1's. I made a posting on this on this forum a few days ago but haven't had any responses yet.

I plan to use some PVC pipe as others have, will power it off a battery and was originally planning on having it stream video over wifi (to be displayed on an iphone) but it seems at least with the Pi1's I have I haven't been able to get good enough framerates. It's fine over ethernet but as soon as I start trying to send video over wifi I only get a few frames a second-- this was one reason I was trying to use a Pi2 was I was hoping I'd get some better performance.. but haven't been able to test that as it doesn't work on the Pi2 for me. Hoping it's an issue with my Pi2 and so I ordered another one.

I also ordered an analog LCD display ($17 or so) that I will try as well rather than trying to fight poor wireless performance.

One concern I have with the camera module is that I know most people tend to use some different replacement lenses for the backup cameras they use due to focus length issues I believe, so I'm not sure how well the rpi camera is going to work. Holding it up to a scope without a mount shows it at least feasible with reasonable quality.
I have an external IR LED floodlight I bought of Amazon, although so far I will saw the illumination level so very far below the Foscam IP cameras I have.

How did you plan to do it?

DazzF
Posts: 22
Joined: Sun Aug 19, 2012 5:32 pm

Re: Using the IR Camera on an Air Rifle Gun Sight

Mon Apr 27, 2015 8:56 pm

Hi kcx,

I’m glad I’m not alone on this project…..

Focus length issues has been my biggest concern as well, but based on your comment about mounting with a plastic pipe this may well work. I also found this http://www.truetex.com/raspberrypi on camera lenses.

I think if I use a black plastic pipe about 6 inches long to fit the end of the scope with the IR module attach to the end it may well work. I’ve taken a 4x32 off my old springer, and I’m off down the hardware store to see if I can find some plastic pipe.

Will report back in a couple of days as to how I’m getting on….

kcx
Posts: 15
Joined: Tue Apr 21, 2015 10:29 pm
Location: Central Texas

Re: Using the IR Camera on an Air Rifle Gun Sight

Tue Apr 28, 2015 6:10 am

So I've made a proof of concept at the very least.

I found a bit of stiff foam that was from an archery block, cut it into a circle to fit the white PVC pipe. Cut a hole for the camera.
The toughest part was getting the gray PVC pipe to fit firmly over the end of the scope. I wrapped duct tape around sticky side out for one layer, then reversed the tape and did several layers around until enough bulk was added that the scope didn't move too much inside the gray PVC fitting.

A longer camera cable would be nice. I'll have to consider how to actually mount this in some reasonable fashion.
I have a LCD display coming tomorrow however not sure if I'll have time to mess with it.
Attachments
scopecam-poc3.jpg
Proof of concept
scopecam-poc3.jpg (55.64 KiB) Viewed 3531 times
scopecam0.5.jpg
scopecam view
scopecam0.5.jpg (40.12 KiB) Viewed 3531 times

kcx
Posts: 15
Joined: Tue Apr 21, 2015 10:29 pm
Location: Central Texas

Re: Using the IR Camera on an Air Rifle Gun Sight

Tue Apr 28, 2015 10:49 pm

So I received this camera today ( http://www.amazon.com/gp/product/B0045I ... UTF8&psc=1 ) seems to work pretty well for a $17.57 display! The default text size isn't really readable on that display. For a scope display it looks great though. Software wise I can just use raspivid to both record and display at the same time. I will also see if I can use motion to record the video, stream to my DVR and display simultaneously on the LCD.

So now I have all the parts I need to finish this build-- it appears the case and rifle mounting is going to the be hardest part to do properly.

DazzF
Posts: 22
Joined: Sun Aug 19, 2012 5:32 pm

Re: Using the IR Camera on an Air Rifle Gun Sight

Wed Apr 29, 2015 9:42 pm

Well done, this looks like excellent progress.

I'm not far behind you, I'm going to be using one of these for the screen https://learn.adafruit.com/adafruit-2-8 ... h/overview

I'm using 40mm pipe which fits snugly over the scope end, with a 40mm pipe access cap which I'm going to mount the camera on. The advantage of this is you can pop the cap off and use the sight as normal....

I agree about the length of the cable, but adafruit sell longer ones. Ideally I would like a round cable with waterproof covering for field work. I plan to buy an electronics project box to mount the batteries, Pi and screen, with a cutout in the lid to see the screen.

I've also experimented with raspivid. If we get this working well, I would like to branch raspivid as my screen is touch sensitive. A stop/start video recording icon and a take a still icon that you touch would be good. looking at the raspivid code this should not be to difficult to do. Others have done similar things, so their code should show us the way.....

I've ordered an infra red touch with a good range http://www.amazon.co.uk/dp/B00L2A54P8/r ... 31_TE_dp_1. I can't wait to get this up and running and out in the field.... :D

Keep up the good work, your results are inspiring me....

DazzF
Posts: 22
Joined: Sun Aug 19, 2012 5:32 pm

Re: Using the IR Camera on an Air Rifle Gun Sight

Wed May 13, 2015 8:08 pm

Hi,

Just wanted to give you quick update about where I got to with my project, I’ll be posting some pictures shortly so you can see the progress I’ve made.

It looks like the Petit Studios Raspberry Pi Camera Extension Cable could solve the issue with the ribbon cable being a little too short. I should now be able to mount the pie in a project box on top of the sight with the camera mounted at the back of the sight and have HDMI cable connecting the two. http://petitstudio.blogspot.jp/2015/04/ ... cable.html

I’ve been using the Python camera script (https://learn.adafruit.com/diy-wifi-ras ... m/pi-setup), and I have modified the camera settings in the script for better night vision.

The only issue I now foresee will be the mounting of the camera to the sight , my concern is that I want to be able to remove the camera so that I may use the scope to shoot by eye, and remount the camera to the rear of the sight without the need for every zero it in again. With my current mounting made out of 40 mm plastic plumbing pipe, I can never seem to get the camera in exactly the same place twice. I’m hoping that the mount provided with the camera extension cable may provide some inspiration.

kevlarcutter
Posts: 1
Joined: Tue May 19, 2015 10:55 pm

Re: Using the IR Camera on an Air Rifle Gun Sight

Tue May 19, 2015 11:06 pm

There are several scope adapters that would allow you to mount the camera module and obtain a near perfect fit everytime.
One is a slip on and clamp type, and has the ability to get you near perfect alignment repeatedly.
I have one of these already, and was going to use it to this end.

http://www.ebay.com/itm/Sightmark-Ghost ... 27feb85ece

Another, much pricier, is a unit that attaches, and the rear portion swivels away when you want.

http://www.ebay.com/itm/Night-Optics-Da ... 51d07131ea

User avatar
jbeale
Posts: 3511
Joined: Tue Nov 22, 2011 11:51 pm
Contact: Website

Re: Using the IR Camera on an Air Rifle Gun Sight

Wed May 20, 2015 12:17 am

Just FYI, if you live in California, it's safer to avoid posessing such an item due to a "sniperscope" law:
http://codes.lp.findlaw.com/cacode/PEN/3/1/13/3/s468

GMawston
Posts: 19
Joined: Mon Jul 02, 2012 7:11 pm

Re: Using the IR Camera on an Air Rifle Gun Sight

Wed Feb 17, 2016 10:54 pm

You all might be interested to see my current solution. Seems to work for me.

https://www.youtube.com/watch?v=YfmjCBNmSMk

User avatar
chrisoh
Posts: 217
Joined: Sun Dec 06, 2015 8:50 pm
Location: Essex, UK

Re: Using the IR Camera on an Air Rifle Gun Sight

Thu Feb 18, 2016 12:19 am

DazzF wrote:Hi kcx,

I’m glad I’m not alone on this project…..

Focus length issues has been my biggest concern as well, but based on your comment about mounting with a plastic pipe this may well work. I also found this http://www.truetex.com/raspberrypi on camera lenses.

I think if I use a black plastic pipe about 6 inches long to fit the end of the scope with the IR module attach to the end it may well work. I’ve taken a 4x32 off my old springer, and I’m off down the hardware store to see if I can find some plastic pipe.

Will report back in a couple of days as to how I’m getting on….
This linked article is an astounding piece of documentation :!: Mind. Blown. Apetite for Pi re-starved.

Opened my eyes to a bunch of new project ideas, muchísimas gracias!
Raspberry Pi 3 model B Idle @ 250mA
  • HDMI +200mA
  • Minecraft 1.9 Server +100mA
  • 2.4Ghz dongle +20mA

Return to “Camera board”