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:

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.

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 :



Open Robotics Launches the Open Source Robotics Alliance

The Open Source Robotics Foundation (OSRF) is pleased to announce the creation of the Open Source Robotics Alliance (OSRA), a new initiative to strengthen the governance of our open-source robotics so...

Robot Talk Episode 77 – Patricia Shaw

In the latest episode of the Robot Talk podcast, Claire chatted to Patricia Shaw from Aberystwyth University all about home assistance robots, and robot learning and development.
18 March 2024, by

Robot Talk Episode 64 – Rav Chunilal

In the latest episode of the Robot Talk podcast, Claire chatted to Rav Chunilal from Sellafield all about robotics and AI for nuclear decommissioning.
31 December 2023, by

AI holidays 2023

Thanks to those that sent and suggested AI and robotics-themed holiday videos, images, and stories. Here’s a sample to get you into the spirit this season....
31 December 2023, by and

Faced with dwindling bee colonies, scientists are arming queens with robots and smart hives

By Farshad Arvin, Martin Stefanec, and Tomas Krajnik Be it the news or the dwindling number of creatures hitting your windscreens, it will not have evaded you that the insect world in bad shape. ...
31 December 2023, by

Robot Talk Episode 63 – Ayse Kucukyilmaz

In the latest episode of the Robot Talk podcast, Claire chatted to Ayse Kucukyilmaz from the University of Nottingham about collaboration, conflict and failure in human-robot interactions.
31 December 2023, by





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