DIY-LED’s Vase

In our homes, we all have at least one-vase either made up of glass or any other material that just sits in one corner of the room with no one paying attention to it. However with a little bit of electronics involving a microcontroller and LED’s, the vase can be made more attractive. The pulse effect that the Led’s will create will be unique and quite ravishing.  The set-up consist of a plain, un-modified vase, and a small –battery unit that involves a microcontroller and shines three-Led’s to give nice ambient colours. The circuit is powered by a PIC microcontroller, a PIC12F683, but the circuit can easily be implemented by any other class of microcontroller, including the Arduino. The circuit utilises lithium-ion cells but it works perfectly with 3 AA or AAA batteries along with a light detection and a voltage reference section. The light detection section is used so as to power the LED’s only in dark conditions, while the voltage reference section is used to detect low-battery detection which plays an important role while using Lithium-ion cells, as… Continue reading

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. Continue reading

Passive InfraRed [PIR] hacking using a PIC12F683

Passive infrared or commonly known as PIR sensors are used differently from one module to another – which basically depends on the inteded application and the encoding integrated circuit used to generate and interpret the transmitted waves and feed backs from echos. This teardown began when Deepak got hold of a quorum RR-150 PIR sensor – he wants to be able to build a receiver for the sensor. the sensor module has a PT-2262 encoder and a DIP switch array that is used to generate signal variations – what are they for? well if you have multiple units of this running simultaneously you could end up jamming your own signal thus you need different patterns to differentiate one channel from the other. Deepak used a RCR-433-AS receiver module and hooked it into a DisCo USB oscilloscope to be able to see and capture screen shoots of the transmitted waveforms and analyze them individually. Now for the main gaol of the project he utilized a PIC12F683 in an 8-pin DIP package. Using the PIC’s T1G port along with a timer and… Continue reading

The LM317 Regulator Mini Lighthouse LED Circuit

Do you know why this project named as “Mini Lighthouse LED circuit”? It’s because the LED circuit has a shape like a lighthouse and that’s the reason it got the name here! Basically, this is a simple “lighthouse” that when it’s powered up, it will rotate the beam around the 12 LEDs. This Mini Lighthouse LED Circuit is a very useful tool, especially for a model railway. For your information, this Lighthouse has several interesting features. The first feature is a full size ICSP connector, while the second is a socketed DIP version of the PIC12F683. Those 12LEDs is the maximum numbers of you can charlieplex from four tri-state pins. The PIC12F683 is an eight pin device that has five GPIO plus the MCLR pin, where it can be used as an input. You can keep one GPIO spare, GPIO four where it also happens to be an analog port that allow you to add a light sensor that turns the lighthouse on when it gets dark. Furthermore, this version has an LM317 regulator on the back so it can… Continue reading