sending data from Arduino with LoPy to GUI (Visual Basic/VB.Net)
-
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 -
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
printand 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
- USB: You can use a usb UART (such as the pycom expansion board/pysense/pytrack) to send data by just using
-
@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 -
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
-
@seb thankyou so much 😉
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