Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
distorted image in latest http server demo #21
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
Please modify the source code in the ESP8266 library like the following:
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.
@janis from Latvia, thanks for your detail information, it definitely
On Tue, Mar 8, 2016 at 10:31 AM, janisalnis firstname.lastname@example.org
@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.
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