Showing posts with label Microcontrollers. Show all posts
Showing posts with label Microcontrollers. Show all posts

Universal PIC Programmer

This simple programmer will accept any device that's supported by software (eg, IC-Prog 1.05 by Bonny Gijzen at www.ic-prog.com). The circuit is based in part on the ISP header described in the SILICON CHIP "PIC Testbed" project but also features an external programming voltage supply for laptops and for other situations where the voltage present on the RS232 port is insufficient.

Universal PIC Programmer Circuit Diagram:

Programmer Circuit Diagram
 
This is done using 3-terminal regulators REG1 & REG2. The PIC to be programmed can be mounted on a protoboard. This makes complex socket wiring to support multiple devices unnecessary. 16F84A, 12C509, 16C765 and other devices have all been used successfully with this device.
read more...

Intelligent Presence Simulator

Intelligent Presence Simulator Circuit diagram. However effective a domestic alarm system may be, it’s invariably better if it never goes off, and the best way to ensure this is to make potential burglars think the premises are occupied. Indeed, unless you own old masters or objects of great value likely to attract ‘professional’ burglars, it has to be acknowledged that the majority of burglaries are committed by ‘petty’ thieves who are going to be looking more than anything else for simplicity and will prefer to break into homes whose occupants are away.

Rather than simply not going on holiday – which is also one solution to the problem (!) – we’re going to suggest building this intelligent presence simulator which ought to put potential burglars off, even if your home is subjected to close scrutiny. Like all its counterparts, the proposed circuit turns one or more lights on and off when the ambient light falls, but while many devices are content to generate fixed timings, this one works using randomly variable durations.

Intelligent Presence Simulator Circuit diagram:

Simulator

So while other devices are very soon caught out simply by daily observation (often from a car) because of their too-perfect regularity, this one is much more credible due to the fact that its operating times are irregular. The circuit is very simple, as we have employed a microcontroller – a ‘little’ 12C508 from Microchip, which is more than adequate for such an application. It is mains powered and uses rudimentary voltage regulation by a zener diode.


A relay is used to control the light(s); though this is less elegant than a triac solution, it does avoid any interference from the mains reaching the microcontroller, for example, during thunderstorms. We mustn’t forget this project needs to work very reliably during our absence, whatever happens. The ambient light level is measured by a conventional LDR (light dependent resistor), and the lighting switching threshold is adjustable via P1 to suit the characteristics and positioning of the LDR.

Note that input GP4 of the PIC12C508 is not analogue, but its logic switching threshold is very suitable for this kind of use. The LED connected to GP1 indicates the circuit’s operating mode, selected by grounding or not of GP2 or GP3 via override switch S1. So there are three possible states: permanently off, permanently on, and automatic mode, which is the one normally used. Given the software programmed into the 12C508 (‘firmware’) and the need to generate very long delays so as to arrive at lighting times or an hour or more, it has been necessary to make the MCU operate at a vastly reduced clock frequency.

In that case, a crystal-controlled clock is no longer suitable, so the R-C network R5/C3 is used instead. For sure, such a clock source is less stable than a crystal, but then in an application like this, that may well be what we’re after as a degree of randomness is a design target instead of a disadvantage. Our suggested PCB shown here takes all the components for this project except of course for S1, S2, and the LDR, which will need to be positioned on the front panel of the case in order to sense the ambient light intensity.

The PCB has been designed for a Finder relay capable of switching 10 A, which ought to prove adequate for lighting your home, unless you live in a replica of the Palace of Versailles. The program to be loaded into the 12C508 is available for free download from the Elektor website as file number 080231-11.zip or from the author’s own website: www.tavernier-c.com. On completion of the solder work the circuit should work immediately and can be checked by switching to manual mode.

The relay should be released in the ‘off’ position and energized in the ‘on’ position. Then all that remains is to adjust the day/night threshold by adjusting potentiometer P1. To do this, you can either use a lot of patience, or else use a voltmeter – digital or analogue, but the latter will need to be electronic so as to be high impedance – connected between GP4 and ground. When the light level below which you want the lighting to be allowed to come on is reached, adjust P1 to read approximately 1.4 V on the voltmeter.

If this value cannot be achieved, owing to the characteristics of your LDR, reduce or increase R8 if necessary to achieve it (LDRs are known to have rather wide production tolerances). Equipped with this inexpensive accessory, your home of course hasn’t become an impregnable fortress, but at least it ought to appear less attractive to burglars than houses that are plunged into darkness for long periods of time, especially in the middle of summer. (www.tavernier-c.com)

COMPONENTS LIST
Resistors
R1 = 1k 500mW
R2 = 4k7
R3 = 560R
R4,R6 = 10k
R5 = 7k5
R 7 = LDR
R8 = 470k to 1 M
P1 = 470k potentiometer
Capacitors
C1 = 470µF 25V
C2 = 10µF 25V
C3 = 1nF5
C4 = 10nF
Semiconductors
D1,D2 = 1N4004
D3 = diode zener 4V7 400 mW
LED1 = LED, red
D4 = 1N4148
T1 = BC547
IC1 = PIC12C508, programmed, see Downloads
Miscellaneous
RE1 = relay, 10A contact
S1 = 1-pole 3-way rotary switch
F1 = fuse 100 mA
TR1 = Mains transformer 2x9 V, 1.2 -3 VA
4 PCB terminal blocks, 5 mm lead pitch
5 solder pins


read more...

Micro Inverter circuit DC voltage AC 12v x110v

This is a micro-inverter DC voltage to AC from a 12v battery can generate a voltage of 110 or 220 volts AC and a frequency of 50Hz to 60Hz.

Micro Inverter circuit DC voltage AC 12v x110v Circuit Diagram:

Micro Inverter

The circuit is very simple and does not need a printed circuit board, It is composed of two transistors oscillators that generate the square wave pulse to the transformer in the case is 10 +10 and its output 220V or 110V. This circuit is 50Hz, but can be changed by changing the value of RC .


This circuit has the power transistor and that depends on the transformer.


Micro Inverter circuit DC voltage AC 12v x110v Circuit Diagram


read more...

5 Volt Micro-Power Regulator



Here is simple Electronic circuit project of 5 volt micropower regulator circuit. This micro power 5 volts DC regulator can be designed using few operational amplifiers and some other electronic parts.

5 Volt Micro-Power Regulator Circuit Diagram:

Regulator Circuit Diagram
 
This 5 volt regulator is ideal for instrumentation requiring good power efficiency . Maximum load current is 10 mA , and can be increased by changing Q1 to a power transistor and proportionally increasing the set current of A2.

This circuit accepts a wide input voltage range between 6.5 volt and 30 volts. Low power 3 terminal IC regulators typically draw 2mA to 5mA quiescent current compared to only 50uA with this discrete implementation. 


read more...

Reanimating Probe for AVR μC

AVR device not responding, When this discouraging message appears while you’re programming your Atmel microcontroller, that’s where the problems really begin! The problem is of ten due to incorrect programming of the fuse bits. This is where the unblocking probe comes into play.

Reanimating

Once the whole thing is powered up, all you have to is use one hand to apply the tip of the probe to the microcontroller’s XTAL1 input and then use your other hand to go ahead and program it with your favourite sof t ware. And there, your microcontroller is saved! The electronics are as simple as can be, the aim being to design something cheap and easy to reproduce. It consists of an oscillator generating a rectangular wave at around 500 kHz, built using  a 74HC04. This circuit will also work with a 74HC14, but depending on the make of IC, the frequency of around 500 kHz may vary by around ±50 kHz. This doesn’t affect the operation of the probe.

Reanimating Probe for AVR μC Circuit diagram :

Reanimating
 
The unblocking board is connected using a ribbon cable, terminated with two female HE10/10 connectors. The pinout of the HE10/10 connector is the same as used in the majority of circuits, but of course it can be adapted for an HE10/06 connector.

The first connector is connected to the board to be unblocked, which allows powering of the electronics. The second connector is connected to the ISP programmer (STK200 compatible). The contact at the crystal is made using a needle, to ensure contact even through a board that has been varnished. There’s no need to unsolder the crystal for this operation.

The PCB design in Eagle format is available from : www.elektor.com


read more...

Digital Clock Using with PIC16C54

Digital clock project based on the PIC16C54 microcontroller can be designed using the following circuit diagram . This digital clock electronic project based on the PIC16C54 is a simple time-of-day clock incorporating four seven-segment LED displays and three input switches. There is also an additional reset switch that would not normally be incorporated into the final design.

Digital clock Circuit diagram 



The common cathode for each display is turned on with transistors connected to the four I/O lines of PORTA . A low output turns on the PNP transistor for the selected display. The PORTB pins activate the LED segments.

The PORTB pins activate the LED segments. The switches are also connected to PORTB I/O pins.
When no buttons are pressed, the circuit will display the current time, starting at 12:00 on reset.
Pressing SW1 will cause seconds to be displayed. The time is set by pressing SW2 to advance minutes, and SW3 to advance hours . The displays used were common cathode and turned on with transistors to avoid trying to sink too much current into the PIC16C5X. 100 W resistors were used in series with the segments to obtain the desired brightness. Different values may be required if different displays are used.

All of the same display segments are linked together (A-A-A-A, B-B-B-B, etc.) and are individually selected by turning on only the desired display.
This simple digital clock project based on the PIC16C54 microcontroller must be powered from a simple 5 volt DC power supply circuit .
This digital clock project based on the PIC16C54 microcontroller ( circuit and software ) was designed by Dan Matthews Microchip Technology Inc . Download Source Code
read more...
 
Copyright © 2019 W3circuits.blogspot.com • All Rights Reserved.
back to top