Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    sending data from Arduino with LoPy to GUI (Visual Basic/VB.Net)

    Scheduled Pinned Locked Moved Discussion
    arduinoiotlopyguivbnet
    5 Posts 2 Posters 1.5k Views 2 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.
    • F Offline
      Fajriansyah
      last edited by

      Hello I'm newbie here
      I want to send my data from arduino and display it to my GUI that I use is visual basic with LoPy and then data will save in my database (mysql). Can someone explain me what I must to do and the code to send data from arduino to LoPy and to my GUI?
      Thankyou

      sebS 1 Reply Last reply Reply Quote 0
      • sebS Offline
        seb @Fajriansyah
        last edited by

        @fajriansyah

        Hi,

        Firstly could you explain the purpose of the arduino in this system? It's quite likely that it is not required and you can program the lopy to directly perform the required actions. Secondly there are many ways you can transfer data from the LoPy to a computer depending on your use case:

        • USB: You can use a usb UART (such as the pycom expansion board/pysense/pytrack) to send data by just using print and then have your GUI application read it from the COM port
        • WiFi: You use sockets to send data between your module and you GUI over your network
        • BLE: You could connect your device to your computer via BLE and have the GUI read the data this way
        • LoRa: If your module is very far away from the computer you could send data via LoRaWAN and then receive the data from the lora network into your GUI e.g. via MQTT
        F 1 Reply Last reply Reply Quote 0
        • F Offline
          Fajriansyah @seb
          last edited by

          @seb I make monitoring solar charger with arduino which is data from solar charger like voltage and current will processed in arduino, and then the data from arduino will communicat with lora to lopy, after that lopy send data to my GUI with wifi.
          p.s: I use 2 LoPy

          sebS 1 Reply Last reply Reply Quote 0
          • sebS Offline
            seb @Fajriansyah
            last edited by

            @fajriansyah

            If you need to send data directly between two lopy modues I recommend you check out the following example code: https://docs.pycom.io/chapter/tutorials/lora/lora-mac-nano-gateway.html

            F 1 Reply Last reply Reply Quote 0
            • F Offline
              Fajriansyah @seb
              last edited by

              @seb thankyou so much 😉

              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

              Pycom on Twitter

              Pycom