NEW
SD FAT32 Sound Recorder
SD Card Data Logger
FAT32 Player ATtiny85/45
Birthday Card ATtiny85 / PIC
ATtiny85/45 Counter
ATtiny85/45 EEPROM Doorbell
ATtiny Water Softener
CH341 USB TO I2C/SPI/EPP
USB to I2C OLED
USB to LCD
USB Input Output
SD CARD
CH376 USB Picture Frame
SD FAT32 Player PIC12F1822
W25Q64 Flash Recorder
Picture Frame PIC16F690
Color OLED Picture Frame
SD FAT32 TFT Display
Doorbell with SD/EEPROM
SD Talking Clock
SD Sound Recorder
SD FAT32 wav Player
SD Arduino Recorder
Arduino Picture Frame
FREQUENCY COUNTER
AD9833 Waveform Generator
Chrome Browser Counter
Arduino LED MAX7219 Counter
LCD Accurate Counter
OLED Accurate Counter
MilliHertz Counter
PIC Counter For Android
MAX7219 LED Counter
WiFi Frequency Counter
Frequency Generator
OLED Counter PIC12F629
Talking Frequency Counter
TFT Counter PIC16F628A
SSD1306 Counter PIC16F628A
SSD1331 Counter PIC16F628A
Arduino Counter for PC
OLED Arduino Counter
OLED Frequency Counter
TFT 10MHz Counter
PC Counter
LED Counter
Scope Screen Counter
LCD 16 x 2 Counter
LCD Arduino Counter
6MHz Android Counter
NIXIE Android Counter
Bluetooth Counters
USB Counter
OBD2
OBD2 RPM meter PIC16F876A
OBD2 Engine Rev Counter
OBD2 Diagnostic app
OSCILLOSCOPE
Logic Analyzer
PIC12F1822 Scope for PC
Arduino Oscilloscope for PC
Arduino OLED Oscilloscope
Android Oscilloscope
TFT Oscilloscope
USB Oscilloscope
THERMOMETER
Thermocouple 1023 Deg
Thermometer For Browser
OLED Thermometer PIC12F629
OLED Room Thermostat
TFT Clock and Thermometer
LED Thermometer
USB Thermometer
Serial Thermometer
Serial Thermostat
USB DS18B20 Sensor
TIMER / CLOCK
Cuckoo Clock
Real Time Clock DS3231
LED TM1637 Timer
OLED Timer Thermometer
TFT Timer Thermometer
LED Timer
LCD Timer
Clock Thermometer
Talking Clock PIC16F628A
Android Talking Clock
WiFi
WiFi, Ethernet
WiFi Thermometer
WiFi ESP8266
USB
IO for Chrome Browser
USB 16x2 LCD
USB TFT display BMP
USB Meter
USB Input-Output
USB Input-Output Android
DATA ACQUISITION
Analogue to USB (CH341)
MCP3201 on Serial Port
PC Analog Input (USB-UART)
SERIAL PORT
Serial TFT Text
Serial Inputs Outputs
Serial Port LCD
Analogue Signal to Serial
OTHERS
Talk to Arduino
HC-SR04 Sensor
OLED Amp Meter
PC digital I/O (no coding)
Analogue Signal to LPT
LCD Display on LPT
Water Softener
Solar Charger
PIC Music
Code Lock
SMALL PROJECTS  
  Technical Tips  

PIC12F1822 HAPPY BIRTHDAY CARD

Birthday card that plays happy birthday tune and display greetings on a TFT display. The speaker is a piezo buzzer and the TFT is 0.96", 80x160 pixels, ST7735 driver, SPI interface. The name of the card receiver has to be changed in the code, the color of each letter can be set, name can be up to 6 letters, the letter number is the number of line in the "oled_font.c" file.
The circuit can be powered by 3-5V so one cell of lithium 3.7V can be used.

 629thermo

line

PIC16F628A HAPPY BIRTHDAY CARD

Birthday card that plays happy birthday tune and display greetings on a TFT display. The speaker is a piezo buzzer and the TFT is 0.96", 80x160 pixels, ST7735 driver, SPI interface. The name of the card receiver has to be changed in the code, the color of each letter can be set, name can be up to 6 letters, the letter number is the number of line in the "oled_font.c" file. Due to a software SPI the TFT is slow.
The circuit can be powered by 3-5V so one cell of lithium 3.7V can be used.

 629thermo

line

ARDUINO / ATTINY85 HAPPY BIRTHDAY CARD

Birthday card that plays happy birthday tune and display greetings on a TFT display. The speaker is a piezo buzzer and the TFT is 0.96", 80x160 pixels, ST7735 driver, SPI interface. The name of the card receiver has to be changed in the code, the color of each letter can be set, name can be up to 6 letters, the letter number is the number of line in the "oled_font.c" file. File oled_font.c has to be in the same folder as the sketch.
ATtiny is programmed using Arduino IDE and Arduino as ISP. Use these instructions https://gist.github.com/ij96/804e731bd31dbb95b2b043e93c79ceab with the difference of burning bootloader with setting "Clock Source 8MHz internal", this makes the CPU working at frequency of 8MHz.
The ATtiny can be powered by 3-5V so one cell of lithium 3.7V can be used.

 629thermo629

line

PIC MUSIC - HAPPY BIRTHDAY

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 batteries.
Software includes PIC code C and ASM.

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.



Name:

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
Name: ADALTO
Comment: MUITO BOM ESTE PROJETO. OBRIGADO AMIGO

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
Comment: YES THANK YOU ASM OR HEX

26.01.2013 - 18:29
Name: TOM
Comment:

16.01.2013 - 16:51
Name:
Comment:

iconFlag Countermoty22.co.uk  2008-2024