Coconut song on PIC12F1822

Show off your PIC based project.

Coconut song on PIC12F1822

Postby pcb_nl » Wed Nov 23, 2016 2:08 pm

My family uses this melody from "I've Got a Lovely Bunch of Coconuts" by Fred Heatherton. We write a new text and sing at family meetings, such as weddings.
To support the singing and tempo I made a music box with a PIC12F1822 to generate the notes and tempo with PWM.
The output from pin RA5 is tied to a piezo or in my case to a transistor feeding a small speaker.
It sounds a bit crappy but it worked great.

Feel free to post suggestions, improvements, or bugs.

main.c
(7.34 KiB) Downloaded 20 times


p.s. Is there a "Project Show Case" on microchip forum?
pcb_nl
 
Posts: 1
Joined: Mon Nov 21, 2016 2:16 pm
PIC experience: Experienced Hobbyist

Return to Project Show Case

Who is online

Users browsing this forum: No registered users and 1 guest