ArduCAM ESP8266 UNO

From UCTRONICS
Jump to: navigation, search

Introduction

Intro of the picture
attribute1  
value 1
attribute2  
value 2
attribute3  
value 3
attribute4  
value 4
attribute5  
value 5

ArduCAM now released a ESP8266 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 high light this ESP8266 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.

hardware

Features

  • Build in ESP8266-12E Module
  • 11 digital input/output pins, IO ports are 3.3V tolerant
  • 1 analog input(3.2V max input)
  • ArduCAM Mini 2MP/5MP camera interface
  • Lithium battery recharging 3.7V/500mA max
  • Building in SD/TF card socket
  • 7-12V power jack input
  • Build in micro USB-Serial interface
  • Compatible with Arduino IDE


//fsdfjsdlkfjsdkljfldsjflskjflkdsjsfklsjfsdjflksjflksjf sdfkjdsjfsdjkfsdhkjfsfsdf sjkfhsfkjsdhfjdsf sdfjskdfhjdskhjfskfsdfs sfdhkjfhjskfsfsdhfjs this is nonsense //fsdfjsdlkfjsdkljfldsjflskjflkdsjsfklsjfsdjflksjflksjf sdfkjdsjfsdjkfsdhkjfsfsdf sjkfhsfkjsdhfjdsf sdfjskdfhjdskhjfskfsdfs sfdhkjfhjskfsfsdhfjs this is nonsense

Pin Definition

LCD35 SPI.jpg

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.

LCD35 SPI.jpg

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 3.

//form1 //form2

Software

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:

  • ArduCAM ESP8266 UNO Board(x1),
  • ArduCAM Mini 2MP camera module(x1)

Step1:Installing with Boards Manager

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:

http://www.arducam.com/downloads/ESP8266_UNO/package_ArduCAM_index.json

//pic1

Note that the installed package source file is located in the C:\Users\Your computer name\AppData\Local\Arduino15\ folder,here is C:\Users\zk109\AppData\Local\Arduino15\ for example.

Open Boards Manager from Tools ->Board menu and install ArduCAM_ESP8266_UNO addon package.

//pic2 //pic3

Note if you download failed, you need to delete the C:\Users\Your computer name\AppData\Local\Arduino15\ folder, and then restart the Arduino IDE, repeat the above operation. //pic4

Step2:Using Arduino IDE

Step3:Examples

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:

http://www.arducam.com/downloads/ESP8266_UNO/package_ArduCAM_index.json

//PIC


Note that the installed package source file is located in the C:\Users\Your computer name\AppData\Local\Arduino15\ folder,here is C:\Users\zk109\AppData\Local\Arduino15\ for example.

Open Boards Manager from Tools ->Board menu and install ArduCAM_ESP8266_UNO addon package.

//PIC

Note if you download failed, you need to delete the C:\Users\Your computer name\AppData\Local\Arduino15\ folder, and then restart the Arduino IDE, repeat the above operation.

//PIC

 2.Using Arduino IDE After installation of ArduCAM ESP8266 UNO board add-on package, 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. Select ArduCAM_ESP8266_UNO board from Tools->Board menu.

//PIC

Select the example from File->Examples->ArduCAM->ESP8266->ArduCAM_ESP8266_UNO_Capture

//PIC

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 C:\Users\Your computer name\AppData\Local\Arduino15\packages\ ArduCAM_ESP8266_UNO\hardware\ArduCAM_ESP8266_UNO\ 2.2.2\libraries\ArduCAM.

//PIC

3.There are 5 examples for both ArduCAM Mini 2MPand ArduCAM Mini 5MP camera modules. (ArduCAM ESP8266 V1 has been discontinued ).

ArduCAM_ESP8266_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. 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.

//PIC

AP mode: After uploading, the board IP address is 192.168.4.1. You can figure out the IP address through the serial monitor.The default serial monitor baudrate setting is 115200bps.

//PIC

From your PC , go to the WiFi setting page. You should see an Access Point (AP) which the SSID name "arducam_esp8266" on the AP scan result list. Choose the "arducam_esp8266" AP to connect to it. This AP's password is “".


//PIC

Finally, 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 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.

//PIC

Also you can use ArduCAM_Host_V2.0_Windows Host app.You can download it on https://github.com/ArduCAM/Arduino/tree/master/ArduCAM/examples/host_app.

//PIC

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):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

Q1: How to install our ArduCAM ESP8266 UNO board?

A: 1.Go to File->Preferences and add the http://www.arducam.com/downloads/ESP8266_UNO/package_ArduCAM_index.json to Additional Boards Manager URLs. Click OK. 2.Go to Tools->Board:”xxxx”->Boards Manager… Find the ArduCAM_ESP8266_UNO by ArduCAM and install it 3.Go to Tools->Board:”xxxx”->Boards and choose the ArduCAM ESP8266 UNO board; 4.Connect the module to your computer and go to Tools->Port to choose the module com. Then you can choose the demo in the File->Examples->ArduCAM. After choosing the sample in the File -> Example ->ArduCAM folder, click upload to download the demo to your ESP8266 UNO board.

Q2: When download the ArduCAM ESP8266 UNO board, the CRC ERROR?

//PIC

A: You should delete the old version which is in the Arduino15 folder and restart you Arduino IDE. refer to the below picture:


//PIC


Q3: ESP8266 restart?

load 0x4010f000, len 1264, room 16 tail 0 chksum 0x0f csum 0x0f ~ld ArduCAM Start! OV2640 detected.

Share AP: arducam_esp8266 The password is:

192.168.4.1 Server started

Soft WDT reset

ctx: cont sp: 3fff1730 end: 3fff1a70 offset: 01b0

>>>stack>>> 3fff18e0: 00000084 3ffeff88 3fff0928 40206041 3fff18f0: 00000041 3ffeff88 3fff0928 402060d8 3fff1900: 00000001 00000001 00000008 40206100 3fff1910: 3ffe948a 3fff1970 3fff1970 4020611c 3fff1920: 00000001 00000001 3ffeff88 40202a9c 3fff1930: 3ffe9510 00000000 000003e8 3fff09f0 3fff1940: 3ffeffb8 3fff237c 3fff1e44 0000004f 3fff1950: 0000004c 3fff19b0 3fff19b0 40206d50 3fff1960: 3fff1f4c 00000007 3fff19b0 40206d9f 3fff1970: 3fff09f0 00000070 00000070 402045a8 3fff1980: 00000001 00000001 3fff1dc4 4020761a 3fff1990: 00000000 00000000 3fff1dc4 4020459e 3fff19a0: 3fff1dc4 3ffeffd4 3fff1dc4 402045da 3fff19b0: 00000000 00000000 00000000 40206f00 3fff19c0: 3fff1dc4 3ffeffd4 3ffeff94 40204669 3fff19d0: 3fff1f4c 0000000f 00000007 40203680 3fff19e0: 3ffeffd4 00000000 3fff0a50 00000001 3fff19f0: 00000001 40203c10 00000010 3fff0a50 3fff1a00: 00000000 00000000 3ffeff94 3fff0a3c 3fff1a10: 00000001 3ffeffb8 3ffeff94 402048cf 3fff1a20: 3ffe9510 00000000 000003e8 40207610 3fff1a30: 00000000 3fff237c feefeffe feefeffe 3fff1a40: 3fffdad0 00000000 3fff0a34 40202758 3fff1a50: 3fffdad0 00000000 3fff0a34 402074e8 3fff1a60: feefeffe feefeffe 3fff0a50 40100718 <<<stack<<<

ets Jan 8 2013,rst cause:2, boot mode:(1,6)

ets Jan 8 2013,rst cause:4, boot mode:(1,6)

wdt reset


A:If you have this problem,Firstly, you should check your SPI interface and i2c interface.If they work fine, you can try add some yield(); in your code.

Q4: Can't connect WIFI?

A:In our ArduCAM ESP8266 capture demo,the default mode is AP mode, when it work fine,you will see the below content in the serial port. "Share AP: arducam_esp8266 The password is: 192.168.4.1 Server started" You should search and connect the arducam_esp8266. If you want to work in station mode.just set the wifiType = 0.Then you should put your ssid and password. "const char* ssid = "SSID"; // Put your SSID here const char* password = "PASSWORD"; // Put your PASSWORD here"

Q5: Can't find the serial device number?

A: Please ensure you have install the CH340 driver on your PC.If haven't installed, you can download it from https://github.com/UCTRONICS/Drivers/raw/master/CH34x/CH341SER.EXE

Then install it .

Q6: Can't get the higher frame rate?

A: This has a lot to do with controller performance and our camera's SPI speed.