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 110 – Designing ethical robots, with Catherine Menon

  21 Feb 2025
In the latest episode of the Robot Talk podcast, Claire chatted to Catherine Menon from the University of Hertfordshire about designing home assistance robots with ethics in mind.

Robot Talk Episode 109 – Building robots at home, with Dan Nicholson

  14 Feb 2025
In the latest episode of the Robot Talk podcast, Claire chatted to Dan Nicholson from MakerForge.tech about creating open source robotics projects you can do at home.

Robot Talk Episode 108 – Giving robots the sense of touch, with Anuradha Ranasinghe

  07 Feb 2025
In the latest episode of the Robot Talk podcast, Claire chatted to Anuradha Ranasinghe from Liverpool Hope University about haptic sensors for wearable tech and robotics.

Robot Talk Episode 107 – Animal-inspired robot movement, with Robert Siddall

  31 Jan 2025
In the latest episode of the Robot Talk podcast, Claire chatted to Robert Siddall from the University of Surrey about novel robot designs inspired by the way real animals move.

Robot Talk Episode 106 – The future of intelligent systems, with Didem Gurdur Broo

  24 Jan 2025
In the latest episode of the Robot Talk podcast, Claire chatted to Didem Gurdur Broo from Uppsala University about how to shape the future of robotics, autonomous vehicles, and industrial automation.

Robot Talk Episode 105 – Working with robots in industry, with Gianmarco Pisanelli 

  17 Jan 2025
In the latest episode of the Robot Talk podcast, Claire chatted to Gianmarco Pisanelli from the Advanced Manufacturing Research Centre about how to promote the safe and intuitive use of robots in manufacturing.

Robot Talk Episode 104 – Robot swarms inspired by nature, with Kirstin Petersen

  10 Jan 2025
In the latest episode of the Robot Talk podcast, Claire chatted to Kirstin Petersen from Cornell University about how robots can work together to achieve complex behaviours.

Robot Talk Episode 103 – Delivering medicine by drone, with Keenan Wyrobek

  20 Dec 2024
In the latest episode of the Robot Talk podcast, Claire chatted to Keenan Wyrobek from Zipline about drones for delivering life-saving medicine to remote locations.





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


©2024 - Association for the Understanding of Artificial Intelligence


 












©2021 - ROBOTS Association