Friday, January 25, 2013

Control Using Reset IC in Microcontroller

This is a the design of microcontroller based electronics project, the use of Reset IC is critical for highly critical applications that need to ensure that the MCU will only operate at its optimum voltage. Without the use of reset circuitry, the MCU may go into a tristate of which it may go into abnormal operation. This is the figure if the circuit;


During power up, once Vcc exceeds the reset threshold, the reset line will be kept low for a period after which the line will be pulled high. This resets the MCU afterwhich it will go into normal operation.
 
If the Vcc drops below the reset threshold, the reset pin will go low. It will stay low for at least the reset time out period and go back to high again. This operation will ensure that the MCU power supply is monitored and will only go into operation when the Vcc is within the range of its operation. The threshold voltage of the IC is chosen based on the minimum Vcc of the MCU. MCU supply can range from 1.8V to 5.0V and a suitable IC can be chosen to monitor the supply voltage to the MCU.
read more "Control Using Reset IC in Microcontroller"

Control The Voltage Regulator

The DC voltage produce by this circuit is depend on the load; the heavier the load (more current to the load) means the capacitor discharge time will be more faster and as a result the DC voltage output level will be drop. The circuit above is called unregulated AC to DC converter; because it could not maintain its voltage output level, this kind of power source could not be use in electronic circuit that required constant voltage level in order to operate properly such as in digital and microcontroller circuit. Therefore we need what is called Voltage Regulator Circuit and at the same time works as the DC to DC voltage step down.
 

The first one is the analog voltage regulator, this type of regulator operate the transistor in its linear region (current gainer). The current supplied to the transistor base lead is depend on the voltage different between the reference voltage and output voltage apply to the error amplifier input; for example when the output voltage is greater than the reference voltage, than the error amplifier will make the transistor to conduct less, this mean the voltage drop across the collector and emitter (Vce) will be increase this will make the output voltage to decrease and vice verse. With output voltage being continuously compared to the reference voltage (close loop feedback) by the error amplifier, this kind of circuit could maintain its voltage output level constantly. The disadvantage of using this type of voltage regulator is the power dissipation (power lost as a heat) on the transistor is high especially when we want to use 5 Volt output from 11.33 volt from the unregulated DC source or drain lot of current from it.

The second one is the most efficient voltage regulator as this type of voltage regulator operates the transistor in its saturate region or known as a switching voltage regulator. The working principal is the same as the analog one, but instead of using the constant current to the transistor base lead; this voltage regulator type use pulse current or known as PWM (Pulse Width Modulation) to the transistor base lead and this make the transistor to turn on and off according to the PWM duty cycle supplied by the error amplifier. Therefore by changing the PWM duty cycle we could change the average voltage drop across the collector and emitter (Vce). The inductor (L) is used to release its energy to the load through the diode (D) when the transistor is turn off; and when the transistor is turn on then the transistor will supply the current to the load and the inductor will store the energy in the electromagnetic form; in other word the inductor and diode will ensure that the load will always get a constant current when the transistor is turn off.

read more "Control The Voltage Regulator"

Control Making a Binary Clock Using a PIC Microcontroller

This is a design circuit for binary clock circuit. This circuit is the same hardware as the led matrix project using a 16F88 PIC microcontroller and an LED matrix.  Its worth taking a look there as the same hardware description applies on how to multiplex the display. This is the figure of the circuit;


To display hours, minutes and seconds (2 digits each) you need 6 binary digits in total (depending on whether you use a 24 hour clock the top digit needs only 1 or 2 LEDs).
read more "Control Making a Binary Clock Using a PIC Microcontroller"

Control DC to DC Step-Up Regulator

This is a design circuit for the Maxim MAX756 is the sample of easy to use DC to DC step-up switching regulator; this chip is used to increase the typically low input DC voltage 1.1 volt - 1.8 volt to the output DC voltage of 3.3 Volt or 5 Volt at maximum 200mA load (300mA on 3.3 Volt output). This is the figure of the circuit;


This means you could easily power your microcontroller project using just a single AA/AAA battery. This kind of step-up power is widely use on digital and microcontroller circuit that powered by low input voltage battery such as micro alkaline 1.5 volt battery. The basic schematic for 5 volt output from 1.5 volt battery. The output voltage of Maxim MAX756 could be selected from 5 volt or 3.3 volt by putting logical low or high on pin 2 (3/5), it also supply the low output indicator detector to the circuit if needed through the pin 4 (LBO). The following picture shows the Maxim MAX756 IC circuit powering the microcontroller’s board using just 1 AA alkaline battery (1.5 Volt).
read more "Control DC to DC Step-Up Regulator"

Monday, January 21, 2013

Control PLC omron to VB example

In this post , I'd like to Change the state of PLC (run,monitor,stop) from the VB.I send the command from VB to PLC and then PLC responds and the change their state ,
please make VB interface below:



write the source code below:
Dim data 'General Declaration
Private Sub kirim()
Dat$ = data
l = Len(Dat$)
A = 0
For I = 1 To l
Opo$ = Mid$(Dat$, I, 1)
A = Asc(Opo$) Xor A
Next I
FCS$ = Hex$(A)
If Len(FCS$) = 1 Then

FCS$ = "0" + FCS$
End If
DatTX$ = Dat$ + FCS$ + "*" + Chr$(13)
MSComm1.Output = DatTX$
End Sub

Private Sub cmdKeluar_Click()
End
End Sub

Private Sub cmdMonitor_Click()
data = "@00SC02" '(setting hostlink pada PLC 00)
lblPeringatan.Caption = "MESIN ANDA BERGERAK,BILA ANDA MEMILIH MODE INI,PASTIKAN SAFETY"
lblPeringatan.ForeColor = &HFF&
jawab = MsgBox("ANDA MAU MERUBAH MODE PLC? " & vbCrLf & _
"MONITOR MODE!!!! ", vbYesNo + vbQuestion + vbDefaultButton1, "RUBAH MODE PLC")
If jawab = vbYes Then
cmdProgram.Enabled = True
cmdRun.Enabled = True
cmdMonitor.Enabled = False
kirim
lblModePLC.ForeColor = &H8000000D
lblModePLC.Caption = "PLC SEDANG MODE MONITOR !!!!"
lblPeringatan.Caption = ""
lblPeringatan.ForeColor = &HFFFFFF
End If
lblPeringatan.Caption = ""
lblPeringatan.ForeColor = &HFFFFFF
End Sub

Private Sub cmdProgram_Click()
data = "@00SC00" '(setting hostlink pada PLC 00)
lblPeringatan.Caption = "MESIN ANDA AKAN SHUT DOWN ,BILA ANDA MEMILIH MODE INI"
lblPeringatan.ForeColor = &HFF&
jawab = MsgBox("ANDA MAU MERUBAH MODE PLC? " & vbCrLf & _
"PROGRAM MODE!!!! ", vbYesNo + vbQuestion + vbDefaultButton1, "RUBAH MODE PLC")
If jawab = vbYes Then
cmdProgram.Enabled = False
cmdRun.Enabled = True
cmdMonitor.Enabled = True
kirim
lblModePLC.ForeColor = &HFF&
lblModePLC.Caption = "PLC SEDANG MODE PROGRAM!!!!"
lblPeringatan.Caption = ""
lblPeringatan.ForeColor = &HFFFFFF
End If
lblPeringatan.Caption = ""
lblPeringatan.ForeColor = &HFFFFFF
End Sub


Private Sub cmdRun_Click()
data = "@00SC03" '(setting hostlink pada PLC 00)
lblPeringatan.Caption = "MESIN ANDA BERGERAK,BILA ANDA MEMILIH MODE INI,PASTIKAN SAFETY"
lblPeringatan.ForeColor = &HFF&
jawab = MsgBox("ANDA MAU MERUBAH MODE PLC? " & vbCrLf & _
"PROGRAM MODE!!!! ", vbYesNo + vbQuestion + vbDefaultButton1, "RUBAH MODE PLC")
If jawab = vbYes Then
cmdProgram.Enabled = True
cmdRun.Enabled = False
cmdMonitor.Enabled = True
kirim
lblModePLC.ForeColor = &HFF&
lblModePLC.Caption = "PLC SEDANG MODE RUN!!!!"
lblPeringatan.Caption = ""
lblPeringatan.ForeColor = &HFFFFFF
End If
lblPeringatan.Caption = ""
lblPeringatan.ForeColor = &HFFFFFF
End Sub

Private Sub SET_Click()
data = "@00WR00100001"
kirim
End Sub

Private Sub RESET_Click()
data = "@00WR00100000"
kirim
End Sub

Private Sub Form_Load()
MSComm1.CommPort = 1 '(port PC comm1,tapi tergantung PC anda)
MSComm1.Settings = "9600, e, 7, 2" '(harus sama PC dan PLC)
MSComm1.PortOpen = True
End Sub

read more "Control PLC omron to VB example"

Sunday, January 20, 2013

Control Push button ON VB to Omron PLC

On VB interface you can make SET dan RESET button and Temporary Push Button to commuicate with OMRON PLC, please make VB interface below:



Then Write Source code below
Dim data 'General Declaration
Private Sub kirim()
Dat$ = data
l = Len(Dat$)
A = 0
For I = 1 To l
Opo$ = Mid$(Dat$, I, 1)
A = Asc(Opo$) Xor A
Next I

READ MORE.....

read more "Control Push button ON VB to Omron PLC"

Saturday, January 19, 2013

Control Ladder Diagram Start delta circuit

As we know start delta use for starting induction motor to reduce rush .in this post I made the start delta control with PLC:
Power Wiring diagram for Start Delta:

Star Delta Power Wiring Diagram

READ MORE.....

read more "Control Ladder Diagram Start delta circuit"