LCD allow the robot to provide feedback. The Balboa 32U4 can be used either as a standalone control solution or as a base for a more powerful Raspberry Pi controller. Its on-board connector and mounting holes allow a compatible Raspberry...
A software add-on is available that makes it easy to program a Balboa 32U4 robot from the Arduino environment, and we have Arduino libraries and example sketches to help get you started. A...
You will need a number of additional components and tools to complete your Balboa robot, the most important of which are motors and wheels. Since the Balboa 32U4 robot kit works with a variety of motors and wheels, motors and wheels are not included; this means you can choose your own to personalize your robot.
Page 9
Micro metal gearmotor HPCB with extended motor shaft. The kit includes magnetic encoder discs, and the encoder sensors are built into the Balboa 32U4 control board, so you do not need to order encoders with your motors. Wheel selection We recommend using the Balboa with 80×10mm Pololu wheels, which are available in five colors...
[https://www.pololu.com/product/2588] 1.3. Supported operating systems The Balboa 32U4 control board can be programmed using any operating system that supports the Arduino environment. This includes Microsoft Windows 10, 8.1, 8, 7, Vista, XP (with Service Pack 3), Linux, and macOS.
, which allows it to be easily programmed using the [https://www.pololu.com/docs/0J66/7] Arduino IDE. For more information about programming the Balboa 32U4, see Section The board also has a 6-pin ISP header that allows it to be programmed with an external programmer,...
Page 15
LED indicates when the USB bus voltage (VBUS) is present. Pushbuttons The Balboa 32U4 control board has five pushbuttons: a power button in the bottom left corner, a reset button in the top right corner, and three user pushbuttons located along the bottom edge. The user pushbuttons, labeled A, B, and C, are on Arduino pin 14 (PB3), pin 30 (PD5), and pin 17 (PB0), respectively.
Page 16
Buzzer buzzer included with the Balboa 32U4 control board can be [https://www.pololu.com/product/1484] soldered into the designated through-holes and used to generate simple sounds and music. By default, it is connected to digital pin 6 (which also serves as OC4D, a hardware PWM output from the AVR’s 10-bit Timer4).
Page 20
The Balboa32U4 library (see Section 6) includes example programs that demonstrate how to use the sensors, including a balancing demo. In addition, the sensor ICs on Balboa 32U4 are the same as those on our MinIMU-9 v5 , so software written for the [https://www.pololu.com/product/2738]...
Page 23
The Balboa 32U4 control board also contains a 3.3 V LDO that draws its power from the output of the logic power selection circuit described below. The output of the 3.3 V regulator is designated 3V3 and is used to supply the on-board inertial sensors and level shifters.
3.7. Expansion headers The Balboa 32U4 control board has expansion headers on its four edges that break out several free general-purpose I/O lines from the ATmega32U4 microcontroller along with a few power pins.
Power distribution diagram of the Balboa 32U4 control board. 3.8. Raspberry Pi interface and level shifters The Balboa 32U4 control board was designed to be easy to interface with a Raspberry Pi single- board computer to expand Balboa’s processing power. The board has mounting locations for a...
Page 29
[https://www.pololu.com/product/3119] Raspberry Pi and Raspberry Pi slave library for Arduino still apply for the Balboa 32U4, and we will be releasing an updated tutorial with steps specific to the Balboa soon.
Page 30
, using the utilities provided there. When suitably programmed, the [https://github.com/raspberrypi/hats] EEPROM can help the Raspberry Pi identify and configure itself to work with the Balboa 32U4 control board. Write protection for the EEPROM can be enabled by using solder to bridge the surface-mount jumper 3.
The table below lists the most important pin assignments for the ATmega32U4 on the Balboa 32U4 control board. This table is helpful if you want to add your own electronics to Balboa 32U4, write your own low-level code for interfacing with the hardware, or just want to understand better how Balboa32U4 works.
Analog input (ADC1) internally pulled high, active RESET Reset pushbutton AREF Analog reference 3.10. Adding electronics This section gives tips for how additional electronics can be connected to the Balboa 32U4 control board. 3. Balboa 32U4 in detail Page 34 of 97...
Page 35
Be careful about connecting electronics to pin 13 (PC7), pin 17 (PB0), and pin 30 (PD5) on the LCD connector. These pins are used to control the LEDs on Balboa 32U4. All three of these pins are controlled as outputs by the bootloader. Pin 17 (PB0) and pin 30 (PD5) are used as RX and TX indicators, so if you are sending or receiving data over USB then the Arduino USB code will drive those pins in its interrupt service routines while your sketch is running.
For more information about these power nodes and how much current they can provide, see Section 3.6. It is also possible to add your own power switch to control power to Balboa 32U4, as described in Section 3.6. Ground You should make sure that all the grounds in your system are connected.
These diagrams are also available in a downloadable PDF [https://www.pololu.com/file/0J1533/stability- (392k pdf). conversion-kit-for-balboa-dimensions.pdf] 3.14. Schematics and dimensions Schematics The schematic diagram for the Balboa 32U4 control board is available as a PDF: Balboa 32U4 control board schematic diagram [https://www.pololu.com/file/0J1267/balboa-32u4-control-board- (587k pdf).
Preparing electronics 1. Before doing any assembly, now is a good time to solder in the buzzer to the Balboa 32U4 control board. 2. Optional: This is a convenient time to add any other optional electronics or headers (such as 2×20 female header...
Page 46
3. Cut two of the included jumper wires in half and solder them to the motor output pins with the excess wire protruding out of the top of the board as shown. Battery contacts and electronics 4. Set aside the Balboa 32U4 control board and insert the double-sided battery contacts as shown below. 4. Assembling the Balboa 32U4 kit...
Page 47
5. Flip the chassis over and insert the two individual battery contact terminals into the top of the chassis. 6. Place the Balboa 32U4 control board on the chassis, making sure the battery terminals insert into the slots on the board. Secure the board in place using the four included #2-56 screws 4.
Page 51
11. Install the magnetic encoder disc on the motor’s extended motor shaft. It should be flush with the end of the shaft and align with the sensors on the Balboa 32U4 control board. 12. Repeat steps 8 through 11 for the second motor (again making sure the + terminal of the motor is toward the longer end of the board).
Page 59
To remove the Stability Conversion Kit from the Balboa, push on the extension piece while simultaneously pulling back on the clips. If you have the Balboa 32U4 control board (or other electronics) mounted on the Balboa chassis, you might consider using a small screwdriver to help reach the clips.
Service Pack 3, so we recommend Service Pack 3 over the hotfix. Before you connect your Pololu A-Star 32U4 (or another of our 32U4 family of boards) to a computer running Microsoft Windows, you should install its drivers: 1.
After installing the drivers and plugging in an A-Star, in the “Ports (COM & LPT)” category of the Device Manager, you should see a COM port for the A-Star’s running sketch named “Pololu A-Star 32U4”. You might see that the COM port is named “USB Serial Device” in the Device Manager instead of having a descriptive name.
Page 70
URL on a new line. Adding a Boards Manager index for Pololu boards in the Arduino IDE’s Preferences dialog. 3. Click the “OK” button to close the Preferences dialog.
Page 71
7. After the installation finishes, click the “Close” button to close the Boards Manager dialog. 8. In the Tools > Board menu, select the “Pololu A-Star 32U4” entry. If you do not see your device listed in the Board menu, try restarting the Arduino IDE.
[https://github.com/pololu/lis3mdl-arduino] LSM6 library is required to run the Balboa32U4 library’s “Balancer” example). If you are using your Balboa 32U4 with a Raspberry Pi, you might also want to make use of our Raspberry Pi slave library for Arduino , which [https://github.com/pololu/pololu-rpi-slave-arduino-library]...
The next section discusses the approach to balancing used in our example code. 7.2. An example balancing algorithm Angle convention used by the Balboa 32U4 balancing example. The gyro measurements we described in the previous section gave us two important variables: •...
Page 84
The Balboa 32U4 includes integrated quadrature encoders that allow a continuous measurement of how fast and far the wheels have turned. We can prevent the robot from driving away by adding additional adjustments to the motor speed that depend on the encoder readings.
On a Windows computer, you can see the virtual serial port by going to your computer’s Device Manager and expanding the “Ports (COM & LPT)” list. You should see a COM port labeled “Pololu A- Star 32U4”. In parentheses after the name, you will see the name of the port (e.g. “COM3” or “COM4”).
Page 93
1. Connect the device to your computer via USB. 2. In the “Tools” menu, open the “Board” sub-menu and check to see if the “Pololu A-Star 32U4 (bootloader port)” entry is visible. If this entry is visible, you can skip to step 6.
Blink example that can be found under File > Examples > 01.Basics > Blink. After reviving your device, be sure to change the Board setting back to “Pololu A-Star 32U4” and select the right Port.
Atmel Studio 7 [https://www.microchip.com/avr-support/atmel-studio-7] • AVRDUDE [http://www.nongnu.org/avrdude/] • AVR Freaks [http://www.avrfreaks.net/] Datasheets for some of the components found on the Balboa 32U4 control board are available below: • ATmega32U4 documentation [https://www.microchip.com/wwwproducts/en/ATmega32u4] • Texas Instruments DRV8838 motor driver datasheet [https://www.pololu.com/file/0J806/ (1MB pdf) drv8838.pdf]...
Need help?
Do you have a question about the Balboa 32U4 and is the answer not in the manual?
Questions and answers