Control Aten 1922M KVM over serial using Raspberry PI Pico
- Raspberry PI Pico
- Aten CS1922M KVM
- 3.3V TTL to RS232 adapter
- SSD1306 OLED display
- 2 buttons
- 1 cable to connect to KVM serial port (RJ10 male)
Here's how to connect the components:
- GPIO 2 (SDA) to SDA on the OLED display
- GPIO 3 (SCL) to SCL on the OLED display
- GND to GND on the OLED display
- VBUS (5V) to VCC on the OLED display
- GPIO 0 to one leg of Button 1, and the other leg to GND
- GPIO 1 to one leg of Button 2, and the other leg to GND
- GPIO 4 (TX) to RX on the adapter
- GPIO 5 (RX) to TX on the adapter
- GND to GND on the adapter
- Connect the RS232 port of the adapter to the RJ10 male cable, which then connects to the KVM serial port.
Please note that the GPIO numbers are based on the machine.Pin
numbers used in the main.py
script. Make sure to adjust these numbers if you've used different pins in your setup.
Thank you Kert for the advice and all the help!