Mini-Sumo competitions. At the heart of the Zumo 32U4 is an integrated ATmega32U4 AVR microcontroller from Atmel, along with dual H-bridge drivers that power the robot’s motors. The robot also features a variety of sensors, including quadrature encoders and inertial sensors (accelerometer and gyro) on the main board, along with reflectance and proximity sensors on the front sensor array.
Assembled Zumo 32U4 robot, top view. view. The LCD version of the Zumo 32U4 main board has been produced in two revisions that use different on-board inertial sensor ICs: v1.0 boards had an LSM303D accelerometer and magnetometer and L3GD20H gyro, while v1.1 boards have an LSM6DS33 [https://www.pololu.com/product/2736]...
Zumo Shield, including encoders, an OLED display or LCD, and proximity detection. Some of the pin mappings and software libraries differ between the Zumo 32U4 and Zumo robot for Arduino, so programs written for one robot generally need to be modified to work on the other.
Zumo 32U4 OLED robot if you do not want all of the parts included with our full kit. The original (LCD) version of the Zumo 32U4 robot is also available as a [https://www.pololu.com/...
• Red: 100:1 HP The assembled Zumo 32U4 robot is fitted with wide-angle IR emitter LEDs (clear); the narrow-angle LEDs (blue) are not included. 1.2. What you will need These additional items are needed for using the Zumo 32U4 robot: •...
. Be sure to pick a [https://www.pololu.com/category/141/micro-metal-gearmotors-with-extended-motor-shafts] motor that has an extended shaft, or else you will not be able to use the encoders on the Zumo 32U4. Kit assembly tools These additional items are needed for assembling the Zumo 32U4 robot kit: •...
[https://www.pololu.com/product/2588] 1.3. Supported operating systems The Zumo 32U4 can be programmed using current versions of Microsoft Windows 11, Windows 10, Linux, and macOS. See our A-Star 32U4 bootloader page on GitHub [https://github.com/pololu/a-...
3. The Zumo 32U4 in detail 3.1. Microcontroller The Zumo 32U4 main board features an integrated, USB-enabled ATmega32U4 AVR microcontroller from Atmel, clocked by a precision 16 MHz crystal oscillator. This is the same microcontroller and clock frequency used in our family of A-Star 32U4 programmable controllers [https://www.pololu.com/...
Page 16
(VBUS) is present. Pushbuttons The Zumo 32U4 has four pushbuttons: a reset button on the right edge and three user pushbuttons located along the rear edge of the main board. The user pushbuttons, labeled A, B, and C, are on Arduino pin 14 (PB3), PD5, and Arduino pin 17 (PB0), respectively.
Zumo32U4 library take care of configuring the pins, reading and debouncing the buttons, and restoring the pins to their original states. Display header The Zumo 32U4 OLED has a 1×7 header where you can connect a graphical OLED module with a low-profile male header. The included display has a resolution [https://www.pololu.com/product/3760]...
A rises before B rises and A falls before B falls. (The waveforms in the diagram above would be produced by forward rotation.) The Zumo 32U4 library provides appropriate interrupt service routines and functions for reading the encoders and keeping track of their counts (see Section 3.5.
Page 21
I/O line. When the sensor is active, it will drive the line low. The proximity sensors do not have IR emitters paired with them; instead they detect reflected 38 kHz IR light that comes from LEDs on the Zumo 32U4 Main Board, which are described Section 3.6.
The infrared emitted by the line sensors can interfere with the proximity sensors and cause false readings, so it is recommended to turn off the line sensor emitters before using the proximity sensors. The Zumo32U4ProximitySensors class from the Zumo 32U4 Arduino library takes care of turning off the line sensor emitters.
3.6. Proximity sensing The Zumo 32U4 can detect nearby objects using the three proximity sensors on the front sensor array. The proximity sensors do not emit their own light; instead they are designed to detect 38 kHz infrared (IR) signals from emitters on the Zumo 32U4 Main Board.
This could be a good starting point for a sumo robot that uses the front sensors to locate its opponent. 3.7. Inertial sensors The Zumo 32U4 includes on-board sensors that can be used as an inertial measurement unit (IMU) for applications like helping your Zumo detect collisions and determine its own orientation.
, and L3G Arduino library [https://github.com/pololu/lsm303-arduino] [https://github.com/pololu/l3g-arduino] The Zumo 32U4 main boards use the same inertial sensor ICs as some of our IMU boards, like the MinIMU-9 v5 , so Arduino software written for the MinIMU-9 (such [https://www.pololu.com/product/2738] as our...
USB. Consequently, when the Zumo 32U4 is connected to a computer via USB, it will receive 5 V logic power even when the power switch is off. This can be useful if you want to upload or test a program 3.
Adding a power switch You can add your own power switch to the Zumo 32U4 using the PSW pin. When it is in the on position, your switch should connect PSW to GND. In that case, VBAT will receive power when either your switch or the main board switch are on.
The table below lists the most important pin assignments for the ATmega32U4 on the Zumo 32U4. This table is helpful if you want to add your own electronics to the Zumo 32U4, write your own low-level code for interfacing with the hardware, or just want to understand better how the Zumo 32U4 works.
Analog reference 3.11. Adding electronics This section gives tips for how the Zumo 32U4 can be expanded with additional electronics. Freeing up I/O pins If you want your additional electronics to send or receive information from the AVR, you will need to connect them to one or more of the AVR’s I/O pins.
Page 36
On the original (LCD) version of the Zumo 32U4, if you have removed the LCD and do not need to use button A, this frees up pin 14 (PB3). Pin 14 is capable of digital input and output. Removing the LCD also frees up the LCD contrast potentiometer for other purposes.
USB). If you power them from the 5V pin, then they will receive 5V power whenever the Zumo 32U4 logic components are powered. If you power them from 3V3, they will receive 3.3V power whenever the Zumo 32U4 logic components are powered. For more information...
• Timer1 is used by the Zumo 32U4 Arduino library for driving motors. • Timer3 is used by the Zumo 32U4 Arduino library for emitting 38 kHz IR pulses for the proximity sensors, but it can be used for other purposes between readings of the sensors.
Page 39
• Zumo 32U4 Main Board drill guide (239k [https://www.pololu.com/file/0J1773/zum02c-drill.dxf] dxf) (original LCD version) 3D models of the Zumo 32U4 Main Board and robot are also available in STEP format: • Zumo 32U4 OLED Main Board 3D model [https://www.pololu.com/file/0J1853/zumo-32u4-oled- (24MB step) main-board.step]...
Zumo 32U4 robot kit. Please follow these instructions carefully to assemble your Zumo 32U4 robot kit properly. If you have an assembled version of the Zumo 32U4 robot, you can skip to...
Page 42
Motors If you have an older Zumo 32U4 kit with white sprockets (which we shipped before May 2015), you should skip step 4 and install the drive sprockets after step 14 instead, at the same time as the idler sprockets. (If the white drive sprockets were attached now, their shape would make the motors, chassis, and main board difficult to assemble.)
Page 56
Installing header pins on the LCD. 23. On the Zumo 32U4 OLED version, you can optionally install a #2-56 standoff to help support the OLED display. Tighten the standoff against a nut under the chassis. 4. Assembling the Zumo 32U4 kit...
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 72
URL on a new line. Adding a Boards Manager index for Pololu boards in the Arduino IDE’s Preferences dialog. 4. Click the “OK” button to close the Preferences dialog.
Page 73
8. After the installation finishes, click the “Close” button to close the Boards Manager dialog. 9. 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.
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”).
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.
Page 87
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.
Need help?
Do you have a question about the Zumo 32U4 and is the answer not in the manual?
Questions and answers