Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. fly4fun
    F
    • Continue chat with fly4fun
    • Start new chat with fly4fun
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    fly4fun

    @fly4fun

    0
    Reputation
    9
    Posts
    863
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    fly4fun Follow

    Posts made by fly4fun

    • RE: Driving dozens of sensors and relays on Core2 plus a temperature sensor

      for benefit of community, I could solve myself: changed Onewire.h line 134 from addr to addr2. And it works 🙂

      posted in Core 2
      F
      fly4fun
    • Driving dozens of sensors and relays on Core2 plus a temperature sensor

      I am creating an exciting application where I need to read many sensors and also drive many relays. Also I need a Temperature sensor. and all on Core2.
      Now I succeeded to run PAHUB together with ExtIO2 so I can read many sensors and drive many relays...which is great!
      However, when I want to include a DS18B20 temperature sensor, I need the OneWire library. But when I add this library it throws errors below.
      What do I need to do to make it work?

      ============================
      #include <M5Core2.h>
      #include "ClosedCube_TCA9548A.h"

      #include "UNIT_4RELAY.h"
      UNIT_4RELAY relay;

      #include "M5_EXTIO2.h"
      M5_EXTIO2 extio;
      #include <OneWire.h>

      ========================================================================
      errors after compiling:

      In file included from /home/pi/Arduino/PAHUB_4RELAY/PaHUB_4RELAY/PaHUB_4RELAY.ino:19:
      /home/pi/Arduino/libraries/UNIT_4RELAY/src/UNIT_4RELAY.h:6:14: error: expected ',' or '...' before numeric constant
      #define addr 0X26
      ^~~~
      /home/pi/Arduino/libraries/OneWire/OneWire.h:134:40: note: in expansion of macro 'addr'
      static uint8_t crc8(const uint8_t *addr, uint8_t len);
      ^~~~

      posted in Core 2
      F
      fly4fun
    • RE: Got extio2 running on Core2?

      Felix, you are a star! Now digital outputs and digital inputs are working. Only thing is, I always get returncode 1 back for all extio.x calls so not sure what this one left is?

      posted in Core 2
      F
      fly4fun
    • Got extio2 running on Core2?

      Didn’t find examples for how to use extio2 on Core2? Anyone can help?

      posted in Core 2
      F
      fly4fun
    • RE: Log events on SD card and OneWire

      @felmue thank you Felix, that is very helpful and explains. Will check out other pin. Thanks!

      posted in M5stack Grey
      F
      fly4fun
    • Log events on SD card and OneWire

      I am using OneWire on Pin19 as digital inputs 1,2,3,5,16,17 used. Now I see conflict when initializing SD card. Is File management / SD card management also using Pin 19? Other pin I could use beyond those occupied already?

      posted in M5stack Grey
      F
      fly4fun
    • RE: M5stack and DS18B20

      @felmue thank you very much for your help!

      posted in M5stack Grey
      F
      fly4fun
    • M5stack and DS18B20

      I wanted to measure temperatures with DS18B20 and M5stack using OneWire. Which pin do I need to connect the DATA wire (yellow)?

      posted in M5stack Grey
      F
      fly4fun