| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| README.md | < 23 hours ago | 1.5 kB | |
| Rpi_Pico_RS485_switch.jpg | < 23 hours ago | 74.7 kB | |
| RPI_switch_485_release.zip | 2026-11-19 | 4.1 kB | |
| Totals: 3 Items | 80.3 kB | 1 |
RPI Pico - switch Key features:
Send / read data over USB and RS485 serial link ( 115200 bps USB / 2400 bps RS485 )
- 6 output channels
- 3 digital input
- 3 analog input
- 3 temperature channels ( DS18B20 )
- accepts multiple command at once
Commands examples
- A1 enable port A (ports names: A / B / C / D / E / F )
- A0 disable port A(ports names: A / B / C / D / E / F )
- ?? read ports status ( current status for output ports and currente status input ports )
- WW pause 500 msec between commands
- V? read analog ports ( range [0:4095] for each port ), comma separated values
- T? read temperature sensors in C°, if presents, otherwise read as 0 ), comma separated values
- XX firmware version
- multiple commands on same line “A1C0WWC1??T?V?” --> “enable A, disable C, pause 500msec, enable C, read status, read temperature, read voltage”
- all commands lines terminated by NL / CR
Note:
- input / output channels are easy to add / delete, just play with the code
- 3.3V maximum input on analog channels ( you’ve been warned! )
- over RS485 change datarate at your choice, paying attention at the connection lenght.
As a rule of thumb, the speed in bit/s multiplied by the length in meters should not exceed 10^8.
Thus a 50-meter cable should not signal faster than 2 Mbit/s. Slower it’s safer ;-)
Issues
- None at the moment, but just in case, email to i3vfj {at} i3vfj.net