GithubHelp home page GithubHelp logo

jackrobotics / ethernetspi2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arhi/ethernetspi2

0.0 1.0 0.0 48 KB

Allow ESP32-CAM module to talk to W5500 Ethernet module trough HSPI as SPI (VSPI) pins are used to connect the camera module

C++ 94.90% C 5.10%

ethernetspi2's Introduction

Ethernet Library for ESP32-CAM using HSPI interface and W5500 module

Allow ESP32-CAM module to talk to W5500 Ethernet module trough HSPI as SPI (VSPI) pins are used to connect the camera module

How to use

Check out examples/ESP32EthCamera.ino as it initializes the W5500, listens on port 80 and sends the JPG stream from the camera directly to the web client

Assembled from

  • Arduino Ethernet library v2.0.0

  • ESP32-CAM example "CameraWebServer"

This is mostly copy/paste and search/replace, there’s nothing "smart" done here. Ethernet library is search/replace to not use SPI but SPI2 and I renamed W5100 to W5500 (mostly so I’m sure I’m using the right one) and I initialized SPI2 as HSPI. The example .INO file is adapted to use this library and send jpeg stream.

Licence

  • My work - public domain / unlicence

  • Their work - Whatever is copied from those two is whatever their licence is

Hardware

  • ESP32-CAM AI-Thinker module (changing the CAMERA PINS should work with any other esp32-cam, but I have not tested)

  • W5500 Ethernet module (I removed the pieces for 5100 and 5200 from the library as I don’t need them)

Connection

  • GPI0 to GND and then reset to program

  • GPI1 and GPI3 to your TX, RX uart for programming

  • You need to disable power to the W5500 in order to program ESP32 (no idea why)

  • ESP32-CAM → W5500

  • GPIO12 → MISO

  • GPIO13 → MOSI

  • GPIO14 → SCLK

  • GPIO2 → SCS

  • GND → GND

I am powering both from same externam 5V source

Since GPIO2 is used for chip select this should not affect SD card operations as SD card is also using HSPI spi interface

Original data:

Ethernet Library for Arduino

With the Arduino Ethernet Shield, this library allows an Arduino board to connect to the internet.

For more information about this library please visit us at http://www.arduino.cc/en/Reference/Ethernet

License

Copyright (c) 2010 Arduino LLC. All right reserved.

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.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

ethernetspi2's People

Contributors

arhi avatar

Watchers

 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.