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
Consider Arduino support? #7
Comments
yes, I am thinking also of the best way to add it. I will be updating the IDF libs in Arduino any day now, and I think best is just to build the driver and add it that way. It's folder structure is otherwise incompatible with Arduino and can not be just included. Making a copy with the proper folder structure is also out of the question, since it will require to support the same code in two places. Keep an eye out over the weekend for update to Arduino (1.0.1-rc2) |
esp32-camera is included in the latest Arduino git and in 1.0.1-rc2 from the dev package manager link :) |
Nice! Thanks so much. That saves me a bunch of time! |
Any pointers or lib out there for using this code? |
the lib is already in Arduino, so all you need to do is include the headers and you are good to go :) |
@5shekel I do not recommend that lib if it is based on Ivan's earlier lib. This lib uses improved communication and registers with OV2640 and will perform much better than the old lib. |
agree the lilygo fork is a bit slow , but it has a working example. i was fighting with camera support for a few days. with esp-idf and arduino. its the only one that cam ready to go. i will dig deeper here is my testing > https://wiki.idiot.io/esp32-cam |
If you need directions on how to run this code in Arduino let me know :) it's really easy :) you copy 4 files to the same folder as your sketch, two includes and a call to two functions and you have it running in Arduino :) |
would appreciate an arduino example, just for completeness of this successful night. |
give me a few :) I'll post you the sketch |
esp32-camera.zip |
to get your other cameras to work, you need to set the proper pins and that is it :) |
esp-who will soon be supported also in Arduino :) |
oh! don't forget to select either WROVER or ESP32-Dev as board (and enable PSRAM), else it will not work |
working on arduino with that ai-thinker board, using on first try ::weepii:: |
nice! I will add it to the repository :) |
it is possible to have issues because of many things. I have 7 different sensors here and they all behave and look different... really depends on the quality of the product also. |
Used the Arduino variant esp32-camera.zip with my ai-thinker cam board. Very impressed - fastest and most stable of the different libraries I've tried. |
ahh yes... I translated them from ESP_LOGX which adds it on it's own :) Example is already in github master of Arduino. Re performance and stability: I spent months debugging and was even able to get some extra info from the manufacturer. The register definitions that float around the internet are not optimal for this sensor. Also it has implemented continuous mode for acquisition which allows for that high speed that you see :) glad you like it. |
working out of the box, well played |
Thank you so much, worked out of the box here as well. I tried it on an ESP32-CAM with a wide angle lense I got from a TTGO T-Journal order. The only issue was connecting the ESP32-Cam to my USB to TTL: First connect VCC and Gnd, plug in USB, then connect RX/TX, finally ground IO0 and press reset. To start, disconnect IO0 from Gnd and press Reset. |
Hello, thanks a lot for the arduino implementation, I was easily able to make it work! May I ask if you considered transferring also the other examples of esp-who to arduino? I'd especially love to use the detection_with_command_line, as in my project I only need to work with the detection results while keeping the video stream hidden (due to GDPR). In the current web server example, I unfortunately don't know how to hide the video stream without breaking the rest of the program. |
How do I edit the menu items in the webpage? Where do I find the source? |
step2: unzip it, you will find camera_index.h step3: open camera_index.h and copy the data from variable const uint8_t index_html_gz[] to an editor, example UEDIT32 step4: now replace all 0x to nothing step8: select all and copy the data step8: open HxD and create a new file step9: paste the data and save the file to index.html.gz step10: unpack the index.html.gz you find now your HTML file that you can edit. If you want do then back, follow the steps back all fine? best wishes edit: this are basic knowledge, |
Thanks for the detailed description @ESP32DE. |
There is no build script :) the file is gzipped and turned into bytes. That is all. I wrote this very basic program to turn files into byte array: https://gist.github.com/me-no-dev/f137a950ce6dedb641d427d8db6355d2
|
.. be sure there is no server script inside - you see the src code then not same like it is in the server ( esp32 ) only the result .... example:
let you see as "view source"
best wishes |
but there is no php or any other kind of backend language. plain html+css+js |
Thank you @me-no-dev for the code and the clarification. I agree with @ESP32DE as a general precaution but I see from the code they are the same. |
Hi! I´m new in Arduino... I started with ESP32 CAM and my intenttion is to use it during de night. So I read about de night mode. Thanks |
Hi! |
I added 4 IR leds and modify the exposure time, but it is not enough. I read in the datasheet that i can improve it modifing the XVCLK to increase the exposure or add dummy lines etc etc.... but i need to modify registers and I don´t know how. I remove th IR filter just for testing, but i must use the camera during the day too. |
Do you have a filter on your lens? It's a reddish purple coat on the sensor side of the tiny lens. With this filter attached you will not be able to take "night mode images" or utilize the IR LEDs. |
Yes, I have a double filter, I´m not completely sure of it. I must read more about it. This is the best image i could get : |
I've got an esp32 project that's already built in arduino that I'm trying to add in OV2640 camera support.
This is the simplest library I've found so far, but porting my existing project back to esp-idf is busy-work I'd like to avoid.
Would you consider instructions / changes to use in arduino?
The text was updated successfully, but these errors were encountered: