Arduino and Teensy libraries: Difference between revisions

From Rsewiki
No edit summary
No edit summary
Line 4: Line 4:


* Install the newest Arduino - see https://www.arduino.cc/en/software.
* Install the newest Arduino - see https://www.arduino.cc/en/software.
=== Add Teensy board support ===


* Add the Teensy hardware support - see https://www.pjrc.com/teensy/td_download.html, including
* Add the Teensy hardware support - see https://www.pjrc.com/teensy/td_download.html, including


** Add https://www.pjrc.com/teensy/package_teensy_index.json to the file->preferences
 
* Add https://www.pjrc.com/teensy/package_teensy_index.json to the file->preferences
[[file:arduino-preferences.png | 400px | "Arduino preferences with additional board manager URL"]]
[[file:arduino-preferences.png | 400px | "Arduino preferences with additional board manager URL"]]




** In the boards manager (Tools->Boards->Boards manager), search for Teensy and install support for Teensy boards.
* In the boards manager (Tools->Boards->Boards manager), search for Teensy and install support for Teensy boards.
[[file:arduino-boards-manager.png | 400px]]
[[file:arduino-boards-manager.png | 400px]]


** In the Library manager (Tools->Manage libraries), search for "MPU9250_asukiaaa" and "Adafruit GFX library" and install both, including dependencies. These are used to interface the IMU and support for the small display.
=== Add libraries ===
 
* In the Library manager (Tools->Manage libraries), search for "MPU9250_asukiaaa" and "Adafruit GFX library" and install both, including dependencies. These are used to interface the IMU and support for the small display.


[[file:arduino-library-manager-MPU.png | 400px]]
[[file:arduino-library-manager-MPU.png | 400px]]

Revision as of 12:59, 5 July 2024

Back to Basebot

Installation of Arduino and Teensy support

Add Teensy board support


"Arduino preferences with additional board manager URL"


  • In the boards manager (Tools->Boards->Boards manager), search for Teensy and install support for Teensy boards.

Add libraries

  • In the Library manager (Tools->Manage libraries), search for "MPU9250_asukiaaa" and "Adafruit GFX library" and install both, including dependencies. These are used to interface the IMU and support for the small display.

Board select

Select the Teensy 4.1 board (tool->board->Teensy->4.1).

Select the port on which the robot is connected - easier to connect the robot first.