
Friday, December 27, 2013
Simple Voltage controlled current source with grounded source and load

Tuesday, September 10, 2013
Current Controlled Boost LED Driver and Black Soldermasks

Saturday, April 6, 2013
Sms Controlled Multipurpose Isolated I O board 8 output 4 input

With
the advancement in technologies in wireless communication many
products are available in the market to make the human life more
comfortable. One of my friend asked me to design a project for him .His
only requirement was to switch ON/OFF his irrigation pump ,which is
two km away from his house. I could not find the radio module which
could cover this distance So I decided to design sms controlled
project. I used sim300 gsm module which is readily available in the
electronic market. His only requirement was to switch ON/OFF single
pump, and feedback via sms whether the pump has actually switched ON
or not.

I
designed a relay circuit using 89c51 microcontroller Which could be
switched on by single mis call to the device and can also be switched
off by another miscall. It saves my talktime and money. I used to get
the sms from the moter starter contactor panel when it actullay
becomes on, that gives me confirmation that the motor is on.
Then
it gave me a thought to design the present project which could be used
in various application areas depends upon the individual requirement
in the field of agriculture
,lighting,security,telecommunication,access and safety both
industrial,commercial and in residential area.
Designed for control
and sensing applications, this project provides 8 relay outputs and 4
optically isolated inputs. It can be used in various applications
including load contact closure and external voltage sensing.
Connection to the isolated inputs and relay outputs is via “pluggable
type” screw terminal blocks The project presented here is based on
world’s most powerful intel’s mcs-51 family of microcontroller atmel
at89c51.In this project we are using AT 89C2051
microcontroller,since this controller has two ports are more than
enough for our project
Application area: the project can be used for various application wherever you require control using pc.
1 hotel power management
2.street light management
3.home automation
4.load shedding
5. High voltage grid control
6. Industrial automation
7.electro,hydrolic and pneumatic valve control
8. Robotic control and many more All the above operation are possile from the any mobile phone by sms
The
circuit is connected to gsm modem through rs232 cable to Dshall 9 pin
connectror connected on both sides. ic max 232 is a level conver
ter ic to convert ttl level data to +12v and –12v level for complete
details on this ic, refer to manufacturer’s data sheet
Port 3.0 is rxd pin to receive data serially and port3.1 is to transmit data serially
Circuit is driven by 9v 1 AMP transformer connected to pcon1
Diode d1-d4 forms bridge circuit c1 ,c2,c3 and c4 are filter capacitors
Ic1
7805 is 5v regulator ic to give stablised supply to
microcontrollerLD1 LED is a power indication led. Crystal gives the
necessary clock to micro-controller.
diodes d1 to d4 are power
recifire diodes connected in bridge circuit c1 is a filter capacitor
.input to the bridge rectifire is 9v 1 ampere transformer. Out put of
the bridge rectifire and capacitor is 12v dc. All our relays are
operated by 12v dc. Relay output can be connected to any 250v 7 ampere
load.please donot cross this limit other wise you will damage the
relay circuit.
Ic2 is atmel at 89c2051 microcontroller. It has two
ports port1 pin number 12 to 19 and port 3 pin number 2,3,6,7,8,9 and
11. This controller has inbuilt uart(universal
synchronous,asynchronous receiver transmitter, and pin no 2 is rx pin
and pin number 3 is tx pin of the uart. Through these two pins
micro-controller is able to communicate with the ibm pc comport.
Communication boud rate is 9600 bits per second.
Port 1 controlls all our relays.out put of this port is pulled high through pullup resistors
sil
arrays(single in line resistor array) hense the outout of pin no 12
to 19 are by default high( at 5v logic) ALL relays stays off on power
up. All the relay driver circuits are similar I will explain one
of then here .
Q1 to q16 all are npn general purpose transisters.
Npn transister will become on when base is high. If you refer circuit
diagram q1 base is driven by r3 connected to pin no 12 of the ic2 as
this pin is at logic high , q1 is on(conducting) and it’s collector
remains at low logic(transister acts as switch,very low resistance
between emitter and collector),resulting base of the transister is low
and transister q2 is in off state(non-conducting). To switch on Q2,
we have to switch off q1. To switch off the q1 the program inside the
micro-controller must bring the logic at pin number 12 to low logic.
q1 will become off and q2 base will get high logic through r4 and
will become ON. relay coil of rl1 will get energised as the current
will pass through coil , q2 transister collector and emitter to
ground. Normally open contact will close the connection. Load should
be connected to the out put of the contacts on CON1.diode d5 connected
across the relay coil is to proctect the circuit from the induced emf
generated by the relay coil during on/off operation.ld2 ic relay ON
indication led r5 is a voltage dropping resistor.
All the relay circuit works in the same manner.
Ic3
max 232 ic is a level converter ic. IBM pc com port is designed for
telephone network which works on 12v dc where as our controller logic
is at 5v we need to convert this data to +12 &-12 logic before it
is sent to pc this ic has transreceiver level converter. Transmitter
part
convert the TTL logic to com port logic and receiver part convert the
signals coming from pc to TTL level before it is given to
micro-controller.
All the components connected around this ic is as per the application notes given in the datasheet by the manufacturer..
Capacitor
c5 and r1 gives the required reset pulse to microcontroller.Crystal
x1 along with capacitor c6 and c7 gives the required clock pulse to
microcontroller.
Resistances connected to indication leds are current limiting resistors.
Four
isolated inputs are connected through opto couplers ic4 to ic7.
output of the opto-coupter are connected to p3.2,p3.3,p3.4 and p3.7
respectively. In1 to in4 are connected to the normally open contact of
the device(sensor controller) you want to monitor . when ever contact
is made led inside the opto coupler will glow and collector inside
will pull the microcontroller pin to logic low, this is the active
state of the device. You can test this by shorting in1 to in4 pins by a
piece of wire and give command from your computer you will get the
proper response as mentioned in the command section.
OPERATION
To
switch on devices, You can send sms to the device as ON1,ON2,ON3
and so on .T0 switch off devices send sms as OFF1,OFF2,OFF3 and so on .
to get the response from the actuating device if connected to the
input terminals you will receive sms on your mobile phone like
‘device1 is on’ or ‘device2 is off ’ etc.
Commnication between
SIM300 modem and microcontroller takes place via serial port Using
Sim300 AT command set. Which can be downloaded from the official
SIMCOM site.
Some are given here ,can be tried on pc using hyperterminal.
SIM300 AT Command Set
SMS commands
Demonstration Syntax Expect Result
Set SMS system into text mode, as
opposed to PDU mode.
AT+CMGF=1 OK
Send an SMS to myself.
AT+CMGS=”+861391
818xxxx”
>This is a test
+CMGS:34
OK
Unsolicited notification of the SMS
arriving
+CMTI:”SM”,1
Read SMS message that has just arrived.
Note: the number should be the same as
that given in the +CMTI notification.
AT+CMGR=1 +CMGR: “REC UNREAD”,
“+8613918186089”, ,”02
/01/30,20:40:31+00”
This is a test
OK
Reading the message again changes the
status to “READ” from ”UNREAD”
AT+CMGR=1 +CMGR: “REC READ”,
“+8613918186089”, ,
“02/01/30,20:40:31+00”
This is a test
OK
Send another SMS to myself. AT+CMGS=”+861391
818xxxx”
>Test again
+CMGS:35
OK
Unsolicited notification of the SMS
arriving
+CMTI:”SM”,2
Listing all SMS messages.
Note:”ALL” must be in uppercase.
AT+CMGL=”ALL” +CMGL: 1,”REC
READ”,”+8613918186089”,
, “02/01/30,20:40:31+00”
This is a test
+CMGL: 2,”REC
UNREAD”,” ”,”+861391818
6089”,
, “02/01/30,20:45:12+00”
Test again
OK
Delete an SMS message. AT+CMGD=1 OK
List all SMS messages to show message
has been deleted.
AT+CMGL=”ALL” +CMGL: 2,”REC READ”,
“+8613918186
089”,”02/01/30,20:45:12+00
”
Test again
OK
Sunday, March 31, 2013
Pendulum Controlled Clock Circuit
Heres how to build a pendulum-controlled clock which can be made really accurate. Retro? - yes, but an interesting project all the same. Youll need a spare quartz clock which must be adapted by first isolating the two pads on the chip which lead to the coil. You then have to connect wires to these pads and feed them out through a hole in the case (see SILICON CHIP, December 1996, p38, for full instructions, or October 2001, p37, for brief notes.) Youll also need a spare battery driven pendulum from another, or the same, clock. As originally used, these pendulums are for appearance only and play no role in timekeeping. The salvaged unit should be mounted on a substantial vertical backboard. Youll find that the pendulum swings pretty fast and it must be slowed down by adding weights near the lower end. However, its not the mass of a pendulum that controls its rate - instead, its the distance from the support to the centre of mass that counts.
The aim is to make the pendulum operate so that it takes exactly 1s for a full "to and fro" swing - ie, 0.5s "beats". Fine adjustment on mine was made by adding an adjustable (up and down) weight to the pendulum rod. This consisted of a small G-clamp fabricated from a brass strip and held by a small screw.At the bottom end of the pendulum attach an inverted T-shape aluminium vane, about 10mm wide and as thin as possible. This should be painted black. This vane is used to trigger a photo-interrupter which is attached to the backboard. The lengths of the arms of the "T" are made so that when the pendulum swings one way, the interrupter triggers - ie, the light is no longer blocked. Conversely, when the pendulum swings the other way, the vane must continue to interrupt the light. This means that, with the pendulum swinging in 0.5s beats, we get a short pulse from the photo-interrupter at 1s intervals.
Circuit diagram:
Pendulum-Controlled Clock Circuit Diagram
This pulse is inverted by IC1a and inverted again by IC1b which then clocks IC2, a 4013 flipflop. IC2 alternately produces 1s-long pulses at its pin 12 & 13 outputs. These outputs are then fed to IC1c & IC1d respectively, where they are gated by the short pulses on pin 4 of IC1b. This produces two short pulses to drive the clock in alternate directions at 1s intervals. And thats all you need to drive the clock. Alternatively, this circuit could be a master clock and could be used to drive several slaves, all remaining in time. And model train enthusiasts could drill one or more holes in the vane to make their "railway" clocks run at what ever speed they need.
The circuit can be built on a small piece of strip board. Note that the photo-interrupter should be mounted with the photocell facing the backboard. This minimizes the risk of interference by ambient light. The photo-interrupter is available from Jaycar - Cat.ZD 1901. A footnote for horologists - if you have a clock with a Hipp butterfly escapement, you could rid yourself of the trailing arm and contact arrangement and replace it with a vane and photo-interrupter set so that as the arc of the swing becomes too small, a pulse is missed. This could then be detected by a 555 missing pulse detector circuit which would then energize the impulsing magnet.
Author: A.J Lowe - Copyright: Silicon Chip Electronics
Friday, March 29, 2013
Remote Controlled Fan Regulator

Resistor R13 (47-ohm) and capacitor C7 (0.01µF) combination is used as snubber network for triac1 (BT136). As the width of the pulse decreases, firing angle of the triac increases and speed of the fan also increases. Thus the speed of the fan increases when we press any button on the remote control. Assemble the circuit on a general-purpose PCB and house it in a small case such that the infrared sensor can easily receive the signal from the remote transmitter.