Serial Module to UART Connection with Pico H (MicroPython) and Pico H/LoRa (Meshtastic)

Hi there! I am currently trying to follow your online tutorial for how to get a simple radio connection going to send custom sensor data. My setup right now includes a Pico H flashed with the MicroPython firmware and has the following main.py file in Thonny.

from machine import Pin, UART
import time

led = Pin("LED", Pin.OUT)
uart = UART(1, baudrate = 115200, tx=Pin(8), rx=Pin(9))

while True:
    led.value(1)
    time.sleep(2)
    
    uart.write("Sent")
        
    led.value(0)
    time.sleep(2)

From this I think I’m safe to unplug the Pico from my mac and connect to a wall charger (this seems to be working as I can see the LED flashing on and off). As per another thread I was able to properly get Meshtastic firmware flashed onto my second Pico and set it up on the Meshtastic web client using serial module configurations as shown in the image.

The only other settings I changed on Meshtastic were the LoRa Radio Config settings using EU_868 and LoRa frequency channel number 1. Given that I connected the TX and RX pins of the Pico’s to GP8 and 9, I’m stuck on how I’m not able to see any messages come through.

This is what my wiring looks like. The top Pico is connected to the wall charger and the second one to my mac. I tried switching the ground wire on both pin 8 and 13 and I still seem to have the same issue with both. I don’t have an Android phone unfortunately so I couldn’t test with the app.

Thank you for reading all of this if you made it all the way here, I tried to give as much context as possible. Any and all help is greatly appreciated!

Hey @Leslie297880

It’s been a while since I’ve used that setup, but I have a funny feeling that the Pico receiving the UART message won’t see it come through in the messaging window you are looking at. If you have another device on the same channel and frequency do you see the messages?

To troubleshoot this I would start by confirming that you have 2 Meshtastic modules that can send and receive messages manually (by typing them in that messaging window) - just so we can eliminate any weird network issues and know it’s an issue somewhere on the UART side.

Let us know how you go!