Instructables

Arduino LCD Metronome


Metronomes can be expensive but with an Arduino and a few parts you can make an extensible metronome.
 
Remove these adsRemove these ads by Signing Up

Step 1: Parts

Parts:
- Arduino (any normal sized Arduino will be fine)
- The Arduino IDE and the knowledge to use it
- Lots of wires
- HD44780 LCD Display (I've used a 20x4 but a 16x2 will work fine)
- 3x 100K Ohm Resisors
- A rotary encoder -- must have a button
- 1M Ohm Resistor
- TDA7052 Amp
- Speaker
- 44K Ohm Potentiometer
- 100k Ohm Potentiometer
- 100nF non-polarised capacitor
- 100uF 16v electrolytic capacitor

Step 2: Connecting the LCD

Picture of Connecting the LCD
The first step is to wire up the LCD. The HD44780 has 16 pins:
Pin 1 - Vss
Pin 2 - Vdd
Pin 3 - Vo
Pin 4 - RS
Pin 5 - R/W
Pin 6 - E
Pin 7 - DB0
Pin 8 - DB1
Pin 9 - DB2
Pin 10 - DB3
Pin 11 - DB4
Pin 12 - DB5
Pin 13 - DB6
Pin 14 - DB7
Pin 15 - A
Pin 16 - K

This is how the pins should be connected:
LCD1 - GND
2 - 5v
3 - Middle pin of 44K pot
4 - Arduino 12
5 - GDN
6 - Arduino 11
11 - Arduino 5
12 - Arduino 6
13 - Arduino 7
14 - Arduino 8
15 - 5v
16 - GND

The rest of the LCD pins can be left blank. The pot needs the other pins to be connected to 5v and GND. For a more in depth look see http://arduino-for-beginners.blogspot.com/2010/11/arduino-output-lcd-modules-part-1.html

Step 3: Testing the LCD

To test the LCD upload the attached code, you should see the words "Hello, world" and the number of seconds since you uploaded the code. If there is a backlight but no text try turning up the potentiometer
lcd_test.pde565 bytes

Step 4: Building the amplifier

Picture of Building the amplifier
SDC11270.JPG
Next up is the amp circuit. Be very careful to get the IC and 100uF capacitor the right way round. The pot controls volume.

Please where is the code link ?

thanks.

crob099 months ago
This looks very cool and it gives me some ideas, for example automation of lights. This may help a person with timing values when writing the sketch for them lights.
Just wondering if you know of a way to have Arduino listen for, and store, the beat of a song playing?

At any rate I'm going to try this and thanks it's very cool, nice video too!
matio2matio (author)  crob098 months ago
Really sorry it took me so long to reply.

Listening to something on the Arduino sounds fairly difficult I'm afraid. Analysing songs is generally quite a difficult and computationally expensive thing to do and I can't find any libraries for it. I'm not sure how you would even get a microphone talking to the arduino. Sorry

I'm really glad you liked it