Because the logic is inverted, you write LOW to turn the relay on .
What or status indicator do you see when you plug the board in?
⚠️ If your HW-597 has 4 pins (VCC, GND, SDA, SCL) and two visible LEDs, you likely have an optical sensor. If it has 6+ pins or a motor terminal block, stop and check your vendor’s datasheet. hw-597 driver
: Compact and low-power, it includes standard pins like RXD, TXD, GND, and VCC for easy integration.
# Turn ON relay 2 (LOW) GPIO.output(RELAY2, GPIO.LOW) time.sleep(1) GPIO.output(RELAY2, GPIO.HIGH) time.sleep(1) Because the logic is inverted, you write LOW
the appropriate file for your operating system from the links above. the folder (if applicable) and run the installer (e.g., on Windows). Click "Install" and wait for the "Driver install success" message. Connect the HW-597 to your computer. Device Manager (Windows) or type ls /dev/tty*
Open Device Manager and expand "Ports (COM & LPT)". You should see a "USB-SERIAL CH340 (COMx)" entry. If it has 6+ pins or a motor
Unlike simple LED modules, the HW-597's inputs are .
If your IDE cannot communicate with the board, add your user profile to the dialout group by executing: sudo usermod -a -G dialout $USER Use code with caution. Log out and log back in for changes to take effect. 4. Troubleshooting Common HW-597 Driver Issues
Download the driver from the WCH official website or a reputable microcontroller vendor site.
Open a basic sketch like Blink ().