Well that sucks, I had written a reply and the server lost it. Electronics don't like me this week. Anything that functions on electricity of some kind is out to get me. Lol, It'll be my luck that I somehow get shocked from my keyboard just re-writing this. But, here goes.
Don't feel bad it took me a long time to get the ov7670 to work most of this was my silly errors I was a beginner at one point. When I started working with the ov7670 I could not even communicate with it using i2c it would not work. I did not relize that for i2c (sccb) communication to work you needed to feed a clock to it. I remember getting it working and the colors I got out of the ov7670 were purple and green. I found out that there was some register that fixes this (it appears aturcitu is currently experiencing this issue) Yes it does affect rgb565 mode too. Working with these camera sensors have significantly advanced my skill both at a hardware level and a software level. I hope you keep going with your project seeing it finally work feels great and that is part of the reason why I made this topic so that other people interested in camera sensors can get to see their project work.
yeah, I was pretty excited to get that vc0706 working. I had created quite the camera. I literally was just 2 steps away from designing a prototype board so I could get it in the field and test it under the cold conditions of winter. But at $33-$45, I can't justify buying a new one, since it's only 2MP. But the experience I gained from working with it was priceless.
What do you mean "Put it to sleep"? Maybe there is a way to fix it. I can't imagine software causing damage to the sensor unless you disable the internal regulator or something which is unlikely that you did.
Well, there is a "power save mode" that I attempted to put it in. The idea was that while there was no motion sensed over a 30 sec time span, the camera would go to sleep, then, when motion was detected, it would wake the camera up, take a picture, and the whole process would start over. However, the module itself has it's own motion sensing function which I disabled because I wanted to use an infrared sensor(my thought was, if it's in the woods and a leaf blows by, or a blade of grass moves in the wind, infrared would be less likely to trigger the camera than motion sensed by the camera, as the camera was entirely too sensitive). So, I think my code actually told it to sleep until the camera module sensed motion. Hah, oh well. I had it crap out on me before, couldn't get it to respond to anything, either by manual commands, or the VC0706CommTool program. I didn't touch it for a week or two, then one day was gonna show a friend that it was garbage and it magically came back to life. To my knowledge, there is no on-board backup supply. So, I'm thinking the caps just need to leak their stored current in order for it to naturally reset.
Could you please tell us where you are getting ov5642 sensor modules for the cost lest than an ov7670 module the cheapest ov5642 module I could find was $25.99 on ebay. The ov7670 can be purchased for $5.99 on ebay and includes free shipping just like the ov5642. I would like an ov5642 module myself.
Well, I think I paid somewhere around $20-$25 for my 5642, my 7670(bought this first, but realized I was in over my head and switched to vc0706) I think I paid $3.88 with shipping. I've noticed on eBay that your searches depend entirely on how you word them. When I found the 7670, I had just searced for "camera module" and came up with different results than when I searched for ov7670 or any other camera module. Even including "arduino" in the search changed everything. But since then, I haven't been able to find an ov7670 for under $8. People keep bidding them up and I don't feel like paying over $8 for a 2MP camera module anymore.
Well the ov5642 is quite a bit different I am not sure if much of my code will help you with that unfortunately.
From what I've understood, the 56 and 76 are very similar. Even if there are some major differences, understanding what you did with the 76(especially) the protocols(sending/receiving commands) would help me understand how to work the 56. I read through that documentation for either of these, and I feel like I'm looking at a bunch of strange archaic symbols that mean nothing to me. Haha. I was starting to understand the 76 when I first started looking into it, but then I couldn't figure out how in the world I was supposed to send those commands. Reading your code is about the same to me. I get it a little bit more now, but this is going to be a lengthy project and I'm expecting it will take me the better part of a year to get it all figured out. The VC0706 came with an example sketch that I was able to piece together with the help of a few guys on this board how to make it all work. This one, I want to understand more before I start getting into it. I learn little by little every day, but having multiple examples to see different variations is a huge help. Right now, you're about the only one who has shared anything (atleast that I've been able to find) about how you got this going. Everyone else just wants you to buy the Arducam and cheat. I don't even like using libraries, cuz I like to understand for myself how it works, first, then, either write my own, or use theirs. It just makes more sense to me if I can see it, then do it, rather than just steal someone else's work.