New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
distorted image in latest http server demo #21
Comments
the issue seems to be in the read/transmit part of the sketch, i have tried the read code from the working sketch in the new one that distorts and capture seems to work fine
|
it seems modifying buffer size from 4096 to 2048 makes it work, but also seems a lot slower in updating (reads half as much)... |
Please modify the source code in the ESP8266 library like the following: [WiFiClient.h] [ClientContext.h] [lwipopts.h] |
thanks for the info. |
Congratulations Mario. Breakout board looks nice. |
nice, love it when you use a product to demo said product is working :D |
We now have two models of ArduCAM mini, 2mp and 5mp. We will design another 3MP soon. |
hi, i meant @mozgy :P he took a pic of an arducam with another arducam |
As oshpark produces trices I bought two 2MP cams, here's PCB https://oshpark.com/shared_projects/pINKH5In. |
ArduCAM_Mini_OV2640_Capture_uploadToServer.txt Hello Lee, Arducam mini board draws nearly 100 mA. For a battery powered Downloaded the library from github on 05. March 2016. First tried an example with Arduino streaming to Windows PC: First issue was that there is no circuit diagram on the webpage. I wanted to use with Arduino nano. It took a while to figure that SDA=A4 and SCL=A5. Second issues Serial.begin(921600); did not work with Arduino Serial Monitor window. Third issue was that Arducam.exe downloaded from the Arducam webpage: Next tried the example with ESP8266 module ESP-12E file: "ArduCAM_Mini_OV2640_Capture" if ((vid != 0x26) || (pid != 0x41)) while(1); causes reset after a few seconds, as probably, the ESP8266 had no time to do In the program, I guess, it should also be nr 16 in the comment line. I also experienced the problem with images chopped into parts described in this issue with the broken and mixed parts of the image. There is an easy way to capture a picture without the demonstation html: Resolution can be changed with numbers between 0 and 8 in such a way: I would like to make a PIR activated alarm camera automatically uploading a picture to a server. Php upload is more convenient than FTP upload as the file name can be automatically prepared on the server side. Yesterday using TTL camera example by openhomeautomation I have managed to adapt http POST file on ESP8266. Sketch is attached to this post. (Could not attach ino or zip type). Sorry about wirting too many things in one post. |
Great! I with these is working automatic uploading pictures to my server. |
@janis from Latvia, thanks for your detail information, it definitely On Tue, Mar 8, 2016 at 10:31 AM, janisalnis notifications@github.com
|
@janisalnis thank you dude very much for the http upload sample. i could not find that anywhere for the life of me. http upload code is one thing that i have been missing dearly. thank you very much |
Has there been any further progress on the bufferSize issue? Like others, setting the value to 2048 gives me proper video output, but it is noticeably slower. I'm only trying to stream a 320x240 video, but even that small size has some delay and a lot of skipped frames. One other thing I noticed, and perhaps someone can explain this to me... I added the timer code from the capture section into the streaming section, so now my serial console shows how long it is taking to output each frame, but the results are confusing. When I first start running my ESP, the first frame will take about 4000ms, but then the next frame takes about 40,000ms -- and it continues alternating between a fast frame and a slow frame that takes 10x as long. Even worse, it slows down quickly over time. After letting it run for about 30 minutes, the frames are alternating between 800,000ms and 8,000,000ms! My theory on this is that serverStream() is being called multiple times, resulting in overlapping frames and a slow memory leak. I want to test this by adding a static flag at the beginning of the function that exits if the flag is already set, thus only allowing a single instance to run -- unfortunately I have not had a chance to write this and test it out. Also has anyone checked how this program work when called from multiple devices at the same time? |
Sorry, I found a mistake in the timing code I added. It looks like it's actually taking about 140ms (consistently) to create and transmit each frame, but that number is still creeping up over time and hits about 170ms in 30 minutes. So... ignore most of the last two paragraphs in my last comment, but I'd still like to know if there's a way to fix the bufferSize issue to use a larger value? Images of 320x240 appear to contain 6148 or 6149 bytes, and it would be great to capture that in a single pass. |
It means the CC3200 is running without problem. The MT9D111 is not initialized very well, so please check the connection and the sensor register initialization.
|
I am just putting that MT9D111 in the socket of AurduCam. how to initialize it...can you tell mi that..? Thank you. |
Do i need to change any thing in the code provide by CC3200SDk? |
You can follow the instruction below to restore the factory firmware (please use the files from http://www.arducam.com/downloads/CC3200_UNO/factory_default/websock_camera.rar )
http://www.arducam.com/downloads/wifi_camera/factory_default/restore_factory_default.pdf
|
i already did that...but it won't show any output while click on Send button |
hello
When using
ArduCAM_Mini_OV2640_websocket_server
everything works fineWhen i attempt to use
ArduCAM_Mini_OV2640_Capture
i get garbled frames in both video and static capturesample

could you help? i tried to look for code differences but byte buffers throw me off... init code seems the same
The text was updated successfully, but these errors were encountered: