Difference between revisions of "(SKU: B0105)Arducam ESP32 UNO Board for Arducam Mini Camera Module Compatible with Arduino UNO R3"

From UCTRONICS
Jump to: navigation, search
(Demos)
 
(12 intermediate revisions by the same user not shown)
Line 47: Line 47:
  
 
===Features===
 
===Features===
* Build in ESP8266-12E Module
+
* Build in ESP-32S Module
* 11 digital input/output pins, IO ports are 3.3V tolerant
+
*  26 digital input/output pins, IO ports are 3.3V tolerant
* 1 analog input(3.2V max input)
+
*  Arducam Mini 2MP/5MP camera interface
* ArduCAM Mini 2MP/5MP camera interface
+
*Lithium battery recharging 3.7V/500mA max
* Lithium battery recharging 3.7V/500mA max
+
*  Built-in SD/TF card socket
* Building in SD/TF card socket
+
* 7-12V power jack input
* 7-12V power jack input
+
*  Built-in micro USB-Serial interface
* Build in micro USB-Serial interface
+
* Compatible with Arduino IDE
* Compatible with Arduino IDE
+
  
 
===Pin Definition===
 
===Pin Definition===
  
<center>[[Image:ESP8266-2.png|600px|]]</center>
+
<center>[[image:B0105PinDefinition.jpg|600px|]]</center>
 +
The board has built-in Lithium battery charger, which accepts default 3.7V/500mA Lithium battery. The charging indicator and charging current setting can be found from the Figure.
 +
<center>[[image:B0105IndicatorLight.png|600px|]]</center>
  
<center>Note that the SD/TF card CS pin is shared with UART TX signal, so the UART and the SD/TF can’t be used at the same time.</center>
+
== Software ==
 +
===Getting Started ESP32 with Arduino IDE===
 +
This chapter shows you how to develop an application for Arducam ESP32 UNO board using Arduino IDE. (Tested on 64 bit Windows 10 machines)
  
 +
====Step1:install Arducam ESP32 support on Windows====
 +
1. Starting Download and install the latest Arduino IDE Windows Installer from arduino.cc
 +
 Download and install Git from https://git-scm.com
 +
 Start Git GUI and run through the following steps: Select Clone Existing Repository:
  
 +
<center>[[image:B0105Figure4.png|600px|]]</center>
  
 +
Select source and destination:
 +
Source Location: https://github.com/ArduCAM/ArduCAM_ESP32S_UNO.git
 +
Target Directory: C:/Users/[YOUR_USER_NAME]/Documents/Arduino/hardware/ ArduCAM/ArduCAM_ESP32S_UNO
 +
Click Clone to start cloning the repository:
 +
<center>[[image:B0105Figure5.jpg|600px|]]</center>
 +
  
 +
Open C:/Users/[YOUR_USER_NAME]/Documents/Arduino/hardware/ ArduCAM/esp32/tools and double-click get.exe
  
<center>[[Image:ESP8266-3.png|600px|]]</center>
 
  
<center>The board has build in Lithium battery charger, which accepts default 3.7V/500mA Lithium battery. The charging indicator and charging current setting can be found from the Figure.</center>
+
<center>[[image:B0105Figure6.png|600px|]]</center>
  
== Software ==
+
When get.exe finishes, you should see the following files in the directory
===ESP8266 UNO Tutorial===
+
This Tutorial is a demo of how to use ArduCAM Mini 2MP/5MP camera module on ArduCAM ESP8266 UNO.
+
  
'''This demo needs:'''
+
<center>[[image:B0105Figure7.jpg|600px|]]</center>
*ArduCAM ESP8266 UNO Board(x1),
+
 Plug your ESP32 board and wait for the drivers to install (or install manually any that might be required)
*ArduCAM Mini 2MP camera module(x1)
+
  
====Step1:Installing with Boards Manager====
+
====Step2:Using Arduino IDE====
1.Installing with Boards Manager Install Arduino 1.6.8 from the Arduino website.Starting Arduino and open Preferences window and entering the following link into Additional Board Manager URLs field. You can add multiple URLs, separating them with commas:
+
After installation of Arducam ESP32UNO board, you can select this board from the Tool->Board menu. And there several ready to use examples from the
 +
File->Examples->ArduCAM. You can use these examples directly or as a starting point to develop your own code.
 +
 Start Arduino IDE, Select your board in Tools > Board menu>
 +
<center>[[image:B0105Figure8.jpg|600px|]]</center>
 +
  
http://www.arducam.com/downloads/ESP8266_UNO/package_ArduCAM_index.json
+
 Select the example from File->Examples->ArduCAM
 +
<center>[[image:B0105Figure9.6.jpg|600px|]]</center>
  
<center>[[Image:ESP8266-4.1.1.jpg|600px|]]</center>
+
 Configure the camera setting
 +
You need to modify the memory saver.h file in order to enable OV2640 or OV5642 camera for ArduCAM Mini 2MP or 5MP camera modules. Only one camera can be enabled at a time. The memory saver.h file is located at C:\Users\[YOUR_USER_NAME]\Documents\Arduino\hardware\ ArduCAM
 +
\ArduCAM_ESP32S_UNO\libraries\ArduCAM
  
Note that the installed package source file is located in the <code>C:\Users\Your computer name\AppData\Local\Arduino15\</code> folder,here is <code>C:\Users\zk109\AppData\Local\Arduino15\</code> for example.
 
  
Open Boards Manager from <code>Tools ->Board menu</code> and install ArduCAM_ESP8266_UNO addon package.
+
<center>[[image:B0105Figure10.7.jpg|600px|]]</center>
 +
  
<center>[[Image:ESP8266-4.1.2.jpg|600px|]]</center>
+
 Compile and uploading
<br />
+
Click uploading the example will automatically be flashed to the board.
<br />
+
<center>[[Image:ESP8266-4.1.3.jpg|600px|]]</center>
+
  
Note if you download failed, you need to delete the <code>C:\Users\Your computer name\AppData\Local\Arduino15\ </code>folder, and then restart the Arduino IDE, repeat the above operation.
+
====Demos====
 +
There are 4 examples for both 2MP and 5MP ArduCAM mini camera modules.
  
<center>[[Image:ESP8266-4.1.4.jpg|600px|]]</center>
+
===== ArduCAM_ESP32_ Capture=====
 +
This example uses HTTP protocol to capture still or video over home wifi network from ArduCAM mini 2MP/5MP and display on the web browser.
 +
The default is AP mode, after uploading the demo, you can search the ‘arducam_esp32’and connect it without password.
  
====Step2:Using Arduino IDE====
+
<center>[[image:B0105Figure11.8.jpg|600px|]]</center>
Using Arduino IDE After installation of ArduCAM ESP8266 UNO board add-on package, you can select this board from <code>the Tool->Board menu</code>
+
And there several ready to use examples from <code>the File->Examples->ArduCAM.</code>
+
You can use these examples directly or as a starting point to develop your own code.
+
Select ArduCAM_ESP8266_UNO board from <code>Tools->Board menu.</code>
+
  
<center>[[Image:ESP8266-4.2.1.jpg|600px|]]</center>
 
  
Select the example from <code>File->Examples->ArduCAM->ESP8266->ArduCAM_ESP8266_UNO_Capture</code>
+
  
<center>[[Image:ESP8266-4.2.2.jpg|600px|]]</center>
+
<center>[[image:B0105Figure12.9.jpg|600px|]]</center>
  
Configure the camera setting You need to modify the memorysaver.h file in order to enable OV2640_MINI_2MP or OV5642_MINI_5MP_PLUS or OV5640_MINI_5MP_PLUS camera modules.
 
Only one camera can be enabled at a time.The memorysaver.h file is located at <br />
 
<code>C:\Users\Your computer name\AppData\Local\Arduino15\packages\ArduCAM_ESP8266_UNO\hardware\ArduCAM_ESP8266_UNO\2.2.2\libraries\ArduCAM</code>
 
  
<center>[[Image:ESP8266-4.2.3.jpg|600px|]]</center>
+
If you want to use STA mode, you should change ‘int wifiType = 1’ to ‘int wifiType =0’.The ssid and password should be modified before uploading.
 +
 +
 
 +
 
 +
 +
 
 +
<center>[[image:B0105Figure13.10.jpg|600px|]]</center>
 +
 
 +
After uploading, the board IP address is obtained via DHCP protocol. You can figure out the IP address through the serial monitor as Figure 10 show. The default serial monitor baud rate setting is 115200bps.
 +
 +
 
 +
 
 +
 +
 
 +
<center>[[image:B0105Figure14.10.jpg|600px|]]</center>
 +
 
 +
Finally, open the index.html, input the IP address obtained from the serial monitor then take pictures or videos. The html files are located at
 +
C:\Users\[YOUR_USER_NAME]\Documents\Arduino\hardware\ArduCAM\ArduCAM_ESP32S_UNO
 +
 
 +
\libraries\ArduCAM\examples\ESP32\ArduCAM_ESP32_Capture\html
 +
 
 +
<center>[[image:B0105Figure15.11.jpg|600px|]]</center>
 +
 
 +
===== ArduCAM_ESP32_Capture2SD=====
 +
This example takes time elapse still photos using ArduCAM mini 2MP/5MP and then stored on the TF/SD card. The LED indicates when the TF/SD card is writing.
 +
ArduCAM_ESP32_Cap ture_Demo.avi
 +
 
 +
 
 +
<center>[[image:B0105Figure16.12.jpg|600px|]]</center>
  
====Demos====
 
There are 5 examples for both ArduCAM Mini 2MPand ArduCAM Mini 5MP camera modules. (ArduCAM ESP8266 V1 has been discontinued ).
 
  
=====ArduCAM_ESP8266_Capture=====
+
 ArduCAM_ESP32_Video2SD
This example uses HTTP protocol to capture still or video over home wifi network from ArduCAM Mini 2MP/5MP and display on the web browser. You can change the value of wifiType to select Station or AP mode. If you use Station mode the ssid and password should be modifies before uploading.
+
This example takes motion JPEG video clips using ArduCAM mini 2MP/5MP and then stored on the TF/SD card as AVI format.
 +
  
<center>[[Image:ESP8266-4.3.1.jpg|600px|]]</center>
 
  
AP mode:
+
After uploading, the board IP address is <code>192.168.4.1</code>. You can figure out the IP address through the serial monitor.The default serial monitor baudrate setting is 115200bps.
+
  
<center>[[Image:ESP8266-4.3.2.jpg|600px|]]</center>
 
  
From your PC , go to the WiFi setting page. You should see an Access Point (AP) which the SSID name <code>“arducam_esp8266”</code> on the AP scan result list. Choose the <code>“arducam_esp8266″</code> AP to connect to it. This AP’s password is “”.
+
===== ArduCAM_ESP32_Video2SD=====
 +
This example takes motion JPEG video clips using ArduCAM mini 2MP/5MP and then stored on the TF/SD card as AVI format.
 +
  
<center>[[Image:ESP8266-4.3.3.jpg|600px|]]</center>
 
  
You have three ways to see the video streaming :
+
*1. Use the index.html
+
<center>[[image:B0105Figure17.13.jpg|600px|]]</center>
Open the index.html or video.html, input the IP address obtained from the serial monitor then take pictures or videos. The html files are located at <br />
+
<code>C:\Users\Your computer name\AppData\Local\Arduino15\packages\ArduCAM_ESP8266_UNO\hardware\ArduCAM_ESP8266_UNO\2.2.2\libraries\ArduCAM\examples\ESP8266\ArduCAM_ESP8266_Capture\html_2640 </code>
+
  
<center>[[Image:ESP8266-4.3.4.jpg|900px|]]</center>
+
=====  ArduCAM_ESP32_Sleep=====
 +
To reduce power consumption,calling the interface function immediately goes into the Deep - sleep mode.In this mode, the chip will disconnect all wi-fi connections and data connections and enter the sleep mode. Only the RTC module will still work and be responsible for the timing of the chip. This demo is suitable for battery power
 +
  
*2. Use ArduCAM_Host_V2.0_Windows Host app.
 
You can download it on
 
https://github.com/ArduCAM/Arduino/tree/master/ArduCAM/examples/host_app.
 
  
<center>[[Image:ESP8266-4.3.5.jpg|900px|]]</center>
+
  
*3.Use Arducam.apk
+
<center>[[image:B0105Figure18.14.jpg|600px|]]</center>
  
<center>[[Image:Arducam.apk.png|900px|]]</center>
 
  
For detail operations, please refer to the video demos:
 
https://www.youtube.com/watch?v=n1dDGNpbxGM&feature=youtu.be
 
  
=====ArduCAM_ESP8266_V1_Capture2SD(or ArduCAM_ESP8266_V1_Capture2SD)=====
 
This example takes time elapse still photos using ArduCAM Mini 2MP/5MP and then stored on the TF/SD card. The LED indicates when the TF/SD card is writing.
 
  
=====ArduCAM_ESP8266_V1_Video2SD(or ArduCAM_ESP8266_V2_Video2SD)=====
+
<center>[[image:B0105Figure19.15.jpg|600px|]]</center>
This example takes motion JPEG video clips using ArduCAM Mini 2MP/5MP and then stored on the TF/SD card as AVI format,about 4 minutes to complete.
+
  
 
== Trouble Shooting ==
 
== Trouble Shooting ==

Latest revision as of 07:02, 3 May 2018

ESP32 UNO Board for Arducam Mini Camera Module
Manufacturer   ArduCam
Item Weight   0.8 ounces
first available   April 25,2016
Price   $14.99
ASIN   B013JUKZ48

Arducam now released an ESP32 based Arduino board for Arducam mini camera modules while keeping the same form of factors and pinout as the standard Arduino UNO R3 board. The highlight of this ESP32 board is that it well mates with Arducam mini 2MP and 5MP camera modules, supports Lithium battery power supply and recharging and with build-in SD card slot. It can be an ideal solution for home security and IoT camera applications.


Pictures

Hardware

Features

  •  Build in ESP-32S Module
  •  26 digital input/output pins, IO ports are 3.3V tolerant
  •  Arducam Mini 2MP/5MP camera interface
  •  Lithium battery recharging 3.7V/500mA max
  •  Built-in SD/TF card socket
  •  7-12V power jack input
  •  Built-in micro USB-Serial interface
  •  Compatible with Arduino IDE

Pin Definition

B0105PinDefinition.jpg

The board has built-in Lithium battery charger, which accepts default 3.7V/500mA Lithium battery. The charging indicator and charging current setting can be found from the Figure.

B0105IndicatorLight.png

Software

Getting Started ESP32 with Arduino IDE

This chapter shows you how to develop an application for Arducam ESP32 UNO board using Arduino IDE. (Tested on 64 bit Windows 10 machines)

Step1:install Arducam ESP32 support on Windows

1. Starting Download and install the latest Arduino IDE Windows Installer from arduino.cc  Download and install Git from https://git-scm.com  Start Git GUI and run through the following steps: Select Clone Existing Repository:

B0105Figure4.png

Select source and destination: Source Location: https://github.com/ArduCAM/ArduCAM_ESP32S_UNO.git Target Directory: C:/Users/[YOUR_USER_NAME]/Documents/Arduino/hardware/ ArduCAM/ArduCAM_ESP32S_UNO Click Clone to start cloning the repository:

B0105Figure5.jpg


Open C:/Users/[YOUR_USER_NAME]/Documents/Arduino/hardware/ ArduCAM/esp32/tools and double-click get.exe


B0105Figure6.png

When get.exe finishes, you should see the following files in the directory

B0105Figure7.jpg

 Plug your ESP32 board and wait for the drivers to install (or install manually any that might be required)

Step2:Using Arduino IDE

After installation of Arducam ESP32UNO board, you can select this board from the Tool->Board menu. And there several ready to use examples from the File->Examples->ArduCAM. You can use these examples directly or as a starting point to develop your own code.  Start Arduino IDE, Select your board in Tools > Board menu>

B0105Figure8.jpg


 Select the example from File->Examples->ArduCAM

B0105Figure9.6.jpg

 Configure the camera setting You need to modify the memory saver.h file in order to enable OV2640 or OV5642 camera for ArduCAM Mini 2MP or 5MP camera modules. Only one camera can be enabled at a time. The memory saver.h file is located at C:\Users\[YOUR_USER_NAME]\Documents\Arduino\hardware\ ArduCAM \ArduCAM_ESP32S_UNO\libraries\ArduCAM


B0105Figure10.7.jpg


 Compile and uploading Click uploading the example will automatically be flashed to the board.

Demos

There are 4 examples for both 2MP and 5MP ArduCAM mini camera modules.

 ArduCAM_ESP32_ Capture

This example uses HTTP protocol to capture still or video over home wifi network from ArduCAM mini 2MP/5MP and display on the web browser. The default is AP mode, after uploading the demo, you can search the ‘arducam_esp32’and connect it without password.

B0105Figure11.8.jpg



B0105Figure12.9.jpg


If you want to use STA mode, you should change ‘int wifiType = 1’ to ‘int wifiType =0’.The ssid and password should be modified before uploading.



B0105Figure13.10.jpg

After uploading, the board IP address is obtained via DHCP protocol. You can figure out the IP address through the serial monitor as Figure 10 show. The default serial monitor baud rate setting is 115200bps.



B0105Figure14.10.jpg

Finally, open the index.html, input the IP address obtained from the serial monitor then take pictures or videos. The html files are located at C:\Users\[YOUR_USER_NAME]\Documents\Arduino\hardware\ArduCAM\ArduCAM_ESP32S_UNO

\libraries\ArduCAM\examples\ESP32\ArduCAM_ESP32_Capture\html

B0105Figure15.11.jpg
 ArduCAM_ESP32_Capture2SD

This example takes time elapse still photos using ArduCAM mini 2MP/5MP and then stored on the TF/SD card. The LED indicates when the TF/SD card is writing. ArduCAM_ESP32_Cap ture_Demo.avi


B0105Figure16.12.jpg


 ArduCAM_ESP32_Video2SD This example takes motion JPEG video clips using ArduCAM mini 2MP/5MP and then stored on the TF/SD card as AVI format.




 ArduCAM_ESP32_Video2SD

This example takes motion JPEG video clips using ArduCAM mini 2MP/5MP and then stored on the TF/SD card as AVI format.



B0105Figure17.13.jpg
  ArduCAM_ESP32_Sleep

To reduce power consumption,calling the interface function immediately goes into the Deep - sleep mode.In this mode, the chip will disconnect all wi-fi connections and data connections and enter the sleep mode. Only the RTC module will still work and be responsible for the timing of the chip. This demo is suitable for battery power



B0105Figure18.14.jpg



B0105Figure19.15.jpg

Trouble Shooting