Robohub.org
 

Breaking it down with the DanceBot: Getting started with electronics


by
12 October 2013



share this:

The MP3 DanceBot is a little robot that dances to the beat of your music. It’s a project that began in the summer of 2011 to introduce students to the basics of electronics and robotics. Students learn some of the basic components found in modern day electronic appliances while constructing a robot, which they can take home and continue to play and develop with.

DanceBots_Girls_Soldering

Two girls learn the basics of electronics while constructing a DanceBot

Tutorial Structure

The entire tutorial takes about 10 hours to complete and is tailored towards students aged 12 and above.

The project will be presented in six tutorials:

  1. In the first tutorial (this one) we will be looking at how the DanceBot works, and will be covering how to read circuit diagrams.
  2. In the second tutorial, we will look at how to construct the DanceBot’s power supply.
  3. In the third tutorial, we will be building the DanceBot’s audio amplifier.
  4. In the fourth tutorial, we will build the DanceBot’s micro controller, digital line converter and H-bridge.
  5. In the fifth tutorial, we will assemble the DanceBot’s LEDs.
  6. And in the final part, we will look at the mechanical construction, and how to program your DanceBot to groove to your favorite tunes!

But before we get started, let’s take a look at the final product:

http://www.youtube.com/watch?v=XDDs63Z69Tc

Fun, funky and fabulous, but how does it work?

The picture below is a rough sketch of what we’ll be building in these tutorials. You’ll see some common elements found on many robots.

DanceBots_Schematic_Mechanical
Some of the major components that you’ll find in the robot are:

  1. Light Emitting Diodes (LEDs)
  2. A speaker
  3. Thick gauge wire
  4. Electronics
  5. A battery pack
  6. An MP3-player
  7. A base
  8. Two wheels
  9. Two motors

The key to how all of this works is the music that is played by your MP3-player. There are generally two channels (i.e. left-channel and right-channel) for music that you play on your MP3-player. These channels send music to your left and right ear, respectively. In the third part of the tutorial series, using the provided software, you will program dance moves into your favorite song by replacing the right-channel of music with binary-encoded dance moves! When your MP3-player is plugged in and you play your encoded song, the left-channel goes directly to an audio amplifier and plays the music through the speaker, while the right-channel goes to a small computer, which interprets the digital information as motor and light commands.

DanceBots_Encoded_Music
The left channel of the newly encoded MP3 file is just your regular music, which is played through the DanceBot’s speaker. The right channel is replaced with digitally-encoded dance moves. These are sent to a small computer, which interprets them as motor and light commands that instruct your DanceBot how to rock around the clock!

The electronic roadmap

A schematic is a drawing that shows us how electronic components connect together and where they are placed on the printed circuit board (PCB, the picture below). If you, like most people, don’t have the ability to print a circuit board, don’t worry, prototyping boards will work just fine!

DanceBot_PCB
For the DanceBot’s workshop (taking place yearly in the Swiss town of Fiesch), we have circuit boards printed for the students. But don’t worry, prototyping boards will work just fine!

Before we start assembling the electronics, it’s important to know how to read the DanceBot’s schematic. You can download the schematics for this project here. Below you will find a list of common elements, which you can identify on the schematic and on the PCB.

Component Type Measurement Unit Symbol Picture
Resistor Ohm (Ω) symbol_resistor part_resistor
Capacitor (polarized) Farad (F) symbol_capacitor_polarized part_capacitor_polarized
Capacitor (not polarized) Farad (F) symbol_capacitor part_capacitor
Light Emitting Diode (LED) symbol_LED part_LED

Now take a look at the schematic. Notice that beside each symbol in the schematic is a name (black) and a value (blue). The Name helps to identify the location of a part on the PCB (the picture above), while the value identifies the value of the part, as described in the table above.

symbol_generic
Each component on an electrical schematic typically has a name (black) and a value (blue). Here, the name is C1 and its value is 100 nano-farads (nF).

In addition to name and value, some parts have a polarity. Be careful! This means you need to put them in the right way, otherwise things won’t work and could get damaged! Diodes have a polarity, and in this project some capacitors have a polarity too. In the next tutorial, where you will assemble the DanceBot’s electronics, we will warn you of any components with a polarity.

That’s it for now

In the next two tutorials, we will put together the DanceBot’s electronics, and then build its body and program some funky moves. If you would like to follow along in future tutorials, you’ll need to organize a few things. You’ll need to:

If you don’t know where to start with these steps, a friend with electronics experience will definitely be able to help!

Once you have organized the above, take some time to learn how to solder and learn how to use a multimeter to check connections.

http://www.youtube.com/watch?v=jLt_xbyYq8Y

Stay tuned for the second tutorial!



tags: , , , ,


Raymond Oung is involved with developing robotic workshops for students and the Swiss Mechatronics and Arts Society.
Raymond Oung is involved with developing robotic workshops for students and the Swiss Mechatronics and Arts Society.





Related posts :



Robot Talk Episode 123 – Standardising robot programming, with Nick Thompson

  30 May 2025
In the latest episode of the Robot Talk podcast, Claire chatted to Nick Thompson from BOW about software that makes robots easier to program.

Congratulations to the #AAMAS2025 best paper, best demo, and distinguished dissertation award winners

  29 May 2025
Find out who won the awards presented at the International Conference on Autonomous Agents and Multiagent Systems last week.

Congratulations to the #ICRA2025 best paper award winners

  27 May 2025
The winners and finalists in the different categories have been announced.

#ICRA2025 social media round-up

  23 May 2025
Find out what the participants got up to at the International Conference on Robotics & Automation.

Robot Talk Episode 122 – Bio-inspired flying robots, with Jane Pauline Ramos Ramirez

  23 May 2025
In the latest episode of the Robot Talk podcast, Claire chatted to Jane Pauline Ramos Ramirez from Delft University of Technology about drones that can move on land and in the air.

Robot Talk Episode 121 – Adaptable robots for the home, with Lerrel Pinto

  16 May 2025
In the latest episode of the Robot Talk podcast, Claire chatted to Lerrel Pinto from New York University about using machine learning to train robots to adapt to new environments.

What’s coming up at #ICRA2025?

  16 May 2025
Find out what's in store at the IEEE International Conference on Robotics & Automation, which will take place from 19-23 May.

Robot see, robot do: System learns after watching how-tos

  14 May 2025
Researchers have developed a new robotic framework that allows robots to learn tasks by watching a how-to video



 

Robohub is supported by:




Would you like to learn how to tell impactful stories about your robot or AI system?


scicomm
training the next generation of science communicators in robotics & AI


©2025.05 - Association for the Understanding of Artificial Intelligence


 












©2025.05 - Association for the Understanding of Artificial Intelligence