PIC12F are great small microcontrollers with 8 legs. They usually come with internal oscillator, 4 channels 10-bit ADC, EEPROM, voltage reference, several communication peripherals like USART, SPI, I2C, timers and other. So with it you can build quit powerful applications and control devices.
Embedded-lab introduced pretty handy development board fir this micro. It has many features that enable rapid prototyping or learning the basics. It comes with 5V voltage regulator, I/O header for all MCU pins, fairly big prototyping area, ICSP programming header, four push buttons connected to analog pin through voltage divider resistors, and couple LEDs – one power another attached to digital output. You can solder any component to prototyping area and have even more to do.
Pong game is one of the first arcade games ever created. It mimic tennis game and is super simple. DysfuncTech couldn’t let it go and built Pong game on PIC12F1840 8-pin microcontrolller. It can be connected to TV and played as it was times ago. Game resolution is set to 32×56. It cant get higher due to RAM limitations. And there is no need for more res as game is simple as two cents.
With some code optimizations he was able to squeeze in sound. It is played using piezo speaker. If you look at build log you’ll see that project has several releases with better improvements every time. Right now it looks pretty polished for having great experience.
A clap switch could be nice addition inside the house. And it may be really practical when reaching for light switch in the dark – just clap your hands couple times and light goes on. Embedded-lab discusses on how to build a simple clap switch using few widely accessible components.
Obviously first part is capturing sound using microphone. Its signal is boosted using transistor amplifier. After signal level is raised to match microcontroller input levels it is captured by PIC12F683 microcontroller. Analog comparator inside MCU makes things much easier as it allows comparing two analog voltages and decided when clap has occurred. Simple microcontroller program simply listens for two claps in a row and toggles output LED which can be easily replaced with relay switching heavier loads.
PIC12F microcontrollers are small 8 legged chips that doesn’t take much space but can do a lot. Embedded-lab have designed a small prototyping board to put these microcontrollers to work easily.
Board has a standard setup including 5V voltage regulator, ICSP programming header and all pins populated. There are lots of space left on 5cmx5cm board left so free areas were filled with prototyping area for soldering additional components. And finally you will already find a list of available projects to try including voltmeter, metal detector or IR remote.