KS0406 keyestudio RS232 to TTL Conversion Shield Compatible with Arduino: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[image:ks0406.png|thumb|350px|right|Keyestudio RS232 to TTL Conversion Shield Compatible with Arduino]]


[[image:ks0406.png|thumb|300px|right|Keyestudio RS232 to TTL Conversion Shield]]
<br>
==Description ==
==Description ==
The RS232 to TTL conversion shield is specially designed for UNO R3 control board, very convenient to change the serial port into RS232 interface.<br>
The RS232 to TTL conversion shield is specially designed for UNO R3 control board, very convenient to change the serial port into RS232 interface.<br>
The shield comes with a DB9 connector(male head), easy to connect various RS232 interface equipment. It also comes with a RS232 pin header for connection and debugging.<br>
The shield comes with a DB9 connector(male head), easy to connect various RS232 interface equipment. It also comes with a RS232 pin header for connection and debugging.<br>
It even comes with soldering area for DIY design, so you can make full use of this shield. On the shield there is a programming mode control switch; turn OFF for burning the program to UNO R3; turn ON for normal use.  
It even comes with soldering area for DIY design, so you can make full use of this shield. On the shield there is a programming mode control switch; turn OFF for burning the program to UNO R3; turn ON for normal use.  
<br>[[Image:Ks0406-00.png|600px|frameless]]<br>


 
<br>
==Technical Details==
==Technical Details==
* Power supply: DC 5V
* Power supply: DC 5V
Line 14: Line 17:
* Comes with transmitting, receiving indicator and D13 indicator
* Comes with transmitting, receiving indicator and D13 indicator
* DB9 connector(male head)、RS232 pin headers
* DB9 connector(male head)、RS232 pin headers
* Soldering ares
* Soldering area
* Comes with a Reset button
* Comes with a Reset button
* Dimensions: 60*53.4MM
* Dimensions: 60*53.4MM
Line 20: Line 23:


<br>
<br>
==Interface Explanation==
==Interface Explanation==
<br>[[Image:ks0406-1.png|800px|frameless]]<br>
<br>[[File:0406000.png|800px|frameless]]<br>


<br>
<br>
==Hookup Guide==
==Hookup Guide==
<br>[[Image:ks0406-2.png|800px|frameless]]<br>
<br>[[Image:ks0406-2.png|800px|frameless]]<br>
Line 48: Line 53:
   }
   }
}
}
<pre>
</pre>
 


<br>
<br>
==Test Result==
==Test Result==
Stack the shield onto UNO R3 board, and connect the UNO R3 control board to your computer using a USB cable. Then connect the shield with RS232 serial port cable. Turn the switch OFF, begin to burn the test program.<br>
Stack the shield onto UNO R3 board, and connect the UNO R3 control board to your computer using a USB cable. Then connect the shield with RS232 serial port cable. Turn the switch OFF, begin to burn the test program.<br>
<br>
Programmed success, turn the switch ON, and open the [https://drive.google.com/open?id=1vmVS9VmgC4v6KWGTVrXIuwDXtBfpxImN  serial debugging tool ], select the proper Port COM1 (<span style="color: red"> note the baud rate should set to 9600</span>).<br>
Data sending window will show “V” , and receiving window will show “OK”. You should see the built-in TX1 and RXD indicator flashing on. Each time send the “V”, onboard L light turns on, send again, the L light will turn off, repeatedly. <br>
<br>[[Image:图片-0406.png|700px|frameless]]<br>


Programmed success, turn the switch ON, and open the serial debugging tool, select the proper Port COM1 (<span style="color: red"> note the baud rate should set to 9600</span>).<br>
<br>
Data sending window will show “V” , and receiving window will show “OK”. You should see the built-in TX1 and RXD indicator flashing on. Each time send the “V”, onboard L light turns on, send again, the L light will turn off, repeatedly. <br>
 
==Resources==
 
https://fs.keyestudio.com/KS0406
 
 
<br>
 
==Buy From==
*[https://www.keyestudio.com/keyestudio-rs232-to-ttl-conversion-shield-p0518.html  '''Official website''' ]
 
*[https://www.aliexpress.com/store/product/keyestudio-RS232-to-TTL-Conversion-Shield-Board-For-Arduino-UNOR3-Compatible-with-RS232-Interface/1452162_32984723545.html?spm=2114.12010615.8148356.1.369c7401esxRrJ      '''Shop on aliexpress''' ]
 
 
 
 
[[Category:Shield ]]

Latest revision as of 11:54, 6 January 2021

Keyestudio RS232 to TTL Conversion Shield


Description

The RS232 to TTL conversion shield is specially designed for UNO R3 control board, very convenient to change the serial port into RS232 interface.
The shield comes with a DB9 connector(male head), easy to connect various RS232 interface equipment. It also comes with a RS232 pin header for connection and debugging.
It even comes with soldering area for DIY design, so you can make full use of this shield. On the shield there is a programming mode control switch; turn OFF for burning the program to UNO R3; turn ON for normal use.
Ks0406-00.png


Technical Details

  • Power supply: DC 5V
  • Comes with 16 digital IO pins(with an I2C pin)
  • Comes with 6 analog IO and power
  • Comes with a run/programming switch
  • Comes with transmitting, receiving indicator and D13 indicator
  • DB9 connector(male head)、RS232 pin headers
  • Soldering area
  • Comes with a Reset button
  • Dimensions: 60*53.4MM
  • Environmental properties: ROHS


Interface Explanation


0406000.png


Hookup Guide


Ks0406-2.png


Test Code

int led = 13;    // define LED pin
void setup()
{
  Serial.begin(9600);    //initialize the serial port
  pinMode(led,OUTPUT);
}
void loop()
{
  int temp;    //temporary cache of serial data 
  if(Serial.available())    //if serial port receives the data
  {
    temp=Serial.read();    //save the received data
     if(temp=='V'){
      digitalWrite(led,1-digitalRead(led));    //if received data is the character“V”, change the LED state.
    Serial.println("OK");    //reply OK,means that the character“V” has been received and the LED state changed
     }
  }
}



Test Result

Stack the shield onto UNO R3 board, and connect the UNO R3 control board to your computer using a USB cable. Then connect the shield with RS232 serial port cable. Turn the switch OFF, begin to burn the test program.

Programmed success, turn the switch ON, and open the serial debugging tool , select the proper Port COM1 ( note the baud rate should set to 9600).
Data sending window will show “V” , and receiving window will show “OK”. You should see the built-in TX1 and RXD indicator flashing on. Each time send the “V”, onboard L light turns on, send again, the L light will turn off, repeatedly.

图片-0406.png


Resources

https://fs.keyestudio.com/KS0406



Buy From