Library version 2.0.4
Library for the Alfredo NoU v2.6. Supports motors and servos and has helper methods for different drivetrain types.
This tutorial will guide you through uploading example code to your ESP32 with an attached Alfredo NoU2. This should work on any OS.
-
Get the Arduino IDE. If you don't already have it, download it from the Arduino website and install it.
-
Configure the Arduino IDE to upload to an ESP32. Check out this board configuration tutorial for instructions on how to do that.
-
Download this repository as a ZIP. Click here to start the download, or click the green button on this page that says
Code
, thenDownload ZIP
. -
Add this library to the Arduino IDE. In the Arduino IDE, Click
Sketch
>Include Library
>Add .ZIP Library...
, and select the ZIP file you downloaded. -
Open the
NoU2MotorParty
example. In the Arduino IDE, go toFile
>Examples
>Alfredo-NoU2-master
(you might need to scroll down) and selectNoU2MotorParty
. This will open a new window with the example opened. You can close the old one. -
Connect your ESP32 and select the COM port. Connect your ESP32 to your computer using a micro USB cable. In the Arduino IDE, select the corresponding COM port under
Tools
>Port
. The correct COM port may say(Silicon Labs)
next to it. If none of them do, you can unplug and replug the USB to see which COM port disappears and reappears. If you cannot find any COM port for the ESP32, try the troubleshooting steps. -
Select ESP32 as the board type. In the Arduino IDE, go to
Tools
>Board
>ESP32 Arduino
and selectESP32 Dev Module
. On older versions of Arduino, it may just beTools
>Board
>ESP32 Dev Module
. -
Upload
NoU2MotorParty
to your ESP32. In the window withNoU2MotorParty
opened, click the upload button (the arrow in the top left). If the console on the bottom of the window starts showingConnecting....._____.....
, hold down theBOOT
button on the ESP32.
Once the top of the console says Done uploading.
, the example is on the ESP32 and you can unplug it from the computer. When connected to an Alfredo NoU2, the NoU2MotorParty
example will pulse any connected motors and servos back and forth.
AlfredoConnect is a driver station that runs on Windows for controlling robots over Bluetooth using your computer's keyboard or connected gamepads. It has a corresponding Arduino library, AlfredoConnect-Receive, which contains examples for using AlfredoConnect with the Alfredo NoU2. After following the basic setup tutorial here, follow the getting started tutorials for AlfredoConnect-Receive to learn how to control your robot using AlfredoConnect.
- The most common cause of this is accidentally using a power-only micro USB cable, which won't allow the computer and ESP32 to communicate, but will power on the ESP32. Try a new cable. When plugging in the ESP32, you should hear a sound on the computer indicating it's plugged in.
- Make sure you're selecting the right COM port. The most common way to check is to unplug the ESP32, check the ports list in the Arduino IDE, (
Tools
>Port
), plug the ESP32 in, and then check the list again to see what COM port got added. On Windows, you can also open Device Manager (Win+R
, type indevmgmt.msc
) and check thePorts (COM & LPT)
dropdown, which should include a port list similar to the one in the Arduino IDE. - You may need to install appropriate drivers for CP210x or FTDI, depending on your ESP32 module type. If unsure, get both.
- Product Page: Purchase an Alfredo NoU2 here.
- MiniFRC Discord: This is the best place to get quick help with the Alfredo NoU2 and this library from both users and the Alfredo Electronics team.
- Issue Tracker: If you're having a problem or need guidance, feel free to open an issue with the
help wanted
orquestion
label.