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 8.3k 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

      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 Reply Quote 0
      • S Offline
        sdetweil @s.monti.74
        last edited by

        @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

          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 Reply Quote 0
          • S Offline
            sdetweil @s.monti.74
            last edited by

            @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

              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 Reply Quote 0
              • S Offline
                s.monti.74 @sdetweil
                last edited by

                @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 Reply Quote 0
                • S Offline
                  sdetweil @s.monti.74
                  last edited by

                  @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

                    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 Reply Quote 0
                    • S Offline
                      sdetweil @s.monti.74
                      last edited by

                      @s-monti-74 said in Serial Comunication with Arduino:

                      MMM-ProfileSwitcher

                      so, you would lookup the profile name from the rfid tag, and send a messge for that profile

                      from the MMM-ProfileSwitcher readme

                      this.sendNotification('CURRENT_PROFILE', 'DESIRED_PROFILE_NAME_HERE');
                      

                      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 @s.monti.74
                        last edited by

                        @s-monti-74 so, once again, what code running on the pi gets the rfid value?

                        python script or ???

                        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

                          no code runs on the pi to get the value, the value is read from arduino from the tag and arduino sends the value to the pi via serial. i don’t know which module of magic mirror I have to use to read that value and use it as a notification to switch the profile with MMM-ProfileSwitcher

                          1 Reply Last reply Reply Quote 0
                          • S Offline
                            sdetweil
                            last edited by

                            ok, got it… you don’t KNOW if you got it in the pi yet…

                            this module should work for you

                            https://github.com/Tom-Hirschberger/MMM-Serial-Notifications

                            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

                              thanks a lot sdetweil

                              S 1 Reply Last reply Reply Quote 0
                              • S Offline
                                sdetweil @s.monti.74
                                last edited by

                                @s-monti-74

                                I think the module will read the serial port , and map that to some notification for other modules

                                devices: {
                                        '/dev/ttyACM0': {
                                          messages: {
                                            'Gesture: UP': [    < ---- message it reads from serial port (in your case rfid tag value)
                                

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                S 1 Reply Last reply Reply Quote 1
                                • S Offline
                                  s.monti.74 @sdetweil
                                  last edited by

                                  @sdetweil YESSSS It works has I want, thanks again

                                  S 1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    sdetweil @s.monti.74
                                    last edited by

                                    @s-monti-74 way cool congrats!

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    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
                                    • 1 / 1
                                    • 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