Microcontroller Controlled Video Camera?
varnon
Posts: 184
Hi all,
I'm part shopping again. I am looking to add image and/or video capture to some of my apparatuses. I would like a device that can take a still image or video when instructed by a Propeller. I do not want to have a camera pass data to a Propeller. I am not looking for any type of machine vision. I want the Propeller completely free from image processing. The camera device needs to be able to save its own files. It would be great to be able to pass a file name through serial or some other format, but that really isn't necessary.
Applications might include taking a picture of an animal every time it breaks an IR beam in a laboratory experiment or recording a few seconds of video anytime something sets of a PIR sensor in a field experiment.
The HackHD so far is the only thing I have seen that really fits what I want.
https://www.sparkfun.com/products/11418
It looks pretty good for videos, but it might be a bit expensive if we just want still images. Has any one here used the HackHD? Does anybody know any other alternatives? I might even consider a grey scale still image alternative for some projects.
Thanks,
I'm part shopping again. I am looking to add image and/or video capture to some of my apparatuses. I would like a device that can take a still image or video when instructed by a Propeller. I do not want to have a camera pass data to a Propeller. I am not looking for any type of machine vision. I want the Propeller completely free from image processing. The camera device needs to be able to save its own files. It would be great to be able to pass a file name through serial or some other format, but that really isn't necessary.
Applications might include taking a picture of an animal every time it breaks an IR beam in a laboratory experiment or recording a few seconds of video anytime something sets of a PIR sensor in a field experiment.
The HackHD so far is the only thing I have seen that really fits what I want.
https://www.sparkfun.com/products/11418
It looks pretty good for videos, but it might be a bit expensive if we just want still images. Has any one here used the HackHD? Does anybody know any other alternatives? I might even consider a grey scale still image alternative for some projects.
Thanks,
Comments
The LancC object is a specialty UART that allows the control (Propeller side) to modify the first two bytes of the LanC stream which the camera monitors for control input. You'll have to check with the camera vendor for which control bytes it responds to. LanC has been around a long time, but is still used in many products.
Here is the link to their site.
chdk.wikia.com
I do realize this is not a Propeller powered solution, but it is hard to beat for a lot of situations... worth a mention.
http://www.raspberrypi.org/products/camera-module/
Connect the Pi to the Propeller over the UART Tx and Rx on the Raspi GPIO header.
Write some simple code at each end to get pictures/video taken when ever you like.
Have you considered the FlyCam One?
It can do video, photo or serial photo, all triggered through a normal servo connector.
On the cameras I hacked all needed to be "turned on" first, which is pressing and holding down one of the buttons for about a second. The shutter is then activated by pressing the button again, or another button. The thing either turns off by itself after about 30 seconds, or you can explicitly turn it off. Because of the extra time to turn on the camera it's not a good solution if you need to snap the picture immediately when the IR is triggered. The minimum delay is about a second.
My application was in fact with a Parallax PIR. I wrote it up for a MAKE magazine article, but it has not yet run. I'm sure there are other examples out there of the same thing.
I've used the HackHD. To start recording video you just need to ground the button line.
I've also used Gordon's trick of soldering wires to the buttons on cameras to trigger them with a microcontroller. HobbyKing sells a several different camera with button which are easy to access. I've used this one with a Propeller. You can also solder wires to the LEDs and use them to keep track of the camera's state.
Pretty much any camera can be triggered electronically but some you need to open the case to access the electronics.
If you have a camera with an IR remote control, you can use the Propeller to trigger the camera with the IR signal.
Control though LanC sounds like a great idea. I had not heard of that protocol before. I might have aces to something in university surplus that uses LanC protocol.
I love the scripting of the CHDK. I have a few photographer friends that might really be into that. I don’t think it really fits for my applications though.
Wow the Pi has really dropped in price since the last time I checked. Heater when you posted that I thought it was a bit too elaborate, but the cost is very reasonable. I’ve been pondering getting a microprocessor anyway.
The FlyCamOne also looks really great. I’m not totally sure about the servo connector protocol, but at the very least it looks like I could get good control by connecting the Propeller to the push button and LED circuits.
Gordon, I will keep an eye out for that article. One second of delay can be too long for some of my applications. But perhaps there is a way to keep a camera in standby. I didn’t even realize there were key fob cameras. That might not be a bad way to go about it. (I don’t mess with images or video that often).
I am starting to like the HackHD more and more, despite the price. I don’t need great quality, but wow the quality is really great! I didn’t realize it has video output. That might be really great for some of my projects. Some of the animals I work with, particularly the snakes, do not like being watched. I could use the HackHD to record short clips when instructed by the Propeller and also get see constant video feed inside the apparatus. I’m sure I could find a monitor at university surplus.
So I can’t decide! But thanks for all the good ideas. I’ll have to do some more research. I’ll post an update when I get something working.
One of my colleagues will be getting a FlyCamOne eco v2 for his project. I am interested to see how that works out. The manual is very cryptic.
Thanks again for the responses.
I purchased a couple "zoom" lenses with auto irises. Apparently auto irises are difficult to control. It's not hard to have the iris open or close but holding the iris partially open requires a lot of electronics intervention.
Anyone have any idea how much current the FlyCamOne Eco V2 draws? Duane I stumbled upon some posts you made on the FlyCamOne on the sparkfun forums (is there any device you don't have?). Did you ever try it with a Propeller? I think my colleague is going to power and control it through the RC cable. It seems pretty straight forward. It looks like, based on various comments, that sensing the state of the camera through the LED line is a must.
I suppose "technically" I've used the FlyCamOne with the Propeller but all the Propeller did was pass the RC signal from an input pin to an output to the camera. The Propeller didn't contribute to the control of the camera.
And no, there are not many devices sold by SparkFun or Parallax I don't have. It's getting kind of crowded in our house. I hope to find treatment soon.
I thought all the gadgets IS the treatment...
(For boredom, of course)
I can't remember the power draw for the FlyCam one, but it's negligible, really.