Fun, Learning, Friendship and Mutual Respect START  HERE


Unregistered
Go Back   HeliFreak > R/C Electronics Support > R/C Related Electronics DIY


R/C Related Electronics DIY DIY R/C Electronics for tinkerers and the budget minded


Reply
 
LinkBack Thread Tools Display Modes
Old 02-25-2010, 08:28 AM   #1 (permalink)
Registered Users
 
Posts: 611
 
My HF Map location
Join Date: Feb 2009
Default IR Tracking Camera

I built a camera mount that automatically tracks an IR target. Here's a demo:

[ame]http://www.youtube.com/watch?v=JqGr3BRNiN8[/ame]

In that case, the target is a Wii sensor bar, but I plan to put a few high intensity infrared LEDs on a helicopter and use it to film that
__________________
MSHeli Protos Carbon FBL - Mini V-Bar, DS510/BLS251, Stock ESC/Motor
Outrage Velocity 50 - V-Bar, YS56, DS610@8V/S9256, AR7100R, Edge 603mm
Mikado Logo 500 SE - V-Bar, BLS451/BLS251, Jive 80+ HV, Scorpion 4025-630 on 10S, Edge FBL 603mm
HeliTach - iPhone Tachometer
wilywampa is offline        Reply With Quote Quick reply to this message
Sponsored Links
Advertisement
 
Old 02-25-2010, 08:33 AM   #2 (permalink)
Registered Users
 
Posts: 2,230
 
My HF Map location
Join Date: Sep 2007
Default

Very nicely done! I'm impressed.

Would you mind giving some info on how the tracking sensor detects the angle to the source?

specifically what kind of sensor?
__________________
Mark
Logo 600se, Scorpion 5020-450, mini-V, Jive 80HV
Trex 600 ESP FBL, Scorpion 4025-740, cgy750, CC85HV
Trex 450 Vx FBL, Scorpion 2221-10, RJX head, mini-V, Ice 50
markb is offline        Reply With Quote Quick reply to this message
Old 02-25-2010, 08:52 AM   #3 (permalink)
Registered Users
 
Posts: 58
 

Join Date: Jan 2008
Location: Germany
Default

Hi wilywampa, this is someting i have been trying to build for ages, could you share some of the details with me? i.e. mechanical and electronic circuit, is there any PIC involved in it too?
Apache64 is offline        Reply With Quote Quick reply to this message
Old 02-25-2010, 10:02 AM   #4 (permalink)
 
My HF Map location
Join Date: Mar 2008
Default

Arduino ???
pwoodyp is offline        Reply With Quote Quick reply to this message
Old 02-25-2010, 10:26 AM   #5 (permalink)
Registered Users
 
Posts: 611
Thread Starter Thread Starter
 
My HF Map location
Join Date: Feb 2009
Default

I'm not planning to sell this or anything, so I suppose I could share all the details...

The Wiimote IR camera is a 1024x768 pixel camera with an IR pass filter rather than an IR stop filter like most cameras have. It doesn't report data for every single pixel. Instead, it has built-in algorithms to track up to 4 separate IR targets. It reports X and Y positions on the CCD sensor for each target it is tracking. The values it reports range from 0 to 1. It doesn't give exact angles to each target. The field of view is about 40 degrees horizontal and 30 degrees vertical from what I've read.

Here are the components I used:

Micro Maestro 6-Channel USB Servo Controller
SPT200 Pan/Tilt System
Nintendo Wii Remote
Align DS610 Servos
Canon Vixia HF100 HD Camcorder

I wrote the software to command the servo motion. It runs on my laptop because I don't have any experience with embedded programming yet. The software has a control loop which is just servo velocity proportional to the location of the target on the CCD. That makes it move the pan/tilt mount so that the target is in the center of the IR camera. Since the IR camera and HD camera are pointing the same direction, that also centers the target in the HD camera.

It would be smoother with better servos, but the DS610s were cheap and I wasn't sure I'd get this thing to work. If it can see the helicopter from far away and track it successfully, I may upgrade to S9256, BLS251, or BLS451 servos.

These are the LEDs I plan to use on the helicopter... http://www.superbrightleds.com/pdfs/IR-1W-850.pdf
__________________
MSHeli Protos Carbon FBL - Mini V-Bar, DS510/BLS251, Stock ESC/Motor
Outrage Velocity 50 - V-Bar, YS56, DS610@8V/S9256, AR7100R, Edge 603mm
Mikado Logo 500 SE - V-Bar, BLS451/BLS251, Jive 80+ HV, Scorpion 4025-630 on 10S, Edge FBL 603mm
HeliTach - iPhone Tachometer
wilywampa is offline        Reply With Quote Quick reply to this message
Old 02-25-2010, 10:31 AM   #6 (permalink)
Registered Users
 
Posts: 687
 
My HF Map location
Join Date: Sep 2008
Default

Very nice
__________________
"C'est en faisant n'importe quoi qu'on devient n'importe qui"
Krusty Blade is offline        Reply With Quote Quick reply to this message
Old 02-25-2010, 11:09 AM   #7 (permalink)
Registered Users
 

Join Date: Dec 2009
Default

That's going to be pretty cool. Please share your results when you get the heli up!
DaleH is offline        Reply With Quote Quick reply to this message
Old 02-25-2010, 04:47 PM   #8 (permalink)
Registered Users
 
Posts: 1,489
 

Join Date: Oct 2009
Default

yes, please post results of tracking heli in flight
__________________
Rush 750 w/ Xera 4530-500 (12T), YGE160HV, WR S.BEC, Torq 9180/9188, AR7200BX
Outrage 550 w/ Scorp 4020-1390 (13T), YGE120, CC BEC Pro, Quark, MKS BLS980, Futaba BLS451
wolfdown is offline        Reply With Quote Quick reply to this message
Old 02-25-2010, 06:31 PM   #9 (permalink)
Registered Users
 
Posts: 611
Thread Starter Thread Starter
 
My HF Map location
Join Date: Feb 2009
Default

As promised, here are the pictures of the setup and the code. The code needs some extra polishing like data logging, memory management stuff and a smoother startup/shutdown that doesn't swing the camera around wildly and damage the servos, but it's in a working state.

The project is pololu_usb_sdk_ir_tracker\Maestro\MaestroExample\M aestroExample.csproj
Built that then run pololu_usb_sdk_ir_tracker\Maestro\MaestroExample\b in\Release\MaestroExample.exe
The important code is in MainWindow.cs starting at line 139.




Attached Files
File Type: zip pololu_usb_sdk_ir_tracker.zip (600.9 KB, 730 views)
__________________
MSHeli Protos Carbon FBL - Mini V-Bar, DS510/BLS251, Stock ESC/Motor
Outrage Velocity 50 - V-Bar, YS56, DS610@8V/S9256, AR7100R, Edge 603mm
Mikado Logo 500 SE - V-Bar, BLS451/BLS251, Jive 80+ HV, Scorpion 4025-630 on 10S, Edge FBL 603mm
HeliTach - iPhone Tachometer
wilywampa is offline        Reply With Quote Quick reply to this message
Old 02-25-2010, 06:35 PM   #10 (permalink)
Registered Users
 
Posts: 611
Thread Starter Thread Starter
 
My HF Map location
Join Date: Feb 2009
Default

Oh, I won't have a video of it tracking a helicopter for a while because the LEDs didn't ship from Hong Kong until today, and I don't think it's EMS shipping.
__________________
MSHeli Protos Carbon FBL - Mini V-Bar, DS510/BLS251, Stock ESC/Motor
Outrage Velocity 50 - V-Bar, YS56, DS610@8V/S9256, AR7100R, Edge 603mm
Mikado Logo 500 SE - V-Bar, BLS451/BLS251, Jive 80+ HV, Scorpion 4025-630 on 10S, Edge FBL 603mm
HeliTach - iPhone Tachometer
wilywampa is offline        Reply With Quote Quick reply to this message
Old 02-25-2010, 10:21 PM   #11 (permalink)
Registered Users
 
Posts: 1,878
 

Join Date: Jul 2006
Default

Nice innovative project you have there . My girlfriend currenty performs the duty of filming my flight or I stick my camera to my hat . I like your idea . Using the Wii remote is a cool idea .
steve28 is offline        Reply With Quote Quick reply to this message
Old 02-25-2010, 10:30 PM   #12 (permalink)
Team Taco VP
 
Posts: 34,528
 
My HF Map location
Join Date: Nov 2005
Default

Dude... I need this big time and have been discussing it with Kevin (fireup) for like 6 motnhs. I want to leave a camera setup all day at our flying field to catch flying easy without having to stand there all day! You make a product out of this and I will test it for you no problemo!

AWESOME idea... I had it first though Out of need

Bob
Finless is offline        Reply With Quote Quick reply to this message
Old 02-26-2010, 12:46 AM   #13 (permalink)
Registered Users
 
Posts: 291
 

Join Date: Jan 2010
Location: KSNA
Default

Do you think ambient IR would interfere with the sensor, bright sun light?
__________________
Trex 450 Sport V2 for scale project.
Trex 700E V2 for scale project.
Capt. Speirs is offline        Reply With Quote Quick reply to this message
Old 02-26-2010, 02:55 AM   #14 (permalink)
Registered Users
 
Posts: 58
 

Join Date: Jan 2008
Location: Germany
Default

Hi, so is the wii wand connected via bluetooth to the laptop? and if so the software you posted runs this too? i.e. it is getting the x,y co-ordinates via the bluetooth input, please correct me if i am wrong.
Apache64 is offline        Reply With Quote Quick reply to this message
Old 02-26-2010, 03:15 AM   #15 (permalink)
Registered Users
 
Posts: 10,962
 
My HF Map location
Join Date: Oct 2005
Location: Grande Prairie, Alberta
Default

If it tracked a heli well, this would be a huge hit man, and I'm not kidding you! As I never have anyone who can run a camera very good, "sorry to friends who read this"... this would be simply perfect for my needs as well as I am sure MANY of us. I wish you best of luck in getting it to work accurately in tracking a heli throughout all maneuvers!!
__________________
...Once upon a time there were Nitros, flybars & frequency pins...Shawn
OICU812 is offline        Reply With Quote Quick reply to this message
Old 02-26-2010, 09:43 AM   #16 (permalink)
Registered Users
 
Posts: 611
Thread Starter Thread Starter
 
My HF Map location
Join Date: Feb 2009
Default

Quote:
Originally Posted by Capt. Speirs View Post
Do you think ambient IR would interfere with the sensor, bright sun light?
It absolutely would, and that's one of the things I'm still worried about. I will definitely only try to use it with the sun to the camera's back because the sun would almost definitely show up as a target. I'm hoping the LEDs I ordered will be bright enough to show up as a target on the Wiimote from 100-200 yards away even with a daylight infrared background. The plan was to put one LED on the left side, right side, front, back, top and bottom of the heli, but if that doesn't work, I might try putting two or more in each of those areas. If that STILL doesn't work, I might have to use a regular webcam instead of the Wiimote and try to track the heli using visible light, which would be pretty challenging.

Apache64: That's correct. The software does connect to the Wiimote and read the coordinates from it.
__________________
MSHeli Protos Carbon FBL - Mini V-Bar, DS510/BLS251, Stock ESC/Motor
Outrage Velocity 50 - V-Bar, YS56, DS610@8V/S9256, AR7100R, Edge 603mm
Mikado Logo 500 SE - V-Bar, BLS451/BLS251, Jive 80+ HV, Scorpion 4025-630 on 10S, Edge FBL 603mm
HeliTach - iPhone Tachometer
wilywampa is offline        Reply With Quote Quick reply to this message
Old 02-26-2010, 10:15 AM   #17 (permalink)
Registered Users
 

Join Date: Dec 2009
Default

Quote:
Originally Posted by OICU812 View Post
... As I never have anyone who can run a camera very good, "sorry to friends who read this"... this would be simply perfect for my needs as well as I am sure MANY of us. ...
These systems will be the future, no doubt, but for the first time you will need your friends using the zoom on the camcorder. (i think)
Paulchen is offline        Reply With Quote Quick reply to this message
Old 02-26-2010, 01:50 PM   #18 (permalink)
Registered Users
 

Join Date: Feb 2010
Default Example project?

Hello,

this is Ryan from Pololu. Cool project. I especially like how you use the USB SDK. Would it be alright if we add your the pictures and video of your project to our community projects page on www.pololu.com?

- Ryan
RyanTM is offline        Reply With Quote Quick reply to this message
Old 02-26-2010, 02:02 PM   #19 (permalink)
Registered Users
 
Posts: 611
Thread Starter Thread Starter
 
My HF Map location
Join Date: Feb 2009
Default

Sure, I'd be honored

Interestingly, I had a friend stay here last night on her way to Vegas. She's going to work for Pololu designing the packaging things get sent in.
__________________
MSHeli Protos Carbon FBL - Mini V-Bar, DS510/BLS251, Stock ESC/Motor
Outrage Velocity 50 - V-Bar, YS56, DS610@8V/S9256, AR7100R, Edge 603mm
Mikado Logo 500 SE - V-Bar, BLS451/BLS251, Jive 80+ HV, Scorpion 4025-630 on 10S, Edge FBL 603mm
HeliTach - iPhone Tachometer
wilywampa is offline        Reply With Quote Quick reply to this message
Old 02-26-2010, 02:26 PM   #20 (permalink)
Registered Users
 
Posts: 1,353
 

Join Date: Jul 2007
Default

Think twice about that wilywampa.
AverageJoe is offline        Reply With Quote Quick reply to this message
Reply




Quick Reply
Message:
Options

Register Now

In order to be able to post messages on the HeliFreak forums, you must first register.
Please enter your desired user name, your REAL and WORKING email address and other required details in the form below.
User Name:
Password
Please enter a password for your user account. Note that passwords are case-sensitive.
Password:
Confirm Password:
Email Address
Please enter a valid email address for yourself. Use a real email address or you will not be granted access to the site. Thank you.
Email Address:
Location
Where do you live? ie: Country, State, City or General Geographic Location please.
Name and Lastname
Enter name and last name here. (This information is not shown to the general public. Optional)
Helicopter #1
Enter Helicopter #1 type and equipment.
Helicopter #2
Enter Helicopter #2 type and equipment.
Helicopter #3
Enter Helicopter #3 type and equipment.
Helicopter #4
Enter Helicopter #4 type and equipment.

Log-in


Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




Copyright © Website Acquisitions Inc. All rights reserved.
vBulletin Security provided by vBSecurity v2.2.2 (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.

SEO by vBSEO 3.6.1