Showing posts with label via. Show all posts
Showing posts with label via. Show all posts

Tuesday, 21 February 2017

Control Interface via PC Keyboard


One of the more difficult aspects when making a control or security system that uses a PC (a burglar alarm using a PC, for example), is the connection of the sensors to the computer. In addition to typically requiring specialist interface expansion boards, the writing of the program that includes interrupts is often also an insurmountable obstacle. But when only a simple system is concerned  consisting   of, for example, four light barriers or, if  need be, trip wires giving a  digital on/off signal when  uninvited guests enter, then  a much cheaper but nevertheless effective interface is  possible.

For this interface we use an (old) computer  keyboard. This contains as many switches as there are keys. These switches are scanned  many times per second in  a matrix in order to detect  the potential press of a key.  The number of columns is  usually eight (C0–C7 in the  schematic); the number of  rows  varies  for  each type  of keyboard and can range  from 14 to 18 (R0–R17 with the  H T82K 28A  keyboard  encoder mentioned in the  example). To  each  switch  there is a single column and  a single row connection.

Circuit diagram :

Control Interface via PC Keyboard-Circuit Diagram

Control Interface via PC Keyboard Circuit Diagram

The intention of the circuit  is that sensor A will ‘push’ the letter A, when it senses  something. This  requires  tracing the keyboard wiring to figure out which column and which row is connected to the A key. One of  the four analogue switches  from  the  familiar  CD4066  CMOS IC is then connected  between these two connections; that is, in parallel with the mechanical A  key on the keyboard. When  the Control-A input of the CD4066 is activated by sensor A, the letter  A will be sent to the computer by the key-board. The PC can then act appropriately,  for example by entering the alarm phase.

The system is not limited to (burglar) detection using a PC. The remote control of a TV  set or other electronic devices can also be  operated with a 4066 in the same way; for  example to scan through a number of TV channels in a cyclical fashion. To do this, you could, for example, shunt the ‘next channel’ button using one of the 4066 switches,  which itself is activated by a 1-Hz square  wave generator.

In the schematic only switches A and B of the  CD4066 are connected to the keyboard. You  can, of course, use all four of the switches  and if you need more than four you can use  multiple CD4066 ICs. The indicated wiring  between the keyboard IC and the 4066 is an example only, and each ‘typed’ letter has to  be determined by the user for the specific  keyboard that is used. It is important that  each CD4066 switch is always connected  between a row- and a column connection.  The output signal from the sensors has to be  suitable for the CD4066 and the power sup-ply voltage of 5 volts used by the keyboard.  The power supply for the CD4066 may be  obtained from the keyboard.

Author : Jacob Gestman Geradts  - Copyright : Elektor


Readmore → Control Interface via PC Keyboard

Friday, 27 January 2017

Communication between Mitsubishi FX3U PLC and SCADA via RS485BD


Hi Friends, Here i want share with you a tutorial on how to establish Communication between Mitsubishi FX3U PLC and Elipse SCADA via RS485 BD 


The required Items for the setup is as follows


Sr. no.
Material
1
PLC Type : FX Series
2
CPU      : FX3U
3
Module   : FX3U RS485BD
4
SCADA Make : Elipse
5
SCADA Type : 20/300/ Unlimited Tags
6
Other





Figure Connection between PC(SCADA) & PLC(FX3U)


 The required cables are as follows

 

Sr. no.
Item
Description
1
Medoc cable
(MITSU-CAB2A)
Prog. cable for FX PLC
2
Converter Cables
*1
Comm. Cable for PC ,PLC &
Converter

 *1 To connect the SCADA to the controller the RS 232 to RS 485 Converter  is used. The Converter is having RS422/485 port for connecting to PLC & RS232 port on other side for connection to PC.



As the FX-485BD Port is used, PLC parameter settings are required on PLC side.
PLC Parameter Configuration for Channel1:
1. Baud Rate: 9600.
2. Data Bits: 7 bits
3. Parity : Even
4. Stop Bit: 1 bit
5. Sum Check: Yes
6. Transmission Control: Without CR, LF
7. H/W Type: RS485
8. Station No.: 01
PLC Communication Parameter Settings using GX Developer:

PLC Communication Parameter Settings using GX Developer

 SCADA Program settings



 SCADA Driver Details:

 

Driver
MELSEC-A.dll
Version
1.02
Latest Update
2004.10.20
Driver Help
Melsec-A_US.pdf

 

Driver Setting Parameters:
P1: 1 (Comm. Port)
P2: 3721(Comm. Parameters: 9600 bps, 7 data bits, Even
Parity & 1 stop bit)
P3: 300 (Timeout in milliseconds)
P4: 10 (For RS485)
Other needed Configuration is done through “Extra  Configuration “Dialog as follows:



• Snap shot of Driver Settings in Elipse SCADA software
 

Step 1: Enter the Driver Parameters P1-P4.



Driver Parameters
Step 2: Click on “Extra” button to edit settings.



 Step3: In “Extra” menu select “Protocol” option to edit Protocol  Settings.


“Protocol” option

 Tag Addressing Parameters:
 

The Tags are generated by using N1-N4 parameter settings as follows:
 

N1: Station Number (e.g.: 1)

N2: CPU Number (normally 255)

N3: Variable Type (e.g.: 14 for D Register)

N4: Variable Address (e.g.:10 for D10 Register)

Scan: User Defined
 

• Snap shot of Tag Addressing Parameters in Software
 
Tag Addressing Parameters

If you like the this Tutorial on PLC please Share this.
 

Readmore → Communication between Mitsubishi FX3U PLC and SCADA via RS485BD

Tuesday, 29 November 2016

Headset amplifier via USB


Headset amplifier via USB circuit is a series that is used to add a gain on the headset, which is used on a computer headset. Indeed not only on a computer course in all the headset could also, but in the above circuit voltage to utilize voltage mensupply issued on a PC or laptop via USB. So you need not bother looking for supply voltage, you just take it from USB.
headset amplifier via usb
Part List :

Resistor
R1 = 20K
R2 = 10K
R3 = 10K

Capacitor
C1 = 3u3F 50V
C2 = 100pF

Diode
D1 = 1N4148
D2 = 1N4148
D3 = 1N4148
D4 = 1N4148

IC
U1 = JRC4558

Connector X1
1 = Output
2 = Input
3 = Ground

Connector X2
1 = V+ 5V from USB
2 = Ground From USB

headset amplifier PCB design
PCB design Views

Readmore → Headset amplifier via USB