Disco
Invent Logo

Your challenge now is to create a dancing 'disco robot'. With precise control of the timings of your code and the movements of the motors, you can make your robot dance along with a favourite song.

Disco
Dancing robot - movements

We can only play short sounds on our robot speaker and the sound quality isn't great, so you'll be using a favourite song from the internet and creating dance moves!

You'll mainly be using the movement blocks, the delay block and loop blocks to create your movements and you'll need to do lots of tests to make minor changes of your delays to perfectly synchronise with your music track.

Dancing robot - lights

Once you've got a few movements created, you can add some disco lights as well! Your obstacle sensor has lights on it. Attach this now.

Using the block shown, you can control the LEDs on your obstacle sensor. They're in the shape of a circle and there's all sorts of fun things you can do with them ...

  • There are 8 LEDs (labelled 0 to 7)
  • Turning them all on brightly will create an impressive light show but it will drain your batteries more quickly.
  • You can even create a happy or sad face by turning on just some of the lights!
Dancing robot - lights