Code Monkey home page Code Monkey logo

az-touch-esp_video's Introduction

AZ-Touch-ESP-Video

This is an example how to use AZ-Touch MOD for ESP32 to show live pictures of an IP camera on the screen. This can be used for example for video surveillance, video door bells and similar applications.

My image

Watch the video

Hardware

I've used our AZ-Touch MOD kit for ESP32 as hardware plattform. This kit comes with a 2.4 or 2.8 inch tft touchscreen. The demo will work with both screen sizes, but of course it makes more sense to use the bigger 2.8 inch screen in this application.

My image

You can find all information about the hardware here: https://www.hwhardsoft.de/english/projects/arduitouch-esp/

Camera

This example was written for the ESP32-CAM camera. My image

Please install the CameraWebServer example on the ESP32-cam which comes with the Arduino IDE. My image

Please choose "ESP Wrover Module" as board and "Huge APP ..." as partition scheme: My image

The software can be used with other IP cameras too if this cameras can provide a jpg picture via http in QVGA (320 x 240) or VGA (640 x 480) size. Probably some small changes especially in the host address configuration are needed in this case.

Libraries

Install the following libraries through Arduino Library Manager

Arduino TFT_eSPI Library https://github.com/Bodmer/TFT_eSPI

Arduino TJpg_Decoder library https://github.com/Bodmer/TJpg_Decoder

You can also download the library also directly as ZIP file and uncompress the folder under yourarduinosketchfolder/libraries/

After installing the libraries, restart the Arduino IDE.

TFT_eSPI Setup

I've prepared a User setup files for the TFT_eSPI library especially for AZ-Touch and ESP32

https://github.com/HWHardsoft/AZ-Touch-ESP_Video/blob/main/TFT_eSPI_Setup/User_Setup.h

Please replace the original User_Setup.h file in your ...\Arduino\libraries\TFT_eSPI\ folder

Settings

Open the file settings.h in the Arduino IDE and enter your WiFi SSID & password in the fields in the WiFi section:

const char* ssid = "your ssid"; const char* password = "your password";

Furthermore you have to change the host ip address to the ip address of your camera.

const char* host = "192.168.178.40";

Credits

This example based on the awesome work of:

License

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

az-touch-esp_video's People

Contributors

hwhardsoft avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.