Raspberry Pi Pico micropython ModbusRTU

RP2040 based microcontroller boards running MicroPython.
Target audience: MicroPython users with an RP2040 boards.
This does not include conventional Linux-based Raspberry Pi boards.
Post Reply
aslihansimsek
Posts: 2
Joined: Mon Apr 05, 2021 7:45 pm

Raspberry Pi Pico micropython ModbusRTU

Post by aslihansimsek » Wed Apr 07, 2021 11:23 am

Hey,

I wan't to use modbus library in pico. First of all, I just try ModbusSerial. I am trying to use this https://github.com/techbase123/micropython-modbus github source.
To start I want to write a simple number using modbus poll, pi pico is connected to my computer via usb. Can I read the value I wrote directly from the computer via modbus without using any transmitter?
I want to use serial communication used at https://github.com/pycom/pycom-modbus/b ... er/main.py but it mentions uart pins.
I am beginner. How can I send data with using modbusRTU micropython on pico. Is there any suggestion or example library for that ? Additionally, I don't know how connection should be? Should I use transreceiver or sth like that or usb port enough for reading this datas with modbus poll on windows.

User avatar
pythoncoder
Posts: 5092
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Raspberry Pi Pico micropython ModbusRTU

Post by pythoncoder » Wed Apr 07, 2021 4:35 pm

Try a forum search on Modbus.
Peter Hinch

aslihansimsek
Posts: 2
Joined: Mon Apr 05, 2021 7:45 pm

Re: Raspberry Pi Pico micropython ModbusRTU

Post by aslihansimsek » Thu Apr 08, 2021 1:25 pm

pythoncoder wrote:
Wed Apr 07, 2021 4:35 pm
Try a forum search on Modbus.
I am beginner and it is hard to understand these many informations. I spent many times and still there is no solution. I just want to read or write data with using micropython modbus in pi pico. So, I don't know how can I send data with using only usb cable connected to pi pico ? In the code sample, there is a class which taking parameters as pins, what are actually pins? May you help me about this? Any suggestions or any ideas do you have? Thanks

Post Reply