Adafruit Raspberry Pi Tutorial Lesson five: Using the control cable

Source: Internet
Author: User

Adafruit Raspberry Pi Tutorial Lesson five: Using the control cable

Time 2014-05-09 01:11:20 geek Fan

Original http://www.geekfan.net/9095/

Theme Raspberry Pi MacOS Linux

This article is translated from adafruit.com by Geek fan-boyd Wang. Welcome to the Geek Translation team and join us in translating and sharing. Please refer to the requirements at the end of this article for reprint.

Overview

In this lesson you will learn how to control your Raspberry Pi using the control cable.

One of the great benefits of connecting in this way is that it can be powered directly to the small faction and you don't need to connect a keyboard mouse or monitor to a small faction to log in.

If you use Windows, you need to install the terminal emulation software (Putty) and the USB driver for the control cable. The Mac machine has its own terminal.

External devices can be connected to the console via the Raspberry Pi's own serial port and send commands after logging in.

In the next lesson, we'll use another way to achieve the same goal – using SSH to connect through the local network.

You need it.

To follow this lesson, you need the following devices or software:

Hardware section

Raspberry Pi

Adafruit Control Cable

The logic level of this cable is 3.3V so it is safe, but not all kinds of cables are 3.3v! Only use the Adafruit control cable in this tutorial to avoid damaging the gpio pins on the small faction.

Software Installation (MAC)

OSX has its own terminal emulation software that you can use for command-line operation, so we only need to install the USB driver for the control cable.

Get the USB drive from here:
http://sourceforge.net/projects/osx-pl2303/

If you are using a lion or a mountain lion (Mountain Lion) or a later OS X, try the following driver:
Http://changux.co/osx-installer-to-pl2303-serial-usb-on-osx-lio

Both of these are standard MAC installation packages. All pop-up prompts remain default during installation.

Software Installation (Windows)

Download Putty:ht tp://www.putty.org/from here

Choose a binary file called "Putty.exe" from the "for Windows on Intel X86″" section of the download list. You will then be asked to save the path, and we'll save it to the desktop.

Note that this is not an installation package but the program itself. Just double-click on the Putty.exe to run it.

Download the PL2303 driver here:
Http://www.prolific.com.tw/US/ShowProduct.aspx?p_id=225&pcid=41

A zip archive called "Pl2303_prolific_driverinstaller_v1_7_0.zip" will be downloaded. Unzip to the desktop and run "Pl2303_prolific_driverinstaller_v1.7.0.exe".

Note that the PL2303 control cable is incompatible with Windows 8!

Install this driver like this: plug in your USB control cable, and the Discover New Hardware wizard will pop up. Use the Auto-search option to install, and then it will work correctly.

Once the installation is complete, you will see the following message:

Software Installation (Linux)

The kernel is 2.4.31 and the subsequent version has its own PL2303 USB drive, so you don't have to install it.

Some distributions, such as Ubuntu 12.10, do not contain the "screen" command. Try typing "screen" at the command line to see if there are any error prompts, you can install it by following the command:

sudo apt-get install screen

sudo apt-get install screen

Connection Control Cable

The control cable has 4 female heads that can be inserted directly onto the gpio pins of the Raspberry Pi.

The logic level of the Adafruit USB control cable is 3.3V, so it is safe for Pai.

In this experiment, we will supply the Raspberry Pi directly through the serial port, so do not supply the USB adapter to the small power. If you want to use a USB adapter to power it, do not plug the red female head.

It is important to note that only one power supply, a USB adapter or a control cable, can only be two selected .

Wiring as shown in the way:

4 The female head is connected to the Gpio pin. For more information on pins, please refer to lesson four: http://www.geekfan.net/8972/

    • Red Female connection to 5V pin
    • Black connection to GND
    • White connection to Txd
    • Green connection to Rxd

If you're not sure, check out the pin chart below. But the picture that needs attention is upside down, and if you want to control the stitch on the photo, you need to rotate it 180 degrees.

Now connect the other end of the USB port to the computer and you will see the power LED light on the small pie.

Testing and Configuration

If you're using a Mac, all you have to do is open a terminal window and type the following command:

Screen/dev/cu. pl2303-00001004 115200

Screen/dev/cu. pl2303-00001004 115200

The name of the device may be slightly different from mine. So when you type into "cu.pl", press the TAB key and it automatically complements your device name, and then type 115200 (this is the baud rate).

If you are using Linux, use the following command:

sudo screen/dev/ttyusb0 115200

sudo screen/dev/ttyusb0 115200

Click Enter and you should be able to see the login prompt.

This is the result of running on a Mac:

This is on Ubuntu:

If you are using Windows, you need to know which COM port to use to connect the cable before running putty. You can find it in the Windows Device Manager.

You can find the Device Manager in the Control Panel.

In this example, COM7 is used.

Now open putty and you will see a connection window.

Select a "Serial" type of connection, then set speed to 115200,serial line for COM7.

Last Click "Open" to connect. Remember to press ENTER to start the communication.

For newly installed occidentalis and wheezy, the default user name is "PI" and the default password is "raspberry".

That's it! You are now able to control your little faction with the command line.

In the next lesson we will use SSH as another way to connect to the Raspberry Pi via the local network.

Adafruit Raspberry Pi Tutorial Lesson five: Using the control cable

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.