arduino
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| arduino [2023/11/29 04:06] – jhagstrand | arduino [2023/11/30 00:58] (current) – [arduino-cli] jhagstrand | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Arduino ====== | ====== Arduino ====== | ||
| - | platform, company, | + | Arduino is a platform |
| + | It is known as an educational system for beginners, but is widely used among hobbyists, professionals and commercial entities at all levels. | ||
| - | IDE vs CLI | + | Arduino |
| + | |||
| + | Arduino | ||
| + | |||
| + | ===== Arduino IDE ===== | ||
| + | |||
| + | File - Preferences - Show verbose output during x compilation x upload | ||
| + | |||
| + | Check compilation and upload to get detailed messaging and learn: | ||
| + | * arduino-builder - the executable run for compile and upload. | ||
| + | * the name of the board | ||
| + | * the name of the core | ||
| + | * the tools and libraries used | ||
| + | * the include files used and from which folders | ||
| + | |||
| + | |||
| + | ===== arduino-cli ===== | ||
| + | |||
| + | Display a list of all installed boards, human name and FQBN: | ||
| + | $ arduino-cli board listall | ||
| + | |||
| + | Display current config settings, print out ~/ | ||
| + | $ arduino-cli config dump | ||
| + | |||
| + | |||
| + | === help === | ||
| Arduino, Arduino CLI, include path | Arduino, Arduino CLI, include path | ||
| Arduino mpu 6050 | Arduino mpu 6050 | ||
| + | |||
| + | Where are the human names of the platforms displayed in the Boards Manager menu? | ||
| + | |||
| + | Why are there two core/ | ||
| + | |||
| + | Why is my sk8mini no longer compiling? | ||
| + | |||
| + | When using Tools - Pin Numbering - "By Arduino pin (default)" | ||
| + | function digitalPinToGPIONumber(_pin) is added and compile fails | ||
| + | |||
| + | When using Tools - Pin Numbering - "By GPIO number (legacy)" | ||
| + | it compiles successfully, | ||
| + | |||
| + | My code uses D3 and D6 as pin numbers. | ||
| + | Where are these defined? | ||
| - | === Using microcontrollers | + | ===== Using Microcontrollers ===== |
| A microcontroller is a type of integrated circuit (IC), a chip. | A microcontroller is a type of integrated circuit (IC), a chip. | ||
| Line 38: | Line 79: | ||
| ===== Terms ===== | ===== Terms ===== | ||
| - | sketch = a c++ program in a text file with extension " | + | sketch = a c++ program in a text file with extension " |
| Packages, cores, libraries, tools | Packages, cores, libraries, tools | ||
| Line 130: | Line 171: | ||
| Library Manager - where is this list of libraries? | Library Manager - where is this list of libraries? | ||
| + | Each of these folders contains a file named boards.txt. | ||
| + | boards.txt contains a number of key=value parameters grouped into sections. | ||
| + | It includes a name= keyword that identifies the name as displayed in the board menu in the IDE. | ||
| - | ===== Folder Structure ===== | + | nano_nora.name=Arduino Nano ESP32 |
| + | This board is found in two packages. | ||
| + | ~/ | ||
| + | ~/ | ||
| - | File - Preferences | + | The CLI needs the FQBN for the board. |
| + | |||
| + | I have 5 Nano ESP32 boards installed. | ||
| + | | Arduino Nano | arduino: | ||
| + | | Arduino Nano ESP32 | esp32: | ||
| + | | Arduino Nano ESP32 | arduino: | ||
| + | | Nano32 | ||
| + | | UM NanoS3 | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ===== Folder Structure ===== | ||
| - | Sketchbook location: | + | Directories created by initial apt install: |
| + | * ~/ | ||
| + | * ~/ | ||
| + | * ~/ | ||
| - | Additional Boards Manager URLs: | + | ~/ |
| + | ~/ | ||
| + | Directores specified in preferences.txt: | ||
| + | * Sketchbook location: ~/Arduino | ||
| + | * Additional Boards Manager URLs: https:// | ||
| - | Package installed | + | Boards Manager installs |
| - | /home/john/.local/bin/arduino/arduino-1.8.19/ | + | * ~/.arduino15/packages/ |
| + | * ~/.arduino15/packages/arduino/hardware/ | ||
| + | * ~/.arduino15/ | ||
| - | Boards | + | Libarary |
| - | / | + | |
| - | / | + | |
| - | / | + | |
| === Failure on Upload === | === Failure on Upload === | ||
arduino.1701248806.txt.gz · Last modified: 2023/11/29 04:06 by jhagstrand