BuddyBot: Controlling a Stepper Motor with an Android Smartphone
By Michael Parks, P.E., Mouser Electronics
Licensed under CC BY-SA 4.0
Download Full Project
BOM
Materials Needed
The Bill of Materials (BOM) for this project is for the electronics, but a bit more is needed build a custom
enclosure. If you have access to a 3D printer, you can use the provided STL files
to print the mechanical hardware holding this project together. Of
course, this is not an absolute requirement and you can build the mounting hardware with whatever building materials
you have at hand. An Android device running at least the Jelly Bean version is also a requirement if you want to run
the provided app.
To make things convenient we have provided a pre-built shopping-cart-full-of-BOM with the parts you will
need to get this project built, assuming you already have tools, heat shrink, and hook-up wire on hand.
The electronic components recommended include:
Table 1: Bill of Materials for
Buddy Bot is already collected for you here .
Quantity
Mouser PN
Description
1
511-STM32
NUCLEO-F401RE
STM F401RE STM32 Nucleo
1
834-HT17-268D
834-HT17-268D NEMA 17 stepper motor
1
511-L293D
STM L293D Dual H-Bridge motor driver
1
765-RN42XVP-I/RM
765-RN42XVP-I/RM Bluetooth module
1
647-UVZ2A0R1MDD
0.1uF capacitor
1
647-UVR1H100MDD1TA
10 uF capacitor
1
511-L7805CV
511-L7805CV 5V regulator
4
71-CMF5510K000FKEB
10k-ohm resistors
1
71-RN60D-F-5K
5k-ohm resistor
1
782-A000021
Xbee shield
1
619-28015
Ping ultrasonic sensor
2
785-ZM90G20F01
Micro Lever Switches
1
571-826646-2
Male Header Pins (3-wide)
1
Laser Pointer
Various
Heat shrink
Various
Hook-up wire
Tools:
As for tools, you can make do if you have at least these, or add items to the project BOM cart:
Mouser carries the suggested tools and supplies mentioned above. The only exception being a red laser pointer, but
you can find one by searching on laser and diode that has a forward voltage of 3V or 5V.
IMPORTANT:
Before we start, please be sure to check the STM Nucleo page on mbed.org for drivers and firmware updates before you start! Older
versions of the firmware do not allow for interrupts to be attached to all of the STM32 Nucleo GPIO pins. That has
been remedied in the latest firmware version, and it will be critical for our project. As of this writing, the STM32
Nucleo update information can be found here: https://developer.mbed.org/platforms/ST-Nucleo-F401RE/
We would love to hear what you think about this project; please tell us in the comments
section below.