ITP blog ยท physical-computing

Week 13 - Dance floor sequencer progress, part 2

4 December 2018

Fabrication

After some preliminary user testing in Code of Music yesterday, I started to realize that creating robust and rugged floor tile switches would be crucial to the success of this project. The switches broke down by the end of the testing session, but despite that I still got some good feedback on the software which I was able to incorporate today.

I talked with Ben Light about fabrication of the final device today and he underscored the importance of focusing on making really good tile switches that will keep working after many users step on the device. We sketched out some designs involving foam pads and a frame made from aluminum U-channels (which would house the LEDs as well, to avoid the danger of them being crushed). I thought about various ideas to improve the switch mechanism, including this one suggested by Tom where I would use four parallel contact sensors at the corners of a pad instead of one in the center:

four-contact-sensors

I will go buy some hardware and start building new tiles in earnest tomorrow.

Software improvements

I also spent time improving the sequencer software today. The UI I'm building here is useful for mocking out the physical inputs for now, and it will also be useful later in the final product to aid in debugging. Here's another progress video of the software:

At this point I've improved the timing of user-initiated sequence recording to be more responsive, refined the storage of sequences, added different pad colors which are reflected in the timeline, and added some shortcuts to fill in the current sequence with common patterns like 4-on-the-floor kick drum and hi-hat 16ths. I'm likely going to keep a 4-on-the-floor kick drum pattern on by default when presenting this device to users since I think it provides a good base to start recording rhythms on top of (in this case I'll probably remove the kick from the available pads and substitute it for something else, probably cowbell, since as you can tell that's conspicuously missing from this project thus far).

Another video of the latest state of the UI is included later in this post, so keep readin...

Refining the hardware prototype

In preparation for tomorrow's user testing in Physical Computing, I made the switch and LED connections more robust (the LEDs were shorting sometimes during my Monday testing, and that would reset the microcontroller). You can see they're more responsive here, I can stand and jump on the tiles:

I recorded some more testing to produce a video for my winter show application:

One of the major changes I made tonight was to use a different data exchange format while sending data from the microcontroller. Instead of sending each pad hit event every time a switch was triggered, I now send a string representation of the pad state changes. Each character in this "change event" string corresponds to a pad index, 0 = no change, 1 = pad activated, 2 = pad deactivated. For example, if a user lifted their foot from pad 0 and triggered pad 1 concurrently, the serial data sent would be "2100". This helps me schedule updates better on the JavaScript side.

dance-floor-8

Above: static photo of the current hardware with one pad activated by my foot.

sequencer-ui-1

Above: static screenshot of the latest sequencer web UI.