OLED Current Meter PIC12F675
Picture Frame PIC16F690
Talking Clock PIC16F628A
OLED Thermometer PIC12F629
OLED Thermostat PIC16F628A
TFT Counter PIC16F628A
SSD1306 Counter PIC16F628A
SSD1331 Counter PIC16F628A
Color OLED Picture Frame
Arduino Counter for PC
Arduino Oled Code Lock
PC digital I/O without MCU
PC Analog Input without MCU
Arduino Oscilloscope for PC
Arduino OLED Oscilloscope
Arduino Picture Frame
OLED Bitmap Arduino / PIC
OLED Arduino Counter
OLED Timer Thermometer
OLED Frequency Counter
Android Oscilloscope
OBD2 Engine Rev Counter
OBD2 Diagnostic app
TFT Clock and Thermometer
WiFi, Ethernet
WiFi Thermometer
WiFi ESP8266
Doorbell with SD / EEPROM
SD FAT16/32 for .bmp
PETIT FAT bmp Display
TFT Timer, Thermometer
TFT Oscilloscope
SD Talking Clock
Android Talking Clock
SD Sound Recorder
SD FAT32 wav Player
SD Arduino Recorder
LED Thermometer
LED Timer
LCD Timer
TFT 10MHz Counter
100KHz Counter For PC
1MHz Counter For PC
8 Digits LED Counter
Scope Screen Counter
LCD 16 x 2 Counter
LCD Arduino Counter
6MHz Android Counter
NIXIE Android Counter
Bluetooth Counters
USB Counter
USB TFT display BMP
USB DS18B20 Sensor
USB Thermometer
USB Meter
USB Oscilloscope
USB Input-Output
USB Input-Output Android
USB 16x2 LCD
Serial TFT Text
Serial Inputs Outputs
Serial Port LCD
MCP3201 on Serial Port
Serial Thermometer
Analogue Signal to Serial
Serial Thermostat
MCP3201 on LPT
Analogue Signal to LPT
LCD Display on LPT
Water Softener
3.7V to 5V
Solar Charger
Infrared Decoder
PIC Music
Code Lock
Code Lock with LCD
HOME fr  ru  de  in  ro  ar  tr  nl  il  Technical Tips


Using PIC12F629 to generate repeated 'happy birthday to you' tune. The frequencies for the notes are suitable to drive piezo sounder. The IC works down to 2 Volts so it can be powered by 2 cells batteries.
The code
has a data for the 8 notes needed for the tune and it uses 100 bytes, there are more than 680 bytes left to add tunes.
Software includes PIC code (3KB). You are free to use the circuit diagram and the software with no limitations.

Circuit Description
See also Technical Tips

Outputs 3 and 5 are opposite phase to each other to get double the supply voltage.

Power supply can be 2 to 5 Volts.

The optimal speaker is piezo sounder.



Comments and questions

Copy the number from the picture It stops net-robots from adding comments.

02.06.2017 - 20:09
Name: milo
Comment: good

29.12.2016 - 23:33
Name: Giuseppe
Comment: molto utile questo progetto, anche perché il codice è in ASM. GRAZIE

18.06.2016 - 00:54

16.05.2014 - 22:06
Name: Moty
Comment: Hi Martin. The frequencies are generated by looping for different periods of time before toggling the output. Pic12f629 doesn't posses PWM. If you need more answers let me know whether you are using C or ASM.

16.05.2014 - 14:22
Name: Martin
Comment: Hi, I'm trying to make different tunes but I need different notes for them. How did you convert the notes frequencies into the time constants for the PWM?

20.04.2013 - 22:23
Name: Moty
Comment: Hi Ricardo. I wont be able to fulfil such a request for the following 4 weeks. Try again later if you don't do it yourself by then.

19.04.2013 - 19:38
Name: Ricardo
Comment: Can you please send me by email a version for PIC12F675? Thanks!!

26.01.2013 - 18:31
Name: TOM

26.01.2013 - 18:29
Name: TOM

16.01.2013 - 16:51

moty22.co.uk  2008-2022