Programming Options

There are LOTS of options when it comes to programming your Idea7 Robot based on the LOLIN D32 development board. The LOLIN D32 is based on the popular ESP32. All that popularity means that the ESP32 is supported in several Integrated Development Environments (IDEs). That said, I’ll only mention the ones I’ve personally used.

  • Mongoose OS (Great for IOT Projects!)
  • MicroPython (Great for people who love programming in Python)
  • Arduino IDE (Great for beginners or people who are familiar with Arduino)

In this activity, we’ll be using the Arduino IDE and I’ll be using Windows 10 although you can just as easily use Apple OS X or Linux operating systems.

Install and Setup the Arduino IDE

Step 1: Install the Arduino IDE

Step 2: Install the USB Driver if necessary

Step 3: Add ESP 32 support to your Arduino IDE

  • In Arduino IDE, go to File>Preferences and enter “” into the Additional Board Manager URLs field. Note: You can add multiple URLs, by separating them with commas.
  • Go to Tools>Board>Board Manager and search for “ESP32.” Install the latest version.

Now we can add programs like the simple “Blink” example!

Step 1: Open Blink example

  • To open, go to File>Examples>01.Basics and select “Blink” to open it.

Step 2: Connect Robot

  • Use the provided cable to connect to a USB port on your computer.
  • If you have issues connecting, we recommend using a powered USB hub. This helps to resolve connection issues that may be due to an underpowered USB port. Most USB ports should work without an issue, but if you see “Connecting…….__……__…..__…..” and your robot won’t connect, this is probably your issue.

Step 3: Select Serial Port

  • Go to Tools>Port and select your active serial port.

Now let’s do something more interesting!

This is great, but with some handy libraries, we can start doing really cool things!

Libraries make it easier to add new capabilities to your robot because they contain lots of helpful programming that is already tested and ready to use. Libraries are frequently used to support special sensors, actuators, screens, speakers, and more.

In the next video, we’ll see how to add libraries to your Arduino IDE. We’ll add support for both our Ultrasonic Distance Sensor and our IR Reflectance Sensor for line following. We’ll use the NewPing library by Tim Eckel and the QTRSensors library by Pololu.

First, we need to add the required libraries.

Step 1: Add Libraries

  • Go to Tools>Manage Libraries and search for “qtrsensors” then click “Install” to install the QTRSensors library.
  • Repeat for “newping” and click to install the NewPing library.

Now we can try an example program! Let’s follow a line!

Step 1: Download Example (You need the latest version of the QTRSensors library!)

Step 2: Install Using Arduino IDE

  • Follow the examples above if you’re not sure how to do this. 🙂

2 thoughts on “Robot Rally: Loading New Programs”

  1. Howdy folks,
    Before I was able to complete, “Step 3: Add ESP 32 support to your Arduino IDE,” I had to follow the steps below that I found at the following URL:

    Step 1) Start Arduino and open Preferences window.
    Step 2) Enter into Additional Board Manager URLs field. You can add multiple URLs, separating them with commas.

    Then when I searched, “esp32” in the Arduino Boards Manager, it found the boards by Espressif Systems. Before taking these extra steps these boards were not found.

    Hope that helps if you had similar issues.

  2. Chris Thompson

    Thanks, Chad! Totally forgot that step! (I did that step over a year ago when I first started playing with ESP32 boards…even though I uninstalled the IDE, the URL setting was saved and automatically applied to my new installation.) I have updated the video and text to include that step! I also added a few more helpful videos. 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer!

Don't miss out on this special early-adopter pricing!

Premium Membership


- or -

($77 lifetime deal)

Pay for basic, get premium.

Here's why our members are excited...

Online Courses

Get an all-access pass to our growing list of courses focused on learning with real projects.  We’re even working to add ACE or NCCRS accreditation so you can use our courses for college credit!

Resources and more

We’ll give you an edge by sharing links to valuable online learning apps, great sources for educational stuff, and more.

Membership plans help us plan ahead and operate more efficiently.  That saves us money and we like to share that savings with our members!

  • 10% off everything in our store.
  • 20% off all single project boxes
  • 30% off sets of 4 boxes (an $84 savings!)
  • No coupons to worry about! Your savings will automatically apply in your cart.
  • Win prizes with Engineering Challenges.
  • Get your design manufactured and featured when you win an Innovation Award.
  • See your marketing strategy GO LIVE when you’re a finalist for the Influencer Award.
  • Schedule a Life Coaching session with Chris (1 per year).

We know it’s weird, but this “for profit” business puts the mission first.  We’re here to make a difference and that starts with being a little different.  We’re not perfect, but you’ll find we’re perfectly committed to doing our best for you!

  • Get knowledgeable support from Idea7 and a helpful community.
  • Distinguished student members receive letters of recommendation and support from our professional network.