HM10 and Pico

Posted on
  • Hi; just received my HM10 BLE module, and I'm getting this error when trying to use A3 / A2 as RX/TX

    ERROR: Pin A3 is not capable of USART RX
    Suitable pins are:
    A10 B7
    

    when the image on the pico clearly says those are available.
    The thing is that B7 and B6 is taken for my NFC module atm.

    How can i make it use the USART2 ?
    Also, not sure about the other wirings, so I've only connected gnd/vcc/rx/tx for now, to see if i can get it working or not, I've only had it for ~20 min

  • Are you using Serial1.setup() instead of Serial2.setup()?

  • Yes, I am using Serial1.

    I2C1.setup({scl: B6, sda: B7}); // NFC module
    Serial1.setup(9600, { rx: A3, tx : A2 }); // BLE module
    

    e; will try both when i get back home;
    e2; while thinking about it a bit closer, the error might have came up when i tried Serial2, because Serial1 wasn't giving me any response.

  • Ok, now I've confirmed that, Yes, that does happen on Serial1, While Serial2 give undefined.

    e; Wowsers! Serial2 responded! :D

  • You should use Serial2, sorry if I was unclear.

    Successful Serial/Serialx.setup() return undefined, so it's expected to see that after successfully calling Serial.setup() from the console

  • Anyone know what state / brk is for>?

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

HM10 and Pico

Posted by Avatar for Deas @Deas

Actions