Modifications

Sauter à la navigation Sauter à la recherche
2 006 octets ajoutés ,  26 juillet 2014 à 16:09
Page créée avec « {{LCD-USB-TTL-NAV}} {{bloc-ettroit|text=The easiest way to test the LCD and backpack is to connect to it to your computer and send data with a terminal program. Use any mi... »
{{LCD-USB-TTL-NAV}}

{{bloc-ettroit|text=The easiest way to test the LCD and backpack is to connect to it to your computer and send data with a terminal program.


Use any mini-B USB cable to connect to the backpack. If you're using windows, you'll need to point it to an INF driver file. See below in the download section for that INF file. Mac and Linux do not require a driver.


After the backpack is plugged in, it will create a serial port. Under windows this is called a COM port. You can look in the '''Device Manager -> Ports''' to see what the name of the '''COM port''' created is. You should see an entry appear/disappear when connecting the USB cable.}}

{{ADFImage|LCD-USB-TTL-Test-USB-00.jpg}}

For mac/linux, once you have plugged in the cable, run '''dmesg''' to see what the name of the port is, probably something like '''/dev/cu.usbmodem-XXXX''' or similar. You can also type '''ls /dev/cu.*''' into a '''Terminal''' window and see what items appear/disappear when the cable is connected and unplugged.

{{ADFImage|LCD-USB-TTL-Test-USB-01.jpg}}

Now that the port is known, you can use your favorite terminal program to connect. For this example, we'll use the basic terminal built into Arduino. The only downside of the serial port monitor is that you can only send a full string at a time and there's a new line at the end. If you are using a more powerful monitor such as CoolTerm (mac) or RealTerm (Windows) you can watch as each character is entered


Start by selecting the same COM serial port that belongs to the backpack.

{{ADFImage|LCD-USB-TTL-Test-USB-02.jpg}}

Open the serial port monitor and type Hello World! into the text box.

{{ADFImage|LCD-USB-TTL-Test-USB-03.jpg}}

Once you hit '''Send''' it will transfer the text to the backpack, and it will appear. Thats it!

{{ADFImage|LCD-USB-TTL-Test-USB-04.jpg}}

For more commands, check the github repository (see the Downloads tab) for a python script that will test all commands on the display.
{{LCD-USB-TTL-TRAILER}}
29 918

modifications

Menu de navigation