Shop OBEX P1 Docs P2 Docs Learn Events
Basic Stamp Kite Camera — Parallax Forums

Basic Stamp Kite Camera

halfblinddadohalfblinddado Posts: 59
edited 2009-05-09 22:54 in Robotics
I have seen posts and websites about kite cameras and aerial photograhy and decided I wanted to try it. I bought a cheap 5.0 megapixel camera at savers and decided to connect it to the Basic Stamp.
First I had to make the Stamp talk to the camera. After taking the camera apart I found the connections to the 2 buttons I needed. (on/off and shutter)

With a multimeter I found that these were always off with 3v across them. I soldered wires to their connections and put the camera back together.
Now with batteries in the camera if I touched the on/off wires together the camera turned on and if I touched the shutter wires it took a picture.

Now how to interface it with the Stamp? After some research I decided the best easiest way was to use a relay since the camera and the stamp used 2 different power supplies (batteries).

The relays I used were simple reed type that I got from Radio Shack Model: 275-232· |· Catalog #: 275-232
Now that the stamp and camera are connected I had to program the stamp to operate the camera. I decided that since it took a little time to connect the camera to the kite I would use a simple button interface to start the process. The process goes as follows.

1. Push Button
2. Turn camera on
3. Take 50 pictures
4. Turn camera off
5. Wait for button push to start again.

This took some trial and error since it takes a few seconds for the camera to boot and be ready to take photos and it took some time after the shutter was pressed to save the picture to the SD card and be ready for the next picture.

See Basic Stamp Code.

I did not want to keep turning the camera on and off and taking pictures to refine the program so I used the LabCenter VSM program to emulate the camera, relays and stamp.


I connected the stamp to the back of a Basic stamp home work board with risers and rubberbands and it was ready for the first flight.
I had a small parafoil kite I got from costco and needed to see if it had the lift to fly the camera. I did not want to break or ruin my setup so I first weighed the camera rig which weighed 8oz exactly. I then found a round lead fishing weight that weighed 8oz.

I gathered everything up and took it to a local park. First I flew the kite to make sure it was stable. After establishing stability I connected the lead ball to the kite string about 10 feet below the kite and flew that. My son and I call it "flying the ball". Ater esablishing that the kite could lift the ball and that it was stable I removed the ball and connected the camera rig.

I pushed the button on the homework board and set the rig aloft. It worked exactly as expected. The only problem was I dangled the rig from one string and it spun while taking the pictures so the first pictures did not come out well. I found a way to stabilize the camera and now the pictures are much better.
You can see some of them at:

·http://www2.snapfish.com/thumbnailshare/AlbumID=257532490/a=161554654_161554654/otsc=SHR/otsi=SALBlink/COBRAND_NAME=snapfish

I have also found this rig to be very flxible in other ways. For instance I connected the PIR sensor and changed the code a little and now I have a motion sensing camera. When it detects motion it turns on and takes pictures. When no motion is detected it turns the camera off. I also found the connection in the camera that enables video so it can take video or still.

Also you can program the Basic Stamp camera rig for time lapse photography.
I'm sure there are many other uses for it.
Mike
1280 x 800 - 135K
448 x 336 - 32K
448 x 336 - 31K
448 x 336 - 38K

Comments

  • ZootZoot Posts: 2,227
    edited 2009-02-25 18:43
    Brilliant and simple idea. Love it. And thanks for the explanation of your process (testing weight, etc).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    When the going gets weird, the weird turn pro. -- HST

    1uffakind.com/robots/povBitMapBuilder.php
    1uffakind.com/robots/resistorLadder.php
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-02-25 20:34
    Cool project, Mike! This is something I've always wanted to try. BTW, I clicked on your album link but couldn't get past the first thumbnail. Is there a way to view your photos without joining Snapfish? Perhaps you could Zip them and post them here?

    -Phil
  • davejamesdavejames Posts: 4,047
    edited 2009-02-25 20:35
    ...very, very cool! And yes, thank you for the detailed description of the effort.

    Reminds of the time I had a 5 foot wingspan glider that had a small, mechanically timed camera. The glider was sent aloft via a 25 foot rubber band streched out to 75 feet. The resulting pictures were a bit grainy, but, it worked.

    Yes, um, yeah...it worked until those beautiful styrofoam wings challenged the towering strength of a telephone pole.

    So, so sad.

    DJ

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Instead of:

    "Those who can, do.· Those who can't, teach." (Shaw)
    I prefer:
    "Those who know, do.· Those who understand, teach." (Aristotle)
    ·
  • halfblinddadohalfblinddado Posts: 59
    edited 2009-02-25 21:22
    Here Are some zipped pictures. I took most of these in bad weather to get the wind but I plan to take it to the beach when the weather and light is good.

    Mike
  • ZootZoot Posts: 2,227
    edited 2009-02-25 21:34
    Those are stunning. If it's OK, I uploaded these so folks could see 'em... if it's not, I'll nuke the post.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    When the going gets weird, the weird turn pro. -- HST

    1uffakind.com/robots/povBitMapBuilder.php
    1uffakind.com/robots/resistorLadder.php
    2560 x 1920 - 495K
    2560 x 1920 - 256K
    1920 x 2560 - 414K
    2560 x 1920 - 308K
    2560 x 1920 - 245K
  • ZootZoot Posts: 2,227
    edited 2009-02-25 21:34
    ...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    When the going gets weird, the weird turn pro. -- HST

    1uffakind.com/robots/povBitMapBuilder.php
    1uffakind.com/robots/resistorLadder.php
    2560 x 1920 - 262K
  • SRLMSRLM Posts: 5,045
    edited 2009-02-25 23:26
    Looks like a stabilizing gyroscope would be useful though, especially when the light goes down. Oh, and very nice project!
  • davejamesdavejames Posts: 4,047
    edited 2009-02-26 00:53
    HalfBlind,

    Were those shots taken in the San Fransisco south bay area? It looks alot like Twin Peaks baseball/recreation area of north Sunnyvale.

    DJ

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Instead of:

    "Those who can, do.· Those who can't, teach." (Shaw)
    I prefer:
    "Those who know, do.· Those who understand, teach." (Aristotle)
    ·
  • halfblinddadohalfblinddado Posts: 59
    edited 2009-02-26 01:21
    DJ,

    Yes, They were taken in the bay area. Several at shorline park. If you look closely at the one with the bright sunlight that is the shorline amptheater under the bright spot. The other side is the bay towards fremont. The others were taken at a park near my house.

    Mike
  • HumanoidoHumanoido Posts: 5,770
    edited 2009-02-26 05:59
    Absolutely fantastic project! Congratulations!
    What was the cost of the camera? Any pics of
    the kite? How high does the kite reach? Is any
    special string required, i.e. a stronger test/pound
    pull?

    humanoido
  • EzsynnEzsynn Posts: 119
    edited 2009-02-26 09:41
    Wow, A cheap camera option instead of using the CMU-CAM (plus shipping around AU$70)!
    Nice One, now that's one item off my wishlist!
    Great one!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    BWIN ON DA POWAH WIFIN U!!!
    (This means the Plutonium Isotope Nuclear Fission And Fusion Reactor Battery Pack you've been hiding inside your jacket!!!)
  • davejamesdavejames Posts: 4,047
    edited 2009-02-26 16:23
    HalfBlind,

    Roger - understood. I live in south-ish San Jose and work in Fremont (@ 880 & Dixion Landing).

    BTW - any idea of the height the kite reaches?

    DJ

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Instead of:

    "Those who can, do.· Those who can't, teach." (Shaw)
    I prefer:
    "Those who know, do.· Those who understand, teach." (Aristotle)
    ·
  • halfblinddadohalfblinddado Posts: 59
    edited 2009-02-26 19:50
    Hello

    I beleive the camera cost around $35-$40

    I used about 500ft of 20lb kite string. Parafoil kites tend to fly at a steep angle especially with weight on them. I figure the kite flew at about a 45 degree angle (as you can see from the pictures). So 500ft at 45 degrees should come out to about 350ft.

    The stronger the wind the higher the angle. I could use more string to get higher but if you reel it out you gotta reel it back in. There are other kites that have more lifting power and fly at a steeper angle but that starts getting expensive.

    I'll take a picture of the kite and post it.

    Mike

    BTW: Here's a video of LabCenters VSM basic stamp simulator

  • HumanoidoHumanoido Posts: 5,770
    edited 2009-02-27 02:38
    Thanks Mike! You may find it interesting to know that kite flying is very popular in Asia. It's so popular - the equipment is refined to the point of being very professional. They use purchased balanced reels, complete with flywheels/rotating hand cranks/bearings and other bells & whistles, for spooling out the string and reeling it in. I don't know if they sell this in the USA, but one would be very helpful.

    To gain higher altitude, going to Army Surplus parachute twine is beneficial. It has greater test pull and is lighter weight. I had purchased a mile of this stuff and flew kites as high as they would go. The maximum altitude was defined by the weight of the string. The string was picking up weight from atmospheric moisture. As a solution, to make kites go higher, I waxed the string to keep it dry - the weight of the wax was minimal. Another necessity when flying kites this high is a good pair of binoculars, just to see the kite!

    My camera was not as good as yours, and I had to develop the film - one shot at a time! Its only redeeming feature was almost no weight - due to its all plastic body and lens. Last week, I saw a penguin flying in the sky. It had a black & white body, swept back wings, and two orange dangling feet in the wind. It gets my vote as the cutest kite in the sky.

    humanoido

    Post Edited (humanoido) : 2/27/2009 2:43:19 AM GMT
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-02-27 04:03
    Mike,

    Have you tried a Picovet suspension for the camera? They're supposed to minimize the effects (e.g. blurring) of kite motion.

    -Phil
    humanoido said...
    Last week, I saw a penguin flying in the sky.
    I hope none of the flightless variety confined to earth and water witnessed this. Their envy would've been matched only by certain psychological trauma! smile.gif -P.
  • EzsynnEzsynn Posts: 119
    edited 2009-03-06 20:33
    Phil Pilgrim (PhiPi) said...
    Mike,

    Have you tried a Picovet suspension for the camera? They're supposed to minimize the effects (e.g. blurring) of kite motion.
    humanoido said...
    Last week, I saw a penguin flying in the sky.
    I hope none of the flightless variety confined to earth and water witnessed this. Their envy would've been matched only by certain psychological trauma! smile.gif -P.

    I'm not trying to be a smart alec, negative or anything.
    The flying penguin photo is fake. Have a close look and the wall is actually a horizontal surface.
    I figured out the trick. So the bat-penguin just like the bat-man, he can't fly without special equipment.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    BWIN ON DA POWAH WIFIN U!!!
    (This means the Plutonium Isotope Nuclear Fission And Fusion Reactor Battery Pack you've been hiding inside your jacket!!!)
  • HumanoidoHumanoido Posts: 5,770
    edited 2009-03-06 21:54
    Ezsynn

    The flying Penguin was a real kite, and was really flying in the air.
    The feet were stabilizers, like a kite tail. There are special kite designs that
    provide extra payload capability, especially the multiple deck leveled Dragon
    kites, whose designs are centuries old. The man that flies these kites has become
    my friend because I continue to admire his work. The only problem is he
    speaks only a Chinese dialect, so getting some information is a little slow which
    is my fault. I think his kites could actually loft some the heavier cameras with Basic
    Stamp payloads. Another of my Chinese friends is very supportive about
    attaching one my cameras to one of the kites. However, I doubt my results
    would be as good as the project posted here.

    It's not a Penguin Robot. [noparse]:)[/noparse]))) I did not have my camera so there is no photo.
    The photo you saw was Penguin Robot with the Jet Pack on.

    The Bat Penguin is a project that reads the battery voltage on the
    Penguin Robot. While Bat Penguin (robot) was not seen flying (recently),
    you will soon read about a Penguin Robot that does fly (in some
    sort of inspirational way).

    ...er... on second thought, the Bat Penguin can fly,
    just when you're not looking... and I do suppose you are right - the
    use of extended mini grappling hooks and tech strengthened corbomite
    cables would be necessary.

    humanoido
  • WBA ConsultingWBA Consulting Posts: 2,934
    edited 2009-03-07 06:05
    Excellent project. I'll be using your code for ideas when I get around to a similar project......

    Another of my "project pile" projects is a trail camera for my dad's property. He sees a lot of animals where he lives and would like to keep track of the deer/mountain lion sightings. I have an older Sony digital camera and found the stage 1 service manual on a European website. It has enough detail for me to get to the power and shutter buttons in the same way you have.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Andrew Williams
    WBA Consulting
    IT / Web / PCB / Audio
  • davejamesdavejames Posts: 4,047
    edited 2009-03-13 20:51
    Halfblind,

    A friend sent this guy's link to me and sniffing around his site, I stumbled on this:

    http://scotthaefner.com/kap/equipment/

    Mr. Haefner is into kite photography also.


    Regards,

    DJ

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Instead of:

    "Those who can, do.· Those who can't, teach." (Shaw)
    I prefer:
    "Those who know, do.· Those who understand, teach." (Aristotle)
    ·
  • Dave HeinDave Hein Posts: 6,347
    edited 2009-03-19 15:20
    I built a camera controller for an Aiptek Pencam a while back.· It used an SX, and it·was originally designed to fly in a model rocket.· I've also flown it on a kite a few times.· The Pencam cost $10 and the SX plus a few other parts is on the order of $10 as well.· The thread on this project is located at http://forums.parallax.com/showthread.php?p=614743·.· The controller contains a G-Switch, which is useful for rocketry, but isn't needed when flying on a kite.

    Kite aerial photography seems to be a fairly popular activity.· There is a Flickr group that contains thousands of pictures.· It is located at http://www.flickr.com/groups/kiteaerialphotography/·.· Some of the pictures are pretty amazing.· I recall one picture where someone walked along a beach taking several pictures.· He then stitched the pictures together to produce one long panaramic picture of the beach.

    Heres a few pictures I took from the kite.· One problem with the pencam is that the image is distored when the camera is moving.· I had to write a program to undo the distortion caused by the camera swinging under the kite.

    Dave
    1440 x 1248 - 935K
    1410 x 960 - 545K
  • mikedivmikediv Posts: 825
    edited 2009-03-20 18:43
    halfblinddado·nice project thank you for sharing, can I ask I wanted to build this but I am not sure about a few things.
    My digital camera takes a while to "reload" after it takes a picture so did you program a delay into your code, or do you somehow manually snap a photo and then wait to do the next one?
    As I stated my camera I actually tried a few takes a few seconds the be ready for the next photo, and my big problem is its never the same time even with fresh batteries I can not rapid fire pictures
    and if it uses the flash its even worse??? I have a cannon -S70 and a coolpix any recomendations??
    Thank you.
    ·
  • HumanoidoHumanoido Posts: 5,770
    edited 2009-03-21 11:09
    These two photos are a vast improvement over the first ones posted! How did you remove the motion with software? Can you recommend any software to do this?

    humanoido
  • Dave HeinDave Hein Posts: 6,347
    edited 2009-03-22 14:30
    humanoido said...
    How did you remove the motion with software? Can you recommend any software to do this?
    humanoido,
    I wrote a program to shift each line by a certain amount to compensate·for the motion.· If the camera were spinning around it's vertical axis at a constant speed there would be a constant shift in each line.· This is caused by the fact that the camera reads the image out of the sensor one line at a time, so the bottom lines capture a later point in time than the top lines.
    There are some image processing programs that will perform a linear deskewing of the image.· However, the motion of the camera was more complex than just a simple rotation.· I had to write a program to correct for the more complicated motion.
    Dave
  • CannibalRoboticsCannibalRobotics Posts: 535
    edited 2009-03-22 18:29
    thats austin?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Signature space for rent!
    Send $1 to CannibalRobotics.com.
  • Dave HeinDave Hein Posts: 6,347
    edited 2009-03-22 23:54
    CannibalRobotics said...
    thats austin?
    The left image is Austin.· The right image is South Padre Island.
  • HumanoidoHumanoido Posts: 5,770
    edited 2009-03-23 16:57
    Dave Hein said...
    I wrote a program to shift each line by a certain amount to compensate for the motion. If the camera were spinning around it's vertical axis at a constant speed there would be a constant shift in each line. This is caused by the fact that the camera reads the image out of the sensor one line at a time, so the bottom lines capture a later point in time than the top lines.
    I'm wondering if you have some of the more simple programs that you can share with your fellow kite-flying enthusiasts who don't have your exceptional programming talent? Thanks.

    humanoido
  • Dave HeinDave Hein Posts: 6,347
    edited 2009-03-25 19:13
    humanoido said...
    I'm wondering if you have some of the more simple programs that you can share with your fellow kite-flying enthusiasts who don't have your exceptional programming talent? Thanks.
    The Microsoft Paint program has a simple skew command.· Just select the "image" tab, and then enter the number of degrees of horizontal or vertical skew.

    Dave
  • HumanoidoHumanoido Posts: 5,770
    edited 2009-03-25 19:35
    Thanks! It works very good!
    humanoido
  • waltsailingwaltsailing Posts: 40
    edited 2009-05-09 22:54
    Hi,

    Great Job,

    Maybe you can put the camera in movie mode...· Then get a trick/stunt kite..· We did this a few years ago and used here is the result.

    Walt

    http://www.youtube.com/watch?v=CASZsq3mbBY
Sign In or Register to comment.