🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    PoECAM - Building Examples

    Scheduled Pinned Locked Moved Modules
    1 Posts 1 Posters 1.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      nemsys
      last edited by

      Just a heads up for anyone trying to build the PoeCAM examples or the Ethernet examples.

      Ensure the board is set to M5Stack-Timer-CAM not PoE CAM.

      Additionally the Ethernet-Stream example needs the network.h header lines 16-17 altered as below else it will not compile

      static ip4_addr_t ip_addr; // For platform = espressif32@ ^3.5.0
      //static esp_ip4_addr_t ip_addr; // For platform = espressif32@ ^5.1.0
      

      Ardunio Studio v2 (linux)

      boards package
      esp32 v1.06 boards

      libs
      PoECam lib v0.0.2
      PoECAM ethernet lib v3

      Ext_PIN_1 is at GPIO 33 a simple example of polling a PIR sensor is below :

      #include <Arduino.h>
      
      void setup() {
         
         pinMode(33, INPUT_PULLUP);
         Serial.begin(115200);
      }
        
      void loop() {
      
         Serial.println(digitalRead(33));
         delay(1000);
      }
      

      not a 100% sure about the pull-up resistor but I have a vague feeling I read it somewhere, and well it works.

      If anyone knows any other helpful tips, links to examples etc please reply to this thread I am by no means an expert !

      maybe we can get it stickyed or add to the documentation

      1 Reply Last reply Reply Quote 1

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post