Arduino: USB Serial TTL Converter

From OnnoCenterWiki
Revision as of 14:01, 5 May 2020 by Onnowpurbo (talk | contribs) (Created page with "Sumber: https://gist.github.com/wmhilton/6034455 /* * Arduino Serial Bypass - use an Arduino as a dumb USB 2 Serial Converter * * This code makes the Arduino not inte...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Sumber: https://gist.github.com/wmhilton/6034455


/*
 * Arduino Serial Bypass - use an Arduino as a dumb USB 2 Serial Converter
 *
 * This code makes the Arduino not interfere with pins 0 and 1
 * which are connected to RX and TX on the FTDI chip. This allows
 * the data coming from the FTDI USB 2 Serial chip to flow directly
 * to another device. Since RX and TX are labeled from the Arduino's
 * point of view, don't cross the wires, but plug the device's 
 * RX wire into the RX pin 0 and the TX wire into the TX pin 0.
 *
 * Because this is a direct hardware connection, high baud rates
 * like 115200 are not a problem like they are with SoftwareSerial.
 *
 * Credit goes to "ihsan". His original website is down at the time
 * of writing, but I found the text archived on:
 * http://web.archive.org/web/20101027200300/http://students.sabanciuniv.edu/kehribar/?p=19
 */
void setup()
{
  pinMode(0,INPUT);
  pinMode(1,INPUT);
}
void loop()
{ 

}



Referensi