Digi cam from cell phones, anyone tried to use them ?

Go To Last Post
30 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Have anyone opened a dead cell phone with cam ?
many of them uses the VS6502 or similar chip.
http://www.st.com/stonline/produ...

I guess it is guite simple to interface to an AVR or ARM7 with alot of external RAM, or maybe just use internal RAM ?
if only simple objects must be found ?
or maybe just transfer the picture directly to a GFX display or VGA or whatever.

Anyone tried something like this ?

Yours: Thomas Scherrer - Denmark
OZ2CPU www.webx.dk

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

A few days ago, Bingo was so kind to send me a small MCA-25 camera from SonyEricsson.
The one on the right here: http://www.mobile-review.com/review/image/sonyeric/mca25/pic1-1.jpg
It runs on 3.3V and is pretty simple to interface to the AVR UART.
These are available from eBay for just about $2

I've made a small web-cam with the camera. It's gives VGA format pictures but also have a preview mode of 80*60. I tried to show the preview on my small Nokia 6610 color LCD's and got a good live preview of about 10 fps.

Currently, it's running on a Ethernut 2.1b board with two servos attached, so it can be rotated and pitched up and down.
You can try it at http://www.slugone.mine.nu, if asked for user/password, both is "root".
It takes a few seconds to grab the picture, and if more freaks are trying this at once, it may be a bit slow. Also, it may be down if I'm working with the code.

The code I initially tried was found here http://mikrocontroller.cco-ev.de/de/webcam.php and here http://avr.auctionant.de/avr-ip-webcam/
However, that code is very task specific and assumes way too much about your specific camera, including the number of stored pics, timing and message order e.t.c., so I totally rewrote it to a more stable and flexible version. As soon as I have documented it, it will be released to the public.

Bingo has built up the small mega32 webcamserver version and when (if), some time tomorrow, he has recovered from his partying today, I'm sure he'll be telling some more about that.

/Jesper
http://www.yampp.com
The quick black AVR jumped over the lazy PIC.
What boots up, must come down.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Very, nice Jesper!

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

very cool jesper will try to get one of those cam.

The avr is still mighty

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

COOL !! i am online now and see the screen, great.
thanks for the links to MCA25 hardware and software docs !
UART i/o haha great and easy. I will dig into it. gotta read all about it.
but the board is kinda big.
I rater use the cams from nokia phones

Attachment(s): 

Yours: Thomas Scherrer - Denmark
OZ2CPU www.webx.dk

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Jesper,
just tried your cam, very nice.

Youv'e added another project to my growing list of things to try once I've got the hang of AVR, C, AVRStudio etc. My daughter won't be happy though when I drop her phone to salvage the camera :)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

She will be very happy she suspect she will get a new one :)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Anyone with any info on the pinout and so on ?
for the smaller nokia phone cam ?
This cam is from a Model 6230 so it will take 640 x 480 pictures,
but I have no info about how to use it. except the 4 gnd pins

Attachment(s): 

Yours: Thomas Scherrer - Denmark
OZ2CPU www.webx.dk

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I got my WebCam to work today :-)

Jesper had an advantage (The Ethernut) :-) , i had to wire up a M32 on a VeroBoard. And wire all the ISA Connector stuff :( :(

Its a M32 running 14.xx Mhz , interfaced to a Realtek 8019A ISA-Network card

I used this as the Reference"
http://mikrocontroller.cco-ev.de...

Here are som shots taken with the cam

Attachment(s): 

Last Edited: Tue. Jan 17, 2006 - 11:12 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

And more

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The last one

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am at a loss for words. That is so cool that I wish to sacrifice many a goat in your honour and name. Adopt me.

Actually, the interface with the old ISA networks card looks neat. Is the ISA protocol difficult to interface with? That makes me cry, actually, last week my dad threw out 20 years worth of OLD computer parts which I had been stockpiling because he said we'd never use them. Waaaah.

Fits in a Butterfly you say? If I ever get my hands on one of those cameras it looks like "ButtCam" is in order ;). I'm thinking of making a Butterfly JTAG ("ButtProbe") next if I can find any info on the specs.

That reminds me. I will eventually be inherriting a broken iPod (standard) the next time I see my cousin. Apparently the screen, trackpad and (most likley) the mini HD are still ok. What interface does the iPod use? Perhaps it's possible to rig one of those up to the HD and screen and make a mobile video camera of low resolution...

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

abcminiuser wrote:

Fits in a Butterfly you say? If I ever get my hands on one of those cameras it looks like "ButtCam" is in order ;). I'm thinking of making a Butterfly JTAG ("ButtProbe") next if I can find any info on the specs.

- Dean :twisted:


Yupp

WinAVR says 14.7K Flash & 764 Bytes Ram , so it ought to be able to squezze in a BUTT , butt :-) you have to check if there is enough IO lines for the ISA Card , it uses 17 Lines if i remember correctly , and then comes 3 lines for the Cam.

Regarding JTAG , i would not expect it to be easy...
The "Clones" available (actually hw clones if the original Atmel) uses a "dumped" firmware from an original Atmel Jtag.
So no info is availabe for porting to a M169 , and i'd say Atmel considers that info "Secret" or for "NDA" use only.

/Bingo

Last Edited: Tue. Jan 17, 2006 - 02:22 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Kudos Jesper and Bingo. Yesterday I ordered a wireless camera from Sparkfun to attach to a RC jeep that I want to do some robot prototyping with. You guys have really inspired me.

Great work,
Smiley

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

smileymicros wrote:
Kudos Jesper and Bingo. Yesterday I ordered a wireless camera from Sparkfun to attach to a RC jeep that I want to do some robot prototyping with. You guys have really inspired me.

Great work,
Smiley

The credit should really go to the Germans that discovered this , and made a WebServer in a M32 , and also the guy who took his time to study the

Quote:
GSM 07.10 mux Protokolls

In order to understand comms with the camera.

Someone even ported it to a M8 wo. Cam though
http://www.mikrocontroller.net/a...
And the M8 , can't use Xtal as the pins are used for ISA
http://www.mikrocontroller.net/f...

The M32 Source i use is basically the version on this page (Webcam+Source) , schematic etc is also here (in the section ISA-CTRL WebServer)
http://mikrocontroller.cco-ev.de...

/Bingo

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello Folks!

I took the time to translate the pages of my Homepages into English.
http://mikrocontroller.cco-ev.de...
Might be interesting for you.

All informations and sources available under:
http://www.mikrocontroller.com/i...
The (empty) PCB (printed circuit board) is available there also. (Easier to assemble :-) )

Regards,
Holger

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi all,. I hope that I am not being rude here, but I am also looking for some specs for a small cell fone camera which I looted from a Samsung SPH-a600. The fone has all sorts of cool stuff to loot inside, but the camera remains the coolest after the tin y colour LCD. Unfortunatly, I have no idea on how to interface either of these cool gadgets, which is why I write today..If anyone has had some luck with either of these two modules, I am seeking datasheets and any knowhow related , and will be gratful for either. Thanks in advance, jaydag71

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi all,. I hope that I am not being rude here, but I am also looking for some specs for a small cell fone camera which I looted from a Samsung SPH-a600. The fone has all sorts of cool stuff to loot inside, but the camera remains the coolest after the tin y colour LCD. Unfortunatly, I have no idea on how to interface either of these cool gadgets, which is why I write today..If anyone has had some luck with either of these two modules, I am seeking datasheets and any knowhow related , and will be gratful for either. Thanks in advance, jaydag71

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ThomasScherrer wrote:
Anyone with any info on the pinout and so on ?
for the smaller nokia phone cam ?
This cam is from a Model 6230 so it will take 640 x 480 pictures,
but I have no info about how to use it. except the 4 gnd pins

Hi Thomas,

may be this helps.

Regards
S

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hi,
I have 2 cameras from my dad's old Motorola mobile phone. E1000. can any one tell me how to interface that camera only or any part of Motorola E1000 mobile phone's ckt to AVR? It will be a gr8 help to me. After all, just for this i have started working on MCU. It is a dream project for me... To interface a cam and an Accelerometer to a ATMega128 and show the image and the displacement of the camera in a graph.

Thanks in adv.
regards
Mishra

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi!

I have had the idea with the mca25 and wrote the protocol doc and mca25.c ;)
(my website is http://avr.auctionant.de )
The cco-ev site is just a copy of my source with some modifications ;)

>However, that code is very task specific and assumes way too much about your specific camera,
>including the number of stored pics, timing and message order e.t.c., so I totally rewrote it to a more
>stable and flexible version. As soon as I have documented it, it will be released to the public.
Where can i find this version ?

You say my code is special about the number of stored pics ? What do you mean ?
I know that i did not really implement the mux protocol. Instead i decided only to do the necessary steps
to access the camera.
Did you implement the whole protocol ?

I am currently working on a complete redesign of the webserver & webcam harware&software.

Ssssss (Simon)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ssssss wrote:
Hi!
Where can i find this version ?

Sorry, time has not allowed me to document this. As you are well versed with the functions of the cam, you will probably be able to benefit from it anyway, so I'll email it to you as it is.

Quote:
You say my code is special about the number of stored pics ? What do you mean ?

I cannot exactly remember how it was, but it was something like this :
Your cam had two pictures stored (mine was brand new, and had none).
In one message, this number was a part of the message and your software was expecting the exact message with two stored pictures. It failed for me with my camera.

Quote:
I know that i did not really implement the mux protocol. Instead i decided only to do the necessary steps
to access the camera.
Did you implement the whole protocol ?

No, I did not have enough documentation for that, but I added a few details, and made it easier to play with settings.

/Jesper
http://www.yampp.com
The quick black AVR jumped over the lazy PIC.
What boots up, must come down.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

Do you think cheap 433mhz wireless transceiver modules would have enought bandwidth to use these camera's to make a wireless camera interfacable to a pc via serial?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm having problem with Sssss's code. Ported it to mega128 and using 3686400Hz xtal. MCA25 initializion doesn't function correctly. I listened communication from cam to avr with usb adabter. Init problem is between state 13 and 14. Cam gives this output:

F903EF09E107230C01FBF9
F923EF1B <-- error
F923EF1D41542B435343433D312C3139390D35F9

This is wierd. I have tried solve this for weeks now.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Are you sure the 3.6Mhz xtal can run the Camera uart speed ???
Default it's running pretty fast , and i think it needs a faster Xtal unless you change the cam init routine.

Another thing .....
Are you using the USB adapter just as a "Uart Sniffer" ??? , don't feed +/- 12v to the cam uart

/Bingo

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Bingo600 wrote:
Are you sure the 3.6Mhz xtal can run the Camera uart speed ???
Default it's running pretty fast , and i think it needs a faster Xtal unless you change the cam init routine.

Another thing .....
Are you using the USB adapter just as a "Uart Sniffer" ??? , don't feed +/- 12v to the cam uart

/Bingo

with UART2X setting avr can do 460800 baud. And yes, I use ttl USB adapter to sniff communication. It's just wierd that cam stops sending packet in middle and continues with next packet. I'll have to get that original xtal and hope that it helps.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

still fighting with this problem, local electronics shops don't have that original xtal so I'm still running with 3686400.

here is whole logged traffic from cam -> avr in hex

41542B434D55583D3F0D41542B434D55583D302C302C372C33310D
F9033F011CF9
F9233F01C9F9
F903EF09E305238DFBF9
F903EF09E107230C01FBF9
F923EF1B
F923EF1D41542B435343433D312C3139390D35F9
F923EF2341542B435343433D322C3139392C42390DFBF9
F981730160F9
F903EF09E305838DFBF9
F923EF1741542A454355523D34310DD8F9
F903EF09E305838DFBF9
F903EF09E305838DFBF9
F983EF3FA0001F10002000CB000000014A0013E33D954583744AD79EC5C16BE31EDE8EEDF9
F983EF07A00003C7F9
F983EF3FA00096C30000008B49008E3C63616D6572612D696E666F2076657273696F6EEDF9
F983EF3F3D22312E30222053572D76657273696F6E3D22523141204358433132353439EDF9
F983EF3F36223E3C6D656D6F727920667265653D223539312220667265652D696D6167EDF9
F983EF3F65733D223130222073746F7265642D696D616765733D2230222066756E2D6CEDF9
F983EF35617965723D223130222F3E3C2F63616D6572612D696E666F3E0000F9
F923EF1B
F983EF3F900200C3000012CF4801F845424D505F312E30050050003C08040404040404EDF9
F983EF3F04040404040404040404040404040404040404040404040404040404040404EDF9
F983EF3F04040404040404040404040404040404040404040404040404040404040404EDF9
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Got it working some how. Local shop had 11059200 hz xtal. Pictures are very dark although I have plenty of light.

-edit: solved dark pictures problem, little bit too much voltage

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

My german ain't that good (actually it ain't at all :( ).
Will this camera work at baud rates lower than 460800 ?
Thanks.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Peaks of coolness...
As I read the posts I started getting one. I thought they'd have some special Erecson propertiery bus.

There are pointy haired bald people.
Time flies when you have a bad prescaler selected.