DFRobot TEL0070 Посібник - Сторінка 3

Переглянути онлайн або завантажити pdf Посібник для Робототехніка DFRobot TEL0070. DFRobot TEL0070 6 сторінок. Multi usb/rs232/rs485/ttl converter

7/10/2014
STEP 3: Program a sample code for your Arduino UNO
?
1
void setup()
2
{
3
Serial.begin(115200);
4
}
5
void loop()
6
{
7
if(Serial.available()){
8
Serial.write(Serial.read());
9
}
10
}
STEP 4: Send and Receive data
We need a serial monitor for monitoring data. There're lots of good tools like putty,CoolTerm and so on.In this case, we
choose CoolTerm (http://freeware.the-meiers.org/) to do this.
Please set the baud rate to 115200 bps and com port.Back to the main interface, click Connection--Send String, the
following dialog will open.
You can send the string in this dialog. The string received can be showed in the other port(UNO port).
http://www.dfrobot.com/wiki/index.php/Multi_USB/RS232/RS485/TTL_Converter_(SKU:TEL0070)
Multi USB/RS232/RS485/TTL Converter (SKU:TEL0070) - Robot Wiki
3/6