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 126 – Why are we building humanoid robots?

  20 Jun 2025
In this special live recording at Imperial College London, Claire chatted to Ben Russell, Maryam Banitalebi Dehkordi, and Petar Kormushev about humanoid robotics.

Gearing up for RoboCupJunior: Interview with Ana Patrícia Magalhães

and   18 Jun 2025
We hear from the organiser of RoboCupJunior 2025 and find out how the preparations are going for the event.

Robot Talk Episode 125 – Chatting with robots, with Gabriel Skantze

  13 Jun 2025
In the latest episode of the Robot Talk podcast, Claire chatted to Gabriel Skantze from KTH Royal Institute of Technology about having natural face-to-face conversations with robots.

Preparing for kick-off at RoboCup2025: an interview with General Chair Marco Simões

and   12 Jun 2025
We caught up with Marco to find out what exciting events are in store at this year's RoboCup.

Interview with Amar Halilovic: Explainable AI for robotics

  10 Jun 2025
Find out about Amar's research investigating the generation of explanations for robot actions.

Robot Talk Episode 124 – Robots in the performing arts, with Amy LaViers

  06 Jun 2025
In the latest episode of the Robot Talk podcast, Claire chatted to Amy LaViers from the Robotics, Automation, and Dance Lab about the creative relationship between humans and machines.

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.



 

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