Your Guide to Installing the RoboHeart Arduino Library

by AugmentedRobotics in Circuits > Arduino

596 Views, 1 Favorites, 0 Comments

Your Guide to Installing the RoboHeart Arduino Library

20220920_110204.jpg

RoboHeart Hercules is an ESP32-based development board that comes with an open source Arduino Library! This is a step-by-step guide to getting started with programming your RoboHeart.

Supplies

RoboHeart_Hercules_no-background.png
  1. RoboHeart Hercules
  2. USB-C cable
  3. Arduino IDE (Click HERE for Software & Downloads.)

Installing RoboHeart Hercules Board

Boards_manager_new.png
Search_ESP32_Boards.png
  1. Install ESP32 Arduino as described in the Espressif page. Follow the section “Installing using Arduino IDE” to get started: https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html
  2. If you already have the ESP32 installed previously. Make sure you have the version 2.0.7 as we have our RoboHeart Hercules board included in this release.


Download the RoboHeart Library Via Library Manager (Option 1)

NewLibraryManager.png
Seach_for_library.png
  1. Click on the Shortcut to Library Manager as highlighted in the image.
  2. Search for the Roboheart Library and click Install.

Download the RoboHeart Library Via GitHub (Option 2)

Download_zipp.PNG

Download the Roboheart Arduino library using the Git Manager, or through the Download.zip option on GitHub.

https://github.com/Augmented-Robotics/roboheart-arduino-library


The Default Arduino Library Path

Place the folder, or unpack it in the default Arduino library path:

C:\Users\<Your_Username>\Documents\Arduino\libraries\       # For Windows users

/home/<Your_Username>/Arduino/libraries/                    # For Ubuntu users


Install Dependancy Libraries

Search_MPu6050_light.png

Install the MPU6050_light Library.

Restart Arduino

Close and open your Arduino IDE.

Spot the Example RoboHeart Code

Examples_RoboHeart.png

You should be able to see the RoboHeart folder, along with examples (as shown in the picture).

Choose From Board Manager

Select_board_shortcut.png
Select_board_and_port.png
Search_board_and_port2.png
COM_port.png

Assuming that you have already installed the ESP32 core for Arduino. Click on the "Select Board" option as highlighted.

  1. Search for RoboHeart and you should be able to see the RoboHeart Hercules board.
  2. You shoul also choose the appropriate PORT. Connect RoboHeart to your PC and check which port it is connected to in the control panel.
  3. Control Panel-> Hardware and Sound-> Devices and Printers-> Device Manager-> Click on Ports to see the COM port number. Here it is COM1:

Running Example Code

Examples_RoboHeart.png

Run an example code on your RoboHeart hardware. Choose any example from File -> Examples-> RoboHeart-> “RoboHeartLED”

Compile, Flash and Serial Monitor

compile_flash_serial.png
  1. Compile the code by pressing the check mark button on the top left corner of Arduino (highlighted in the image). In case of errors, resolve them and recompile the code.
  2. Flash the code by pressing the button with the right arrow, which is next to the compile button (highlighted in the image).
  3. To see the Serial Monitor Output, click on the button at the top right corner (highlighted in the image).

Build Away!

control balancing bot.png

Now that you know how to get started, check out the several examples on our GitHub repository and use your skills to build (nearly) anything you can imagine!