Tip: Externi
Povezivanje: USB
Konektori: USB
Features
1. It`s designed with MICRO USB and serial port for communicating with outside. It`s more convenient to connect module with PC and other device.
2. The normal working voltage of this module is 5V.
Interface
Modules are with Micro USB, serial port and TTL serial interface.
Micro USB:Standard micro USB female adapter.( can use the USB extension cord to connect with the PC and the other devices)
TX: Transmit
RX : Receive
5V:Volt current condenser
GND : Ground
How to use it?
1).USB Usage method
Open the `Relay Board Manager` to control the module directly. Please refer the usage of this software to `Relay Board Manager_Reference`.
2)Serial port using method
These modules can use the serial port to connect with other communication devices. These modules can receive the Single-byte instruction from the upper monitor.
Upper Monitor 0x50 0x51
ICSE012A 0xAB
ICSE013A 0xAD
ICSE014A 0xAC
Suggested by our customer:
Here is the way it works, take ICSE012A as an example:
· After the ICSE012A has been connected to PC, if send 0x50 to ICSE012A, it will reply 0xAB.( Relay Board Manager: Tool--Configure)
· Then if you send 0x51 to ICSE012A, it is ready to receive hex code.( Relay Board Manager: Open the Sele)
Actually you can use a software “Bus Hound” to see what the transmission hex codes are and use Python PySerial library to customize the relay actions as well as “Relay Board Manager”.
Python Sample:
import serial
import time
fd=serial.Serial(`COM3`,9600)
time.sleep(1)
fd.write(`x50`)
time.sleep(0.5)
fd.write(`x51`)
def relay_1():
fd.write(`x00`)
time.sleep(1)
fd.write(`x01`)
if __name__ == `__main__`:
relay_1()
These modules will work normally after they receive the `0X51` instruction. The bytes which these modules receive can control the modules directly and every singly byte control one channel of the module( `0` means start, `1`means stop).
Softver za kontrolu saljem na mail.