Skip to content

Latest commit

 

History

History
102 lines (67 loc) · 5.13 KB

File metadata and controls

102 lines (67 loc) · 5.13 KB
icon
simple/arduino

Arduino IDE

!!! tip For first-time users, who have never programmed before and are looking to use the Arduino IDE, we recommend beginning with the SparkFun Inventor's Kit (SIK), which is designed to help users get started programming with the Arduino IDE.

Most users may already be familiar with the Arduino IDE and its use. However, for those of you who have never heard the name Arduino before, feel free to check out the Arduino website. To get started with using the Arduino IDE, check out our tutorials below:

  • What is an Arduino?


    What is an Arduino?

  • Installing the Arduino IDE


    Installing the Arduino IDE

  • Installing an Arduino Library


    Installing an Arduino Library

  • Installing Board Definitions in the Arduino IDE


    Installing Board Definitions in the Arduino IDE

??? tip "Need help setting up the RedBoard Plus?" ### RedBoard Plus The following instructions should help users get started with the RedBoard Plus. For more information about the board, please check out our hookup guide below:

<figure markdown>
[![RedBoard Plus Hookup Guide](https://cdn.sparkfun.com/c/500-282/assets/learn_tutorials/1/7/5/8/18158-SparkFun_RedBoard_Plus-01.jpg)](https://learn.sparkfun.com/tutorials/1758)
<figcaption markdown>[**RedBoard Plus Hookup Guide**](https://learn.sparkfun.com/tutorials/1758)</figcaption>
</figure>


#### CH340 Driver
Users will need to install the appropriate driver for their computer to recognize the serial-to-UART chip on their board/adapter. Most of the latest operating systems will recognize the CH340C chip on the board and automatically install the required driver.

*To manually install the CH340 driver on their computer, users can download it from the [WCH website](http://www.wch-ic.com/products/CH340.html?). For more information, check out our [How to Install CH340 Drivers Tutorial](https://www.sparkfun.com/ch340).*

<figure markdown>
[![How to Install CH340 Drivers](https://cdn.sparkfun.com/c/500-282/assets/learn_tutorials/9/0/8/USB-to-serial_converter_CH340-closeup.jpg)](https://learn.sparkfun.com/tutorials/908)
<figcaption markdown>[**How to Install CH340 Drivers**](https://learn.sparkfun.com/tutorials/908)</figcaption>
</figure>


#### Selecting a Board
When selecting a board to program in the Arduino IDE, users should select the **Arduino Uno** from the **Tools** drop-down menu _(_i.e. **Tools** > **Board** > **Arduino AVR Boards** > **Arduino Uno**)_.

<figure markdown>
[![](../assets/img/hookup_guide/board_selection.png "Click to enlarge"){ width="400" }](../assets/img/hookup_guide/board_selection.png)
<figcaption markdown>Select the **Arduino Uno** from the Tools drop-down menu in the Arduino IDE.</figcaption>
</figure>

??? info "Arduino IDE 2.x.x - *Alternative Method*"
	In the newest version of the Arduino IDE 2.`x`.`x`, users can also select their board (*green*) and port (*blue*) from the `Select Board & Port` dropdown menu (*yellow*).

	<figure markdown>
	[![](../assets/img/hookup_guide/board_selection2.png "Click to enlarge"){ width="400" }](../assets/img/hookup_guide/board_selection2.png)
	<figcaption markdown>Selecting the **Arduino Uno** and **COM5** port from the **Select Board & Port** drop-down menu in the Arduino IDE (v2.0.3).</figcaption>
</figure>

SparkFun STHS34PF80 Arduino Library

The SparkFun STHS34PF80 Arduino library can be installed from the library manager in the Arduino IDE by searching for:

SparkFun STHS34PF80 Arduino library
[![](../assets/img/hookup_guide/arduino_library.png "Click to enlarge"){ width="400" }](../assets/img/hookup_guide/arduino_library.png) SparkFun STHS34PF80 Arduino library in the library manager of the Arduino IDE.

??? tip "Manually Downloading the Arduino Library" For users who would like to manually download and install the library, the *.zip file can be accessed from the GitHub repository or downloaded by clicking the button below.

<center>
[:octicons-download-16:{ .heart } Download the Arduino Library](https://github.com/sparkfun/SparkFun_STHS34PF80_Arduino_Library/archive/refs/heads/main.zip){ .md-button .md-button--primary }
</center>