官术网_书友最值得收藏!

Programming the Arduino using the Raspberry Pi

We will introduce ourselves to the Arduino IDE with an LED blinking example.

Prepare for lift off

There are several examples for the Arduino and it takes less than a minute to execute the first program. Let's get started with the traditional LED blinking example. The LED blinking example can be found at File | Examples | 01 . Basics | Blink.

Engage thrusters

  1. We get started by identifying the Arduino's serial port enumerated on the Raspberry Pi.
  2. The serial port is identified from Tools | Serial Port. Usually there is only one serial port as shown in the following screenshot. If there is more than one serial port device connected, it is recommended that you proceed with caution.
  3. We can program the Arduino by clicking on the Upload button.
    Engage thrusters

    The Arduino IDE interface

Objective complete – mini debriefing

If the Arduino is connected and the serial port was correctly identified, the program should be uploaded successfully.

Objective complete – mini debriefing

Sketch uploaded using the Arduino IDE

Most Arduino products come with an onboard LED to test the LED blinking example.

主站蜘蛛池模板: 大庆市| 云和县| 三穗县| 满洲里市| 广东省| 新安县| 洪江市| 潮州市| 巧家县| 稻城县| 邵东县| 汝州市| 绥芬河市| 曲沃县| 盐津县| 安乡县| 桐柏县| 大庆市| 靖远县| 台北县| 泸水县| 彝良县| 哈尔滨市| 叙永县| 民权县| 康定县| 南郑县| 广灵县| 乌拉特中旗| 沾化县| 井研县| 仁寿县| 项城市| 永善县| 渑池县| 彭泽县| 启东市| 乐昌市| 绍兴市| 鄂托克旗| 盐山县|