• Prototype report: LEDs are Go! But sound is distorted.

    Thomas04/15/2020 at 17:05 0 comments

    I've finally got a prototype up and running using an ATmega. The LEDs are behaving well, but as you can hear in the video, the tones sound very garbled when responding to button pushes (they sounds fine in the power-on test sequence). I'm 95% percent sure I know what's happening: the unit is scanning many times per second to see if a button is engaged. When a button IS engaged, it's playing that tone many times a second, which leads to audio distortion. The solution lies in the code, which is my weak area. I'm fairly certain the solution involves proper use of buttonState.

  • Doing more with less

    Thomas03/19/2020 at 10:28 0 comments

    I'm currently waiting for parts to arrive (shipping to Tbilisi, Georgia, from the US takes a few weeks) and while staring at the project on my workbench I had a small "aha" moment. I realized that my method for connecting the keypad to the Arduino was absurdly primitive: I was using an analog input for each key. That would be like having a computer keyboard with sixty wires coming off it. I see no reason I can't use the method that nearly all modern keyboards use, where rows and columns of keys form a matrix. This would take me from using 11 wires (one for each sensor) to seven wires (one for each row and column). But instead of the keystroke trigger being high, with my design it would have to be be low (the photo interrupters stop sending a signal when they are interrupted). 

    This would involve a small hardware modification from my current layout, which is no problem, but the code would be substantially different. Coding has been the biggest challenge for me on this project, so for now I will push ahead with my original strategy (one analog input per key). Once I have a working prototype I'll evaluate ways to improve it for Mk II. 

  • Coding challenges

    Thomas03/16/2020 at 08:22 0 comments

    Still stumbling a bit with the Arduino code. I had a breadboard prototype working last week with two sensors, two LEDs and a buzzer. But when I expanded the prototype to include 11 sensors and LEDs, the code no longer works as intended. Most notably, the buzzer appears to be trying to play more than one note at a time. 

    Digging through one of my bins I found a good candidate for the "screen" that will show the LEDs when keys are pushed: the translucent front plate that went over the CRT on an old oscilloscope. It's the perfect size and I've decided to expand the matrix of LEDs to an 5x4 array to make it seem more natural.