PDA

View Full Version : Serial Camera



Harrison.
09-02-2007, 12:30 PM
A post in the Sandbox recently re-sparked my interest in imaging with the Propeller. I purchased a serial camera module (C328-7640) that does onboard JPEG encoding, while also allowing the host processor to pull raw images up to 640x480 color.

I used this camera to capture images every 30 seconds to a SD card to provide time lapse imagery. Using ffmpeg (an open source video manipulation package), I could convert the large file of images to a flv (flash video file), which could then be viewed as a time lapse video. It was pretty cool but didn't really do anything advanced so I never posted it.

I also remember rjo and others were interested in Propeller image capture so I am posting a link to the camera so those interested could take a look. You will probably want to purchase the camera right away if you want it because they go out of stock pretty fast (I was lucky, there was 1 left when I ordered back in May). Make sure you get a camera with the IR cut filter, otherwise bright sunlight will cause problems. Electronics123 is very reliable and their online ordering and shipping system is very advanced, especially for a hobby shop.

Attached are a few example images.

C328-7640
www.electronics123.com/s.nl/it.A/id.2581/.f (http://www.electronics123.com/s.nl/it.A/id.2581/.f)

Harrison

El Paisa
09-02-2007, 09:51 PM
Hi:

I just bought one camera.· Looks very interesting.

Have you write any programs for the propeller?

I am really interested, thanks in advanced.

Leon
09-02-2007, 11:08 PM
I've been interested in that C328 camera for some time (I couldn't find a UK supplier)so I've ordered one.

They have 23 in stock, now.

Leon


▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle

rjo_
09-03-2007, 01:26 AM
Harrison,

You are such a tease:) You probably have it writing to a thumb-drive and are waiting on that too!!!!

Rich

Graham Stabler
09-03-2007, 03:04 PM
That's a neat little unit and 640X480 is a useful resolution for lots of scientific devices.

Graham

Timothy D. Swieter
09-04-2007, 07:00 PM
That is a great looking little camera modules. Does Electronics123 make this module? If not, who produces it?

A couple of those on a robot or rocket or weather ballon would be light and produce decent images.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter
tdswieter.com (http://www.tdswieter.com/)
------------------------------------------------------------
One little spark of imagination is all it takes for an idea to explode

ALEXANDRE
09-04-2007, 10:20 PM
I did a i2c gateway to camera.
http://www.basic4ever.com/bascom.shtml
http://www.basic4ever.com/img/miguel3.JPG
ALEXANDRE
tcpipchip@hotmail.com (mailto:tcpipchip@hotmail.com)
·

Andreas Jakob
09-08-2007, 07:42 PM
These are very cheap :

cgi.ebay.com/FREE-S-H-New-Ericsson-CommuniCam-MCA-25-With-Case_W0QQitemZ130116818758QQihZ003QQcategoryZ50326 QQrdZ1QQssPageNameZWD1VQQcmdZViewItem (http://cgi.ebay.com/FREE-S-H-New-Ericsson-CommuniCam-MCA-25-With-Case_W0QQitemZ130116818758QQihZ003QQcategoryZ50326 QQrdZ1QQssPageNameZWD1VQQcmdZViewItem)

I got mine for arround 4$ at Ebay Germany.

The MCA-25 Mobile Phone Plug-on Cameras uses a serial connection and has already been hacked :

mikrocontroller.cco-ev.de/eng/webcam.php (http://mikrocontroller.cco-ev.de/eng/webcam.php)
avr.auctionant.de/avr-ip-webcam/mca-25-kamera.html (http://avr.auctionant.de/avr-ip-webcam/mca-25-kamera.html)

640x480 resolution with alternative 80x60 preview mode.
The 80x60 mode could make it very usefull on the Prop, because it needs very little memory.
Could be used for movement detection maybe, grab two 4800 bytes raw preview images and look for differences.
If the trigger level is reached, aquire the 640x480 JPEG from the cam and store it to to the SD-Card.
-> 5 $ standalone surveilance cam http://forums.parallax.com/images/smilies/smile.gif

Post Edited (Andreas Jakob) : 9/8/2007 1:22:39 PM GMT

Harrison.
09-09-2007, 03:33 AM
That is pretty inexpensive. I may have to get one just to see how good it is (I like the digital zoom function). Looks like it uses the same chipset as the $50 board camera, the only difference is the firmware running on the camera.

Oldbitcollector (Jeff)
09-09-2007, 04:31 AM
Just not "that" one... mine now.. :)

Oldbitcollector

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Buttons . . . check. Dials . . . check. Switches . . . check. Little colored lights . . . check.

— Calvin, of 'Cavin and Hobbes.

Andreas Jakob
09-09-2007, 05:15 AM
Lol,

here are more :


cgi.ebay.com/OEM-Sony-Ericsson-T226-T300-T310-T316-T68i-Camera-MCA25_W0QQitemZ140154097941QQihZ004QQcategoryZ5032 6QQssPageNameZWDVWQQrdZ1QQcmdZViewItem (http://cgi.ebay.com/OEM-Sony-Ericsson-T226-T300-T310-T316-T68i-Camera-MCA25_W0QQitemZ140154097941QQihZ004QQcategoryZ5032 6QQssPageNameZWDVWQQrdZ1QQcmdZViewItem)

cgi.ebay.com/NEW-Sony-Ericsson-T226-T300-T310-T316-T68i-Camera-MCA25_W0QQitemZ300149298042QQihZ020QQcategoryZ5032 6QQssPageNameZWDVWQQrdZ1QQcmdZViewItem (http://cgi.ebay.com/NEW-Sony-Ericsson-T226-T300-T310-T316-T68i-Camera-MCA25_W0QQitemZ300149298042QQihZ020QQcategoryZ5032 6QQssPageNameZWDVWQQrdZ1QQcmdZViewItem)

Harrison.
09-09-2007, 05:48 AM
Looks like forum members are snatching them up faster than you can view the pages ;).

Bill Henning
09-09-2007, 06:25 AM
Harrison. said...
Looks like forum members are snatching them up faster than you can view the pages ;).


Guilty as charged... my big consulting gig is over... back to the propeller now :) :) :)

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.mikronauts.com (http://www.mikronauts.com) - a new blog about microcontrollers

Oldbitcollector (Jeff)
09-10-2007, 11:44 PM
Already got mine! $8. including shipping.. (nice)

This thing is small! Looks perfect for a robot camera.

Oldbitcollector

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Buttons . . . check. Dials . . . check. Switches . . . check. Little colored lights . . . check.

— Calvin, of 'Cavin and Hobbes.

Andreas Jakob
09-11-2007, 01:53 AM
As the Cam uses 3,3V Levels, it should connect directly to the Prop, but
is it possible to achieve the 400Kbit Baudrate, that the Cam works at after switching to
the Mux Mode, using Spin ?
I think an Assembler driver must be written for it.
And another thing i did read at the German Forum is that there are two Revisions of the
Cam. Most work with 9600 Baud at startup, some at 19200, just if you have troubles
with that.

Post Edited (Andreas Jakob) : 9/10/2007 6:57:58 PM GMT

deSilva
09-16-2007, 06:35 PM
Though it is a German link (by Simon Schulz) , I think it might be useful for everyone experimenting with this Cam:
avr.auctionant.de/avr-ip-webcam/mca-25-kamera.html (http://avr.auctionant.de/avr-ip-webcam/mca-25-kamera.html)
avr.auctionant.de/avr-ip-webcam/mca-25-protokoll.html (http://avr.auctionant.de/avr-ip-webcam/mca-25-protokoll.html)

Post Edited (deSilva) : 9/16/2007 12:24:01 PM GMT

Andreas Jakob
09-16-2007, 07:20 PM
The Cam at Ebay again :

US
cgi.ebay.com/OEM-Sony-Ericsson-T226-T300-T310-T316-T68i-Camera-MCA25_W0QQitemZ140157310329QQihZ004QQcategoryZ5032 6QQssPageNameZWDVWQQrdZ1QQcmdZViewItem (http://cgi.ebay.com/OEM-Sony-Ericsson-T226-T300-T310-T316-T68i-Camera-MCA25_W0QQitemZ140157310329QQihZ004QQcategoryZ5032 6QQssPageNameZWDVWQQrdZ1QQcmdZViewItem)

Germany
cgi.ebay.de/original-Sony-Ericsson-MCA-25-ansteckbare-Kamera-Camera_W0QQitemZ200151992392QQihZ010QQcategoryZ329 78QQrdZ1QQssPageNameZWD1VQQcmdZViewItem (http://cgi.ebay.de/original-Sony-Ericsson-MCA-25-ansteckbare-Kamera-Camera_W0QQitemZ200151992392QQihZ010QQcategoryZ329 78QQrdZ1QQssPageNameZWD1VQQcmdZViewItem)

Chad George
09-17-2007, 09:35 AM
I just bought that one. Looks neat for < $10 shipped.

I think they have more here (although its a little more expensive)
www.amazon.com/exec/obidos/tg/detail/-/B00007JWOJ/ref=ord_cart_shr/103-1748296-8752614?%5Fencoding=UTF8&m=A1FBR7E8HT21EQ&v=glance (http://www.amazon.com/exec/obidos/tg/detail/-/B00007JWOJ/ref=ord_cart_shr/103-1748296-8752614?%5Fencoding=UTF8&m=A1FBR7E8HT21EQ&v=glance)

EDIT: added link to more sources

Post Edited (Chad George) : 9/17/2007 2:45:17 AM GMT

deSilva
09-17-2007, 01:47 PM
There are also MCA-10 modells sold for around $2 from time to time; they have a reduced resolution (around 1/4),
which in fact fits much nicer to the Prop. But I am not sure whether the protocol is compatible.

Leon
09-19-2007, 09:25 PM
I've just received the C328-7640 camera I ordered a couple of weeks ago from Electronics123. The data sheet is on the Comedia web site.

I've attached a 0.1" Molex connector to the leads and soldered a header into a Proto board. I'll try sending it some commands and see what comes out of it.

Leon

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle

Post Edited (Leon) : 9/19/2007 2:34:20 PM GMT

Rayman
09-20-2007, 06:01 AM
I just got one of those Ebay cameras... Anybody got Spin code working for it yet?

Sapieha
09-20-2007, 08:43 AM
Hi All

My suggestion to one who will have camera.
Use WebCam and –
·
http://forums.parallax.com/showthread.php?p=673220

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sapieha

Leon
09-20-2007, 12:46 PM
Won't work! The camera will need host mode.

Leon

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle

BradC
09-20-2007, 02:42 PM
USB Webcam to the Propeller? I can confidently say Forget it!

It's not just the USB Host mode (and the timing accuracy required to do that) but the code to talk to the cam and decompress the incoming stream just would not fit in the Propeller.
I've examined all the webcam drivers in the linux source tree, plus a couple of external ones and just can't see (given we could properly emulate an accurate host mode) how they could
be squeezed into the prop.

<Holds up red rag to the bull> Someone go and prove me wrong!! :)

Sapieha
09-20-2007, 04:39 PM
Hi BradC

You must not use stream but only still picture in WebCam.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nothing is impossible, there are only different degrees of difficulty.

Sapieha

Leon
09-20-2007, 04:51 PM
It still won't work, what about host mode?

Leon

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle

Sapieha
09-20-2007, 04:57 PM
Hi Leon

Must study transmit protocol for it.
But still picture mode functioning in same way if you have serial CAM.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nothing is impossible, there are only different degrees of difficulty.

Sapieha

Rayman
10-24-2007, 09:12 AM
Leon, (or anybody)

Any luck with that C328-7640 ?

I'm toying around with this MCA25, but am not having much luck... The C328-7640 looks pretty good right now... I like the 2-bit grayscale mode with preview modes...

Harrison.
10-24-2007, 10:23 AM
Rayman,

You can download my C328 demo code at files.fwdweb.com/uploads/sdcamera-archive%5bdate2007.09.08time17.58%5d.zip (http://files.fwdweb.com/uploads/sdcamera-archive%5bdate2007.09.08time17.58%5d.zip). The code downloads 640x480 jpg images from the camera and sticks it onto a SD card. It works really well and makes a cool time lapse camera.

Harrison

Rayman
10-24-2007, 05:52 PM
Excellent! Thanks.

sheonbanks
11-27-2007, 08:37 AM
WOW!!! Finally!!! I've been looking for ways to hack a digit camera. The German link looks like it will take me in the right direction but i cannot read german(ARGHHHHH!!!!). Does
someone have something(Anything) working with this $3.00 camera? What is the speed of the camera? I've ordered the c328-7640. I want to see what that is about. Does
someone have a schematic and or sample code they would like to share?

Rayman
11-27-2007, 10:10 AM
Look here:
http://www.rayslogic.com/propeller/Programming/Cameras/cameras.htm

Christoph
03-01-2008, 09:00 PM
Hi,



has anyone continued work on the C-328?

With the help of Rayman's and Harrison's code examples I just started on my cam.

But after making just one picture·it stopped syncing for good.·I was already

suspecting some fatal event in my cam·but when connecting an oscilloscope there was

suddenly·an output from the cam's·tx pin. The cam SYNCed and made a picture. As

soon as the oscilloscope was detached function ceased. So I put a 22k resistor across

the cam's tx pin and Vdd and it is now working ... most of the time. But not always.

Has anyone got the same problem and solved this?

Does the Eval board give any clues (I haven't got it)?

Is it a problem of too long wires? I left the cable's length at 30cm as it was shipped.

Does anyone know where to download the evaluation software (C328Ap.exe)? I couldn't

find it on COMedia's web site.



Thank You,

Christoph

Rayman
03-02-2008, 02:54 AM
What baud rate are you using? I really only had luck at 115200...

Christoph
03-02-2008, 03:00 AM
Rayman said...
What baud rate are you using? I really only had luck at 115200...
I am using 115200 Baud as well.

Christoph
·

J.P
09-19-2008, 12:25 AM
Hi, im using the C328-7640 aswell but havent got it· even to respond to my sync http://forums.parallax.com/images/smilies/shakehead.gif· all i get back is the same·byte array·i send to the camera 170 13 0 0 0 0.
could anyone please supply some code help in C# if possibly?
thank you in advance!http://forums.parallax.com/images/smilies/smile.gif

Sniper King
09-19-2008, 04:33 AM
How fast can you move a 640x480 image to the SD card?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·- Ouch, thats not suppose to be hot!··


Michael King
Application Engineer
R&D

Check out Project: PSAV (http://67.135.195.32)Persistent Sailing Autonomous Vehicle