Interfacing a cheap phone camera module to a PIC32 microcontroller.

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ธ.ค. 2024

ความคิดเห็น • 142

  • @IanScottJohnston
    @IanScottJohnston 10 ปีที่แล้ว +26

    Mike, one of the best things about this video is squeezing it all into 26mins but still covering all the ground and making it legible. Great stuff!

  • @AppliedScience
    @AppliedScience 10 ปีที่แล้ว +86

    Thanks! Very informative, as always.

  • @JamesUKE92
    @JamesUKE92 10 ปีที่แล้ว +3

    Thanks Mike, very interesting material as always. You are my top TH-cam channel since I first discovered your vids! You seem to have the ultimate EE job from my perspective!

  • @johannfr
    @johannfr 10 ปีที่แล้ว +5

    I always enjoy your videos very much, Mike. You don't waste time repeating yourself nor babble on-and-on about nothing. Also, you assume a fair bit of technical background from your audience which I find great. I'm already looking forward to your next video.

  • @TheBertjeT
    @TheBertjeT 10 ปีที่แล้ว

    Loved you on the Amp Hour! I have no idea what you guys were talking about because I am not in the electronics business. Still loved it. I just like to listen to people talk technical.

  • @michaelhawthorne8696
    @michaelhawthorne8696 10 ปีที่แล้ว +7

    I find your videos fascinating.
    Having a 4 channel scope does help in seeing the relevant signals, how I long for one of those.
    Dave Jones seems to be backing off from making videos, especially like this one, so these are all the more special.
    You do go through things at a hell of a rate of knotts and going into more detail of how you get there would be great.
    Keep going Mike.

  • @JensAndree
    @JensAndree 10 ปีที่แล้ว +4

    Thank you for taking your time to make, and upload, this!
    It's a golden resource for all us tinkerers out there with less knowledge about camera modules etc, and to be able to interface a sensor without an FPGA is exciting imho. :)

  • @Guysm1l3y
    @Guysm1l3y 10 ปีที่แล้ว +12

    De-focus as analog antialiasing, I love that as a quick solution!

    • @av6966
      @av6966 6 ปีที่แล้ว

      quantization baby!

    • @power-max
      @power-max 4 ปีที่แล้ว

      I think defocusing is an effective 2D convolution with a circular image kernel, as point sources of light turn into blurred circles, and by extention other more complex images are also transformed the same way!
      A perfect solution would be to have a square lens so it ends up being like a square convolution or blur! refocusing even does the flip and rotate of convolution!

  • @lucysluckyday
    @lucysluckyday 9 ปีที่แล้ว +3

    Wow thanks for being probably the only person on youtube to go to this depth about how image sensors work! Amazing information!! I've watched this about 12 times, initially knew nothing about electronics at all, done a heap of googling in between, but now understand everything of what your are talking about.
    At first I wondered how a "Piano" fits in with electronics, but now I do know what a "PLL" actually is! I feel confident enough to try and design/build my very first ever electronic circuit using one of the optical LVDS variants .. this'll be fun ..

    • @piemonkey321
      @piemonkey321 8 ปีที่แล้ว

      As someone who is in the position you were in, were there any particular websites or Google searches that made finding everything easier for you? I want to figure this all out but I am struggling to know even where to start.

  • @lsdave
    @lsdave 9 ปีที่แล้ว +2

    Amazing! I learned so much watching this. I REALLY appreciate you taking the time to make videos.

  • @hertzkot
    @hertzkot 10 ปีที่แล้ว

    What a beautiful result Mike, you 're an artist! As always, thanks for educating the whole world !

  • @90SecondsofAviation
    @90SecondsofAviation 10 ปีที่แล้ว +4

    Awesome Mike, Thanks for this late night video :) Good luck to You mate, my #1 Channel without a doubt.

  • @Probodger
    @Probodger 10 ปีที่แล้ว +1

    Wow, how do you know this stuff, I'm amazed. You should write a book, just on this project alone, best seller guaranteed, I for one would be buying it especially if you put for dummies in the title. That's my level of electronics I'm afraid, but having said that I still enjoy your video's, it shows what can be done.

  • @AidanWaltonwires3
    @AidanWaltonwires3 หลายเดือนก่อน

    Thanks Mike, I noticed that you kinda focused around maintaining frames rates and therefore DMA management and general memory consumption where clearly important. I question, did you ever experiment with very low pixel clock rates. The reason I ask is that I don't need full frame rate video, but rather still capture. ( In fact even the still capture does not need to be fast per frame, as the image content will also be almost entirely static as I'm looking for monitoring leaks in roof spaces). I was hoping to use of a bag full of old phone modules that I have lying around to capture surveillance remote monitoring images and slowly dump out from the location using NB-IoT. Its simply a reasonably cheap CMOS sensor with a usable interface that I need. Do you know is these devices continue to work if you push the limits of low speed operation?

  • @jccomfg2736
    @jccomfg2736 4 ปีที่แล้ว +1

    EXCELLENT job. very good teacher.

  • @AliMirjamali
    @AliMirjamali 10 ปีที่แล้ว +1

    It is very lovely to see the possibilities with limited RAM and a single core micro. You should be optimizing down to each CPU cycle (regardless of DMA and interrupts). After listening to you on the previous episode of TheAmpHour, bought a PICKIT 3 and installed the damn MPLAB X (I'm on Linux). I will be playing with few PICs I bought together with the PICKIT 3.

  • @Bits32
    @Bits32 10 ปีที่แล้ว +2

    Once in a while, videos like these remind me how much of a noob i am.!!! Damn it!!

  • @aserta
    @aserta 10 ปีที่แล้ว +4

    At the start, if you squint your eyes and lean out of your screen, you can see Mike pretty well, which i found to be neat. Funny how our eyes work sometimes.
    On a side note it's really nice that phone cameras are getting more and more used in projects like this one.
    I saved 12 mp one for later.

  • @DavidWilliams-ov4kn
    @DavidWilliams-ov4kn 9 ปีที่แล้ว

    Great video. Perfect level of detail. Awesome visuals.

  • @ClearNinjaFox
    @ClearNinjaFox 9 ปีที่แล้ว +13

    is there a way i can use this smartphone cams from old samsungs to reuse for some sort of arduino base mcu ? i have not come across any tutorials or breakdowns, and tho you was giving out a lot of useful information im left in the dark as i dont have your technical background to understand half of what you was saying, but i did hear something about 6mb per pixel? or raw data thru the serial ? and most mcu dont have that type of memory ? maybe you can expand on this for me please Mike? im not looking for High RES im simply looking to find edges and blobs using OpenCV for Processing and my trusty arduino UNO or NANO but my background thus far is in C# & C++ so i tend to stick to this mcu since they understand my lingo or what not but this is for a humanoid application and im simply trying to turn those small cmos cams into eyes for my androids face and i just dont want to get a webcam and tare it down just to implement into the size factor im looking for you know what i mean ? well Mike hope to hear from you !

  • @JGunlimited
    @JGunlimited 7 ปีที่แล้ว

    Is there a video where you go over how you made the circular LCD display? And also how you achieve the variable "per pixel" brightness?

  • @0youwannagethigh0
    @0youwannagethigh0 10 ปีที่แล้ว +1

    Very nice video, never knew this small modulles just use a standard vga interface, kind of logical, but never looked into it

  • @MrDubje
    @MrDubje 10 ปีที่แล้ว +1

    Great! As it so happens, I was given some of these "Sunny" branded camera modules recently. Not that I know what to do with them, I can barely write a few lines of code.
    I can't find any info on them. On one side of the flex, it says "8806Z Sunny", on the back side "806Z Sunny" The model is 8806Z-200, apparently... ;( I'll see if I can find a breakout board you mentioned.

  • @sensecam
    @sensecam 10 ปีที่แล้ว +1

    very good work and well explained! I shall check out the rest of your videos.

  • @Kilohercas
    @Kilohercas 10 ปีที่แล้ว

    MT9M001 also can skip columns/rows internally, so you can down-sample image and at the same time, get higher FPS. If you need slow that down, you could simply increase shutter width, and that will slow it down as much as you need

  • @uhrlassr
    @uhrlassr 10 ปีที่แล้ว

    Did you code up that GUI with the sliders to change the settings on the pic yourself, or is that some sort of readily available tool?

  • @steubens7
    @steubens7 15 วันที่ผ่านมา

    ten years, wow. people have been able to document almost all the registers of the raspberry pi camera, dunno exactly how, maybe fuzzing, but they've found crop and timing registers that let them do really silly things, like getting x000fps at 128x64 crop. imo omnivision is paranoid about documentation *because* the asics are so similar. they get to do binning and market segmentation pretty much entirely in 'software', and especially with phone sensors the spec bumps are based on reduced duty cycles. found out about that because sony is actually explicit about it in their documentation

  • @azimalif266
    @azimalif266 7 ปีที่แล้ว

    1:52 can you make a tutorial on that?
    I'd like to make a night vision goggle and that seems to be very lightweight. Can you make a video showing how to make that?

  • @frollard
    @frollard 10 ปีที่แล้ว

    I was making a pixel led strip light-saber load pov images from sd card, but I was completely out of memory, had to do similar; read file for 32x3 bytes, spi out the pixels in rgb, continue reading file. If I buffered the whole file I would quicly be out of memory. Very clever stuff!

  • @stevenking2980
    @stevenking2980 9 ปีที่แล้ว +2

    Very cool! I love electronics, but I know zero about that small stuff!

  • @armenvegas
    @armenvegas 10 ปีที่แล้ว +1

    Dude you rock! please keep teaching us.

  • @ShaggyRogers-mp7xw
    @ShaggyRogers-mp7xw 4 หลายเดือนก่อน

    Yesss yess exactly what I was looking for you've earned a well honest subscribe

  • @didaloca
    @didaloca 9 ปีที่แล้ว

    What was the connector @17:07? I've been looking at readily available smd board to board connectors with low insertion force (such as ffc) and not having much luck.

  • @mohammadfaizz7904
    @mohammadfaizz7904 4 ปีที่แล้ว

    sir can i get some information on how to interface a smartphone camera module unlike this one , mine has a different amount of pins !

  • @lukewilson3109
    @lukewilson3109 5 ปีที่แล้ว

    How can i power and use a tiny screen like the one you are using from the ipod nano with a camera like you are doing

  • @Ing_emms
    @Ing_emms 9 ปีที่แล้ว

    hello my question is how do the sync with the PCLK of the camera's pixel clock entering the timer, each time the clock enters the timer makes it lights and generate an interrupt? in a given time so you can capture the byte from the port dma?

  • @Kilohercas
    @Kilohercas 10 ปีที่แล้ว

    i connected MT9M001 to STM32F429i in no time via DCMI and using SRAM as frame buffer, not only that, i am using SPI DMA for sending 200x200x8 image to computer
    my question, how can i load data to computer at 30fps/HD ?

  • @Bubu567
    @Bubu567 3 ปีที่แล้ว

    Wow I was thinking you could passively average the data from pixel zones, but simply defocusing the lens does exactly the same thing.

  • @vamsi1997
    @vamsi1997 3 ปีที่แล้ว

    hey can you interface an old phone camera module to ESP 32

  • @pcmansf
    @pcmansf 8 ปีที่แล้ว

    Great video! Thank you for putting it together. Do you have a source code for the firmware published someplace?

  • @vanguard1427
    @vanguard1427 3 ปีที่แล้ว

    Hi I wanna do something similar to this I wanna know how to go about doing it I wanna get a IR photochrome camera from a one plus 8 pro and make a basic video and picture camera

  • @arletpaz8010
    @arletpaz8010 5 ปีที่แล้ว

    i own several small cellphone cams, can i buy some of this drivers i've seen on this video to use as a webcam? i need something this small for usb pc use, any advise ?

  • @av6966
    @av6966 6 ปีที่แล้ว +1

    It boggles my mind how you are at 95 and not 950K subs

  • @SpringDivers
    @SpringDivers 10 ปีที่แล้ว

    Excellent video, Mike. Very informative. Thanks.

  • @rendydddd
    @rendydddd 6 ปีที่แล้ว

    Hi
    I want to ask something.
    I have old mobile parts and I would like to connect mobile camera with display
    Is that possible?

  • @daveb5041
    @daveb5041 8 ปีที่แล้ว

    So its not like lego blocks? Very in depth.

  • @sahiltamboli7371
    @sahiltamboli7371 7 ปีที่แล้ว

    can u tell me that how to get graphical display by using camera with Arduino connection interfaced with LCD display

  • @HappyHermitt
    @HappyHermitt 3 ปีที่แล้ว

    I have a broken Galaxy S6 with a wonderful camera. I'd love to do something like this with it

  • @PodeCoet
    @PodeCoet 10 ปีที่แล้ว +5

    Brilliant work! What language did you use to write the PC-side GUI? 6Mbit via serial is insane!

    • @stonent
      @stonent 10 ปีที่แล้ว

      It looks like a Visual Studio based app, so likely VB, C# or C++.

    • @mikeselectricstuff
      @mikeselectricstuff  10 ปีที่แล้ว +13

      stonent VB6. Sorry!

    • @mrlazda
      @mrlazda 10 ปีที่แล้ว +4

      mikeselectricstuff VB6 is more useful than most of new versions

    • @nRADRUS
      @nRADRUS 10 ปีที่แล้ว

      Miloš Lazović
      when you program microcontroller with ANSI C it's useful to program PC-side with ANSI C too ? is it not ?

    • @PodeCoet
      @PodeCoet 10 ปีที่แล้ว +1

      nRADRUS Even with GUI frameworks such as QT, most times it's completely impractical to write GUI applications in ANSI C. VB6 blows everything out of the water for rapid development, especially for test applications

  • @SproutyPottedPlant
    @SproutyPottedPlant 10 ปีที่แล้ว

    Is our for use on the starship enterprise?

  • @964tractorboy
    @964tractorboy 10 ปีที่แล้ว

    Very interesting crash course. Many thanks.

  • @Ing_emms
    @Ing_emms 9 ปีที่แล้ว +1

    as you worked with OV7670?????

  • @Razor2048
    @Razor2048 10 ปีที่แล้ว

    Is it possible to overclock the micro controller?

  • @darkobul1
    @darkobul1 10 ปีที่แล้ว +1

    Very detailed explanation. Thank you for sharing!

  • @RAH101
    @RAH101 10 ปีที่แล้ว

    Mike wich is the easiest way to interface one of theese cameras to a composite video output?

    • @mikeselectricstuff
      @mikeselectricstuff  10 ปีที่แล้ว +2

      Why bother - there are plenty of cheap composite cameras out there.

    • @RAH101
      @RAH101 10 ปีที่แล้ว

      mikeselectricstuff I am trying to build a small cheap video transmitter to mount on a quadcopter. All the cameras i can find are at least ten times more expensive than the ones you've got.
      fpvhobby.com/83-1-gram-nano-camera.html
      By the way great video as always

    • @katelikesrectangles
      @katelikesrectangles 10 ปีที่แล้ว

      Rodrigo A. H
      Why not transmit digital video data?

    • @RAH101
      @RAH101 10 ปีที่แล้ว

      katelikesrectangles wouldn't the decoding create too much lag ? Keep in mind this is for piloting remotely. Plus i haven't got a clue on how to adapt my video transmitter to digital

    • @googletitsfost
      @googletitsfost 10 ปีที่แล้ว

      Rodrigo A. H The decoding would be done on the receiver which can use bigger batteries to get more power. My last quadcopter build used a pair of STM32F427 MCUs with DCM Interface, one ran the camera and did JPEG encoding, the other did the decoding and LCD control.

  • @globin010252
    @globin010252 10 ปีที่แล้ว

    Hi Mike, thanks for sharing...great videos

  • @JGunlimited
    @JGunlimited 7 ปีที่แล้ว

    That's an awesome mirror!

  • @technicalos874
    @technicalos874 7 ปีที่แล้ว

    Bro can u make a video on how to make a camera which showed at the starting of video with mobile screen please bcoz i have all that u attached

  • @BetterBharat15
    @BetterBharat15 5 ปีที่แล้ว

    Ye device kaha liya tumne

  • @alexandrupostovan462
    @alexandrupostovan462 9 ปีที่แล้ว +1

    can you use an iphone 4 camera with it?

    • @alplines
      @alplines 5 ปีที่แล้ว

      Same question. I have an iPhone 5s and I want to use that camera

  • @luisborgohain3097
    @luisborgohain3097 8 ปีที่แล้ว +1

    can i make a spy camera from keypad mobile

  • @gentleboy802
    @gentleboy802 9 ปีที่แล้ว

    Is it possible to extend rear 13 mega pixel camera module of a smartphone , by connecting it by a longer ribbon cable to the phone? So that it acts as a normal rear camera?

  • @czorgormez
    @czorgormez 9 ปีที่แล้ว

    what is the small fpga chip on 1.50 ?

    • @AbdullahKahramanPhD
      @AbdullahKahramanPhD 6 ปีที่แล้ว

      it is probably from lattice. check out his earlier videos

  • @WinaiKoonthai
    @WinaiKoonthai 7 ปีที่แล้ว

    Help me please I want library pic16f887 for mikroc.

  • @megasmart1337
    @megasmart1337 10 ปีที่แล้ว

    Are you still using Windows XP?

    • @stonent
      @stonent 10 ปีที่แล้ว

      Well if you're using the readypos registry hack on XP, you can still get updates until 2019.

    • @megasmart1337
      @megasmart1337 10 ปีที่แล้ว

      Yes, but why anyone wants to use a obsolute OS when there is many better options..

    • @SerBallister
      @SerBallister 10 ปีที่แล้ว

      pappkopp A few electronics guys I know prefer XP as it'll play with parallel ports which is useful for playing with old hardware.

  • @av6966
    @av6966 6 ปีที่แล้ว

    .... it was you that killed McGuyver!

  • @danielshiu8926
    @danielshiu8926 7 ปีที่แล้ว

    hey if you're still active please respond.

  • @sergionavarro2500
    @sergionavarro2500 8 ปีที่แล้ว +2

    hey I'll have an idea that you can make you can make a suit out of screens and cameras so that the cameras in the back of the suit puts the image behind you in front of you and the cameras in front of you puts the image behind you so you make a invisible suit if you read this comment me back so me and you can get credit for it also we can be partners in making a invisibility suit i also have an idea of what kind of screens that will help you with the curve of the suit

    • @scottnowsmo
      @scottnowsmo 8 ปีที่แล้ว

      Sergio Navarro already exists

  • @hannonm
    @hannonm 10 ปีที่แล้ว

    This Tech could be used to help the blind see!

  • @asgeerqwrewq47
    @asgeerqwrewq47 6 ปีที่แล้ว

    Lol after seeing this....I might as well forget trying to switch out my spy pen camera with an android camera.

  • @TarunYadav-dp1id
    @TarunYadav-dp1id 11 หลายเดือนก่อน

    I wanted to use my old phone's camera module with Arduino but i abonden it after not finding anything on youtube other than this video which bouces of my head.

  • @maxzifferzooloof488
    @maxzifferzooloof488 10 ปีที่แล้ว

    Thanks Mike

  • @gamebent
    @gamebent 10 ปีที่แล้ว

    Great vid.

  • @fghdfghdfghdfg
    @fghdfghdfghdfg 10 ปีที่แล้ว +1

    Nice! Thanks mike.

  • @sweekarkhadka4595
    @sweekarkhadka4595 4 ปีที่แล้ว

    It's kinda sad seeing the real tech Master talking great getting just 150k views and others with very shit content getting 5 M views......one just connected a camera to phone via a type C port

  • @magnuswootton6181
    @magnuswootton6181 2 ปีที่แล้ว

    who wants to buy a whole esp32 when you can get the camera module by itself for $3. :)

  • @hammershigh
    @hammershigh 9 ปีที่แล้ว

    Maybe if you could talk more slowly, one would be able to understand what you'e saying... just a suggestion

  • @choi971
    @choi971 5 ปีที่แล้ว

    Great movie

  • @vineethreddy8226
    @vineethreddy8226 5 ปีที่แล้ว

    You sound like Shashi Taroor😂

  • @T-Tronix
    @T-Tronix 10 ปีที่แล้ว +5

    Ok its time to change my brain,lol for a second i forgot where i was and my cat name. it got filled up by the first minute of the video. Man your brain must work on over drive. They say we only use a fraction of our brain power, well mike imagine if you could use even 60% or 70% of yours. Lol you prob see eveything like the matrix. a Very very informative video as always mike. Lol is there anything you dont know ? Keep it up man.

    • @Xenro66
      @Xenro66 10 ปีที่แล้ว +1

      We use 100% of our brain nearly all the time... But yeah, I agree! xD

    • @Xenro66
      @Xenro66 10 ปีที่แล้ว +1

      Justo Talkalottashit I have no idea...

  • @dudeitspraful
    @dudeitspraful 6 ปีที่แล้ว

    This is not in English

  • @sparkyuiop
    @sparkyuiop 10 ปีที่แล้ว

    yak yak bunny bunny jabber jabber

  • @jojo150393
    @jojo150393 10 ปีที่แล้ว +1

    Really hard to understand for people who are not english... You speek too fast

  • @etmax1
    @etmax1 9 ปีที่แล้ว +1

    Repeats himself too much, I gave up at 1min because in that time all I got was low res display camera blue & white LED's about 5 times. Why don't they write a script that they read/follow so they don't sound like a drongo.

    • @DavidWilliams-ov4kn
      @DavidWilliams-ov4kn 9 ปีที่แล้ว +1

      etmax1 Minutes 2 - 26 were very dense and non-repetitive. Worth a watch.

    • @etmax1
      @etmax1 9 ปีที่แล้ว +1

      David Williams
      Thanks, I started from 2 minutes, much better. I should have been more patient I guess. Very interesting. So what's the slowest rate you can clock the pixels out? for a robot I'm thinking may 1 frame per second or even every 2 seconds would be good for obstacle avoidance.