zondag 28 november 2010

Attempt at creating my own simple MIDI controller


I started on a new project, converting a cheap toy piano into a MIDI keyboard. The toy piano has 23 keys, which it reads using a 4x6 grid of scanlines. The resistors are already in place, and fortunately there are places for me to solder my wires to. The PIC16F690 should have enough pins (I only need 10, it has 20), and I already have MIDI code for my Beethoven playing box, that I described earlier. Hooking up a MIDI output is very easy as well: just connect +5V to pin 4 of a 5-pin female DIN plug with a 220 Ohm resistor, and hook up the TX pin of the PIC16F690 to pin 5. The step I forgot before is that pin 2 definitely needs to be grounded, so don't forget that. You can of course also use sketch one or sketch two, or any of the others found on the Internet.

I used the Pic kit 2 to try different voltages, and the MIDI works with my CASIO keyboard even at 2.5V. Since the piano has a 3V battery, I was glad to see this. Using 3V of course makes it not entirely MIDI compliant, but I'm sure most pianos will behave just fine with it.

maandag 4 oktober 2010

Heart rate monitoring 10

This is another walk from that same trip, this time steeply uphill and downhill, to the Bumpass hell from lassen volcanic national park. Heart rate bumpass hell walk

As you can see, the uphill part had a significantly higher heart rate than the downhill part, with a slight break in between, where I discovered I had cell phone reception and sent and received some text messages.

maandag 20 september 2010

Heart rate monitoring 9

It has been a while, but in August I went to Vancouver with my parents, and hiked in various national parks on the way. Here is the graph from the second hike, which was through a forest, on level ground. The forest was beautiful, but there wasn't much variation in heart rate.

Heart rate walking through forest.

maandag 12 juli 2010

Heart rate monitoring 8

This month the "An analytical approach to club dancing" classes started, and I decided to measure them as well. As you can expect, the analytical approach (green) is a lot lower than the beginning hip hop (red):

Beginning hip hop vs. the analytical approach to club dancing, heart rate.

vrijdag 25 juni 2010

Heart rate monitoring 7

Because of the heart rate monitoring, Anna Botelho asked me to check my heart rate during another class of hers called "Dancing around the world". It doesn't focus on the moves at all, and involves many different dance styles, most of which were quite confusing. Here is the graph comparing it with Shaira Bhan's class, of that same week:

Heart rate comparison between Dancing Around the World and Bollywood

The only clear difference is the start, which is partly due to me being on a treadmill (since Dancing around the World is at the gym) and partly because the Bollywood class (the red line) has a longer warming up (I think this is because people generally show up in the middle of the Dancing around the World class, which means warming up makes less sense). However, if you look at the details you can see that the activity level during the Dancing around the World class is higher (the green line is more often above the red line than the other way around). The software stated I burned 1323 kCal during the Dancing around the World class, but as I stated in my previous post, this should probably be 20% lower. It is still the highest of all activities so far.

For completeness, here is a comparison between "Beginning Hip Hop" and the "Dancing around the World" class:

heart rate of Beginning Hip Hop vs. Dancing around the World

It isn't difficult to guess that the Beginning Hip Hop is in red. I guess some would say that my heart rate peaking at 190 bpm is not a good thing, and an average of 171 bpm is not a good thing either. However, I feel fine. I'm in far more pain with certain flexibility requiring moves than I have with continuous jumping.

And finally, a more relaxing graph: me sleeping.

Heart rate while sleeping

The graph looks busy, but the scale is actually quite narrow. I like the part where my heart rate drops down to 51 bpm. I'm also impressed how quickly it can go from 60 to over 100 (this usually happens when I stand up, so I guess I got out of bed at that time).

donderdag 24 juni 2010

Heart rate monitoring 6

A day later, and now I can compare two Beginning Hip Hop classes from Anna Botelho with each other:

Heart rate of two beginning hip hop classes

You can clearly see each time she explains things, and each time we're practicing that particular move. The green graph is the latest class, which was a little bit more intense than the previous one.

The software calculated 677 kCal burned, however, I was told these numbers are a bit high, so I checked how they are calculated. It seems that without knowing my VO2/max it is impossible to get a proper number, however, the software clearly things my VO2/max is higher than it actually is. So it is likely you have to reduce the numbers by 20%. I'll see if I can establish my VO2/max value at some point.

woensdag 23 juni 2010

Heart rate monitoring 5

With another week came more dance classes. First there was another class with Shaira Bhan, which allows me to compare two weeks of classes in one graph:

Heart rate comparing two Bollywood dance classes of Shaira Bhan

Green is the most recent dance class. As you can see, this time we didn't get our rest period practicing jumping up in sequence. The knee jumping was present (and brought my heart rate up to 188 in the second part, where we had to move the hands in the opposite direction of usual) and the circle "boot camp" was more intense as well. The end result was a total of 1113 kCal burned, which is higher than last time.