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

    Need to make an alarm sound when temp rises on the M5core2

    Scheduled Pinned Locked Moved Arduino
    3 Posts 2 Posters 1.8k Views 1 Watching
    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.
    • I Offline
      ioamas
      last edited by

      Hello
      I am trying for a whole day now to make a simple alarm sound when the temp measured by a sensor pass 85 degrees.
      tried all the demo codes but none works.
      Only one works with M5unified but it conflicts with my other libs
      '''#include <M5Core2.h>
      #include <Module_4RELAY.h>
      #include <OneWire.h>
      #include <DallasTemperature.h>
      #include <M5_ACSSR.h>'''
      PLEASE HELP anybody just a small piece of code for a alarm sound on the M5core2

      robskiR 1 Reply Last reply Reply Quote 0
      • robskiR Offline
        robski @ioamas
        last edited by

        @ioamas what is your code?

        M5StickC, M5StickCPlus, M5StickCplus2,M5GO, M5Core, M5Tough, M5Core2, M5 Demo Board, M5Dial, M5Paper, M5Atom, M5Cardputer, M5StampS3, CoreMP135, StamPLC, AirQ, M5Tab, M5CardputerAdv, M5StackChan

        I 1 Reply Last reply Reply Quote 0
        • I Offline
          ioamas @robski
          last edited by

          @robski
          I am not sure about your question - are you asking about the main code or the sound making code?
          I have tried a lot of different approaches to get an alarm sound but nothing worked. Last try was with https://github.com/Hagtronics/M5Stack-Core2/tree/main/Sound
          but with no success.
          I just need any working piece of code that makes a beep sound and I will add it to my main code.

          1 Reply Last reply Reply Quote 0

          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