I need some coding help for a Aerial photography shutter
Tobrew
Posts: 8
My current·project is a shutter release·for my digital camera while it is attached to my R/C plane so that I can do aerial photography.· I want to be able to use the camera in three seperate modes: Single mode (camera takes picture when I tell it too via a control stick on the transmitter), Continuous mode (camera takes picture every 5 seconds), and movie mode (camera is triggered every 30 seconds to capture mini movies).· Because weight is an issue with all R/C plane projects I want to be able to select the mode with a single pushbutton switch.· I was hoping to have a sequence something like this.
1- Apply power to circuit
2- User has 10 seconds to select the mode via the single pushbutton.
3- After 10 seconds the LED blinks 1,2,or 3 times to indicate mode.
3- Circuit enters the appropriate mode.
note: when I use the word 'mode' I am referring to a small block of code that the BS2 will run to trigger the camera shutter high/low.
I have figured out how to do·the camera control stuff·via the transmitter and how to·trigger the camera but I can't quite grasp how to do the above initialization sequence with a single pushbutton within a 10 second window.
Any help would be appreciated.
Thanks, Rick
1- Apply power to circuit
2- User has 10 seconds to select the mode via the single pushbutton.
3- After 10 seconds the LED blinks 1,2,or 3 times to indicate mode.
3- Circuit enters the appropriate mode.
note: when I use the word 'mode' I am referring to a small block of code that the BS2 will run to trigger the camera shutter high/low.
I have figured out how to do·the camera control stuff·via the transmitter and how to·trigger the camera but I can't quite grasp how to do the above initialization sequence with a single pushbutton within a 10 second window.
Any help would be appreciated.
Thanks, Rick
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
There are issues with using just ANY camera in that you can't use the stamp to talk to it via USB.
There ARE serial-type cameras out there...and I wish I remembered what they are (as I'm looking for a remote camera use at the moment).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Steve
"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
Only problem is it's really heavy and only 1MegaPixel.
I had visions of floating it on a helium ballon to get arial photos, but it never happened...
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
Product web site: www.sxvm.com
"One experiment is worth a thousand theories"
Post Edited (Bean (Hitt Consulting)) : 8/12/2005 1:37:09 PM GMT
I do hope they muster up a USB slave>slave IC....that opens up a whole new world for the Stamp.
After saying that much...I googled "USB IC slave to slave" and found a couple items of interest.
http://www.semiconductors.philips.com/acrobat_download/literature/9397/75011327.pdf
The ISP1760 looks like it offers USB control without the need for a PC.· Designed for embedded designs.
I suppose it could still be somewhat tricky to implement but it certain opens more things up if it can be used with the Stamp.
http://www.semiconductors.philips.com/acrobat_download/datasheets/ISP1760_1.pdf· There's the datasheet....it quotes, "The ISP1760 is a slave host: it does not require "bus-mastering" capabilites of the host system bus.
Downside is that it's a 128pin quad flat pack and looks like it's parallel from the stamp (so more a whack of pins used up on your stamp).
I'm unsure how fast the stamp would need to work in order to receive data streams from the IC but for the most part the stamp would only have to send out a command string and maybe listen for an ACK or whatever.·
So in the OP's use, they could use a digital camera and interface the stamp via this IC and just send the appropriate commands to the tell the camera to go in to 'X' mode and focus and stuff.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Steve
"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
Post Edited (steve_b) : 8/12/2005 12:28:40 PM GMT
Tracy, thanks for the code.· I will give it a try and see if I can make it work.
Thanks.
Rick
·Thanks for all the help guys.· Especially Tracy.
Rick
·
Reminds me....
The United States was getting into the "Space Race", and realized... they have no way of writing anything! Normal pens require gravity to work, no graivty, no ink. So, they spent millions of dollars to invest in this pen that could write upside down, underwater, in vaccum of space, etc. The Russians used a Pencil. Sometimes the lowtech approach is best. [noparse];)[/noparse]
BTW, Tobrew, I'd suggest it be a Solid State Relay, if your'e going to be snapping once every 30 seconds.
Knight.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Steve
"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
).· However, I have been unable to test it in space yet .
Knight:· I am using a AQV212 RELAY OPTO SPST-NO 400MA 6pin-DIP.
I've got the camera shutter circuit built on a breadboard and fully programmed.· I am now testing the circuit/programming and tightening code.· More to come.
Rick
Have a 2nd servo tilt the first one around so that it's upside down and such....
Take digital pics of it all.....
Or....just trust that it'll work and save some burnt hair on
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Steve
"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
I have no clue. Probably. I don't watch Seinfeld. Heard about it from a friend of a friend, whom was/is a astronaut.
Eh, the US was bad, but the Russians had it worse.
Rocket wouldn't go off. So all of their scientists run up to it to figure out what went wrong. Boom. The whole thing exploded, something like 90% of all thier leading scientists of that field, died.
Knight.
Something to be said about babysteps I guess!
Granted, how big of a comfort level can you have in something that's 30/40 yrs old but still gets the job done!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Steve
"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
Yeah, but the Russians have developed modules for the International Space Station, that they can't send up! Only the US Shuttles have a large enough cargo bay to haul it up there!
Knight.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Steve
"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."