Search Results for: pic12f

Very basic car battery charger on PIC12F683


Charging lead acid car is fairly simple. You need to take care of charging current which should be around 0.1C and charge up to 13.4V battery voltage. Having this in mind, it is easy to build charger out of few parts available. Pityukecske have shared his version of battery charger on instructable. He has chosen a PIC12F683 microcontroller which controls relay switching charging current to battery and also monitors battery voltage on one of its ADC inputs. Current circuit doesn’t have much flexibility – charging current is basically driven directly from transformer and diode rectifier. It is visible on panel ammeter. So transformer is chosen to meet current requirements. Microcontroller monitors battery voltage. Since it is over 12V there is a resistor voltage divider used to scale voltage to microcontroller … Continue reading

PIC12F handy development board


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.

Nostalgia with PIC12F1840 pong game

smallest Pic based pong game

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.

Building a clap switch using PIC12F683

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.

Small PIC12F development board


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.

PIC12F629 based LED rotating beacon


You’ve probably seen a police or ambulance rotating beacon. If you want to have something similar take a look at this simple project. This is a four 0603SMD LED based beacon where rotation effect is created without any moving parts. In order to make this effect, each led has to be driven with PWM signal. Probably the trickiest part in LED beacon was to solder SMD LEDs in to shape where they look in four different sides like real beacon does. Wattsecunde achieved this using a special holder made of four chips. He ended up with four LED bundle and five control wires (1 common cathode and 4 anodes for each LED).

PIC12F based prototyping board


embedded-lab has published a PIC 12F series project board that suits for small projects where small number of I/O pins are require. Despite its small size board has all you need to do quite powerful projects. 4-channel ADC, EEPROM, multiple communication interfaces like UART, SPI, I2C, PWM and more. Board can be programmed using ICSP programming header. For your convenience there is a small prototyping area where additional components can be soldered to enhance functionality. There is a little demo program available for fast test which drives four seven segment LED display.