My adventures with the Arduino Starter Kit

Time to test my musical chops, this time with the Keyboard Instrument:

Unlike what you might expect - each button being connected to the arduino via it’s own pin, allowing it to trigger the different notes - instead they’re all plugged into a single pin, but send different amounts of voltage based on which resistors are in serial. The arduino then reads the voltage being supplied, and plays the relevant note via a simple conditional.

Now, (at the risk of being told off my @Woo again), this also had a bit of an issue with it, as the book mentions that pressing two buttons at the same time should produce a unique amount of resistance based on the relationship between the two resistors in parallel - this didn’t happen… instead what I got is what I was expecting: for the path of least resistance to be populated with power…

… although I gather that it’s probably me that’s wrong here, but right now I’m not sure what I can do to correct for this.

And yet another project: Digital Hourglass:

In an effort to mimic that of an egg timer, this features a tilt switch which, upon movement (or turning upside down) resets a timer that controls the LEDs. The original script made it a true hourglass, with each LED in turn lighting up every ten minutes…

… but I prefered the idea of the LEDs turning off as the timer counted down, and because I only had 7 seconds of video to work with, I reduced the interval.

The next step, I guess, is for some type of buzzer to go off when the timer expires - but that will be a task for another day.

I wasn’t tellng you off at all. I’m always fascinated when people come to a completely different decision to me about the same data, in case I’m wrong. I like to try to understand how it happened.

In this case, if it is due to the different styles of our education, then I think it is very useful to share that information back to potential educators. They can change the way we think, not just what we know.

1 Like

Arduinos are go!

Ordered @ 22:30 on Saturday when Amazon said delivery 11-13 May – I never pay the postage fee. Arrived 10:30 this morning :slight_smile: Grabbed the software and plugged it in over lunch, and now getting down to the serious business of flashing LEDs. Impressed so far. And fun!

1 Like

Just finished building the Motorised Pinwheel:

The tutorial explains that motors require more current than the Arduino can supply, which is why the motor is powered by a 9v battery, which is turned on via a transistor (which in turn is controlled by a button on the breadboard).

You’ll notice that I’m not actually pressing the button in the video - this is because I only have two hands, and needed one of them to hold my phone - so the fact its still spinning is explained by the extreme speed at which the motor rotates - which, the tutorial continues, is dangerous as it can generate it’s own current, going in the opposite direction, which might make things fail, so we stop this from happening via a diode.

@LimeBlast How are you getting on? Did you stop at the pin wheel?

I can’t believe how neat you make your circuits. I have bent wires all over the shop :slight_smile:

For the multi coloured lamp, I wrapped the gels around the bits left over from making the board at the start – I think that’s what the diagram was suggesting. That made it easier to block out stray light on each sensor. I had to pull out my “pro” engineering skills, though, and use sellotape.

The program given was a bit wrong. It was easy enough to debug in a dark room with a pen torch, though. I also put a small white paper bag over the LED for a diffuser, which improved the result no end.

I’m surprised how much I’m learning. More consolidation than anything new, but I’ve never thought about electronics and mixed digital and analogue control in this way. Being able to build circuits from hard components and drive them with a program clearly has endless possibilities. It’s great not having to “grow up” any more.

1 Like

So far, yes. I’ll pick it up again this weekend.

Ah, that makes sense. I was wondering what they might have been for. Was your board actually wooden? Because the book says it should be, but mine is some type of dirty brown plastic.

Yup, plastic made to look like compressed wodchips, I think.

I wonder if the version was originally wooden, but it got changed with the version.

Thank god for the weekend :smiley: I’ve finally got some time to build the zoetrope:

I’ll be the first to admit that I have no idea what’s going on with this circuit. It features two buttons, one controls the power, and the other the direction of spin. It also has a potentiometer which controls the speed. As for exactly how it works - no idea, something to do with the H-bridge - an IC which consists of a bunch of transistors.

I got as far as the theremin today, then started adding all sort of extra controls to mess with the sound. I used to have a Nord Modular and miss messing with sounds in that way.

I’ve just finished building the Crystal Ball:

Now this one I understand a little better as I’ve used one of these displays with the Raspberry Pi. The potentiometer controls the contrast on the display (which I had to adjust to make it a little clearer in the video). The book suggested using a tilt switch, which would let you shake it like a magic-8-ball, but my breadboard is having some trouble holding on to some of the components (such as the potmeter), and a regular button works just as well.


I moved onto the Knock Lock last night. This uses a piezo as a microphone to listen for knocks, and once it hears three of them, moves a servo (with the idea being the servo is a locking mechanism on a box or something).

Unfortunately, it isn’t working as intended. I think I’ve got the wiring correct, and I’m sure the code is correct, but it seems to be interpreting any sound as a knock, and simply isn’t behaving itself. I think this is a case of calibrating more than anything (and it’s possible one of the resistors isn’t the correct value)…

…but this will have to wait for now as I’m away this weekend.

I’ve almost caught up with you today. Hopefully, I’ll find time to try the Knock Lock tomorrow. Remain very impressed with the kit. Great fun. Lots of opportunity to experiment.

re: Knock Lock: There’s a bug in the code. It’s missing a reset of numberOfKnocks to zero when you hit the reset/lock switch.

After figuring it out, I had a little chuckle at how I went about debugging it. Isolating the circuit and so on. It certainly adds to the debugging fun having hardware and software to deal with :slight_smile:

Onward to Touchy-Feely Lamp. Oo er!

Ah, so that would explain why it’s automatically unlocking again after the first unlock process. That should be easy to fix.

What about the knock sensitivity? Did you have any problems with that?


The default min is 10. Displaying the value on the serial monitor, it rarely went that high, and it’s not very sensitive, so I set it to 1 or 2. Did the job.

1 Like

So, I don’t know if @auxbuss has made the Touchy-feely lamp yet - but I sure have:

This has been the simplest project for a while, although it did have the hidden complexity of having to manually install the Capacitive Sensing library - and it’s with this that I have to take issue:

The book pointed me at, but this page doesn’t exist. I was able to find the library at, but this is only because I knew of the political issues with the core dev team, where as I think someone without that background knowledge would have been stuck. In fact, the whole experience is a little lacking, and the whole thing feels like an underhanded cash grab, so I think from now on, I’m only going to get Genuino products.

Oh, and I’ve also discovered that it’s bloody hard to solder things to tinfoil.

Anyway, I plan on completing the book today, so expect at least two more posts out of me before the day is out.

Hhhmm… I’ve not had as much luck with the Tweak The Arduino Logo project. This is a fairly simple project which, via the use of a potentiometer, sends an integer between 0 and 255 via the serial port to an app called Processing. This in turn monitors the serial port and uses the integer to modify the colour of the Arduino logo shown within the Processing application window.

I’ve got a feeling that Processing has changed since the book was released, as the interface looks different from the screenshot in the book, and the code as presented doesn’t work. It was fairly simple to hack something together that did work, but it was very slow updating, and after the initial run, simply stopped working.

I think I may need to come back to this one in the future.

Proudly sponsored by Bytemark