Working with 230Vac

Your reference guide to working with 230Vac or 110Vac High Voltage Electricity.

Edited by Lim Siong Boon, last dated 29-Aug-09.

 

Content 230Vac

  1. Safety

  2. Signal and Measurement

  3. Working with 230Vac electronics

  4. AC lightings wiring guide

 

 

 

1. Safety  

     

 

         

 

 

         

 

 

                

 

 

 

 

       

 

Introduction

The objective of this site is to get to know about the electronics components that can help us control 230Vac devices. Devices like ac lamps/lightings, power sockets/supply, heater, and many many other appliances at home. We are all surrounded by many appliances operating directly from AC mains supply. It is very interesting to control and work with these appliances. Learning to control with electronics, microcontroller and computer.

Our home is typically pre-installed with 230Vac sockets. The socket where we obtain our electrical power source. It is this basic utilities that keeps us operating in this urbanization era. Different country implement their own AC voltage system & AC plug. The electrical delivered to our home wall socket is a 230Vac single phase ac power. So throughout the section, we will only talk about single phase system and not the three phase system.

The first thing in my mind when it comes to 230Vac is “Dangerous”!!! I am still very scare of it. One careless mistake and we might not have a second chance to try again. Some article suggests that a voltage over 30V is considered as danger. Lower voltage is relatively safe to touch with your bare hand, although sometimes you may get the shock sensation on your muscle.

230Vac is a dangerous stuff, but when working with electronics you can hardly avoid using it. And when we cannot avoid it, then we have to face it. Facing it, by understanding more about it. Minimizing our chance of getting killed by 230Vac. So let us pay careful attention to this section.

 

The following article is from a website with simple illustration of electrical safety. It explains in simple terms the difference between birds and human touching the same high voltages cable. Why birds don’t get electrocuted? How do we get electrocuted? From these two question, we get to understand more about voltages and how we should deal with them to protect ourselves. Safety first, which is why I put this as the first section.

electrical safety.pdf

http://www.eng.cam.ac.uk/DesignOffice/mdp/electric_web/DC/DC_3.html

Remember that we will not have any chance to try again. Understanding the danger of electrical earth path will minimize the chance of getting electrocuted.

Before touching any wire, be sure to measure and ensure that there are no “live” voltage on the wire. You can use a multi-meter or test pen to check for live connection.

Multi-meter. Measure between the “live” and “nuetral” line to check if 230Vac is present.

 

Test Pen (this test pen comes in the form of a slotted screw driver. You can see a small bulb embedded in the handle. Touch the suspected “live” wire with the tip of the screw driver. Locate the back of the handle for a metal plate. If the bulb inside the handle lit up, when you touch your finger to the metal plate, it means that the wire is “live”.

 

 

reference:

Electrical System around the world,

–  http://kropla.com/electric2.htm

Electrical Safety,

http://www.eng.cam.ac.uk/DesignOffice/mdp/electric_web/DC/DC_3.html or electrical safety.pdf

http://www.allaboutcircuits.com/worksheets/shock.html

Electrical box install at home..         .

Bigger electrical box install at office…

      

Various names: Electrical box, DB box, Electrical distribution panel, Control panel

 

On the left are some of the common electrical box that we may find in our home. They are the main electrical distribution point to all the other rooms. From the power station to the sub-station and then to this box, distributing electrical power to our rooms.

This Type-G plug distributed to our rooms, consist of 3 cable namely Live (hot, brown), Neutral (return, blue) and Earth (safety ground, yellow/green).

Click here for other plug type.

 

 

On the electrical box, we can see a row of switch. One main switch is particular unique in color or size. This is the main switch which cut off the supply from live and neutral wire. The rest of the switches, only the live wire is disconnected. This is an important note to take, and the same applies to the wall switches. When we switch off the light or appliances, only the “Live” wire is disconnected.

There was once I was working on a power supply unit. Wanting to doing rewiring, I switch off the power leaving the 3 pin plug on the socket. I have carefully unscrewed and pull out the earth wire. Thinking that it is now safe that I have switch off the AC socket, I become relax and casually removed the earth cable. The earth wire accidentally touches the neutral wire and phow, my whole office got black out. From then on, I remember that neutral wire is as alive as the live wire. Never treat it lightly. When you switched off the power to do maintenance work, do not assume that the live as well as neutral is disconnected. Always check and handle them with care. Insulate the bare wire if you are unsure. Assume that they are always alive, unless you are absolutely 100% sure that the wire is unplugged from the power system. 99% is not good enough. It has to be 100%.

 

MCB (miniature circuit breaker) to protect the electrical line from over current drawn. RCB (residual current breaker) similar to MCD is another protection device trips when electrical leakage is detector (incoming current != outgoing current). Some device has both the features of MCD & RCD. They normally comes in the standard DIN rail mounting for the electrical boxes.

Other name: ELCB, MCCB, RCD, RCCB, RCCD (residual current circuit breaker), ground fault circuit interrupter (GFCI), ground fault interrupter (GFI) or an appliance leakage current interrupter (ALCI), safety switches, “salvavita” (life saver).

 

 

 

 

Power Distribution Components, MCB, RCB, Switches

             

    

 

It is recommended to install a circuit breaker (MCB) as well as a residual current breaker RCB when working with AC devices/equipments under test. They can protect against accidental over current or leakage fault that occur. Anything goes wrong, the device will be tripped, cutting off the power supply from the mains, protecting us from possible electrical shock.

RCB is more important as a protection from serious electrical shock. During normal operation, the current to and from the live and neutral wire should be equal. Any different in current indicates leakage. The device detects the leakage and trip the supply source.

MCB is more to cut off supply on overloading load. Example would be a short circuit from a faulty equipment. If the supply is not cut in time, the huge current pumping through will heat up the cable, resulting in fire along the cable.

There was once I am working on an automated swing door system. I try to cover back the aluminum cover, but find difficulty putting it back in position.  Not knowing why there was this small gap, I bang on the cover trying my luck to close it up. Suddenly I felt a very loud bang and bright light flashes over me, followed shortly by a slight breeze. They were the result of the small explosion.

After investigating, I found out the the casing actually cuts through the AC cable resulting in a short circuit. The cable were not properly secure in a safe position and the cover finishing is badly done. The edge will not filed and has a very sharp edge. It is lucky that I remembered to connect the earth wire to the aluminum cover, else I would have being shocked. So as you see, it is important to earth the metal surface that are near the AC line.

The MCB is found to be tripped, and some burn mark can be seen around the place of impact. The MCD is trip almost instantly, but the 3 pin AC plug for the automation door is still badly burned. When I open up the plug, the interior is completely burned out. Wire and fuse all black with carbon. I have to spent another hour to repair the cable & plug, tied the cable in place, smoothen the cover edges. A lesson to learn. Proper installation not only protects ourselves and it also minimize re-work.

In this scenario, the earth wire and MCB have done their job very well. You may have installed these protect in place, but without proper knowledge of how they are going to protect you, you are just as vulnerable. Learning how to protect yourself is the most important.

   A normal electrical switch. (no protection function)

 

 

     lockable switch for tagout purpose

 

The switch on the left may looks like MCB or RCD. It function as a simple single pole switch, and offers no protection at all. They are typical used to disconnect the live wire inside the electrical box, switching off the devices just like a wall switch.

 

Some models comes with a lockable design, for user to tagout. This is to minimize any chance of people unknowingly switch on the power, when the user is doing the maintenance work.

mcb-single-pole-b10-b16-c10-d10.jpg Single Pole MCB explain Curve Types

Surge current can be higher than steady state current, especially for inductive/capacitive load. Eg. motors. The surge higher than the current limit set, can easily trip the MCB. This means that it can be difficult to switch on a motor for example, because a surge from the motor startup can easily trip the circuit breaker.

This call for special MCB which has a wider allowance for surge current. MCB comes in various curve type, each has its torlerrence for surge current.

The photo on the left shows 3x MCB type (red color lever) having a circuit breaking current of 10 amphere, namely B10, C10, D10. Each of them has the same current limit. The type B, C or D curve indicates their ability to withstand sudden power on surge current.

MCB type B curve – Can withstand a surge current of about 3-5 times its rated current limit. For this MCB B10, the rate current limit is 10A. So this means that the MCB can withstand up to about 30-50A of surge current within the initial millisecond time.

MCB type C curve – Can withstand a surge current of about 5-10 times its rated current limit. For this MCB B10, the rate current limit is 10A. So this means that the MCB can withstand up to about 50-100A of surge current within the initial millisecond time.

MCB type D curve – Can withstand a surge current of about 10-20 times its rated current limit. For this MCB B10, the rate current limit is 10A. So this means that the MCB can withstand up to about 100-200A of surge current within the initial millisecond time.

There is another single pole MCB B16 in the picture. This MCB breaks the circuit when the current is over 16A. The MCB is of type B, meaning it can withstand the initial surge current of about 48-80A.

    

 

Industrial safety practice

When servicing AC socket or equipment, ensure that the AC source at the electrical box is switched off. If possible, unplug from the AC socket.

Lockout/Tagout procedure should be practice strictly. This is important when we work outside because we may not be the only person operating the equipment. Lockout/Tagout involve locking and tagging the switch source. So you can be sure that no other people can switch the power back on, when you are working on the socket or equipment. It is a safety procedure. If you do not have the facilities to lock out the power, a sign board or labeling warning is advise to prevent any accidental switched on.

For your own safety, the procedure is worth the trouble.

 
Some signage references,
caution_sign_w_exclamation.pngwarning-sign.gifwarning_sign_empty.gifwarning_sign.pngStop_sign.pngPalmCautionSign.jpg
As what I have experience, AC power is actually quite dangerous. It is very important that you equip yourself with the knowledge and know-how to protect yourself against any electrocuted accident. Safety is the most important. Always treat it as through it is the first you have touch it.

 

 

www.pic-control.com, Singapore Network Ethernet WiFi RS232 RS485 USB I/O Controller

Singapore Customized, custom made Electronics Circuits & Kits

 

 

2. Signal and Measurement

 

graphic taken from:

 http://www.allaboutcircuits.com/worksheets/scope1.html

 

 

 

graphic taken from:

http://oscilloscope-tutorials.com/oscilloscope/Setting.asp

 

 

Measuring Voltage

There is once I wanted to measure the AC signal using my oscilloscope from the mains. I am curious to look at the sine wave from the wall socket mains. Tack, all the offices around me had their power tripped.

I made a Mistake?…..  I don’t even know why? I was lucky that I took extreme precaution during the measurement.

It is then that I started to re-visit 230Vac to understand more about it. I realized that our oscilloscope ground clip is actually connected to the earth as reference. Which is why the power trip, when I clip the ground lead to the neutral line. When this earth clip touches the neutral wire, the extra electricity leakage tripped the MCB (Miniature Circuit Breakers) found inside our electrical box. This is a safety feature to protect us. So remember that the Earth line is connected to the ground lead of the oscilloscope probe. Be careful.

 

Does this means that we cannot measure the ac waveform using the oscilloscope? How do we do the measurement then?

From what I found out, there are various methods to measure. Differential method to measure the AC signal would be more appropriate. Two probe would be required, placing across the signal you ant to measure. Ground lead can be floating, which the reference is earth because the ground lead is connected to the earth line. The difference between the two probe channel would be the actual AC signal. With help from the typical oscilloscope feature, the signal can be obtain as a single waveform ploy on the screen. One of the channel need to invert (using the INV function), and both the channel are added (using the ADD function).

Measurement technique

A Shortish Guide to Using an Oscilloscope.pdf

Floating Oscilloscope Measurements.pdf

Fundamentals of Floating Measurements and Isolated Input Oscilloscopes.pdf

http://idobartana.com/hakb/oscope.htm (10x probe to measure high voltage)

 

 

 

Oscilloscope guide from other site,

XYZs of Oscilloscopes, Tektronix 03W_8605_2.pdf

Basic oscilloscope operation.pdf http://www.best-microcontroller-projects.com/how-to-use-an-oscilloscope.html

 

 

Seldom typical engineer like us need to examine the AC signal. Those power engineering people who wanted to measure the signal probably wanted to see the harmonics to check up on the quality of the power supply. Or perhaps, as curious as I am, just wanting to see it.

Measuring the mains using digital multimeter. Reading is 230Vrms

graphic taken from:

 http://www.allaboutcircuits.com/vol_1/chpt_3/9.html

 

 

 

The waveform of the AC mains 230Vac 50Hz is shown in red.

The signal we should see on the scope…. (click to enlarge)

 

 

The most frequent used equipment for measuring our 230Vac mains would be the multi-meter. Portable and inexpensive. Providing us the basic measurement for checking the wire voltage. The power is quite reliable in urban area, always maintain it’s voltage reasonably at 230Vac. Probably a test pen can be the only measuring equipment you need.

When we measure the ac mains from the socket using the digital multi-meter, we will get a reading of 230Vac or 110Vac (depending on the country you are in). Take special  note that this reading is effectively the rms (root mean square) voltage. The actual peak voltage of the electrical line go up to about 325Vpeak. The 325Vp (peak) sine wave is equal to 230Vrms.

Vrms = √2 x Vp.

230Vrms = 0.707 x 325Vp.

Vrms can be think as the equivalent voltage in dc for power computation. The actual AC power (sine wave in red) has the same energy as one that is illustrated in the Vrms view point (square wave in blue). The energy can be computed, and they are defined as the area under the waveform. Area under the square & sine wave is equal. I have draw out the waveform to illustrate the idea.

Keep in mind the peak voltage. It would be useful in helping you select the proper component. Capacitor is one of such component where the capacitance and voltage rating is the main criteria for selection. Voltage higher than what the it can take, the capacitor will experience voltage breakdown. Pop, the capacitor can have a mini exposion.

So do remember, the AC mains is in fact 325Vp (peak) or 650Vp-p (peak to peak). That is very high voltage!!!

 

references:

http://en.wikipedia.org/wiki/Alternating_current

 

 

 

 

 

 

 

The Practical Part………

Yes. Now that we get our theory clear, let’s get on to the real hands on.

Date: 2009-08-01
This is one of the most exciting experiment that I ever done. Ever since my first disaster measuring AC mains, my understanding of oscilloscope and AV mains remains very unclear. Every step is carefully think of, carefully executed. This is unlike any other new electronics circuit that I want to experiment with. Any minor doubt that I have, I will research on the internet to confirm my understanding before I connect up the circuit.

It feels to me like experimenting with dangerous explosive. One mistake, either my life at risk, or my expensive digital oscilloscope gets damaged. It is the most detailed experiment that I ever done.

For an experience engineer, this can be as easy as ABC. For a first timer like me who have never measure the 230Vac line, and no senior to guide me, this is really frightening yet exciting. I am sure we will have a better understanding of high ac voltage, with this step by step measurement guide. Dealing with 230Vac will eventually be as easy as ABC.

So let me starts this exciting experiment.




 

NOTE: Click on the image for a clearer view.

 

My measurement setup for measuring the output of the zero crossing triacs circuit. A detail connection of this setup is shown in the following section.

 

The picture on the left is the setup that I have prepare for the 230Vac signal measurement.

Equipment used in this measurement experiment

– 3 pin extension socket (protected by RCD device)

– Triacs switch circuit

– DC power supply (to activate the triacs circuit)

– AC fan (device to be controlled by the switch circuit)

– Oscilloscope (Tektronix TDS 2014) and probe.

– Some wires for connection.

 

 

My triacs switch circuit. This switch circuit is solid state relay. Just like a mechanical relay, the circuit interface helps digital control circuit to control a 110/230Vac mains devices. There is a AC input and the controlled output as shown by the green wire terminal. Click here for further detail information on this circuit on another page.

 

Probe ground crocodile clip is clip onto the oscilloscope Earth pin. The measurement for Live/Neutral signal is with reference to the Earth potential.

 

The circuit that I am going to measure is the output of a AC switch circuit presented on the left. The circuit using a triac component to switch the AC power. If you are interested to find out more about this circuit, you can visit the following page I have put up.

about Triacs circuit

The following summaries the steps taken in order to do a proper measurement.

1) All the equipment for the experiment is powered from the RCD (residual current device) protected extension plug. This is to protect myself in case I accidentally touches the live/hot wire. The RCD will cut off the power in the case of power leakage through my body.

2) Connect up two probe from the oscilloscope to the circuit. CH1 probe is connected to the Live wire output, while CH2 is connected to the Neutral wire. The ground clip of the probe should be connected to the oscilloscope Earth pin. You should able to see such a pin on your scope with the Earth/Ground symbol (see the photo on the left). This is the setup for measurement with reference to the Earth ground. This Earth pin is internally connected to our 3pin AC socket. Therefore the pin is the same as our 3 pin plug Earth. The grounding clip from the oscilloscope is found to be Earth, so in fact there is no need to connect up. For clarity and safety reason, just connect it up. Always ensure that your oscilloscope is properly Earth for safety reason.

3) Set the probe attenuation to 10x. On probe there is a switch labeled 1x and 10x. 1x means that the probe signal is exactly feed into the scope. 10x means that the signal will be attenuated to a factor of 10 times before feeding into the scope. The scope may not be aware of the attenuation, so it is important to setup the scope for the 10x measurement. If this is not done, you will find that the reading is 10x smaller than expected. A 10V signal will be read as 1V. It is not important but will be clearer if you just set it on the scope. The signal is expected to see on the scope should be a 325V. After attenuating the probe, only 32.5V is actually feed into the oscilloscope input. Tektronix TDS 2014 oscilloscope can accept signal up to 300V. Without the attenuation, the scope might just blow up. Although the scope received only an input of 32.5Vp, it multiple the scale by a factor of 10 because of the settings I have done on the scope.

4) The reading is going to be very high, so set the voltage div for both CH1 & CH2 to the max. In my case after adjustment to the 10x factor on the scope, my max setting is 50 volt/div.

5) Set the scope to Math function: CH1 – CH2. CH1 is measuring the Live signal with reference to Earth while CH2 is measuring the Neutral wire with reference to Earth. In order to measure the signal Live with reference to Neutral, we need the scope to do some math, CH1 – CH2. (A red trace appear representing a new trace CH1 – CH2). Disable the CH1 & CH2 trace so that you can see only CH1 – CH2 trace clearly.

6) Ensure that all wire is properly screwed and secure. Pull individual wire, and ensure that it does not comes off.

 

 

The oscilloscope presents the signal at the output of the triacs switch circuit.

The AC mains power is not switch on to the triacs switch circuit yet, so no signal is detected at the circuit output..

Once I switch on the mains switch, some small noise is detected at the output of the circuit. The triacs is in the off state but some signal is being observed. This means that there are some leakage. The leakage is ok because it is too small to activate the AC fan.

The triac switch is activated and the 230Vac is observed at the output. Yes, this is the 230Vac. But there is a problem. The voltage is too high for the oscilloscope to display. My scale is to 50 volt/div, and I have only 8 division on the y-axis for display. This means that I can only measure in the range of 200Vp-p. The reason for the signal clipping on the display.

To display the full 230Vac range or 325Vp-p. We need to attenuate the signal more. Some probe you have the option to attenuate by 100x.

 

230Vac measurement connection with oscilloscope

 

Measurement with voltage divider across Live & Neutral wire.

 

My probe only allows me to attenuate the signal by a factor of 10. I will need to attenuate the signal further.

For my case, I have a voltage divider using 2x 1MΩ (0.25W), to attenuate the signal by two times before feeding the signal to the probe. The voltage divider is connected across the output terminal of the Live and the Neutral wire. CH1 is connected to the divided voltage (between the two resistor), while the CH2 remains connected to the Neutral wire.

You can use other resistor value but you need to ensure that the resistor wattage is able to handle the high voltage. The maximum voltage across the Live/Neutral is 325V. If 2x 1MΩ is used for he voltage dividing, the maximum current expected will be about 0.16mA. The minimum wattage required is therefore 325V x 0.16mA = 0.053W. I have used a 0.25W resistor, which is more than enough. If you are using 2x 10kΩ resistor divider, make sure your resistor wattage is at least 6W. There will be more current flowing through the resistor, more energy dissipating across it, and it is going to be hot. A lot of energy is wasted if you use lower resistance.

The left present the actual measurement setup with a voltage divider circuit to attenuate the signal so that the oscilloscope is able to display the high voltage.

Remember to multiply the voltage by 2 times while you analyze this waveform. This is because the voltage has been divided by 2 due to the voltage dividing circuit. Click on the photo to enlarge the signal 650Vp-p at 50Hz, representing our 230Vac mains supply.

Finally a clear 230Vac waveform display with a period of 20ms. I finally managed to measure the 230V mains.

On the scope, the signal display about 320Vp-p, but in fact the signal is actually about 640Vp-p. This is because of the voltage divider that I have added and the scope just have no idea about it. So mentally, you need to multiply by 2 to get the correct reading. This is about the same as what we have computed previously. 230Vrms has the actual waveform of 650Vp-p at 50Hz. Any capacitance component attached across the Live & Neutral wire have to withstand at least the voltage of 325V. This is important for our component selection.

After this write up I have better confidents in dealing with 230Vac and it’s electronics. Something that I often used and understood little about it.

It is so interesting. If only I am as curious when I am in school during my teenage days. There would be many teachers to guide me in the understanding. As a teenagers, most of us probably be fooling around rather than learning seriously and actively. Wanting to learn and know more than what the lecturer teaches.
 

I hope you have enjoy, and get a better understand in dealing with 230Vac measurement.

 

Measuring current by inserting the meter into the current path.

     

 

Measuring the AC current using the clamp meter. Easy, just clamp it.

                  

 

 

                     

 

picture taken from:

http://www.nakano-permalloy.co.jp/e_clamp_on_meter.html

http://www.licensedelectrician.com/Store/AM/AC71B.htm

Measuring Current

How much current is being drawn from your wall socket. You might probably want to know how much energy your equipment/appliances is consuming.

For measurement of current, a cable clamp meter is recommended. Clamp measurement detects the invisible alternating electrical field generated by the 230V ac 50Hz. No contact with the copper wire, just clamp around the cable. This is all about Faraday Law, founder Michael Faraday. It is actually very interesting learning about the history of how people actually discover these physics. They are great people. I watched a very interesting science history documentary. A documentary about the history and concept behind E=mc2. I think it would be great to share you everyone.

Do a search on,

“E=mc2 – Einstein and the World’s Most Famous Equation”

 

 

 

a mini current sensor for AC power line. Comes with 1:300, 1: 500, etc… transformer coil ratio

Measuring Current using a current sense coil or transformer

The picture on the left is a mini current transformer. To measure the current flowing through your AC power line, either a “Live” or “Neutral” wire has to be put through the hole located in the centre of the sensor.

The sensor consist of fine wire coil inside. The coil is wind around the circular core, forming a ring to sense the AC magnetic field around the AC power cable through the hole. It is important that only the “Live” or “Neutral” wire can be inserted through the hole. If both the “Live”and “Neutral” are put through the hole, the signal will be minimum. This is because the magnetic field of the out going wire will be cancel off by the returning wire.

 

The picture on the left is a simple setup with the oscilloscope probe to the two terminal on the current sensor.

Note that only 1 wire (Neutral) through the hole on the current sensor.

Signal at the output of a 1:300 coil transformer, while powering up a sprindle motor. The motor load is an inductive load. The current signal being pick up is quite noisy from the motor. The signal is about 5Vp-p.
Signal at the output of a 1:300 coil transformer, while powering up a soldering iron. The soldering iron is a heating element which is a resistive load. The current signal looks like the 230Vac 50Hz sin wave at about 0.2Vp-p.

This is a rectified signal (using diode bridge) picked from the sensor. The power line is not powered up, no load. I thought it should be flat. It could be noise generated from other nearby appliance through the “Neutral” wire.

The signal seems weird, but I did not investigate much on this result.

Ch1 is the rectified signal picked up by a 1:300 current sensor. The motor load is being switched on and off.

Ch2 is the signal conditioned through a LPF (low pass filter) and an op-amp comparator circuit. A clean result showing the motor being on and off.

Ch1 is the rectified signal picked up by a 1:500 current sensor. The motor load is being switched on and off. As you can see, the magnitude of the signal being picked up is higher. A higher voltage output, is being trade-off with a lower current drive. Since the signal will be conditioned by an op-amp, having a low current drive is not much of a problem.

Ch2 is the signal conditioned through a LPF (low pass filter) and an op-amp comparator circuit. A clean result showing the motor being on and off.

   

 

 

 

Computing Appliances Electricity Usage

Now that we measured the current consumption, I am starting to be curious on the power consumption for a typical home. Just for the fun of it, I have investigate some of the high power consumption appliances.

Energy (Wattage) = Voltage (Vrms) x Current (Ampere)

 

reference:

http://michaelbluejay.com/electricity/computers.html

 

 

Energy meter to measure power consumption of your electrical appliances.

 

 

How much does my power cost?

Energy cost: S$0.1803/kWh as on 16 Jun 2009

Energy cost: S$0.2558/kWh as on 1st Apr 2011

Energy cost: S$0.2728/kWh as on 1st July 2011

This means that it cost S$0.1803 running an appliance consumption 1kW  for an hour.

 

See more energy measurement at another webpage Energy Audit

 

Air King Model 9106

Energy: 57-77Watt

 

 

 

Energy consumption for 8hr/day= 77W x 8hr = 616Wh

Energy consumption for 30 days = 616Wh x 30 = 18.48kWh

Energy cost for 30 days = 18.48kWh x $0.1803/kWh = $3.33

Energy for a Fan will cost about

$2.47-$3.33 per month

 

 

 

         Daikin Inverter Multi Split (R-22)

Energy: 1520-6900Watt

 

MSZ-FB series

Energy: 2500-5000Watt

 

Energy consumption for 8hr/day= 6900W x 8hr = 55.2kWh

Energy consumption for 30 days = 55.2kWh x 30 = 1656kWh

Energy cost for 30 days = 1656kWh x $0.1803/kWh = $298.58

Energy for a Fan will cost about

$65.77-$298.58 per month

 

 

 

 

 

 

MR-560U 560 litre Refrigerator

Energy: 570kWh/year

or 65W when I divide that number

with 365 days x 24 hours

 

 

Energy consumption for 8hr/day= 65W x 8hr = 520Wh

Energy consumption for 30 days = 520Wh x 30 = 15.6kWh

Energy cost for 30 days = 15.6kWh x $0.1803/kWh = $2.81

Energy for a Refrigerator will cost about

$2.81 per month

 

 

Philips MASTER TL5 circular fluorescent lamp

Energy: 22-60W

 

Philips PL-T compact fluorescent bulb

CFL, compact fluorescent

Energy: 32-42W

 

Energy consumption for 8hr/day= 60W x 8hr = 480Wh

Energy consumption for 30 days = 480Wh x 30 = 14.4kWh

Energy cost for 30 days = 14.4kWh x $0.1803/kWh = $2.60

Energy for a fluorescent lamp will cost about

$0.95-$2.60 per month

 

Energy consumption for 8hr/day= 42W x 8hr = 336Wh

Energy consumption for 30 days = 336Wh x 30 = 10.08kWh

Energy cost for 30 days = 10.08kWh x $0.1803/kWh = $1.82

Energy for a fluorescent lamp will cost about

$1.38-$1.82 per month

 

Incandescent Light Bulb

Energy: 50W

 

 

Incandescent seems to have similar wattage with the fluorescent. In fact a 15W compact fluorescent can have the equivalent brightness of the 50-60W incandescent bulb. Therefore using fluorescent can be cost saving.

http://www.caus.vt.edu/maketheswitch/pages/facts.html

 

  The energy cost matches quite well with my home monthly electrical bill. I am quite surprise that the fridge use so much less energy. Did I make any wrong assumption? Now I also aware that the energy to turn on the aircon for a day, is enough to operate a fan for 3 months.

 

 

 

 

 

 

=

 

 

End of the fun. Let us start to research more about the AC ingredients available.

 

See more energy measurement at another webpage Energy Audit

 

 

 

www.pic-control.com, Singapore Network Ethernet WiFi RS232 RS485 USB I/O Controller

Singapore Customized, custom made Electronics Circuits & Kits

 

 

3. Working with 230Vac electronics  
Component suitable for switching on and off 230Vac devices.

– Mechanical relay

– Solid state relay

– Triacs

– Thyristor

– Capacitor (high voltage rating)

– Resistor (high wattage rating)

– Transformer

 

about transformer- transformer.pdf

reference from http://www.melcontransformers.info/

 

The list on the left are namely some of the common components used for controlling 230Vac appliances.

This section is closely related to switching. So I decide to divert your attention to the switch. The range of components for controlling your appliances. It is all about “Switch“…

So let’s move on to learn more about switch.

 

 

AC to DC conversion (Transformerless)

Our electrical system uses high AC voltage to distribute energy to our homes. Most gadgets works with DC voltage, therefore we often see a AC-DC circuit module as part of the gadget.

Some AC-DC module are integrated into the product; for example, our computer, DVD player, radio. Some AC-DC module comes in the form of power adaptor that supply DC voltage to the devices.

The AC-DC module is so common, it will be useful to learn about them. Most AC-DC contains a transformer to isolate the DC voltage from the AC mains. This acts as a form of protection, so that people will not get electrocuted when touching the DC circuit.

There is also a newer type of AC-DC using switching method. It is something similar to switching DC-DC method. The transformer used can be alot smaller. You can see that old power adaptor was heavy and bulky. The power adaptor nowsaday are light and small.

Another type of AC-DC module uses only resistors and capacitors, without any transformer. They are also known as transformerless AC-DC circuit. You need to be careful when handling this type of cicuit as it is not isolated from the AC mains. You will get electrocuted touching the DC circuits. Please refer to the section above to understand more about 230Vac and how one can get electrocuted. Transformerless circuit is simple and cheap, and it is suitable for application that consume low power.

 

 

Example:  Transformerless 230Vac to 4.6Vdc

transformerless%20230Vac-4.6Vdc%20circuit.png

Please click here to see the transformerless AC-DC circuit schematic.

 

 

This circuit converts 230Vac to 4.6Vdc without using any transformer. Please take note that the circuit is not isolated from the 230Vac mains; ensure that the circuit is enclosed and properly earthed to prevent accidental electrical shock.


(Last update: 31 Oct 2010)

Example:  Transformerless 230Vac to Vdc (for a load of 24Vdc 20mA)

Please click here to see the transformerless AC-DC circuit schematic.

 

ac-dc transformerlessac-dc transformerless

 

This circuit converts 230Vac to Vdc suitable for a 24V 20mA load, without using any transformer. Please take note that the circuit is not isolated from the 230Vac mains; ensure that the circuit is enclosed and properly earthed to prevent accidental electrical shock.


(Last update: 12 Jan 2011)

Another transformerless circuit 230Vac to 5Vdc that I found on the internet. (I have not tested this yet)

 
AC-DC integrated circuit product manufacturer

You can refer to the datasheet on their website for the datasheet and application notes.

power integration

High efficient ac-dc conversion IC

– isolated (smaller transformer component)

– non isolated (transformerless), LNK306DN

2018-10-31 Transformerless Power Supply – 230Vac to 12Vdc

transformerless-230vac-design.png

 

ST microelectronics

– isolated (smaller transformer component), VIPer12A

AC-DC switching IC
IC: LM5021
IC: IRIS4013(K), IRIS40 series, irismps3.pdf
IC: NCP1200, AND8023-D.PDF
IC: NCP1215, AND8128-D.PDF
IC: NCP1271, AND8242-D.PDF
IC: NCP1381
IC: NCP1603, AND8207-D.PDF

 

 

www.pic-control.com, Singapore Network Ethernet WiFi RS232 RS485 USB I/O Controller

Singapore Customized, custom made Electronics Circuits & Kits

 

 

4. AC lightings wiring guide  
Keyword: difference between normal fluorescent, PLC lamp
LEd fluorescent circuit
power supply LEd fluorescent circuit

Connecting electronic ballast with a fluorescent lamp.

http://www.goodmart.com/facts/light_bulbs/ballast_wiring.aspx
http://www.repairfaq.org/sam/flamp.htm
http://en.wikipedia.org/wiki/Ballast_(electrical)
http://www.oksolar.com/lighting/ballasts.htm
 

EXAMPLE

Say hob 32a
Say oven 32a

Total load 64amp

Cooker apply diversity

1st 10a 10amp
30% of 54a 16.2amp
Allow for socket 5amp

Ib 31.2amp
(Ib no socket 26.2amp)
 


Pluggable connector for 230Vac lighting points (Live, Neutral, Earth)

 

SPINNE EM16 connector (Black)

SPINNE EM16 connectorSPINNE EM16

 

163 3 TS IEC998-2-1 connector (Black)

163 3 TS IEC998-2-1

163 3 TS IEC998-2-1163 3 TS IEC998-2-1

163 3 TS IEC998-2-1

Can be purchased from New Starlight Industries Pte Ltd http://www.newstarlight.com/prdt76.html

 

 

quick release wire connector quick release connector (no need to screw on the wire)


Pluggable 3 way connectors from wieland, commonly used for connecting electrical AC cables to lightings lamp. The connector can be pre-installed onto the power termination point and the mating connector on the lamp component. This simplifies the cable to lamp connection and allows faster installation.


5. Ground Loop

references:
http://sound.westhost.com/earthing.htm
http://www.compliance-club.com/archive/old_archive/020918.htm

 



www.pic-control.com, Singapore Network Ethernet WiFi RS232 RS485 USB I/O Controller

Singapore Customized, custom made Electronics Circuits & Kits




 

 


Keyword: Vac mains, 230Vac 110Vac, High Voltage, Electrocute, Danger

Wall sockets, power points, power sockets, electric receptacles, electrical outlets

A Quick Reference Guide to Ascii, Keyboard & Windows Alt codes

Ascii, Windows Alt & Keyboard Codes

Edited by Lim Siong Boon, last dated 06-Oct-08.


 

 

 

 

 

Keyboard scan code

The Diagram below shows the codes that are returned when a key is pressed on the keyboard.                                      

For example, pressing ‘a’ would return 0x61.

If it is an extended key, the code is shown as “0,XX” where XX is the extended code.

 

 

 

Ascii Code Table

 

  0x?0 0x?1 0x?2 0x?3 0x?4 0x?5 0x?6 0x?7 0x?8 0x?9 0x?A 0x?B 0x?C 0x?D 0x?E 0x?F
0x0?

 

NULL

SOH

start of heading

STX

start of text

ETX

end of text

EOT

ENQ

equiry

ACK

•

BELL

BS

Back

Space

TAB

LF ‘\n’

new line

VT

vertical tab

FF

new page

CR ‘\r’ carriage return

SO

shift out

SI

shift in

0x1?

DLE

data link esc

DC1

DC2

DC3

DC4

§

NAK

neg ack

SYN

ETB

CAN

cancel

EM

SUB

ESC

FS

GS

RS

US

0x2?

 

Space
! # $ % & ( ) * + , . /
0x3? 0 1 2 3 4 5 6 7 8 9 : ; < = > ?
0x4? @ A B C D E F G H I J K L M N O
0x5? P Q R S T U V W X Y Z [ \ ] ^ _
0x6? ` a b c d e f g h i j k l m n o
0x7? p q r s t u v w x y z { | } ~
0x8? Ç ü é â ä à å ç ê ë è ï î ì Ä Å
0x9? É æ Æ ô ö ò û ù ÿ Ö Ü ¢ £ ¥ ƒ
0xA? á í ó ú ñ Ñ ª º ¿ ¬ ½ ¼ ¡ « »
0xB?
0xC?
0xD?
0xE? α ß Γ π Σ σ µ τ Φ Θ Ω δ φ ε
0xF? ± ÷ ° · ² non-breaking space
  0x?0 0x?1 0x?2 0x?3 0x?4 0x?5 0x?6 0x?7 0x?8 0x?9 0x?A 0x?B 0x?C 0x?D 0x?E 0x?F
0x10? Ā ā Ă ă Ą ą Ć ć Ĉ ĉ Ċ ċ Č č Ď ď
0x11? Đ đ Ē ē Ĕ ĕ Ė ė Ę ę Ě ě Ĝ ĝ Ğ ğ
0x12? Ġ ġ Ģ ģ Ĥ ĥ Ħ ħ Ĩ ĩ Ī ī Ĭ ĭ Į į
0x13? İ ı IJ ij Ĵ ĵ Ķ ķ ĸ Ĺ ĺ Ļ ļ Ľ ľ Ŀ
0x14? ŀ Ł ł Ń ń Ņ ņ Ň ň ʼn Ŋ ŋ Ō ō Ŏ ŏ
0x15? Ő ő Œ œ Ŕ ŕ Ŗ ŗ Ř ř Ś ś Ŝ ŝ Ş ş
0x16? Š š Ţ ţ Ť ť Ŧ ŧ Ũ ũ Ū ū Ŭ ŭ Ů ů
0x17? Ű ű Ų ų Ŵ ŵ Ŷ ŷ Ÿ Ź ź Ż ż Ž ž ſ
0x18? ƀ Ɓ Ƃ ƃ Ƅ ƅ Ɔ Ƈ ƈ Ɖ Ɗ Ƌ ƌ ƍ Ǝ Ə
0x19? Ɛ Ƒ ƒ Ɠ Ɣ ƕ Ɩ Ɨ Ƙ ƙ            
0x1A?                                
0x1B?                                
0x1C?                                
0x1D?                                
0x1E?                                
0x1F? ǰ DZ Dz dz                        
0x201? – — ‘ ’ ‚ “ ” „
0x202? † ‡ • …






0x20A? €
0x212? ™
0x221?
                                 

 

How to key in special ascii symbol into your document.

Alt xxx    (printable char, where xxx is decimal code)

example: Alt 9, will print char-> ○

   where 9 is a decimal number

example: Alt 65, will print char-> A

   where 65 is a decimal number

Alt 0xxx    (for control char, where xxx is decimal code)

example: Alt 09, will execute-> tab function

   where 9 is a control code

Alt +XXXX (for printable char, where XXXX is hexadecimal code)

example: Alt +41, will print char-> A

   where 41 is a hexadecimal number

 

 

Extended Ascii/HTML codes (Press Alt 0xxx)

Name

Currency

 Character

Key press

sequence

     
  Currency  
cent ¢ Alt 0162
British Pound £ Alt 0163
Euro currency € Alt 0128
Japanese Yen ¥ Alt 0165
Dutch Florin ƒ Alt 0131
Generic currency ¤ Alt 0164
     
  Math Symbols  
diameter big Ø Alt 0216
diameter small ø Alt 0248
division ÷ Alt 0247
degree ° Alt 0176
     
plus/minus ± Alt 0177
micro µ Alt 0181
     
  Fractions  
  ¼ Alt 0188
  ½ Alt 0189
  ¾ Alt 0190
     
  Others  
Copyright © Alt 0169
Registered ® Alt 0174
Trademark ™ Alt 0153
List dot • Alt 0149
Section § Alt 0167
Paragraph Alt 0182
en-dash – Alt 0150
em-dash — Alt 0151

 

 

Other references:

LSB reference summary.pdf

USB HID to PS/2 Scan Code Translation Table.pdf




 

 

 

keyword: ascii code table, ascii chart

Switch

Introduction to the uses of Mechanical, Electrical and Electronic switches. Understanding the fundamental of electronics from the knowledge of switch.

Photos from internet, Edited by Lim Siong Boon, last dated 31-Oct-09.

 

 

 

My journey of searching the real meaning of electronics,

this topic “switch” is the one worth studying.

The deep understanding in switches,

helps me discover a lot much more about what is happening in electronics.

If you are looking for basic and simple understanding of electronics,

this topic would be the one worth studying.

Practically build up your fundamental in electronics.

 

 

Topic Discussion Overview

  1. Wire Connection
  2. Mechanical Switch
  3. Mechanical Relay
  4. Reed Relay
  5. Solid State Relay
  6. Transistor as a switch
  7. Triac , the electronic AC switch
  8. MEMs relay

 

 

 

1. Wire Connection

 

 

 

 

 

 

History, old telephone exchange in New York City, during the year 1910.

Switch Story

Long long time ago, circuit connection is achieved using muscular means. The telephone network is one of a major communication system in the early days. To Call your buddy next block, the first step you have to do is to pick up the phone. A human operator will attend to your pick up. Speak to her about the intention to talk to your buddy. The operator will manually plunk in wire connector linking your home telephone to your buddy phone. And Yes, you can now talk to your friend because there are operator doing the switching at the end of your telephone line.

http://www.artlebedev.com/mandership/91/

Sounds a lot of manual work. Yes, this is the good old days. The telephone operators in the central telephone exchange house, are making the circuit connection manually. This is what this page is all about. All about switches. All about making a good short circuit.

Not all short circuit is bad. In fact they are the fundamental building blocks in digital electronics. Many electronic design/interface are as simple as a switch.

In the articles that follows, it will be about the various type of electronics components that can help you in the creation of the perfect short circuits.

 

 

 

Various type of connectors

The following connector guide present the typical name for various connectors.

Click the image for the enlarge view.

(with courtesy from RS Components)

 

 

 

 

2. Mechanical Switch

 

 

 

1P2T latching type (Form1C)                     

 

1P1T latching type (Form1A)             

 

1P1T double break, push button type (Form1X)

 

2P2T latching type (Form2C)               

 

Summary Table for forms of Switch Contact

 

Normally Open,

NO

Normally Close,

NC

Normally Open,

with Double Break

Normally Close,

with Double Break

SPST or 1P1T

Form1A

 

Form1B

 

Form1X

 

Form1Y

 

SPDT or 1P2T

Form1C

 

Form1Z

DPST or 2P1T

Form2A, FormAA

 

Form2B, FormBB

 

Form2X, FormXX

 

Form2Y, FormYY

 

DPST or 2P1T

FormAB

 

FormXY

 

DPDT or 2P2T

Form2C, FormCC

 

 

 

Other Type of switch characteristic.
*ON-OFF
*(ON)-OFF
ON-(OFF)
ON-ON
ON-(ON)
ON-OFF-(ON)
*ON-OFF-ON
*(ON)-OFF-(ON)

* means most common configuration
(xx) means momentary position,
no bracket means latch position,
off means no connection between throw,

 


“alternate action” switch is similar to a momentary switch, but the state will get alternate/latch when the switch releases to the spring back position.



Switch Type (for switch with 2 or more throw)
non-Shorting (typically) – contact is break first before making contact with the next contact.
Shorting – contact is short with the next contact, before breaking with the previous contact.

 

 

 

 

                     

 

           Various product that uses switches

 

Mechanical switches is a simple type of interface to control electrical stuff using the means of some mechanical action. In short, a switch is a mechanical to electrical conversion device.

I can’t find any history on the evolution of the mechanical switches. I guess people might have become smarter. Rather than using a jumper wire to make connection manually, human invented switch to make short circuiting task more efficient. Tedious and time consuming work. Plucking the wires in and out takes a lot more effort, compare to toggling switches.

Of course mechanical switches are not suitable for telephone exchange application for the millions of household. However understand the roles of switches in electronics, will definitely increase our awareness for a more complex electronic system. Switches in the form of mechanical, digital circuit, power electronics are commonly use in the electronics design.

The greatest thing to understand about switches is all about the component/device rating. Some people refer it as the power handling capacity, which is the voltage and the current. The voltage it can handle across the switch terminals without destroying itself. Sometimes refer to as the breakdown voltage. The maximum amount of current that can flow through, without destroying itself. Sometimes refer to as the load current the switch can support.

In fact, the whole idea of this “switch” thingy is about understanding the rating and capabilities of the various type of electronics components. I mean it applies to all the electronics devices, including even wires. To me, this is also the most important concept towards understanding of all other electronics. It is so important. Fortunately it is also easy to understand, if you pay enough attention in this topic.

Not just switch have rating. Wire also have it’s rating, since we know that switch is in fact another form of wire, or to be precise we call it a conductor.

Like the size of a water pipe, there is a limit on the water flow rate. If the pipe diameter size is small, flow rate will be small too. Larger diameter pipe more water can flow. This is what they mean by the term “current rating”. Larger wire size can carry more current. Small wire may also carry the same current at the expense of increase temperature. When it gets too hot, the wire will just burn off, just like what a fuse do.

For further information on choosing your wire for carrying power, click here.

If there is an important message that I want you to bring back after reading this whole article, it will be the following four words.

“Everything have its Limit”

 

Shifting our attention back to mechanical switch. There are various kind of terms for mechanical switch. Switches can be “momentary” meaning the the switch will spring back to the original position when there is no external push forces, or “latched” meaning that the switch will stay at it’s new toggled position when when external push forces is applied.

Switch description such as “double poles double throws” or 2P2T provide more information on how the switches are operated. “Poles” tell us how many sets of switches are connected to a single mechanical trigger. This is often refer to as ganged switches. “Throws” describes the number of switch contact way. If you are still not clear what I mean, refer to the pictures on the left side. Picture indeed tells a thousand words.

Another term used is shorting or non-shorting switch. Non-shorting switch means that the switch will break the contact with the current “throw” position before making contact to the next “throw” position. This type of switch is more commonly in use. Shorting switch means that the switch will break the contact with the current “throw” position after making contact to the next “throw” position. This means that during the switching, two of the “throw” position will be shorted for a very short period. It is used where the connection needs to be connected always and not left floating at any one time. Happen to found out that these are used in switching loads such as loudspeakers, where the source cannot be safely operated without a load.

There are other form of switch description known as the “switch contact forms“, some example are Form A, B, C, X, Y, Z, AA, BB, AB. Form A is defined as a normally open switch, while Form B is a normally close. Form X is similar to form A except that it has a double break contact. Form X, Y, Z are double break switches.

For example a switch labeled as “Form 1A” (SPST) indicates that it is a 1 pole normally open switch. “Form 2C” consist of a NO as well as a NC contact, also known as the DPDT or 2P2T switch. Form Y is a normally close 1P1T double break switch. Form AA is a 2P1T normally open switch.

These terms are common description for  mechanical switches, and is also widely applied to mechanical and reed relay devices as well.

The main point to note when choosing a switch, is on the mechanics design, and the feel of the button. This is non-technical, and is more about user’s experience.

Technically all switch has their maximum rating for handling current. Like a wire, if you choose a thin and fine wire, the wire will get burn or melted when large current flow through it. This is also the principle of how electrical fuse works. You can choose a higher rating switch which can match most type of condition, however they are usually big and bulky. This is the trade-off on choosing an appropriate switches.

There are many more styles of switch, and you may like to refer to the following website for more references.

http://www.kpsec.freeuk.com/components/switch.htm

 

There are various mechanical switches around us. They are acting as a system interface, which convert mechanical motion into electrical signal. For example, the keyboard which you are typing, the power switch that turns on your TV, the keypad you pressed on your telephone or mobile phone, the lever switch that turns on your rice cooker, microwave oven….etc. They are interface with switches for us to control.

 

 

Interfacing a switch for digital input (TTL, CMOS)

 

 

 

 

 

 

The circuit on the left illustrate a simple switch interface. This interface provides a output voltage to indicate the status of the switch. If the switch is press, the output will be a 0V. While it is release, output will be a 5V. This can be a input interface to a digital circuit, for logic ‘1’ or ‘0’. A useful and basic circuit interface.

Mechanical Glitches from a mechincal switch

 

Mechanical switch is analog in nature. When a mechanical switch is pressed, two metal plate is in contact with one another. The force is small but is large enough to cause the contact plate to bounce away.

This is like a pencil dropping onto a floor, we can see the pencil hitting the floor and bounced up. The pencil will settle on the floor after a number of bounce.

This bouncing results in intermediate contract between the metal, and can be catches very quickly by the electronics. This also results in what is known as the switch glitches.

This is not too critical for some electronics, but for others, it may result in undesirable results. Designing a mechanical switch which is glitchless can be difficult. A practical way to remove the signal glitches would be through electronics components and design. Microcontroller is very popular in most circuit design, and the firmware can also be written to remove these unwanted input switch glitches.

The oscilloscope’s screen capture on the left shows the glitches produce by the following PCB mounted tactile push button switch.

The signal captured is the input signal, when the push button is released. These glitches can sustain its noise for as long as 5-15ms. The slower the switch is release, the longer the glitches can be generated.

The glitch behavior depends very on the mechanical switch design. There are switch which can produce a clean digital on/off signal. However, it is best not to assume that the noise will forever not appear. It is still better to assume the possibility of generating noise to design your input circuit properly.

A simple way to remove such switch glitch noise is to insert a capacitor of let say 100nF between the input signal and reference ground.

 

Common Switch Information (name, dimension, circuit)

Toggle Switch (chasiss mount)

toggle switch

Toggle switch dimension and thread size 1/4-40 UNS-2A
Drill 6mm hole for tapping.

Typical Toggle Switch Dimension
toggle switch dimension and thread size
Toggle switch drill hole size
toggle switch drill guide

Vandal-Proof Switch (chasiss mount)

metalic switch 16mm

silver aluminum metal, 16mm, latching type, red LED ring, 12V, vandal-proof, metalic switch

Thread M16, 1mm pitch
Drill 16mm hole for tapping.

Typical 16mm metalic switch dimension
metalic switch dimension

Vandal-Proof Switch (chasiss mount),
Pizeo Switch

piezo switch

piezo switch

Cross section illustration of a pizeo switch
piezo switch diagram

Pizeo switch circuit

pizeo switch circuit

 

 

Singapore Customized, custom made Electronics Circuits & Kits

 

 

3. Mechanical Relay

 

 

Typical Mechanical Relay connection pin

 

This is a very important section. The introduction to this electrical control switch, call a Relay. It is basically a device to activate a mechanical switch, by electrical means. This is unlike a switch which is activated manually. In another words it is a device that convert electrical signal to a mechanical energy back to electrical signal again. Similar to mechanical switch, they can be described as 2P2T, single pole double throw, etc…

How it works? A electrical voltage will be applied to activate a coil in the relay. The coil being powered up, will generate a magnetic force that will attract the lever. This lever will be pulled towards the magnetized coil, causing an action that will switch the mechanical contact.

Why on earth this relay is for? Why is there a need to convert electrical to mechanical to electrical again?

A example would be that you may want to switch on your home 230Vac power remotely from your friend house 1km away. To do this, one possibility is to lay cables thick between your friend’s home and your home. The cable must be thick enough to handle the high current and 230Vac voltage. Using a 230Vac rated switch, which is relatively bigger in size, it can be mounted in your friends home in order to do the switching.

Another cool method is that you can deploy a relay to help switching the 230Vac in your own house, while a thinner wire and lower rating switch laid across your friend’s house. This is one of the use of a relay. To be exact, the relay helps to control energy from a electrical signal to a mechanical energy to electrical power. Other application can be, controlling a high power motor using tiny switch, or to switch on the house lightings using your computer system digital signal.

The application of relay is important, as it is still widely used in control application. It can be thought of as a amplifier. A powered signal can be produced by using a small signal. This principle is similar to the use of a transistor as a switch. Knowledge in the relay will certainly aid understanding the transistor, commonly seen in circuit interfacing.

 

Example of an electrical circuit using a relay

 

 

There maybe times where you need to activate a relay, for certain logic output. The digital signal from the logic IC might not be able to turn on the relay coil. This is because the logic IC are not design to drive load that requires high current. To drive a high load device such as a relay or motor, a transistor can be interfaced between the logic and the supply to power up the load. The following diagram illustrate the circuit. More information about using a transistor as a switching device, can be found in the later section “Transistor

(fig.3a) Digital Logic interface to a Relay as output using transistor.

 

Another common use of relay is to act as a isolator output for communication or I/O between unknown electrical system. This isolated output acts as a mean for electronic hardware to communicate without affecting another electronics system. System design will be simpler, while integration/troubleshooting work will be easier and faster, because system can be isolated easily.

For example, one company may have a robotic application which require mobility and high current discharge. A 12V SLA sealed lead acid battery would certainly meet this requirement. A mobile phone company is following the market trend and will be designing a 3.3V electronics circuits which has the advantage of size and energy efficiency. Another one may choose to deploy 5V system, because they have been using some critical component which requires 5V. How are their design able to communicate or control another system using a different voltage system. They may use communication standard like RS232 to communication between systems. However the design will be considerably too complex if the communication requires only 1 bit of information, either on or off.

The operation of a relay as an isolated output is simple. The system X that activate the relay provides a switch contact to indicate logic 1 or 0 to the receiving system Y. Y provides its own power and interfacing circuit to sense if the switch is close or open. Since there is no voltage interaction between the two system, some people defined this as a “Dry Contact interface”. System X activating the relay has provides a “Dry Contact” or a switch contact output without any electrical signal transmitted to system Y. Dry contact does not mean that no electrical current flow. It simply mean that Y will provide it’s own electrical circuit to obtain the output signal from X. For further information on detecting switch status, you can refer to the section on mechanical switch.

In this scenario, the relay acts as a output isolator, providing a logic signal without any direct interference to the receiving system Y. Y will interpret the switching action, just like a normal mechanical switch. Implementing such a isolated design, it makes the system modular just like a black box. Certain input will be responded by a defined output result. On site deployment will be easier, and system troubleshooting can be a lot faster.

The important points to note when choosing a relay is to purchase the correct coil voltage rating, and the relay’s switch current handling capacity. When the coil is to be activated from a 12V signal from a circuit, you need to get a relay that can be trigger by 12V. There are various input rating typically 5V, 6V, 12V or 24V to choose from. Remember to take note of the voltage system your electronics circuit is running, before any relay purchase. On the switching side, you need to determine how much current will be flowing through the relay. If you need to turn on a high current rated device, make sure you get a relay that can handle the maximum current/power the device can draw from the supply. As a guide, choose a relay switch that have a current rating 2 times the maximum expected current that will be drawn. This would be quite a safe margin to prevent further complication due to temperature or other environment factor. A higher rated relay switch will be bigger. It is a trade off to decide upon. Cost ranges from S$3 to S$20. Relay can wear out and need replacement. There are socket available, so that the relay can be plug in and out for replacement easily. They are available for about S$5 to S$10, with choices like DIN rail mounting, PCB mount, etc…

Compare to current known technology, the relay is able to provide a higher current handling capacity, and higher isolation between system.

http://www.kpsec.freeuk.com/components/relay.htm

The disadvantage is that relay have relatively shorter operating life due to mechanical wear and tear. It also make tick tack noise produce by the mechanical action. The switching could also produce unwanted mechanical glitches. When switching high voltage power, because of the large voltage difference between both end of the contact, arcing will be produced during the switching. This arcing spike can weld the contact bit by bit, and after a period of time the contact can eventually be welded together. The relay will then be useless since it is unable to do switching. Therefore the mechanical relay component is unsuitable for switching high voltage power line.

Although there are a number of disadvantages, it is quite popular because of the ease of using it. Troubleshooting is a bit easier because you can hear or see a relay operating. Unlike a semiconductor devices, measuring instrument or indicator display is require as an aid to troubleshooting.

 

Mechanical relay selection design article from ECN Asia

 

 

 

Singapore Customized, custom made Electronics Circuits & Kits

 

 

4. Reed Relay

 

 

 

    

            

 

 

 

Reed relay is a smaller version of relay. Package is in plastic. It is about the same size as a 14 pin DIP IC socket. It has a slightly different magnetize structure, however the principle is the same as a mechanical relay. Since it is small, this reed relay is suitable for handling signal, and not high power or high current drawing load. Switching sound is hardly noticeable. You can still be able to hear some tick tick sound when it is activate. Switching speed is considerable faster than a relay because the switch mechanism inside the package is small.

Application for a reed relay can be for output signal isolation purposes or for switching on small current load. Example of small load devices that can be switched on might be LED, DC buzzer, relay, circuit or sensors. Typical current handling capacity is of about 0.5A load.

Reed relay comes in different type of forms. Forms refers to the nature of the switch contact. For further information on “contact forms”, refer to the switch section above.

Typically swtch form is a single pole single throw switch (SPST or Form A), Typical input coil voltage is of about range  from 3V to 12V. Load coil current is typically 10mA for a 5V reed relay. Cost is about S$2-5

A number of time I encounter product issue with the reed relay, and have to spend a lot of time de-soldering the component out for a replacement. I will recommend building a simple tester to test the reed relay.

For a 1A05 relay, the coil resistance is typically 500Ω. Some new reed relay can measure 500Ω, but after pumping 5V across the coil, the resistance might drop to 100-300Ω or even 0Ω. This might be due to the faulty coiling wire which go shorted inside the reed when the current is applied. Once the short occur, power supply may experience the short circuit. Fuse or transistor in the circuit may get damage due to the short. The output contact of the relay might not work properly, and should be checked as well.

Reed Relay Tester (2009-10-20)

 

 

 

click here to
Buy 5V Mini Relay Switch
Available Now at the PIC-store

 

 

Some part number that you can refer to, for Reed Relay products. Part no. description example “1A05” means the relay is of forms 1A, and is activated by 5V.

DSS41A05B, DSS41A05, DSS41A12, DSS41A24, MSS41A05, MSS41A12, MSS41A24, EGE EDR201A05000, ALEPH DA1A05BWD

CP Clare Be
MSS4 60003, 40-97


GI Clare, Taiwan , DYAD
DSS41A12, 52-89

Celduc Relais
D1A3100 (5V reed relay)

HAMLIN
HE721A0500 (5V reed relay)

 

 

 

 

Singapore Customized, custom made Electronics Circuits & Kits

 

 

5. Solid State Relay

 

 

 

 

 

    

 

 

 

Typical Solid State Relay connection pin

This is newer switch device known as Solid State Relay (SSR) or MOSFET relay. It is a semiconductor device, to replace the mechanical relay as a reliable alternative. In solid state relay, the input and switched output have voltage polarity. Be careful not to connect to the wrong terminal. Some SSR are design to have the same package and pin layout design as a reed relay. It looks like a reed relay. You can differential between a reed and a SSR device by testing it’s input terminal. A reed relay is able to function with a reverse input priority, however a SSR will not be able to function with reverse input priority.

The solid state relay can be smaller than a mechanical relay. It is a soft start device and does not result in current slug or arcing effect. It has no mechanical switching and is able to do faster switching. This mean that there are no noise, no glitches mechanical switching, lesser wear and tear. All these advantage adds up to longer lasting and more reliable device. The device works with a wider range of input voltage (typical 3V to 12V) and consume relatively less power to turn on the switch.

Like other semiconductor devices, they do have their disadvantages. The component have current leakage when inactive and dissipate heat during operation. Heat sink may be required to prevent overheating. With a heat sink mounted, the whole design could be a lot larger than the mechanical relay alternative. The heat sink itself can be up to 5 times the size of the SSR. If you don’t want to mount the huge heat sink to the device, you can try using a SSR that have a much higher current rating, of at least 2 times the capacity of what is required. At least it will not be very hot. If possible, mount it to a metal chassis or metal surface to act as a heat sink to dissipate the heat.

There are various model of SSR in the market which can take AC load 230V/150V and there are models that can handle up to 12Vdc 40A power. Price ranges from S$5 to S$150, depending on the requirement for the load rating. You may try visiting Crydom or Clare for more information on these devices.

In today’s competitive market, semiconductor product advances very quickly. Greater performance design might have been already out in the market at this point in time. You can try searching around for new products to keep in touch with the current technology. Free Electronic Engineering Times magazines from Global Sources, provides good information on technology trends as well as the latest electronic product that is rolling out onto the market. It is very likely that the semiconductor devices model for example, solid state relay, integrated circuit IC, transistor, that are presented on this page might be already behind time.

 

 

 

 

Some part number that you can refer to, for Solid State Relay,

CRYDOM

– d1d40 (support 40A DC current)
– d1d20 (support 20A DC current)
– XBPW6025C (current leakage 1mA)

CLARE
- CPC1218Y, CPC1510, GI Clare PRMA1B05 (form1B input 5Vdc)
- CPC1008N (form 1A, 100Vp, 150mA, 8
Ω)
OMRON
- 61CR, 61G
STMicroelectronics
- vn02n
VISHAY
- LH1500AT, VO1400AEF, VO14642AT
- LH1535AAB, LH1535AT
(DIP-6 or SMD-06 package, 1 Form A, Vmax 400V, I max 0.12A, Ron max 25 Ohm)
reference: http://www.vishay.com/solid-state-relays/

FOTEK
      

- SSR-25 DA (current leakage 3-5mA)




Leakage Current problem with solid state relay
In an ideal condition, when the input to the solid state relay is activate, the output will turn on, when there is no input, the output should be completely turn off.
In practise, solid state relay output do have some little current flowing, even when the input is not activated.
This little current is also known as a leakage current.
When connected to a big load, this current leakage will not cause any problem,
because the small current will not be able to activate the load.
Example of such a load can be a motor or heater.

When the same solid state relay is connected to a small load, for example, a LED, a lamp indicator, or an energy saving light bulb, the small leakage current can be enough to activate the load.
For LED indicator load, the lamp will be constantly turn on. For energy saving lamp, you may notice that the lamp is flickering.

In order to remove this leakage current, a load can be permanently connected across the output, so that this leakage current can be consumed.
A load can be a AC fan, motor, AC step down transformer, high wattage resistor etc... to remove the leakage current from the solid state relay. When connected in parallel with the indicator, the indicator will not be lighted up.
This is because a significant portion of the leakage current is supplying to the new load. This channelling of current, means that there are less current flowing to indicator.
If this current is low enough, the LED will not be lighted up. The significant portion of the leakage current will be flowing to the new load.
Since a fan/motor load cannot be activated with a small leakage current, nothing can be observed.
Leakage current problem will not become obvious to a typical user. To be precise, the little current probably consumed and converted to heat on the load by a tiny tiny bit.

Using a load across the solid state relay can help to dissipate the leakage current. It is a load which waste energy doing no work. More energy will be wasted when the solid state relay is in the on state.

A typical resistor load also known as "bleeder" resistors", can help dissipate the leakage current. According to many other reference it could be 22Kohm 1/2 watt to 30Kohm 1W.
Heat will be generate. Be sure to compute with a matching resistor wattage. My computation is about 23Kohm 2 to 3W.

Leakage current is due to the snubber networks (R-C circuit across the output used to improve the commuating for inductive load).

 

Singapore Customized, custom made Electronics Circuits & Kits

 

 

6. Transistor as a switch

 

 

 

 

 

 

Resemble circuit between the transistor and switch

(fig.6a) typical transistor interface, as a switch. Acts a voltage or signal converter, also known as a level shifter.

 

(fig.6b) switch interface function resembling fig a.

 

(fig.6c) opto-coupler interface.

 

(fig.6d) resembling opto-coupler interface, compare fig c.

 

 

 

Using transistor as a switch to drive high current loads

(fig.6e) Digital Logic interface to a Relay as output using transistor.

– npn transistor “BC549” to drive up to 0.1A load

– npn transistor “2N3019” to drive up to 1A load

– npn transistor “tip31a” to drive up to 3A load

(fig.6f) same transistor setup to drive a motor.

 

The switching setup to drive the coil load On/Off, can generate “spike voltage”. This is due to the sudden On/Off switching from the transistor. The same applies when replacing the transistor with a mechanical switch. A diode can be connected across the inductive coil load to divert the spike voltage away from the transistor, as shown in the following diagram. This diode has a name known as a flyback diode. The spike voltage can be high enough to damage the transistor (exceed the transistor’s breakdown voltage).

Transistor is often found to be permenantly short circuit, if the flyback diode is missing, disconnected or not working. Another symptom could be transistor is permenantly opened circuit, which happens after some time being short circuit. The short circuit current could probably burn up the shorted conection.

Flyback diode to protect npn or n-ch transistor

(fig.6g) flyback diode typically 1N4148 (for small current rating), to divert the spike generated by the inductance away from the npn or n-ch transistor. Refer to diode selection guide for higher current rating.

 

Flyback diode to protect pnp or p-ch transistor

 (fig.6g) flyback diode to protect a pnp or p-ch transistor

 

Analog Devices, IRF (International Rectifier), MAXIM, National Semiconductor

 

 

A switch is a mechanical to electrical conversion device. Transistor is similar to a relay. It converts between electrical system. A voltage logic of 0V 3.3V is able to convert to and from 0V 5V. A voltage logic of 0V 12V is able to convert to and from 0V 9V.

Transistor can be used as a switch or as an amplifier. A transistor as an amplifier needs more brain power. In this section, we will only discuss on using a transistor as a switch. Simple lesson.

As you might have know already, the transistor is actually a semiconductor device. In general, it is a conductive device. Transistor is a variable conducting switch. If you can still remember the main topic of this article. Yes. It is all about switch. Transistor is also a form of switch. The fundamental understanding of using/choosing a transistor, is in fact very similar to selecting a switch or wire. In this section “Transistor as a switch”, you should always think of a transistor as a switch. Think of it in the way that transistor can be a substitute for a switch. The switch can be a substitute for transistor. Compare between the transistor and switch, you will see a clearer picture of the transistor operating like a switch.

When I first learn the term transistor as a switch, I didn’t understand what my lecturer is trying to say. After some experience with the transistor, I finally become aware and understand that what the book is trying to say. The subject is title “transistor as a switch” for a reason. We have to think of it as if it is a switch.

Similar to a relay, the switching action of the transistor can be activated from a voltage input. Sufficient voltage input to the base of the transistor will make the collector and emitter terminal saturated, also known as Vce(sat). In another word, the collector and emitter terminal will be almost shorted like a switch. Technical it means Vce(sat)=0. In practise, Vce(sat) will never reach 0V. It will be slightly higher than 0V,  for example Vce=0.2V. Fig a, shows a typical schematic for a switching transistor. This is very similar to the switch interface in Fig b.

Resistor R1 is chosen so that sufficient current is supplied to the base of the transistor. In most cases 1kΩ  would be ok. Over driving the input will burn off the transistor, while under driving will not provide enough current to switch the transistor to fully saturated. For example, an input 3.3V is to turned on the transistor. Assuming the transistor parameter has a turn on voltage Vbe of 0.7V, with minimum requirement Ib of 2.6mA for terminal Vce saturation to occur. R1 should be chosen not more than 1kΩ “(3.3V-0.7V) / 2.6mA”. Any resistor greater than that, will not be able to provide enough current to turn on the transistor. A resistance too low for R1 will results in higher current, though likely to damage the transistor. Refer to the transistor datasheet for appropriate R1 value, or you can do a quick experiment to determine the R1 value to implement.

The design value for R2 resistor should be considered based on the input devices the switch signal will be feeding to. A low resistance value for R2 (example: 470Ω) consume more energy. This is because more current will flow through the resistor when the transistor switch is turned on. A higher value R2 (example: 10kΩ) conserved energy, however input response may be slow for certain charging devices. Example would be a ADC (analog to digital converter). The input signal requires faster charge-up/discharge for sampling to take place. A higher R2 will reduces the current and slow down the sample & hold process.

I seldom do computation on transistor when it is used as a switch. When you get used to it, you will get to understand the behavior of this component and eventually understand the computation of a transistor.

 

 

 

 

Typical transistor circuit acting like a switch. The control signal is from a low current supply IC (for example a microcontroller).

 

More information

For pnp transistor, the concept is the same as npn transistor. When do we used it? When your logic depends on positive voltage as a reference to switch on the transistor.

To understand this further, you need to realized that a single wire has a potential voltage. But exactly what the voltage is, you will not be able to define it.

This concept is like what I understand from the teaching of Tao. Tao is a Chinese philosophy teaching. Take for example, a wooden stick in my backyard garden. Some people say that the stick is long. But how long would you consider it as long. Compare it with the paper clip on my desk, it is long. Compare it with the river flowing down to the sea, the stick is too small to be seen. The fact is when we say the stick is long, we are comparing it to something we have in our mind. Comparing to a reference point is the key. The relative difference is the key concept.

This is the same as the voltage potential on the wire end. The open end wire has a potential. When we want to read the voltage of the wire, we are actually reading it with reference to another potential. The difference between the two potential is the voltage being read out. To know what is the voltage is on the wire, we need a reference point. Assume we read a voltage of 5V with reference from a ground potential. We will read the same wire as -7V if our reference is on the 12V potential. The voltage level is a very relative thing. Comparing to another ground reference, the voltage might be 100V. Voltage is relative. The same open end wire can be 5V, -7V, 100V at the same instant of time. This is because the reference used in each measurement is not the same.

To turn on a transistor, you need to provide a voltage difference between the base & emitter. You need 2 point to turn on a transistor. Only a wire to the base will not turn the transistor on. You need a pair of wire. One wire to the base, the other wire to the emitter terminal.

PNP has its emitter terminal on the positive end, while npn has its emitter terminal on the negative end.

Given a voltage system of 5V & Gnd (0V). If I have a logic 5V which I need to use it to switch on a transistor. For this case, I can use Gnd as the reference. Between this logic 5V and Gnd, is a voltage difference which can be applied to the transistor, to switch it on.

If the reference I used is a 5V. The logic 5V will not be able to switch on any transistor devices, because the voltage between logic 5V and reference 5V is equal to 0V difference. A transistor will need a voltage difference for it to be switched on. Typical textbook voltage is 0.7V which is our Vbe. Reference line to be connected to the emitter terminal. Logic or signal line to be connected to the base.

Now we know that we have logic 5V & reference 0V. We know that npn transistor would be the component for this switching on job.

Given another situation where you have a logic 0V signal which you want it to switch on your transistor. The voltage reference should be 5V. Present voltage difference to the transistor would be -5V. PNP transistor is chosen this time.

Another illustration to looking at a npn & pnp transistor is to look at the arrow on the transistor symbol. The potential of the arrow head should be lower than the arrow tail by typically Vbe 0.7V. Voltage difference can be more than 0.7V but base resistor should be present. The resistor is there to absorb all the unapplied voltage, so that Vbe can be maintain at 0.7V. If no base resistor is present, the base current is so large that the transistor will be damaged. In all the example used 1kΩ would be quite enough.

This is how we can look at a transistor as a switch.

 

 

NPN to PNP converter using npn pnp transistor

For Vcc = 12V, Vin = 3.3 to 5V
R1 = 1Kohm,
R2 = 10Kohm,
R3 = 10Kohm,
R4 = 100Kohm,
Q1 = BC817,
Q2 = BC807

 

Digital logic 1 (3V3, 5V) to Vcc converter,
NPN to PNP converter.


if Vcc is 12V
logic 1 -> 12V out
logic 0 -> 0V out


For input logic 3V3-5V R1 can be about 1Kohm. For Vcc 12V, R2 R3 can be about 10Kohm.

R2 is a pull up resistor. When Q1 is not turned on, the voltage V1 will be float at a undetermine state. This might result in Q2 pnp transistor being turned on slightly. R2 pull up resistor will ensure that the base of Q2 is tied to Vcc, therefore ensuring the Q2 is shut off.

R3 can be about 10Kohm. This should be large enough such that Q1 & Q2 will not be burned when they are switched on. Q1 collector-emitter junction will be shorted when it is switched on (Vin logic 1). Q2 Veb is about 0.7V when switched on. The value of R3 should be small enough for Q2 to turn on, big enough such that it don’t burn Q2 or waste too much energy.

Vout is about Vcc when input Vin is logic 1, and is 0V when input is logic 0. R4 is a pull down such that when Q2 is turned off, Vout does not becomes a floating voltage. R4 can be about 100Kohm

Logic inverter circuit using npn npn transistor

For Vcc = 12V, Vin = 3.3 to 5V
R5 = 1Kohm,
R6 = 10Kohm,
R7 = 1Kohm,
R8 = 100Kohm,
Q1 = BC817,
Q2 = BC817

Logic inverter circuit.
The circuit uses 2 npn transistor and
is similar to the one using npn pnp.


The input logic 1 will provide Vcc out, 0V will have Vout 0V. If the Vout is used to drive a load (input coil of a relay), the activation of the load is actually inverted.

For logic input 3V3 to 5V
R5 can be about 1Kohm.
If Vcc is 12V
R6 10Kohm, R7 1Kohm,
R8 100Kohm

Different form of transistor packing. Higher power rated transistor having a higher capacity to conduct more current is usually bigger in size. Typical power transistor have metal casing packaging which helps to dissipate possible heat generated by the large flowing current.

 

Various type of transistor packages.

The following guide present the typical package model name for transistors.

Click the image for the enlarge view.

(with courtesy from RS Components)

 

SOIC-8 package (typical pin out for n-ch)
source- pin 1,2,3 (gnd ref)
gate- pin 4
drain- pin 5,6,7,8

SOIC-8 package (typical pin out for p-ch)
source- pin 1,2,3 (Vcc ref)
gate- pin 4
drain- pin 5,6,7,8

 

Transistor selection references

 

The following are some of the common npn and it’s complementary pnp transistor ranging from low to high current ratings.

 

Commonly used smd package for transistors,

– sot-23 (for <1A)

– so-8 (for 1A up to 20A)

– dpak (for >10A up to 200A)

 

My own transistor classification

– Signal Transistor (0.1A)

– Medium Power Transistor (0.5A – 1A)

– Power Transistor (>1A)

– High Power Transistor (>20A)

 

NPN

PNP

Amp

Package

Vce

Gain

bc546

bc556

0.1

to-92

65

 

bc547

bc557

0.1

to-92

45

 

bc548

bc558

0.1

to-92

30

 

bc549

bc559

0.1

to-92

30

 

bc550

bc560

0.1

to-92

45

 

bc846b

bc856b

0.1

sot-23

80

450

bc847c

bc857c

0.1

sot-23

50

800

bc848b

bc858b

0.1

sot-23

30

450

bc817-16

bc807-16

0.5

sot-23

50

160

bc817-25

bc807-25

0.5

sot-23

50

250

bc817-40

bc807-40

0.5

sot-23

50

350

bc818-16

bc808-16

0.5

sot-23

30

160

bc818-25

bc808-25

0.5

sot-23

30

250

bc818-40

bc808-40

0.5

sot-23

30

350

NPN

PNP

Amp

Package

Vce

Gain

2n2219

2n2905

0.6

to-39

40

300

2n2222

2n2907

0.6

to-18

40

300

pn2222a

 

1

to-92

40

300

mmbt2222a

 

1

sot-23

40

300

pzt2222a

 

1

sot-223

40

300

2n3019

 

1

to-39

80

300

bc141-16

bc161-16

1

to-39

60

250

NPN

PNP

Amp

Package

Vce

Gain

tip31

tip32

3

to-220

40

50

tip31a

tip32a

3

to-220

60

50

tip31b

tip32b

3

to-220

80

50

tip31c

tip32c

3

to-220

100

50

tip120

tip125

5

to-220

60

1000

tip121

tip126

5

to-220

80

1000

tip122

tip127

5

to-220

100

1000

tip140

tip145

5

 

60

1000

tip141

tip146

5

 

80

1000

tip142

tip147

5

 

100

1000

tip41

tip42

6

to-220

40

75

tip41a

tip42a

6

to-220

60

75

tip41b

tip42b

6

to-220

80

75

tip41c

tip42c

6

to-220

100

75

N-ch

P-ch

Amp

Package

Vds

Ωon

2N7002F

 

0.475

sot-23

60

2

 

BSS84

0.13

sot-23

50

10

N-ch

P-ch

Amp

Package

Vds

Ωon

irf510

 

5.6

to-220

100

0.54

 

irf9510

4

to-220

100

1.2

irf740

 

10

to-220

400

0.55

NPN

PNP

Amp

Package

Vce

Gain

2n3055

mj2955

15

to-3

60

 

N-ch

P-ch

Amp

Package

Vds

Ωon

IRFH8242PbF

 

8.5

 

25

0.013

Si4800BDY

 

9

so-8

30

0.0185

Si4410BDY

 

10

so-8

30

0.0135

fds5670

 

10

so-8

60

0.014

rss100n03

 

10

so-8

30

0.019

std10pf06

10

dpak

60

0.2

irf8707pbf

 

11

so-8

30

0.012

 

irf7424

11

so-8

30

0.0135

 

fds6675

11

so-8

30

0.014

 

irf7220

11

so-8

14

0.012

phd3055l

 

12

 

60

0.18

 

irf9530

14

dpak

100

0.2

 

irf7410

16

so-8

12

0.007

ntd18n06g

 

18

dpak

60

0.05

irf8736pbf

 

18

so-8

30

0.005

irf7862pbf

21

so-8

30

0.004

 

irf9540

19

to-220ab

100

0.2

 

irf9540n

23

to-220ab

100

0.117

fds6064n3

23

so-8

20

0.004

irf8788pbf

24

so-8

30

0.003

irf540

 

28

to-220

100

0.077

irf540n

 

33

to-220ab

100

0.044

 

fdd4685

32

dpak

40

0.027

ntd40N03r

 

45

dpak

25

0.013

phb45n03lt

 

45

dpak

 

 

ntd5406n

 

70

dpak

40

0.009

irf2903z

sub75p05

75

 

 

 

stb80ne03l

 

80

 

 

 

85n3lh5

 

80

dpak

30

0.005

irfs3306pbf

 

120

dpak

60

0.004

irfs3107pbf

 

195

dpak

75

0.003

 

 

 

Note: This is a summary reference. Always refer to your datasheet for actual component’s specification.

 

Opto-coupler although look & work much like a transistor, has a slightly different properties. To turn on the transistor inside the opto-coupler, light is used instead of the pair of wire potential difference.

opto-coupler circuit example

Various analog switch and opto-coupler product.

Analog switch,

CD4066BC, ADG451, ADG452, ADG453, ADG511, ADG512, ADG513

 

Opto-coupler (0.1A)

4N25,4N26,4N27,4N28

TLP521-1 (1 channel, 4pins), TLP521-2 (2ch), TLP521-4 (4ch)

 

Opto-coupler with higher Vce breakdown voltage. (for interfacing to a DC output, that has an unknown relationship to 230Vac)

SFH619A (1ch 4pins)

FOD852 (1ch 4pins, small smd), cheaper ***

H11D1, 4N38M (1ch 6pins), cheaper ***

SFH640 (1ch 6pins)

NTE3088 (1ch 6pins)

 

 

Solid State High Breakdown Voltage Version (non-compatiable to above)

LH1501BT

CT130

 

 

Logic level translator
logic voltage converter

Using MOSFET and 2 resistor to convert a logic voltage from one to another. In this circuit example, a 3.3V logic is convert to a 5V logic.

Warning!!!
This is a very simple logic translator. Please take note that it the 3V3 power is lost, the output logic will be always at 5V. For critical mechanical or machine control, this interface is not recommanded.

opto-coupler interface to n-ch MosFet driving high current load

Interfacing opto-coupler IC to a N-ch Mosfet. If input is on, MosFet will be on.
R3 resistor is to absorb the opto coupler leakage current, and to ensure N-ch gate pin is tie to gnd at all times.

opto-coupler interface to npn MosFet driving high current load

Interfacing opto-coupler IC to a N-ch Mosfet. If input is on, MosFet will be on.
The npn and the npn from the opto-coupler forms a darlington pair.

 

 

Singapore Customized, custom made Electronics Circuits & Kits

 

 

7. Triac , the electronic AC switch

 

 

Triac

 

 

Symbol for Triac (conduct current in both direction).

 

 

 

Equivalent circuit for Triac component.

 

The equivalent circuit for the Triac component is actually two thyristor connected in a up and down orientation.

 

 

Diac

 

 

Symbol for Diac (conduct current in both direction with no gate control).

diac’s current voltage properties

 

Thyristor

The Thyristor is a solid-state semiconductor device, also known as SCR (silicon-controlled rectifiers). Unlike a triac, thyristor conducts in a single direction. Like a controllable diode or similar to a triac triggered transistor, it is typical use for controlling DC current. The symbol for thyristor,

 

taken from, http://www.cybermike.net/reference/liec_book/Semi/SEMI_7.html

 

Article on Thyristors and Triacs. (references from Philips Semiconductors)

Thyristors and Triacs application.pdf

 

 

 

Triac is a semiconductor. The device package is very similar to the package for transistor. It is used for switch AC power from the mains. I have no experience in this devices, and is looking forward to try this out.

I have found a very easy to read article relating to Triac as follows. So exciting. I will come up with something soon.

http://www.signindustry.com/electric/articles/2000-11_ALDORtriacexplainted.php3

There are 3 component type which I classified them in the same family.

– Thyristor or SCR (Silicon-Controlled Rectifier)

– DIAC

– Triac

Thyristor or SCR (Silicon-Controlled Rectifier), you can think of it like a voltage triggered diode. The component will starts to conduct at both end of the pin upon triggering the gate, and auto shutdown when the voltage at the conducting pin falls below a specific voltage. Diac is another type of Thyristor. DIAC, or diode for alternating current. It does not have gates.
Triac is a bidirectional triode thyristor. You can think in terms of two thyristor conducting in both direction as shown in the left illustration.

Like transistor the metal tab on the package is used as the interface for heat transfer. Heat sink can be mounted to dissipate the heat away from the conducting component. Some model have the tab connected to one of the live conducting pin. It may helps conduct away heat better but is rather dangerous. For safety reason, isolated tab would be prefered.

The following is a quick guide to getting your triac components. Please take note that every component do varies from various manufacturer. Always refer to the component datasheet and physically check the component.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

references:

http://www.epanorama.net/circuits/semiconductor_relays.html

 

 

Triac Switch Circuit:

Triac switch circuit & measurement

This circuit is a solid state relay interfacing a low digital voltage for controlling the 230Vac power supply to the AC device. In this example, I am powering up an AC motorized fan. This is almost the same as a mechanical relay. Solid state relay does not have mechanical parts which can wear off over the period of time.

The digital and AC power is being isolated by the opto-coupler triac IC, making it safe and easy for a digital microcontroller/circuit to control a high voltage device.

Triac Switch Circuit Schematic:

As shown on the schematic, the circuit uses MOC3021 opto-coupler triac which has a zero crossing detector built in. The zero crossing function will help ensure that the triac will only be switch on when the AC power (Live & Neutral) is at zero potential. If the potential across the Live & Neutral is high during switching, a large spike/EMI (electromagnetic interference) nosie will be generated. The zero crossing detection will ensure minimum spike generated. This can significantly reduce the noise on the power line.

The circuit is suitable for on/off application and not suitable for example light dimming or speed control application.

Measurement connection:

On the left presents the circuit setup and connection for measurement. If you are interested in the setup for measuring 230Vac signal, please visit this page dedicated to 230Vac.

 

 

 

Using the Traic for switching appliances. (2012-06-03)

There are many advantage using a Traic to switch on/off 230Vac appliances compare to using a mechanical relay.

Traic does not produce noisy clicking sound made by a mechanical relay. It does not have moving parts, therefore there are no physical wear and tear. Its physical size is also much smaller. It is a soft start device and does not generate arcing during when switching 230Vac power. Mechanical switch on a 230Vac power tends to generate arcing. Arcing over a long period of time results in the switch being welded, hence relay failure. The operating lifespan of a Traic is much better then the mechanical relay.

Traic can easily be design to operate from a very low voltage device. A mechanical relay current need at least 5V to 24V to enegised the relay’s coil to pull the switch. It uses more energy. Traic can be easily design to operated from a very low voltage, and power consumption is lower.

Besides switching 230Vac on/off, Traic can be design to fine control the motor speed or a heater temperature through a potential meter or microcontroller. Mechanical relay would not be able to achieve all these.

 

The picture on the left is a setup using PIC-117 mini relay switch, purchased from PIC-STORE.

This Triac circuit (PIC-117) was installed inside a wall switch enclosure for testing. The enclosure will ensure safety when operating the Traic circuit. Always be safe when working with 230Vac.

The dangling wire (grey and white) is the PIC-117 digital input. The wire is safe for hand to touch. A voltage as low as 3.3V can be applied to this input to switch on the appliance. PIC-117 accept digital input range from 3.3V to 12V, and can be easily modified to accomulate any range of voltage input.

This setup will be a switching module for any 230Vac appliances. For this demo, I am using a 9V battery to activate a Fan. Typical practical scenerio is to use a microcontroller (3.3V or 5V) to interface directly to the PIC-117 mini relay module.

A power meter is plugged onto the incoming power source. The wall box enclosure (with PIC-117) is plugged onto the power meter. The fan appliance is the last item, which is plugged onto the wall box enclosure. This power meter will measure the power rating, which helps us understand of Traic performance.

This is an ordinary fan appliance setup pior to the Traic setup. The fan’s brand is an Akira (400mm 48-52W stand fan). A power meter is used to measure its typical power consumption.

Power measurement of the fan at various fan speed,

          Watt   Current Power Factor
          —–  ——- ————
Speed1 -> 30.0W  0.148   0.90PF
Speed2 -> 35.0W  0.164   0.92PF
Speed3 -> 41.0W  0.179   1.00PF

Power measurement of the fan at various fan speed through PIC-117 mini relay switch.

          Watt   Current Power Factor
          —–  ——- ————
Speed1 -> 29.7W  0.147   0.87PF
Speed2 -> 35.0W  0.163   0.89PF
Speed3 -> 40.9W  0.177   1.00PF

The result shows that there isn’t much different in power consumption using a Traic or not.

The following are some video clips of using the PIC-117 mini relay switch module to turn on/off the 230Vac fan.

Video showing that it is safe to touch the digital input of the PIC-117 module. MVI_0346.AVI (17.3MB)

Turning on and off the fan using a 9V battery simulating a low digital input voltage. MVI_0347.AVI (31.6MB)

Notice that the fan is turn off and on instantly without making any noise or spark. The PIC-117 mini relay switch module is small and has much more capability than the traditional mechanical relay.

 

click here to
Buy Mini AC Switch Relay
Available Now at the PIC-store

Looking into how the Traic perform

Signal of the triac switch output, when the 230Vac mains is at the off state.

Signal of the triac switch output, when the 230Vac mains is switched on. Some signal passed through the triac although the triac is not switched on yet. There is some leakage but they are not significant enough to turn on the AC motorize fan.

The green signal represent the digital input to the opto-coupler. The red signal shows the power output becoming live, 100msec after the digital input is being triggered. There is some small delay.

The first few cycle of the 230Vac power is badly distorted, but we can see that the AC signal started off from zero. There is no sharp switching.

The first few cycle has come noise distorting the 230Vac 50Hz. The subsequence cycle shown on the photo, has less and less distortion.

Less and less distortion.

Within a very very short time after the triac switch is activated, the output reaches a steady state and there are no more distortion.

Note that the oscilloscope reading is not 650Vp-p as expected. This is because of the voltage divider stage used for the measurement. In order to obtain the effective voltage measure, I need to multiple the result by 2 times.

 

 

The enlarge version of the 230Vac, measuring 650Vp-p.

Manufacturer for Triac, Thyristor/SCR components

        

 

 

References from other website:

SCR’s and Triac Tutorial.pdf

Triac component part number

 

AC Current

Gate Current

Peak Voltage

 

IC

6A

5-50mA

600,800V

 

BTA06

8A

5-50mA

600,800V

 

BTA08

12A

5-50mA

600,800V

 

BTA12

12A

2-4mA

650,800V

SOT82

BTA151

16A

10-50mA

600,800V

 

BTA16

20A

5-50mA

600,700V

 

BTA20

25A

35-50mA

600,800V

 

BTA25

25A

6-35mA

600,800V

 

BTA140

26A

20-50mA

600,800V

 

BTA26

40A

50mA

600,800V

 

BTA40

8A

10-50mA

400,800V

 

MAC9

1.5A

10mA

400,600V

 

TICP206

16A

12-50mA

400,800V

 

TIC246

25A

7-50mA

400,800V

 

TIC263

1A

3-10mA

600,800V

 

Z0103

Z0107

Z0109

 

Click here for Triac Selection Chart.

(BTA A means isolated tab, BTB B means non isolated tab, 12 means conduct up to 12A rating)

 

 

Triac optoisolator/opto-coupler

 

Zero Crossing

Input Trigger Current

Peak Voltage

IC

IC

X

15mA

250V

MOC3010

K3010P

X

10mA

250V

MOC3011

K3011P

X

5mA

250V

MOC3012

K3012

X

30mA

400V

MOC3020

K3020

X

15mA

400V

MOC3021

K3021

X

10mA

400V

MOC3022

K3022

X

5mA

400V

MOC3023

K3023

15mA

400V

MOC3041

 

10mA

400V

MOC3042

 

5mA

400V

MOC3043

TLP3043

X

15mA

600V

 

TLP3051

X

10mA

600V

 

TLP3052

15mA

600V

MOC3061

TLP3061

10mA

600V

MOC3062

TLP3062

5mA

600V

MOC3063

TLP3063

X

10mA

600V

 

TLP260J (smd)

X

10mA

600V

S2S3ADYF

 

5-10mA

600V

S2S4BY0F

 

 

SCR optoisolator/opto-coupler

Zero Crossing

Input Trigger Current

Peak Voltage

IC

IC

X

11-20mA

200V

 

H11C1

X

11-20mA

200V

 

H11C2

X

14-30mA

200V

 

H11C3

X

11-20mA

400V

 

H11C4

X

11-20mA

400V

 

H11C5

X

14-30mA

400V

 

H11C6

 

Please click the hyperlinks for the datasheet.

 

 

Example of a simple dimmer circuit for 230Vac lighting buib

Click the picture to enlarge.

 

Reference from Arrow Lighting

 

 

 

 

Example of a 230Vac adjustable water heater circuit for shower bath

 

 

The schematic on the left is taken from a 230Vac instant water heater circuit for our shower bath. The circuit is actually very similar to the dimmer for lighting bulb. Two diode is observed, and I believe these might be there due to the inductive load. It is just my guess. Other than that, it is just like the circuit above. The triac used is quite big, which is mounted to the heater copper casing.

Example of a AC Motor (230Vac) speed controller circuit

This is a circuit that can control the speed of an AC motor. The adjustable speed resemble again, the dimmer AC circuit that is presented earlier.

 

Other traic circuits

On the left are three recommended schematic that I have extracted from one of the opto-triac datasheet. The example clearly shows the minor difference for various type of triac & load.

The circuit (figure 6) for resistive load RL is the simplest, requiring only a 180Ω. The circuit (figure 7) for inductive load consist of additional resistor and capacitor. The additional capacitor is perhaps to balance the inductive load.

Figure 8 using a less sensitive triac to control the inductive load, hence the resistor is reduce from 2.4kΩ to 1.2kΩ, providing more current to drive the triac.

 

The capacitor 0.1uF, 0.2uF that feedback to the incoming voltage is known as the snubber circuit. It is there to protect the triac and other semiconductor device from the high voltage generated from an inductive load. The feedback may cause some problem for non-inductive load. The small leakage can be significant enough to turn on small load (for example, 230Vac lamp indicator). You will need to modify the circuit to prevent the leakage.

More information on snubber circuit are as follows,

AN-3008, RC Snubber Networks for Thyristor Power Control and Transient Suppression.pdf
AN437, RC snubber circuit design for TRIACs.pdf

digital to ac relay1Circuit 1

digital to ac relay2Circuit 2

digital to ac relay3Circuit 3

digital to ac relay4Circuit 4

Low voltage digital input to control 230Vac relay

The circuit examples on the left illustrate my testing, interfacing a low digital voltage to a triggered AC relay. The digital input allows 1.8V, 3.3V to 5.0V (min 5mA) which will be applied to the opto-triac. The opto-triac will switch the high 230Vac voltage should trigger the AC relay.

Circuit 1 is my first attempt of using the opto-triac to trigger the relay. However upon activation, the relay is observed to be chattering/vibrating on/off very fast. It seems to be virbrating at a rate of the AC power 50Hz. I am surprised about the behavior of this AC relay, thinking that a 230Vac should hold the relay still. Assuming that opto-triac might be causing the problem, I apply the 230Vac directly to the coil of the AC relay. The same relay chattering is observed. This means that the use of opto-triac in this design should be working properly. I might have to design a diode bridge and a capacitor to the hold the relay. This AC relay behaves very much like a dc relay.

Circuit 2 is my next few attempt to find out the effect of a capacitor in series to the AC coil. I was thinking that the capacitive acting as a resistance to the AC current might weaker the power, and relay trigger would fail; since the relay is a 230Vac relay. To my surprised, not only it can trigger the relay, the relay is able to hold the contact switch. This means that my interface would be simpler.

Circuit 3, I attempt to insert a 470Ω resistor to weaker the power, but it still works.

Circuit 4, I attempt to insert a 1k Ω 1/4W resistor. It still works.

Solid state relay circuit example using triac (taken from other website)

solid state relay circuit

solid state relay circuit

 

 

 

 

Relating to traic circuit (Zero crossing circuit/detector)


zero crossing 3

Zero Crossing Detector (IC)
H1AA1
ps2506

Phase Control Using Thyristors
an1003.pdf

IRPLCFL3: A ballast that can be dimmed from a domestic (phase cut) dimmer
cfl-3.pdf

Dimmer
http://www.jaec.info/Home%20Automation/efficient-energy-management/light-dimmers.php




 

Singapore Customized, custom made Electronics Circuits & Kits

 

8. MEMs relay

MEMs relay. This is still under development at this point in time when this article is written. Got to know about this new device while I was researching for materials on the topic presented on this page. The MEMs relay has all the attractive properties found on various relay solution in the current market. It could be the next popular component in near future. You may like to learn more about it through this link.

http://www.memagazine.org/backissues/jan01/features/reraces/reraces.html

 

 

 

 

 

 

email:    contact->email_siongboon 

website: http://www.siongboon.com

 

 

 

 

Keyword: Solid State Relay, Mechanical Relay, Reed Relay, Opto-coupler, PCB mount, DIL Rail mount, Electronic Electrical controlled Switch,

                thyristor, SCR, triacs, solid-state, semiconductor relay, DC SDR, AC SSR, diac

References:

Finder Relay
http://www.findernet.com/

 

Coto Technology
http://www.cotorelay.com/

SRC Devices
http://www.srcdevices.com/

Reed Relay
http://zone.ni.com/devzone/conceptd.nsf/webmain/4569AFDC6AC9160F86256E0C00753240
 

Crydom Solid State Relay
http://www.crydom.com/

Clare
http://www.clare.com/

OMRON
http://www.omron.com

 

Analog Devices
http://www.analog.com/

National Semiconductor
http://www.national.com/

IRF International Rectifier
http://www.irf.com/

Maxim, Dallas Semiconductor
http://www.maxim-ic.com/

 

 

Serial Communication

RS232, RS485, USB, UART, USART, SCI, Ethernet.

Written by Lim Siong
Boon, last dated
13-Nov-09.

Topic Discussion Overview

  1. Communication
  2. Understanding
    USART & RS232
  3. RS485 Interfacing
  4. RS232
    & RS485 signal analysis
  5. Ethernet wiring
  6. WiFi wireless
  7. USB Interfacing
  8. Power Line Communication
  9. SPI
  10. I2C
1. CommunicationCommunication is essential in electronics system. It can be in
the form of wired or wireless, serial or parallel. The main idea is to
transfer information from one system to another system. Communication
in one direction is call a simplex communication system, and duplex
means communication is in both direction at the same time. Half duplex
means that communication is taking place in both direction but only one
direction communication is taking place at any one time.Communication takes place when the information that are sent
is able to be understand by the receiving device. The receiving side
must be able to interpret what message the sender is trying to tell.
Communication between electronics devices usually deals with logic 1s
and 0s. A high pitch sound may indicate a logic 1, while a low pitch
tone may representation logic 0. With the receiving device having this
common understanding, it will be able to understand what information
the transmitting device is trying to convey. Beside using tone as the
mean of signaling, the medium can be in other varying form for example,
frequency, voltage, color, smell, wavelength, etc… A typical
electronic system uses the concept of voltage or frequency. The choice
of signal varies. Voltage/frequency changes can be produced and
detected using simple electronics, so it is relative a easier type of
signal to implement. The information from the sender can be in the form
of voltage. By detecting the voltage, the receiving device is able to
interpret the information. The common understanding or interpretation
of both the sending and receiving device is known as the communication
protocol. The information conversion to a suitable transmission signal
is also known as encoding. Decoding is the other way round. There are
more complex choice of signal transmission but we will not touch on
those area.

In today’s wired communication system,  there are a wide
variety of serial communication standard from RS232, RS485, USB, CAN,
and many more. They are simply the standard defined for communication
hardware. It is the hardware setup for the transmission of signals,
define as the physical layer. Physical layer deals with the choice of
signaling in order for communication to take place. It can be voltage
level or frequency as mention earlier. The speaker and the ear in the
diagram can be interpret as a physical layer for transmitting the
information. Without this physical layer, sound cannot be produce or
received.

Some idea of
wireless communication.This traffic system is
trying to send information to you by signaling green yellow red colored light using visual
means.If you can understand the
information that the hand is trying to show you, wireless communication
is taking place.

Sound transmission
through air medium is another example of wireless communication.

The examples above illustrate
a simplex system, where message is convey in one direction. Information
travel from one system to another, but not the other way round. Ear is
not meant to produce sound while speaker are not design to listen. This
illustrate a simplex system.

Some form of wired communication.


Telephone network (Duplex)

This is a simple simplex
system illustration. The left side is the switch system, which consist
of a mechanical switch moving up and down. The state of the switch can
be easily recognize by the bulb system on the right. The switch
movement is communicated to the bulb which will lights up. The
communication medium is the pair of transmission wire. This simple
circuit demonstration how wire can be use for communication purpose.

Transmission of information using 0V and 5V is simple, but it
can represent only 2 state (or 2 distinct information). Not much
information can be convey using signal with only 2 state. There is also
a limit to the number of voltage level allowed. Defining more discrete
voltage level can represent more information but the signal on the
receiving side could be easy misinterpret due to noise and attenuation.
A new dimension of representing more data can be in the form of time
multiplexing. By coding a signal in sequence, more information can be
send. A 0V followed by a 5V may represent ‘A’. 5V followed by 0V may
represent ‘B’, 5V followed by another 5V may represent ‘C’ and so on.
The size of information that can be transmitted is going to be endless.
This form of signal representation in sequence is used in serial
communication. It is the most commonly use communication method adopted
by various standard USB, RS232, RS485, Ethernet, etc.Communication using logic 1 and 0 is quite simple but seems
far away from the information system we have today. In handle such a
complex information, the data is actually encoded further and further
to a  higher protocol level. This will keep the forming of
information simple and easily managed from various level. It is like
printing dots to form alphabet, arranging alphabets to form word,
forming up words to become a sentence, and forming sentences to tell a
story. The information will be getting more and more meaningful.
 
Protocol is just like a common language that system uses to
understand the data. A Chinese language has a totally different
protocol from an English language. Until we learned the protocol,
communication will still not be possible although human have the same
speech capability (our speech capability can be thought as the physical
layer). Although Malay language  uses the same alphabet “A to Z”
as in English alphabets, the higher forming protocol is still quite
different.In the world of electronics voltages or frequency defines the
logic, forming a sequence of logics to form a data byte. These string
of byte consisting of typical 8 bits, may represent data or control
character. With these common understanding between the two system in
place, application will be able to communicate with one another.

In today’s complex communication, protocol can be interpret in
terms of layers namely physical layer, data link layer, network layer,
transport layer, session layer, presentation layer,
application layer. You may like to read up other website for more
information on this
communication model
.

Communication layer is a very abstract theory, when I was
first expose to the term. If you are still not clear on data layer, the
best thing is to hands-on and built a communication system from
scratch, sending useful data bit by bit. You will be more aware of how
the whole system works and get to understand why data communication
people keep on talking about the layer stuff.

In this article, various serial communication interface USART
are presented. They are TTL version of the serial communication,
represented by 5V / 0V. It is similar to RS232 physical format
represented by -/+10V in the voltage.

USART is not design for distance communication. To enable
longer communication distance, USART signal will need further encoding
into RS232 signal format before transmission. Other common names for
USART (Universal Synchronous Asynchronous
Receiver Transmitter) are UART or SCI (Serial Communications Interface). Serial
data in TTL format is the very basic serial communication interface to
understand.

The articles present common solution in communication between
USART, RS232, RS485 and USB.

 

 

 

www.pic-control.com, Singapore Network Ethernet WiFi RS232 RS485 USB I/O Controller

 
2.Understanding
USART & RS232
USART stands for Universal Synchronous Asynchronous
Receiver/Transmitter. It is simply a form of serial data communication.USART is very common, and a clear understanding can easily
lead you to other form of interfaces. The following article will
present the interfaces from USART to RS232, RS485 and USB.

The article presented focus on the practical aspect of USART
and RS232. For technical details, I would strongly recommend the
following website from beyond logic,


http://www.beyondlogic.org/serial/serial.htm

 Microcontroller
and PC communication using RS232
RS232 is the encoded version of USART. The encoded signal
allows the data to be deployed for longer communication distance. Some
article may have define a maximum communication distance of 15m for
RS232 signal. You can try pulling the communication distance further,
it should still works actually. 15m is only a general guideline.If the data transmission rate is low, the distance can even go
further. There have been reports from the internet that some user have
achieve 50m to 200m without any problem. For me, I have tried baud rate
of 9600bps over 100m without any problem. For baudrate 115000bps over
20m, you might start to encounter transmission error. Baudrate is
presented in bps (data bits per second). The higher the value the more
the data can be transmitted in a given time period. The higher the
speed, the shorter the communication distance.

As what I experience, the data transmission length of the
cable can determine by many factors. The factors include the following,

– data
transmission speed

– quality of the
cable, noise (unwanted signal)

– transmitted
voltage

– receiver
sensitivity

– etc…

We have to remember that electronics are still analog in
nature. Communication distance using RS232 can be increase further if
the cable is of better quality, a shield or coaxial cable for example.

The most significant factor is still the data transmission
speed. The following is a reference that I found in one website
regarding the relationship between data baud rate and cable length.

Baudrate Distance
19200bps 15m
9600bps 150m
4800bps 300m
2400bps 900m

 


http://www.lammertbies.nl/comm/info/RS-232_specs.html

The transmission cable should be twisted as a pair for your
+ve & -ve (or ground/reference signal). The reason for having it
twisted is to ensure that the pair of wire is as close to each other as
possible. Why? This is because the signal energy (or refer as
integrity) is contained between the +ve & -ve wire. Any gap between
the two wire can result in signal distortion (losses). The gap
represent a change in the cable impedance (capacitance/inductance)
affecting the signal integrity on the wire. Electromagnetic, it is
about how the field interact with one between the gap.

I had once wiring up two RS232 communication line without
using twisted wire. In order to save the trouble to lay another set of
cable, I tried to squeeze the two RS232 line to the cable. It end up
with a lot of communication problem. The data I send on com1 is able to
trigger the devices connected to com2. The signal on com1 is actually
coupled over to com2, causing com2 to think that some data is being
received. The data is the corrupted version of the data from com1.

The higher the frequency, the worst is gets. This is also why
our network CAT5e CAT6 cable are all twisted inside, protected by
aluminum foil shield. No sharp bending should be allow, as this will
cause the twisted pair to open up a gap in between. A typical cable
bending radius as specify in the manufacturer datasheet is about
25-50cm. All this details comes into the picture when your
communication speed is high. I see many contractor laying the network
cable without any of these consideration. The effect is negligible, for
low speed communication. Most of us might not even realized it too,
because minor transmission error is already resolved through the TCP/IP
protocol. A coaxial cable is a better form of cable structure to
contain the integrity of the signal. The energy is contain on the
dielectric, between the inner conductor core and the outer wire mesh.

RS232 Connection

 

Pin

Function

1

Carrier

2

Rx

3

Tx

4

DTR

5

Gnd

6

DSR

7

RTS

8

CTS

9

Ring

DB9
male socket on DTE (data terminal equipment), example: a computer.

Pin

Function

1

Carrier

2

Tx

3

Rx

4

DTR

5

Gnd

6

DCR

7

CTS

8

RTS

9

Ring

DB9
female plug on DCE (data communication equipment), example: a modem.

Pin

Function

1

DSR

2

Carrier

3

DTR

4

SG

5

Rx

6

Tx

7

CTS

8

RTS

RS-232D is defined as RS232 being
terminated with the RJ45
plug. They are used on
cisco network switch equipment for command control input, and also on
RS232 to Ethernet server for Lantronix products. The advantage of RJ45
compare to DB9 is the size. More ports can be connected to the
equipment with a much smaller panel interface.

Going back to our RS232…..

Loop Back RS232 Connector


Short
Pin 2 to Pin 3 (if no hardware control)


see the
following diagram, Loop Back Plug (for hardware control RS232
communication)

The loop back
connector is useful in troubleshooting communication problem. Data
being sent out to the line is being echo back to the equipment,
indicating that the communication connection is working fine. It also
indicates that the equipment communication is working.The loop back can be deploy on the various point within the
communication line to pin point any communication fault due to
equipment or communication line.
Null Modem(show picture of a null modem cable, data being transmitted
from one direction to another)
 
RS232 Interfacing
Circuit

MAX232 IC and schematics


Click here for MAX232 datasheet

MAX232 circuit layout
reference.

Note: Input pin
11, 13 can be left unconnected. There is a internal pull-up resistor,
pulling pin 11 to 5V and pin 13 to 0V

The physical communication standard defines the signal voltage
of -10V for logic ‘1’, and +10V for logic ‘0’. However in practise, the
voltage can be ranging from +/-3V to +/-25V. Not to worry if the
measured voltage is not +/-10V. Typical receiver is able detect the
incoming signal with voltage as low as +/-3V.A microcontroller like PIC16F877a uses USART (5V system). The
PC (personal computer) that we have in the office/home uses the
standard RS232. To enable a microcontroller to communicate with the
computer, a RS232 to TTL converter is required.

IC chip maker has come up with the integrated circuit for
interfacing RS232 with TTL logic (5V for logic 1, 0V for logic 0),
making the interfacing work very simple. MAX232 is one of the many IC
in the market which helps to convert between RS232 -/+10V and TTL +/-
5V. It is a simple voltage level converter in short. The charge pump
design allows the circuit to generate +/-10V from a 5V supply, with the
help from the four capacitor. With charge pump to double up the supply
voltage for RS232 transmitter, there is no need to design a power
supply for +/-10V.

The diagram on the left shows the schematic of the MAX232 IC
circuit. It consist of only 4x 1uF 16V electrolytic capacitor, and the
MAX232 IC itself. It is that simple. I have include a layout which I
always use for PC to PIC16F877a microcontroller, RS232 interface.

MAX232 alternative:
LTC1386

MAX232 (3.3V version):
MAX3232

 

  
  
  
Coming article,- How to test the communication line.

– Software programming using serial com.

Software for debugging RS232 communication.
Window
OS HyperTerminal
(from WinXp)
  For WinXP user, Click>> Start>>
Programs>> Accessories >> Communication>>
HyperTerminal.exe
Docklight_Scripting.zip
Virtual Serial Ports Emulator.zip (ETERLOGIC.COM)
emulator allows you to
Connector – create
a virtual com port which can be opened twice. Allows two application
program to communicate to each other via the same serial port number.
Data Splitter – create a virtual com port which allows multiple application to share a single existing com port.
Pair – Create 2x
new virtual com port which is cross connected to each other. (A null
cable). Allows two application program to communicate with each other.
Mapper – Remap a
physical com port to another com port number. Useful for old software
which does not allow com port number to be changed.
TcpServer – convert
a physical com port to a TCP port as a server, so that multiple client
can be connected and access to the physical com port.
TcpClient – convert a physical com port to a TCP port as a client. If connection is lost, this client will auto reconnect to the server.
Serial Redirector – connects up between to com port. (A null cable)
UDP Manager – convert a physical com port to a UDP port as a server, so that multiple
client can be connected and access to the physical com port.
Bridge – Connects up two data stream.
Spy – VSPE device to spy on a data stream.Other Software Tools
BillSerialMonitor.zip
EZTerminal.exe
RS232HD30.exe
RS232 data logger.exe


COM Inspector (detects serial communication settings)
   

reference source:


http://www.simplecomtools.com

 

Tool for RS232 or UART TTL testing
usb rs232
USB to RS232 converter.
usb uart
USB to UART converter
usb uart
USB to UART converter
  
 Using Andriod phone as a terminal to test out serial communication.
andriod otg uart rs232

Andriod mobile device, OTG, USB to UART, USB to RS232
otg cable
OTG cable
andriod uart
andriod otg rs232

A OTG cable is required to connect the USB to UART or RS232 device.
Not all USB to UART, or USB to RS232 converter can be used with Andriod device. This is due to the built in driver available.As of 27 Mar 2014, these are some of the USB to Serial converter chipset that can be used with the Andriod devices.
PL2303HXD, PL2303EA, PL2303RA, PL2303SA, FT312D, FT311D
(PL230 3HXA and PL2303XA are not supported)
andriod otg uart
 
free usb serial term andriod apps

Using a free andriod apps “USB Serial Terminal Lite”.
Once
the OTG and USB to UART converter is plugged to the andriod device, the
andriod will automatic detect and attempt to launch the “USB Serial
Terminal Lite” apps.Click on the icon phone, to make a connect
to the USB-UART device. There should be no error when it is connected,
and the phone icon will turned into a ‘X’ icon.To test if the
USB UART is working properly, make a loop back connection by shorting
the Tx and Rx pin. This loop back means that whatever data you send
will be return to the device as data being received. Your device is
able to receive what it sent out. This loop back test is important. It
indicate that the device is able to send out data, and is also able to
receive data. For USB to RS232, short pin 2 and pin 3.

Click
onto the text field on the bottom of the apps. Key in and ascii data,
and click on the send button on the right (logo of an arrow pointing
right). Immediately after you click on the send button, you should be
able to see on the display screen, the same text that you
have sent. If you disconnect the loop back connection, you will
not be able to see the text that you have sent.

This apps is
good. It can display the data in hex, which is used very often in
hardware development work. There are also memory which allows you to
save frequet sent data.

www.pic-control.com, Singapore Network Ethernet WiFi RS232 RS485 USB I/O Controller

 
3. RS485
Interfacing

MAX485 schematics

MAX485 IC and schematics

Click
here for MAX485/MAX488 datasheet

Click
here for MAX3485/MAX3488 datasheet

MAX488 IC and schematics

 

Microcontroller
interface using RS485 & RS422
After a period of research, I found out that RS485 and RS422
is in fact the same.RS422 is a duplex configuration. RS422 using 4 wire to
communicate in both direction. One pair of wire to do transmit and the
other pair to receive. Both sides is able to transmit and receive at
the same time.

RS485 is a half duplex configuration. RS485 using only 2 wire
to communicate in both direction. With only two wire, it means that
when one side is transmitting, the other side of the communication line
will be receiving. Both side cannot be transmitting at the same time.
For RS485 transceiver, use MAX485 or MAX3485. They have the same pin
out except that MAX485 uses 5V supply, MAX3485 uses 3.3V supply.

RS422 can be connected to work with RS485 to either receive or
transmit date, but not both. RS422 can be wired directly using a pair
of wire, +ve to +ve, -ve to -ve terminal. For RS422 transceiver, use
MAX488 or MAX3488. They have the same pin out except that MAX488 uses
5V supply, MAX3488 uses 3.3V supply.

MAX485 pin

Alternative pin label

Terminal A (+)

Y, TX+, RX+, TX1, RX1

Terminal B (-)

Z, TX-, RX-, TX2, RX2

for Part no. Volt Speed (Kbps)
RS485 MAX485 5V  
RS485 LTC1480 5V  
RS485 SN65HVD10 5V  
RS485 SN65HVD11 5V  
RS485 SN65HVD12 5V  
RS485 SN75HVD10 5V  
RS485 SN75HVD11 5V  
RS485 SN75HVD12 5V  
RS485 SN75176 5V  
RS485 ST485 5V  
RS485 SP481 5V  
RS485 SP483 5V 250
RS485 SP483 5V  
RS485 SP485 5V  
RS485 DS75176 5V  
RS485 SP1485 5V  
RS485 SN65HVD3082 5V 200
RS485 SN65HVD3085 5V 1000
RS485 SN65HVD3088 5V 20000
RS485 SP3082 5V 115
RS485 SP3085 5V 500
RS485 SP3088 5V 20000
RS485 DS3695 5V  
RS485 DS3696 5V  
       
RS485 MAX3485 3.3V 1200
RS485 MAX3483 3.3V 250
RS485 MAX3486 3.3V 2500
RS485 SP3494 3.3V  
RS485 LTC1480 3.3V  
RS485 ST3485 3.3V 12000
RS485 ISL3072 3.3V 250
RS485 ISL3075 3.3V 500
RS485 ISL3078 3.3V 16000
RS485 ISL3172 3.3V 250
RS485 ISL3175 3.3V 500
RS485 ISL3178 3.3V 20000
RS485 ISL83483 3.3V 250
RS485 ISL83485 3.3V 10000
RS485 ADM3493
(Diff from SP3493)
3.3V 250
       
RS422 MAX488 5V  
RS422 SP490CN-L 5V  
RS422 SP3081 5V 115
RS422 SP3084 5V 500
RS422 SP3087 5V 20000
RS422 LTC490 5V 2500
RS422 SN75179 5V  
RS422 DS8921 5V swapped pin5,6  
RS422 UA9638C 5V swapped pin5,6 20000
       
RS422 MAX3488 3.3V 250
RS422 MAX3490 3.3V 12000
RS422 SP3071 3.3V  
RS422 SP3490 3.3V 10000
RS422 SP3493
(Diff from ADM3493)
3.3V  
RS422 ADM3071 3.3V 250
RS422 ADM3074 3.3V 500
RS422 ADM3077 3.3V 16000
RS422 ADM3493 3.3V  
RS422 ADM3488 3.3V 250
RS422 ADM3490 3.3V 10000
RS422 ISL3171 3.3V 250
RS422 ISL3174 3.3V 500
RS422 ISL3177 3.3V 20000
RS422 ISL83488   250
RS422 ISL83490   10000
RS422 SN65HVD30 3.3V 26000
RS422 SN65HVD31 3.3V 5000
RS422 SN65HVD32 3.3V 1000
  check out and update for
MAX3491
MAX3490
MAX3076
MAX3077
MAX3073
MAX3074
MAX3070
MAX3071
   

MAX488 alternative (pin8+,pin7-pin6+,pin5-,5V, version):

 


twisted pair wire (with shielding)

twisted pair wire (without any shielding)

Notice the gap between a normal pair of wires. By twisting the
cable, the gap can be reduce, therefore minimizing the interference.

 

Unlike RS232 signal, RS485 implements
differential voltage as the physical signal to communication. More
information on the physical RS485 signal is illustrated in the next
section. The cable for RS485 or RS422 works as a pair to transmit and
another pair to receive. This is important, because it means that the
cable need to work as a pair in order to transmit the signal properly.
Proper type of cable is required.

The picture on left is a twisted pair wire. It is
recommended to use twisted pair cable to transmit RS485/RS422 signal.
The reason being twisted wire can help minimize the gap between the 2
wire, therefore minimizing interference and signal distortion. This can
be explain through the electromagnetic theory. The gap or loop between
the two wire actually acts as the antenna intercepting nearby signal,
as well as coupling it’s own signal to wire next to it. These results
in distortion in the signal, and ultimately reduces the data rate you
can transmit over the wire pair. The twisted cable also maintain a
distance, make it difficult for another wire to slip in between the
wire pair. For further immunity against interference, the twisted pair
is wrapped with aluminum foil acting as a shield.


http://www.lammertbies.nl/comm/info/RS-485.html

Note that you should deploy twisted pair on a
signal wire pair. You can consider one wire as signal while the other
one as reference or ground. If the twisted group of wires contains more
than one signal, it will make the interference worst.

Attempting to twist the bunch of wires for RS232
will not improve the performance. The wires for transmit (TX) and
receive (RX) will interfere. It is possible that you might receive some
rubbish data immediately after you perform a data transmit. This
problem will be more obvious when you send the data at very high baud
rate and longer wiring distance, eg 115.2kps at 20 meters. It is due to
the signal on the TX wire being coupled onto the RX wire, triggering
the device, thinking that there are incoming data on the opposite line.

For RS232, you might like to twist between TX(pin
3)/ Gnd(pin 5), and another twisted pair RX(pin 2)/Gnd(pin 5) to
improve the transmission. There is only a common pin, therefore the two
wire will have to share the pin 5 ground.

 

RS485 opto coupled interface circuit
RS485 opto coupled interface circuit
RS485 opto coupled USB interface
 
 

www.pic-control.com, Singapore Network Ethernet WiFi RS232 RS485 USB I/O Controller

 
4. RS232
& RS485 signal analysis
 
RS485 and RS232
signal analysis experiment setup. The computer serial com port is
connected to a RS232 to RS485 converter device. Both RS232 and RS485 is
then monitored on the oscilloscope.Unlike digital scope or logic analyzer,
analyzing inconsistence communication signal on an analog oscilloscope
can be difficult. To assist the scope in displaying the data signal,
the data is being send to the com port repeatedly. This periodic signal
enables the scope to display the signal clearly on the screen.Adjust the triggering and the hold time to position the full
data byte transmission on the screen. You can learn more about using
oscilloscope from this ebook “XYZs of Oscilloscopes” from Tektronix
website.
Click
on the signal illustration above for larger view.

The signal level from the output of MAX485 IC depends on the
load from the communication line. Typically the open circuit output of
the MAX485 IC with/without a 120Ω
termination resistor has ?V1 = 5Vdc, ?V0 = 0.8Vdc. When the line
includes the inline resistors and the pull down/up resistor for the
RS485 bus,  ?V1 = 3.2Vdc, ?V0 = 0.6Vdc. These open circuit reading
is taken from the output of MAX485 IC using an oscilloscope. Some note
is observed when attempt to watch the RS485 communication from the
oscilloscope. When the probe get into contact with the signal, the
communication fails. The receiver device is able to decode the signal.
It is believe that the ground reference of the probe might be connected
to earth and will affect RS485 signal

The picture on the
left shows the data byte 0x33 or ascii char ‘3’ being transmitted on
the communication line. The signal starts from the left to the right.
The signal begins with a start bit (logic 0), lowest significant bit
(LSB), follow on to the highest significant bit (MSB), and ends with
the stop bit. The binary form of the data transmitted is as follows.
START bit0 bit1 bit2 bit3 bit4 bit5 bit6 bit7 STOP
0 1 1 0 0 1 1 0 0 0

The baud rate setting is set at 9600bps, data bits of 8, no
parity bit, 1 stop bit.

The top display the actual RS232 signal from a computer
system’s serial com port. This signal is tapped from the TX (+ve
connected) and ground line (-ve connected). It has loaded input from
the converter device. The higher voltage level represents logic 0 at
about 6Vdc, while the lower voltage level is a logic 1 at about -7Vdc.
When there is no transmission, the signal idle at -7Vdc.

The bottom display the RS485 differential signal converted
from the RS232 signal using a converter SNA10A. This signal is tapped
from the A (+ve connected) and B terminal (-ve connected). This is an
open load signal from the output of the converter device. The higher
voltage level represents logic 1 at about +4Vdc, while the lower
voltage level represents logic 0 at about -4Vdc. When there is no
transmission, the signal idle at about 1V.

The picture on the
left shows the voltage level of both signal when idling. Idling refers
to the state where no data is present on the communication line.The top display the idling signal level from the RS232. The
idling signal is at -7Vdc level (logic 1).The bottom display the idling signal level from the RS485. The
idling signal is at about +1Vdc level.
The picture on the
left shows the oscilloscope ground reference signal level. This
reference snap shot, is a reference for comparison with the snap shot
taken above. Both signal display the reference of 0Vdc.The top display the ground reference signal level from the
RS232.The bottom display the ground reference signal level from the
RS485.
www.pic-control.com, Singapore Network Ethernet WiFi RS232 RS485 USB I/O Controller

 
5. Ethernet
wiring
Port
Transport Protocol
Name
Application
7 TCP/UDP echo echo
20 TCP ftp File Transfer (data)
21 TCP ftp File Transfer (command)
23 TCP telnet Telnet, unencrypted text
communications
25 TCP smtp Simple Mail Transfer Protocol
43 TCP whois WHOIS protocol
80 TCP http Hypertext Transfer Protocol
101 TCP   NIC host name
107 TCP   Remote TELNET Service protocol
109 TCP pop2 Post Office Protocol 2
110 TCP pop3 Post Office Protocol 3
115 TCP sftp Simple File Transfer Protocol
554 TCP/UDP RTSP Real Time Streaming Protocol
5004 TCP/UDP RTP Real-time Transport Protocol
(media)
5005 TCP/UDP RTP Real-time Transport Protocol
(control)

References:


http://en.wikipedia.org/wiki/List_of_well-known_ports_(computing
)

 

If you are interested in the binary level on Ethernet
standard. Here is some basic information on the low level or hardware
aspect Ethernet from Analog Devices.- 2008-04-00
A Beginner Guide to Ethernet.pdf

The Ethernet looks very remote to me when I first try to
understand it. It is very complex. After a few years of experience, I
slowly gain enough confident to talk about this type of communication.

In fact, Ethernet is another form of serial communication. The
hardware aspect is similar to RS485, with pin 1 & 2 handling the
transmission of the serial data, while pin 3 & 6 is for the
receiving of serial data. I have not find any concrete information, but
I imagine it closely to a RS422. One pair of wire for TX, the another
pair for RX. The physical signal for RS422 is the same as RS485. The
signal are interchangeable. RS422 is a duplex while RS485 is a half
duplex communication line (see above for further information).

The beautiful part of Ethernet is on the streaming bytes
riding on the serial communication line. This stream of bytes is also
define as the data packets or protocol. It is the data protocol that
make Ethernet so special. Which is why there is so little information
on the physical aspect on the Ethernet. Ethernet is all about protocol.
Protocol consist of the data and the header. The header contains the
MAC, IP, PORT and other information which will helps the data packet to
be routed to the correct destination. You can imagine a letter to be
delivered. Letter contains address which helps the post man to deliver
the letter.

What we typical see on the cover of a letter:

Att: David

myCompany Pte Lte
(business registration number J123456789)

Street 3, Blk 3,
#03-33.

myCompany denote the company name which can be quite unique.
You can imagine the MAC address as the company name or as a business
registration number. The MAC address is a set of number (6 bytes, 0x11
0xAA 0x22 0xBB 0x99 0xFF) which uniquely identify the electronics
hardware Ethernet device. It is the basic number the hardware will
have, which identify itself from the rest from other gadgets. Most
computer have at least one network card/adaptor. Each card is a unique
communication device, and therefore have it’s own MAC address. If a PC
has 3 network card installed, it would have 3 different MAC address.
MAC address is the 6 bytes ID of the Ethernet hardware.

Next comes the IP address. You can think of it as your home
address. The number for IPv4 (IP version 4) is 4 bytes long
(192.168.1.255). Unlike a MAC address, IP address can be configured by
the user/programmer. You can imagine that while the company name
remains no change, no matter where it shifted it’s address. IP address
can be changed. Like a letter, the IP address will allows your data
packet to be delivered to the correct place. Each Ethernet hardware
(network card) will have it’s own MAC address. Each MAC address will be
assigned the IP address. Your company will be identified by it’s unique
number and the location address. A typical computer installed with 1
Ethernet card, can be identified with it’s MAC and IP address.

PORT is quite tricky to me at first. What is exactly a port.
You can relate it to the name of the person on our letter example. The
letter may be delivered to the correct address, but it does not
indicate who should receive the letter. Port identify the person that
should receive the data packet. In our computer example PORT is a
number which defines the application software that receive the data.
When you open up your web browser, the browser software will open it’s
port number 80. Any incoming data packet indicating port 80, will be
passed to the browser software. The browser software will then render
the data onto the screen for you to read. Similarly other network
application works in this way. Some common application’s protocol and
it’s port number are as follows,

Protocol in details.IPv4 (Internet Protocol version 4)

IPv6 (Internet Protocol version 6)

TCP (TCP Transmission Control Protocol)

UDP (User Datagram Protocol)

ICMP (Internet Control Message Protocol)

 

My complete understanding about port, actually started off
from it’s strange name “port”. At that time, I cannot visualize what is
exactly a port. I started to think about its name. Why people call it a
port. While writing article on RS232 com port, my mind suddenly opens
up. I am convinced today that, the word port comes from our old
computer parallel/serial port. It is a revolution of data communication.I started to imagine wildly with any references. Imagine in
olden days where Ethernet is not known yet, people used serial/parallel
port for communication. Each application occupy a port, which is the
current situation with serial and parallel port. You cannot have two
software application using the same port number. If there are more
application that needs to communicate, you can imagine that the
computer will need a lot of RS232 port at the back. Each and every port
is being occupied by the respective software for communication. Many
cable as we can imagine. That will be quite a headache. The Ethernet
consolidate these physical communication lines into just only one. In
order for the application to identify their own data, the port number
is implemented into the data header/protocol. The port number actually
acts as a virtual port for the computer, and will route the packets to
the correct software application. Now all packets communicate through
the same physical Ethernet cable. A bit of imagination will helps a lot
in understanding the topic.

The data packet route to the correct IP address, after which
it will check if it arrive to the correct MAC ID. When the packet
reaches into the computer, the packet is further route to the port,
where the appropriate application software will read and further
interpret the data packet.

Ethernet has more features, but the basic concept is still as
easy to understand as a RS232 serial communication.

What we have discuss so far is only the protocol on IPv4
header. Protocol or header is just bytes of information that describe
about the data it carries. The data itself may also contains its own
header which interpret another data within. It is like layers and
layers of onion skin. Just as you peel off the header for the data, you
notice another header to peel. Layer after layer, we finally got our
data.

The first layer is IPv4 (still quite common in this era dated:
July 2009) or IPv6 header (new protocol).

Going deeper, we have another layer typically TCP or UDP. They
defines the manner, the data is being exchanged across the
communication channel. TCP/IP protocol means that the data is
transported using the IP and TCP header. Two layer actually.

References:

http://www.fatpipe.org/~mjb/Drawings/

rfc792 (ICMP protocol)

icmp protocol

an-139 (how to route ethernet PCB)

all about Ethernet

  

Loop
Back Ethernet Connector


Short
Pin 1 to Pin 3


Short
Pin 2 to Pin 6

After so much theory, let’s talk more
physical stuff on Ethernet. As shown on the bottom and left, these are
the typical wiring on the network. Straight cable between the network
equipment and PC, and also cross cable between PC to PC or equipment to
equipment.


Ethernet Pin Out from your computer device

Pin no. Color   Description
1 Orange /White TX+
2 Orange   TX-
3 Green /White RX+
4 Blue  
5 Blue /White
6 Green   RX-
7 Brown /White
8 Brown  

I have been looking for hours a confirmation
on the network pin 1 & 2 (TX±).
Whether the pin out is referring to a DTE (a computer) or DCE (network
switch/hub). Most website indicates the TX RX pin out scheme, but did
not indicate whether the description is for a DTE or DCE. After
searching for so long, I finally found it.

I
would like to give credit to this website for providing the information.


http://www.duxcw.com/digest/Howto/network/cable/cable5.htm

 

  
http://www.winlab.rutgers.edu/~zhibinwu/html/serial.htm
gigabit ethernet rj45 twisted pair wiring
http://www.cyberpost.nl/?p=123
gigabit%20ethernet%20rj45%20pinout.jpg
  
CAT7, SSTP, individual shielding, solid core
1 – Jacket
2 – Shield-braid
3 – Shield-foil
4 – Solid twisted pair
5 – Drain wire
CAT6a, STP, individual shielding, solid core
1 – Jacket
2 – Shield-foil
3 – Drain wire
4 – Solid twisted pair
CAT5e, FTP, shielding, solid core 
1 – Jacket
2 – Shield – foil
3 – Drain wire
4 – Protective skin
5 – Solid twisted pair
CAT5, UTP, no shielding, solid core
1 – Jacket
2 – Solid twisted pair
   
   
   
   

Cable manufacturers

     



About Network
cable

Notice that a
network cable contains 4 pair of twisted cable, and the pair is
differentiated by the 4 sets of color pair. If you remember the RS485
wiring as mention in the earlier section, these twisted wire will look
very familiar to you again. The twisted wire provides a better
protection against possible interference. Notice how the twisted pair
is assigned to the RX signal± and the
other pair assigned to TX signal±.

There are many
type of cat cable to choose from. Depending on your deployment need,
these are some of the selection that you may have to consider.

– CAT5e, CAT6a,
CAT7, CAT8

– FTP, SSTP/SFTP,
STP/USTP, UTP

– Solid or
Stranded wire core

– Indoor or
Outdoor

– AWG wire size

Some people may
refer the network cable as RJ45, which is not correct. RJ45 is actually
the name of the plug. Another name for the plug is 8P8C connectors.

The twisted pair
cabling standard is refer as the CAT standard. The term is typically
being referred to when selecting the type of network cable. The CAT
define the signal frequency that the cable is able to carry for a
distance of 100m. High frequency signal gets filter away as the cable
becomes longer, which also means that the data rate will be reduced.
This means that a short CAT5e cable is able to transmit as fast as a
longer CAT7 cable. Therefore 100m is a normalize distance to compare
between the cable quality.

 
Standard Max Frequency
CAT7a 1000Mhz
CAT7 600Mhz
CAT6a 500Mhz
CAT5e 100Mhz

Some
network cable comes with aluminum foil shielding to protect the signal
from external noise interference. FTP cable have a single foil covering
the 4 twisted pair. STP call for a foil shielding for each twisted pair
inside the cable, improving interference from adjacent twisted pair.
SSTP is similar to STP with an extra foil around the 4 twisted pair,
creating a double foil shielding. Unshielded cable is indicated by UTP.

The
cable may also comes with either a solid or stranded for the core of
the wire. Solid core is typically suitable for permanent deployment
where it is unlikely that the cable position would be changed. Stranded
version is suitable for patching purposes, where the cable get to be
used or bend more frequently. Stranded cable is more robust then a
solid core version for patching use.

Network
cable also comes in a more rugged packaging for outdoor use. The
protective cable skin is tougher and the cable core may be reinforced
with a backbone that protects the cable from being crush by heavy
weight.

The AWG (America
wire gauge) specify the size of the copper wire core. Bigger AWG number
denote a smaller cross section area, though lower current than a
smaller AWG cable. Network cable has AWG ranged from AWG 22 to 24.

Coaxial
cable is a much better structure than a twisted pair configuration.
Coaxial cable can carrying a much higher frequency due to it’s
structure carrying signal in transverse electric magnetic (TEM) mode.
The cable is however bulky, heavy and more costly as compare to a
twisted pair alternative.

reference from:


http://www.hyperlinesystems.com/catalog/cable/sstp4_c7_solid_outdoor.shtml


http://en.wikipedia.org/wiki/Category_7_cable

Network
troubleshooting command example

ping localhost

ping 192.168.1.1

ping www.yahoo.com.sg

ping /help (for more help)

ping -t 192.168.1.1 (ping non-stop until Ctrl+C is pressed)

tracert 192.168.1.1 (trace packet route)

netstat (check network connection IP:Port & protocol used)


http://commandwindows.com/netstat.htm


http://www.over-look.com/site/index.php/documentation/fing-features


http://www.garykessler.net/library/is_tools_scan.html

Ethernet network
troubleshooting tools

TCP IP test
tool

UDP test tool


SMTP email test tool

PuTTY, telnet, ssh,raw, serial communication tool

reference source:
http://www.simplecomtools.com

Ethernet low level data packets analyzing tools

http://www.etherdetect.com/
(very neat display)

http://www.wireshark.org/
(very good packet filter)

To check if the
remote PC is connected to your local PCping 192.168.1.100To check the MAC
address of the remote PCissue the following

ping 192.168.1.100

arp -a 192.168.1.100

www.pic-control.com, Singapore Network Ethernet WiFi RS232 RS485 USB I/O Controller

6. WiFi wireless 
 WiFi modules


SPB104-WiFi 802.11b+g SDIO, from ATMEL (H&D Wireless AB). Other
part number hdg104, spb104, spb105, spb106, aro104, aro105.
– ZG2100M / ZG2101M Wi-Fi module 2.4GHz 802.11b low power transceiver module, from Microchip & zeroG
– WLM10x Low power WLAN Module from Laird Technologies
– WIZ610wi WiFi module from WIZnet
– BCM4329 802.11n/Bluetooth chip from Broadcom
– MRF24WB0MA/MRF24WB0MB 2.4GHz WiFi RF transceiver chip from Microchip.
– G2M5477 Wifi module, from Microsystems
– CYWM6935 WirelessUSB LR Radio Module, from Cypress Perform

 

7. USB
Interfacing


FT232BM datasheet

Virtual COM Port (VCP)
drivers and direct (D2XX) drivers

USB to Serial TTL
converter using FT232BM

Please click image for
larger schematic

USB socket type B, pin
no. & dimension

Microcontroller
and PC communication using USB

USB is getting popular replacing RS232 in the consumer market.
However the use of serial communication is much more popular in the
industry because it is much simpler to deploy and troubleshoot. In the
view of this, conversion between USB, RS232 and USART is certainly an
advantage in bringing products into the consumer market in the fastest
possible time.

The presented interface uses the IC FT232BM to interface
between a USB from the computer and USART which is used in a
microcontroller. From the computer and microcontroller point of view,
it is the same old serial communication that are discussed previously.

USB is that simple. This is possible with the help of the IC
FT232BM from FTDI Chip. The IC
and it’s virtual com
port driver
has transform the conversion from USB to USART almost
invisible. With the driver installed into the PC, it acts as a bridge
which transforms the USB hardware into a virtual serial com port. The
computer software will transmit the data to the virtual com port as
what it will do when sending data through a normal Com1 Com2 port. The
virtual com port will be run by the FTDI USB driver which will
communicate through USB communication to it’s IC FT232BM. The
manufacturer has also provide IC control through a *.dll direct driver,
a alternative solution to the virtual com port driver. For further
information, you may like to visit their website.

Alternative there is a even more integrated USB to UART
solution from Silicon Laboratories.
IC CP2102 is much more simpler, with no external components. It is an
attractive solution, however I have not try it before.

The circuit present the hardware conversion between the USB
and USART using FT232BM. The circuit can be implemented on top of
existing USART electronics, so that USB bus can be used, for serial
communication with the PC.

FTDI chip

FT232BM

Silicon Laboratories

CP2102, CP2101

references:

http://www.beyondlogic.org/usbnutshell/usb1.shtml

8. Power Line Communication (PLC)  
 Module:

– ST7540 FSK powerline transceiver (AN2451), from ST

 

9. SPI  
 not available yet
10. I2C  
 I2C is a 2 wire, simplex communication physical protocol. It is usually used in the inter IC chip communication, like SPI.I2C
uses only 2 wire and is able to send and receive data. The data
transfer rate is slower compare to SPI. The protocol is much more
complex than SPI, which is why troubleshooting I2C is not simple. The
protocol consist of many header signal for protocol control. It is
those header that makes the decoding tedious with using a i2c logic
analyser instrument.

Once you got the hang out of it, it is fairly managable.

 

SDA—____—___—___——————————__________–
SCL—-____—___—___—___—___—___—___—___—___–___
……^….^…..^…..^…..^…..^…..^…..^…..^…..^
……1….2…..3…..4…..5…..6…..7…..8…..9…..10

The following signal shows communication between a microcontroller (master) and IC MCP79410 (slave), using bit banging method.The yellow signal is SCL, clock line.
The blue signal is SDA, data line.

The command/data that was sent to MCP79410 are as follows (Write data to EEPROM),
– start
– 0xAE (write command to MCP79410)
– 0x00 (address for the following data)
– 0xAA (data to be written into the address)
– end

1- START signal. SCL is held high when SDA perform a negative edge signal (logic high to low).

2- Logic 1 is sent. The SDA is loaded with logic 1 just before SCL is clock positive edge.

SDA signal/data line should remain stable during the HIGH period of the clock pulse. Any changes during the HIGH clock pulse duration are inteprested as control signals (START or STOP command).

3- Logic 0 is sent. (at the +ve edge of SCL)
4- Logic 1 is sent.
5- Logic 0 is sent.
6- Logic 1 is sent.
7- Logic 1 is sent.
8- Logic 1 is sent.
9- Logic 0 is sent.
10- The SDA and SCL lines are release at this moment in time. SCL
returns to logic high, but SDA is still at logic low even when both
lines are release. This shows that the slave device is actually holding
the SDA line down. The holding of this SDA line is the slave
acknowledging the data received. This is important because it shows
that the slave is responsing to the command send. The slave is working.
The SDA line is release shortly.

Program hang when executing a read command.

Problem was resolved. The microcontroller was able to read the data properly from MCP79410.

The command/data that was sent to MCP79410 are as follows (Write data to EEPROM),
– start
– 0xAE (write command to MCP79410)
– 0x00 (address for the following data read)
– start
– 0xAF (read command to MCP79410)
– read byte(data to be written into the address)
– endThe
signal stop while executing the read byte function. Further
investigation shows that there was a coding problem with the I/O port.
The program was expecting a logic but it didn’t happened. The reason
for the hang.

After resolving the problem, the micrcontroller was able to read from MCP79410 successfully.

 
*** Very useful tips summary in intepreting the I2C signal

1) Any changes in data logic on the SDA signal must be done when
the SCL signal is low. SDA data sampling will take place when SCL is
positive edge.

2) SDA signal change (positive or negative edge trigger) while the SCL
signal is high will be intepreted as command (START, STOP, RESTART).

3)START or RESTART command happens when SDA is negative edge while SCL
is at logic high. STOP happens when SDA is positive edge while SCL is
at logic high.

4) To issue RESTART, set both the SDA and SCL line to idling state
without issuing a STOP (meaning release SDA first then SCL). Then issue
a START. This START command is a RESTART command.

Simple notes to Troubleshooting I2C:

1)
Perform a write process, and take note of the Data line, to ensure that
the I2C device is responsing. If it is not responsing, it could be that
the IC is not properly soldered, or it could be damaged (unlikely).

2)
Ensure that the minimum clock duration is met. Typical clock high
should be of a minimum of 0.6us, and the clock low should have a
minimum of 1.3us. Check the signal waveform to ensure that this
condition fulfil.

Tips

The pulling down of the SDA line is ACK, meaning the slave I2C device has responsed to the request.

ACK is also triggered by master if master still wants to read more data
from the slave. This is reading with ACK. If this is the last byte to
be read. It will be read with NACK.

Some illustration taken from http://mbed.org/users/okano/notebook/i2c-access-examples/

References:

http://www.beyondlogic.org/

Keyword: RS232, RS485, USB, UART, USART, SCI, Ethernet

Remote Detector Notification System

Protect what matters most — anytime, anywhere.

The Remote Detector Notification System is a smart security solution that instantly detects unauthorized movement and alerts your team in real time. Whether it’s at a jetty, warehouse, factory, or restricted zone, this system ensures you never miss a threat.

Remote Notification System Architecture

Smart Perimeter Security with Instant Alerts

The Remote Detector Notification System is designed to safeguard sensitive areas such as jetties, company boundaries, and other high-security zones. Using motion detection and instant notification technology, the system ensures authorized personnel are alerted the moment an intrusion occurs.


✅ Why Choose Our System?

  • Instant Alerts – Get notified the moment motion is detected.
  • Multi-Channel Notifications – SMS, WhatsApp, Telegram, or Email.
  • Up to 10 Recipients – Alert your whole security team at once.
  • Customizable Messages – Set your own words for every alert.
  • Reliable Hardware – PIR sensor, blinker, and siren integration.
  • Cloud-Ready – Manage, monitor, and update remotely.
  • Flexible Power – AC input, battery backup, and solar panel options.

🌟 Perfect For

  • Coastal security & jetties
  • Industrial facilities
  • Warehouses & storage yards
  • Remote locations without CCTV
  • Perimeter protection for restricted zones

💡 Key Benefits

  • Simple – Easy to set up and operate.
  • Scalable – Add more users and locations as needed.
  • Cost-Effective – Low monthly subscription fees.
  • Future-Proof – Cloud-based design adapts to new messaging apps.

🔍 How It Works

Control – Adjust settings anytime via cloud software.
Detect – PIR sensor picks up intruder movement.
Deter – Siren and blinker activate instantly.
Notify – Customized alerts sent to your team’s phones.

  1. PIR Sensor Detection
    • The Passive Infrared (PIR) sensor detects movement across the secured boundary.
  2. Alarm Activation
    • Connected blinker and siren trigger immediately to deter intruders.
  3. Notification Delivery
    • The system sends a customized message alert to up to 10 mobile numbers, notifying personnel on duty.
    • Flexible options also include Email, Telegram, WhatsApp or SMS notifications.
  4. Cloud Software Control
    • Remote configuration and monitoring through a simple user interface (Google Sheet).
    • Allows customisation of recipient contact numbers, customizing SMS content, and checking device status.

⚙️ Key Features

  • Multi-Channel Notifications: SMS, Email, Telegram, WhatsApp.
  • Customizable Alerts: Define your own notification messages.
  • Scalable Setup: Supports up to 10 personnel at a time.
  • Cloud-Based Control: Manage system settings remotely.
  • System Status Monitoring: Check if the system is operating and connected online.
  • Flexible Power Options: AC power input, battery UPS, and optional solar panel integration.
  • Strong Connectivity: 3G/4G/5G modem with Ethernet/WiFi support.
  • Security Hardware Integration: Compatible with existing PIR sensor, blinker, and siren.

📦 Package Includes

  • Sensor Controller (with battery backup)
  • 3G/4G Modem
  • Cloud Software Development & Hosting
  • Enclosure
  • 1-Year Warranty & Support

Optional Monthly Fees

  • Network SIM Card (4G): Estimate about $10/month
  • WhatsApp Alerts (est.): Estimate about $10/month
  • SMS Alerts (est.): Estimate about $10/month
  • Email & Telegram Alerts: Free

Contact Us

Click here to contact us for more details.

⚙️ PIC‑WEB32: Industrial Ethernet Dry Contact Controller for Seamless I/O Integration

Web I/O 32 digital input output

The PIC‑WEB32 is a high-performance Ethernet I/O controller purpose-built for industrial and automation environments where stable, networked dry contact control is essential. Featuring a rugged, fanless aluminum enclosure and wide operating tolerances, the PIC‑WEB32 integrates easily into existing infrastructure with both web-based management and enterprise-level protocol support.

Engineered with IP40-rated protection and designed for DIN-rail or wall mount installations, this versatile controller ensures consistent operation under harsh electrical and environmental conditions.


🌐 Network-Ready for Smart Control Applications

Featuring pluggable terminal connection for easy connection.

With support for 32 digital input/output (I/O) channels, the PIC‑WEB32 delivers precise, low-latency relay control. Each I/O can function as a dry contact or pulse-enabled wet contact interface, making the unit adaptable for a wide range of automation and remote monitoring scenarios.

Equipped with two independent Ethernet ports (10/100 Mbps), the controller supports dual MAC and IP addresses, offering network redundancy or segmentation for mission-critical operations.

Whether for smart buildings, legacy equipment bridging, alarm management, or SCADA systems, the PIC‑WEB32 streamlines Ethernet-based I/O expansion across your facilities.


🔧 Key Technical Features

  • Processor & System:
    Industrial-grade ARM9 processor @300 MHz running embedded OpenWRT Linux for stability and upgradability.
  • Ethernet & Protocols:
    • Dual 10/100 Mbps ports with Auto-Negotiation & Auto-MDIX crossover detection
    • Protocol support includes: Modbus TCP, TCP/UDP Server & Client, HTTP, SNMP, Telnet, SSH
  • Digital Input/Output:
    • 32 independently configurable I/Os
    • Dry and wet (pulse) contact supported
    • Status LEDs for each I/O line
  • Management Interfaces:
    • Accessible via Web GUI, Telnet, SSH, and Windows configuration utility
    • SNMP supported for enterprise monitoring systems
  • Power Supply:
    • Accepts wide voltage range: DC 12–55V or AC 12–40V
    • Built-in surge, overload, and reverse-polarity protection
    • Supports redundant power input
  • Mechanical & Environmental:
    • IP40 anodized aluminum casing
    • DIN-rail or wall mount compatible
    • Fanless, passive cooling for noise-free operation
    • Operating Temp: −40°C to +85°C
    • Humidity: 0–95% RH (non-condensing)
  • MAC & Interface Standards:
    • Fully compliant with IEEE 802.3 Ethernet standards
    • RJ45 connectors with dynamic MAC address learning

🧩 Where It Fits In

The PIC-WEB32 is ideal for systems where networked dry contact inputs/outputs are needed with high reliability:

  • 🏢 Building automation
  • 🚨 Alarm trigger systems
  • 🏭 Factory floor control panels
  • 🌐 Remote I/O over TCP/IP
  • 🧠 Intelligent relay expansion for PLCs or SCADA systems

Setup Connection

These are some illustration of a typical connection setup.

Typical connection setup for a single server
Paired server setup connection

💬 What Customers Say

“We were able to migrate our legacy relay panels into a smart Ethernet system with the PIC‑WEB32. Reliable, compact, and easy to manage.”
— Systems Engineer, Building Infrastructure Solutions

“Plugged it into our Modbus TCP network and had all contact signals online in minutes. Excellent industrial controller.”
— Automation Manager, Precision Manufacturing


✅ Contact Us

Experience the power of streamlined industrial control with the PIC‑WEB32.
👉 Contact Us Today

-> Click here for PIC-WEB32 product brochure.

Other Similar Products

PIC-WEB16
PIC-WEB08

Guard Sensors for Machines Safety

Machine Safety Sensors – Protect Your People. Secure Your Production.
Ensure Maximum Safety with Reliable Machine Safety Sensors
Industrial environments are full of potential hazards. Our advanced machine safety sensors provide the protection your team needs while maximising uptime and productivity. Whether you run an automated factory, a warehouse, or a logistics hub, we help you stay compliant, reduce accidents, and operate with peace of mind.

Why Choose Our Machine Safety Sensors?

  • Comprehensive Protection: Detect unsafe conditions before accidents happen.
  • High Accuracy: Fast, precise sensing—even in harsh environments.
  • Easy Integration: Works seamlessly with all major machinery brands.
  • Fail-Safe Design: Redundant safety features ensure maximum reliability.
  • Compliance Ready: Meets ISO 13849, IEC 61508, and CE safety standards.

Our Sensor Types

  1. Safety Light Curtains
    Create invisible barriers to instantly stop machines when crossed.
  2. Emergency Stop Buttons
    Large, high-visibility E-stops for immediate shutdowns.
  3. Safety Laser Scanners
    Monitor complex zones with configurable detection fields.
  4. Safety Interlock Switches
    Ensure guard doors stay closed during operation.
  5. Safety Mats
    Detect presence with pressure-sensitive flooring.

Industries We Serve

  • Automotive Manufacturing
  • Electronics Assembly
  • Food & Beverage Processing
  • Warehousing & Logistics
  • Packaging & Bottling
  • Factories & Warehouses
  • Construction Sites
  • Logistics Hubs
  • Offices & Commercial Buildings
  • Laboratories & Workshops

Empower Safer Workplaces with Safety Guard Sensor

Smart Safety Compliance. Total Peace of Mind.
Make workplace safety effortless with Safety Guard Sensor—the all-in-one platform that helps you achieve, maintain, and prove your commitment to a safe and productive environment.

Discover the Guard Sensor Advantage

All-in-One Safety Management Platform

Automated Digital Checklists.

Simplify daily and weekly safety inspections with smart checklists tailored to your operations.

Live Sensor Monitoring

Install wireless sensors at key locations—get real-time insights on machinery status, hazardous zones, emergency exits, and more.

Instant Safety Alerts

Receive notifications directly to your mobile or desktop if conditions deviate from your safety parameters.

One-Click Compliance Reporting

Generate professional, audit-ready safety reports at any time—perfect for management review or stakeholder updates.

Employee Training Hub

Give your team access to interactive safety modules, track their progress, and reinforce a culture of safety.

Maintenance & Incident Tracking

Log hazards, schedule maintenance, and track incident responses for full transparency.

See Our Sensors In Action

Safety Light Curtain Installed on Conveyor

A slim, yellow safety light curtain mounted on both sides of a conveyor, with bright

indicator LEDs and a hand reaching near the detection zone.

Emergency Stop Button Close-Up

A large red emergency stop push button with a yellow background, clearly labelled for quick access on a machine control panel.

Safety Laser Scanner Monitoring Robot Cell

A compact safety laser scanner mounted near the base of an industrial robot projects a visible safety zone on the floor.

Guard Door Interlock Switch

A heavy-duty metal interlock switch is installed on a safety gate, with clear locking mechanism and status indicators.

Contact Us

Protect Your People. Safeguard Your Equipment.
Ready to upgrade your machine safety?

Stay Safe. Stay Efficient.
Your safety partner for smart industry.

Contact our sales engineer today.

PayNow Voice Announce Notification System for Payment Received

Looking to make your business more efficient and never miss a sale?

Our PayNow Payment Notification System is the perfect solution for small businesses in Singapore!

Here’s what makes it a game-changer:

  • Instant Alerts
  • Real-Time Notifications
  • Seamless Integration
  • Easy Setup, Easy Use
  • Better Cash Flow
  • Secure and Reliable
  • Easy Recordkeeping
  • No Extra Apps Needed

Instant PayNow Payment Alerts

Get notified the moment a customer pays you via PayNow—no more checking your bank app, waiting for payment confirmation, no more guesswork or missed transactions. This device will announce the payment amount that you have received in real time, loud and clear. You get to know that every sale is successful

Real-Time Notifications for Every Sale

Stay updated with real-time alerts right at your countertop or cashier’s desk. No need to check your phone or bank app—our device does the work for you.

Secure & Seamless Integration with Your Bank

Seamless Integration: Our system integrates smoothly with your PayNow bank setup. Once you’ve registered your business account with PayNow through your bank, our notification system connects directly to your bank’s payment gateway to deliver real-time payment alerts automatically. Ensuring all your payments are safe, recorded, and easy to track. No extra hardware or complicated software needed!

Easy Setup, Easy Use

Just place the compact device on your counter, display the PayNow QR code, and start receiving instant alerts. It’s perfect for retail stores, cafes, and market stalls.

Better Cash Flow

With real-time notifications, you can process orders, deliver goods, or provide services immediately, keeping your customers happy and your business running smoothly.

Secure and Reliable

Built on Singapore’s trusted PayNow infrastructure, every transaction is safe and protected by your bank’s security systems.

Easy Recordkeeping

Each payment comes with a clear notification, making it simple to track sales and reconcile your accounts.

No Extra Apps Needed

Customers pay using their own banking app—no new downloads or training required.

Upgrade your business today with our PayNow Payment Notification System—fast, secure, and designed to help small retail store, cafe businesses like yours grow!

Empowering Small Businesses

With “Empowering Small Businesses with Smart Payment Alerts” as our promise, you’ll join a growing community of savvy business owners enjoying hassle-free, cashless payments.

PayNow Payment Voice Announcer Device

A sleek, compact notification device placed on a countertop or cashier’s desk.

Display a visual cue on the device such as a glowing light or sound wave icon to symbolize instant payment alerts.

Show on a smartphone screen with a PayNow payment confirmation or notification popping up, reinforcing the instant alert feature.

What our customer says about this product.

“Instant PayNow Payment Alerts”

“Real-Time Notifications for Every Sale”

“Secure & Seamless Integration with Your Bank”

“Empowering Small Businesses with Smart Payment Alerts.”

Contact Us for your PayNow Payment System

Click here to contact us.

REFCO AquaSwitch Aircon Water Leakage Sensor

The REFCO AquaSwitch Aircon Water Leakage Sensor is a specialized electronic device designed to detect water levels in air conditioning units, thereby preventing potential water damage due to leaks (or aircon condensation).

AquaSwitch water leakage sensor

This sensor is particularly useful in environments where air conditioning systems are prevalent, such as commercial buildings and server rooms, where water leakage can lead to significant operational disruptions and costly repairs.

Overview of AquaSwitch

The AquaSwitch operates using solid-state electronic sensing technology, which is not affected by oil films or metal surfaces. This feature enhances its reliability in various installation scenarios. When water comes into contact with the sensor, it triggers a relay output that can activate alarms or pumps, ensuring immediate response to potential leaks.

Key Features

  • No Moving Parts: The AquaSwitch is designed without mechanical components, reducing the risk of wear and tear and increasing longevity.
  • Relay Output: It provides a dry contact switch output that can be easily integrated into existing alarm systems or control panels.
  • Versatile Installation: The sensor can be mounted in various locations, such as in the water tray of an air conditioning unit or at specific heights to monitor water levels effectively.
  • User-Friendly: The installation process is straightforward, making it accessible for both professional technicians and DIY enthusiasts.

Applications

The AquaSwitch is particularly effective in:

  • Air Conditioning Units: It helps monitor condensation trays where water accumulation is common.
  • Server Rooms: Given that air conditioning failures can lead to overheating and equipment damage, the AquaSwitch provides critical early warnings of leaks2.
  • Industrial Settings: In environments with extensive piping and machinery, the sensor aids in maintaining operational integrity by detecting leaks before they escalate into larger issues.

Advantages

The AquaSwitch offers several benefits:

  • Early Detection: By alerting users to leaks promptly, it helps mitigate damage and repair costs.
  • Peace of Mind: Users can operate their systems with confidence, knowing that potential water issues are being monitored continuously.
  • Cost-Effective Solution: The initial investment in an AquaSwitch can save significant amounts in potential repair costs due to water damage.

The REFCO AquaSwitch Aircon Water Leakage Sensor is a reliable and efficient solution for detecting water leaks in air conditioning systems. Its advanced technology and user-friendly design make it an essential tool for maintaining the integrity of HVAC systems across various applications.

Buy AquaSwitch here.

Click on this buy button to purchase.
24V ac/dc model.

or Contact our sales for ordering of AquaSwitch water leakage sensor.

For more technical details of the AquaSwitch sensor, click here.

Custom Cable Fabrication

Our company provide custom cable fabrication and connector cable assembly services in Singapore.

The demand for custom cable fabrication and connector cable assembly has surged globally, driven by the growing need for specialized electronic components across various industries.

custom cable fabrication

This article explores the key aspects of this industry, the processes involved in custom cable assembly, and the benefits of tailored solutions for diverse applications.

dsub connector cable assembly drawing

The Custom Cable Assembly Process

The process of custom cable assembly starts from client providing information of the custom cable project. Cable wiring connections various from project to project.

Our engineer will obtain the relevant information or documentation of the required cable. We will also understand the context of your cabling project to ensure that the connector and cable type that we select are suitable for your application.

custom RS232 cable assembly fabrication

Material Selection: Choosing the right materials is critical for ensuring durability and functionality. This includes selecting insulation, shielding, and jacketing materials that comply with industry standards.

Connector Selection: The choice of connectors is crucial as they must be compatible with both the cable and the devices they will connect to. Proper selection enhances reliability and performance.

Manufacturing: Once designs are finalized, the manufacturing process begins. This includes cutting wires to precise lengths, stripping ends, and attaching connectors through soldering or crimping methods.

Testing: Each assembly undergoes thorough testing to verify its performance against specified standards. This may include electrical testing, environmental assessments, and functional tests.

Shipping: After passing all quality checks, the custom cables are packaged appropriately for delivery to clients.

Benefits of Custom Cable Assemblies

Custom cable assemblies provide several advantages over standard options:
Tailored Performance: Clients can specify exact requirements regarding materials and configurations, ensuring optimal performance for their unique applications.

custom JST wire assembly

This is especially for specialised communication cable type like RS232, RS485, RS422, CAN bus, Profibus, etc…

custom dsub connector cable assembly

Quality Assurance: The rigorous testing protocols associated with custom assemblies lead to higher quality control than off-the-shelf products.

Increased Efficiency: Custom assemblies can integrate multiple types of cables into a single solution, reducing clutter and minimizing potential damage from multiple connections.

Flexibility in Production: Manufacturers can produce exactly what is needed without excess inventory, allowing for better resource management.

custom cable wiring diagram

Contact us for custom cable fabrication

Contact our engineer today for your custom cable wiring connection fabrication.