Showing posts with label supply. Show all posts
Showing posts with label supply. Show all posts

3/07/2013

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.

1/23/2013

Multi-purpose dual power supply regulator board AMS1117

All embedded systems require electric power to operate. Most of the electronic components inside them, including the processors, can operate at a wide range of supply voltage. For example, the operating voltage range for the PIC16F1847 microcontroller is 2 to 5.5 V. But there are certain applications where you need a regulated constant voltage to avoid malfunctioning of the circuit or getting erroneous results. For instance, any application that involves analog-to-digital conversion (ADC) requires a fixed reference voltage to provide accurate digital count for input analog signal. If the reference voltage is not stable, the ADC output is meaningless. Here is my latest dual power supply regulator board that provides constant 3.3V and 5.0V outputs from an unregulated DC input (6.5-10V). It is small in size and can be easily enclosed inside the project box along with a project circuit board. It can also be used to power test circuits on breadboard. The board uses two AMS1117 series fixed voltage regulators and receives input power through a DC wall wart or an external 9V battery.

he regulator circuit uses two AMS1117 series fixed voltage regulators, AMS117 5.0 and AMS1117 3.3, to derive constant 5.0V and 3.3V outputs from an unregulated DC input voltage. The circuit diagram of the board is shown below.





Note that both AMS1117-3.3 and AMS1117-5.0 derive input power directly from the unregulated supply voltage, which means each of them can deliver up to 0.8A of current. However, for this particular board it is recommended to limit the output current up to 500 mA maximum. For the safety of the AMS1117-3.3 regulator IC, the unregulated input voltage is also recommended to be within 6.5 to 10.0 V. This board is best to use in a project that is designed tobe powered with a 9V DC from either a PP3 battery or a wall adapter. The PCB is only 1.9″ x 1.4″, and occupies a small area inside the project box.


 

The board doesn’t have any ON/OFF switch, because it may not be useful if this board is enclosed inside the project box. But through-hole pads are provided on the board if you want to add one externally. There are two surface mount pads which are shorted together by default with solder to close the circuit permanently. These must be disconnected if an external ON/OFF switch has to be added.

The regulated output voltages (5V and 3.3V) are accessed through screw terminal blocks. This power supply board can also be used to power breadboard circuits (see the picture below).