Page 1 of 1

Raspberry Pi Pico micropython ModbusRTU

Posted: Wed Apr 07, 2021 11:23 am
by aslihansimsek
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.

Re: Raspberry Pi Pico micropython ModbusRTU

Posted: Wed Apr 07, 2021 4:35 pm
by pythoncoder
Try a forum search on Modbus.

Re: Raspberry Pi Pico micropython ModbusRTU

Posted: Thu Apr 08, 2021 1:25 pm
by aslihansimsek
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