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

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.

主站蜘蛛池模板: 辽阳县| 合山市| 博湖县| 阳东县| 平陆县| 荔浦县| 科技| 高碑店市| 鹤庆县| 甘泉县| 日土县| 阿坝| 兴安盟| 岢岚县| 壶关县| 安平县| 镇安县| 鹿邑县| 于都县| 石景山区| 彭山县| 思茅市| 济阳县| 耒阳市| 耒阳市| 博客| 揭东县| 辽阳县| 六枝特区| 重庆市| 胶州市| 达尔| 长汀县| 卓尼县| 巫山县| 福建省| 清苑县| 金溪县| 盐津县| 无极县| 虎林市|