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

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.

主站蜘蛛池模板: 澄城县| 西畴县| 朝阳县| 海晏县| 奉新县| 墨脱县| 孙吴县| 阳山县| 新竹县| 榆树市| 安阳市| 临泽县| 宁晋县| 和顺县| 四川省| 当雄县| 吉隆县| 聂荣县| 甘洛县| 牟定县| 府谷县| 中宁县| 永丰县| 六安市| 饶阳县| 宁夏| 繁峙县| 黔西| 东兴市| 江油市| 兴城市| 攀枝花市| 龙海市| 迁安市| 台南市| 蓬莱市| 桂林市| 板桥市| 临高县| 玉田县| 山西省|