• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Serial Comunication with Arduino

Scheduled Pinned Locked Moved Requests
19 Posts 3 Posters 7.0k Views 3 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.
  • S Offline
    s.monti.74
    last edited by Apr 29, 2019, 6:26 PM

    @Radek said in Serial Comunication with Arduino:

    MMM-Gestur

    Hi I have a similar need
    I wan’t to send notifications to Magic Mirror (to switch the profile) using an RFID sensor connected to an Arduino
    If I pass my personal tag near the RFID sensor connected to the Arduino, I want to switch the profile of magic Mirror
    Does anyone know if is possible to use the serial comunication in this way from arduino and RPi ?

    1 Reply Last reply Reply Quote 0
    • S Offline
      sdetweil
      last edited by Apr 29, 2019, 6:41 PM

      sure… serial is serial…

      arduino - write

      https://www.arduino.cc/en/serial/write
      

      pi - read (using on.data event)
      in node_helper.js

      https://github.com/nebrius/raspi-serial
      

      then the ‘on data’ event can signal the module if needed,
      with sendsocketnotification()

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 1
      • S Offline
        s.monti.74
        last edited by Apr 29, 2019, 7:59 PM

        so I abandon the idea of ​​using the arduino outputs (reduced to 3.3 volts) in the GPi input of the RPi and the mmm-buttons module?
        thank you very much

        S 1 Reply Last reply Apr 29, 2019, 8:46 PM Reply Quote 0
        • S Offline
          sdetweil @s.monti.74
          last edited by Apr 29, 2019, 8:46 PM

          @s-monti-74 yeh, just do serial communications…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • S Offline
            s.monti.74
            last edited by s.monti.74 May 12, 2019, 1:17 PM May 12, 2019, 1:16 PM

            HI sdetweil, thanks
            I have connected my Arduino to RPi with USB cable and I read (on Arduino values of RFID tags) on the Serial monitor of Arduino IDE installed on my RPI
            Now I don’t understand which MMM Magic Mirror module I have to use to manage serial datas that I receive from Arduino

            thanks a lot
            bye

            S 1 Reply Last reply May 12, 2019, 2:19 PM Reply Quote 0
            • S Offline
              sdetweil @s.monti.74
              last edited by May 12, 2019, 2:19 PM

              @s-monti-74 I think u will have to create your own module

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil
                last edited by May 12, 2019, 2:22 PM

                How did u implement the pi side? Python?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                S 1 Reply Last reply May 12, 2019, 2:46 PM Reply Quote 0
                • S Offline
                  s.monti.74 @sdetweil
                  last edited by May 12, 2019, 2:46 PM

                  @sdetweil
                  mmmmmm… I’m using some MMM modules installed on my mirror, hoping that there is a module like MMM-ArduPort that I can use for my purpose
                  :flushed_face:

                  S 1 Reply Last reply May 12, 2019, 4:16 PM Reply Quote 0
                  • S Offline
                    sdetweil @s.monti.74
                    last edited by May 12, 2019, 4:16 PM

                    @s-monti-74 wht do you want to do with the rfid tag value? besides display it? use it as a profile id?

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      s.monti.74
                      last edited by May 12, 2019, 4:45 PM

                      Yes I want’t su use the tags as a profile ID and manage modules with MMM-ProfileSwitcher.

                      so all the members of my family (each in possession of his tag), can have custom modules

                      thank you very much for your advices

                      S 2 Replies Last reply May 12, 2019, 8:50 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy