I want to use Modbus library in Pico. First of all, I just try ModbusTCP then ModbusSerial. I am trying to use this https://github.com/techbase123/micropython-modbus GitHub source.

When I run the uModBusTcp.py after add other modules, there is an error like ImportError: no module named 'socket in Thonny.

What should I do ? I didn't find to install socket module.

Is there any suggesstion about it ? What should I try ?

  • 1
    But uModBus is for ESP32 only.
    – tlfong01
    Apr 6, 2021 at 14:21
  • 1
    Thanks for your answer, I realize that pi pico has no wi-fi. So, I just use modbusRTU with pi pico.
    – noobinmath
    Apr 6, 2021 at 21:17


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.