Multifunction Power Supply
These days, many embedded systems need a +5V power supply with special features like power-fail detection, zero-crossing signals for mains power supply, and the ability to keep built-in b…

Know the mission before touching a wire.
Understand what you are making, prepare the right tools, and make the workbench safe.
Project details
Multifunction Power Supply is a electronics project. These days, many embedded systems need a +5V power supply with special features like power-fail detection, zero-crossing signals for mains power supply, and the ability to keep built-in b…
- Source pages
- 209-212
- Named parts
- 5
- Build goal
- Working, tested prototype
Tools you need
- Digital multimeter
- Wire stripper and side cutters
- Soldering iron with a fine tip
- Current-limited bench supply
Use eye protection, good lighting, and a clean insulated surface throughout the build.
Safety precautions
- Disconnect every power source before changing a connection.
- Check component polarity, pinout, and supply voltage twice.
- Use a current limit for the first power-up.
- This project may involve hazardous voltage. Work only with qualified supervision and proper isolation.
Gather, identify, and understand every part.
Use the standardized inventory, then open What's this? to learn each part's role, advantages, limitations, handling, and specifications.
What's this?Image, role, pros, cons, handling & specifications

Power supply
A power component supplies, converts, stores, or regulates energy for the project.
What it does hereIt must provide the documented voltage, polarity, isolation, and sufficient current safely.
Buy / compare this part ↗Advantages
- Stable power improves reliability
- Current limiting protects first tests
- Regulation reduces resets and noise
Limitations
- Wrong polarity can cause immediate damage
- Underrated parts overheat
- Mains circuits require qualified supervision
Handling
- Measure output before connection
- Use a fuse or current limit
- Insulate exposed conductors
Specifications to verify
- Use the exact model, value, package, and rating listed for Power supply; similar-looking parts are not always interchangeable.
- Confirm input/output voltage, current, polarity, connector, isolation, and thermal rating.
What's this?Image, role, pros, cons, handling & specifications

Transformer
A power component supplies, converts, stores, or regulates energy for the project.
What it does hereIt must provide the documented voltage, polarity, isolation, and sufficient current safely.
Buy / compare this part ↗Advantages
- Stable power improves reliability
- Current limiting protects first tests
- Regulation reduces resets and noise
Limitations
- Wrong polarity can cause immediate damage
- Underrated parts overheat
- Mains circuits require qualified supervision
Handling
- Measure output before connection
- Use a fuse or current limit
- Insulate exposed conductors
Specifications to verify
- Use the exact model, value, package, and rating listed for Transformer; similar-looking parts are not always interchangeable.
- Confirm input/output voltage, current, polarity, connector, isolation, and thermal rating.
What's this?Image, role, pros, cons, handling & specifications

MAXIMUM
A named project component whose exact role is defined by the source circuit and build guide.
What it does hereIt performs a documented electrical, control, interface, or construction function in this project.
Buy / compare this part ↗Advantages
- Selected for this project
- Can be checked independently
- Supports modular troubleshooting
Limitations
- Substitutes may differ
- Generic names can hide variants
- Pinouts and ratings vary
Handling
- Compare the received part with the source
- Keep it labelled
- Do not force connectors or adjusters
Specifications to verify
- Use the exact model, value, package, and rating listed for MAXIMUM; similar-looking parts are not always interchangeable.
- Confirm dimensions, ratings, connection method, polarity, and environmental limits.
What's this?Image, role, pros, cons, handling & specifications

NEAR
A named project component whose exact role is defined by the source circuit and build guide.
What it does hereIt performs a documented electrical, control, interface, or construction function in this project.
Buy / compare this part ↗Advantages
- Selected for this project
- Can be checked independently
- Supports modular troubleshooting
Limitations
- Substitutes may differ
- Generic names can hide variants
- Pinouts and ratings vary
Handling
- Compare the received part with the source
- Keep it labelled
- Do not force connectors or adjusters
Specifications to verify
- Use the exact model, value, package, and rating listed for NEAR; similar-looking parts are not always interchangeable.
- Confirm dimensions, ratings, connection method, polarity, and environmental limits.
What's this?Image, role, pros, cons, handling & specifications

T1 - transistor stage identified in the circuit
A semiconductor stage performs switching, amplification, regulation, rectification, or logic.
What it does hereIt controls current or signal flow at a defined point in the circuit.
Buy / compare this part ↗Advantages
- Fast and efficient
- Compact
- Can control larger loads from smaller signals
Limitations
- Pin order varies
- Sensitive to overvoltage and reverse polarity
- May need cooling or bias components
Handling
- Verify the datasheet pinout
- Avoid static and soldering heat
- Check notch, stripe, or flat-face orientation
Specifications to verify
- Use the exact model, value, package, and rating listed for T1 - transistor stage identified in the circuit; similar-looking parts are not always interchangeable.
- Confirm pinout, maximum voltage/current, dissipation, gain or forward voltage, and package.
Connect one verified path at a time.
Explore the named components and standardized signal flow, then use Source Check to verify exact physical pins, values, and topology before applying power.
Trace this circuit.
Multifunction Power Supply: interactive parts, standardized terminals, responsive anchored wires, student explanations, and the original circuit reference in one shared system.
Trace before wiring
Follow power, ground, inputs, processing, and outputs in that order. Never guess a pin from package shape alone.
Connect with power off
Make short, labelled connections and share a common ground only where the schematic requires it.
Inspect every joint
Check continuity, polarity, adjacent shorts, and loose connections before the first power-up.
Open all source diagrams and build views 1 visuals

Confirm the hardware-only control path.
This project does not include firmware in the source. The circuit itself provides the required behaviour.
How to connect
- Match every controller label to the circuit view and source pin map.
- Join grounds before signal wires when separate low-voltage supplies are used.
- Keep motors, relays, pumps, and other loads on a suitable driver and external supply.
Common mistakes
Reversed VCC/GND, board-label versus GPIO-number confusion, missing common ground, and charge-only USB cables.
Troubleshoot
Disconnect loads, continuity-test one path at a time, then test with a current limit.
Software preparation
No IDE, board package, library, or firmware upload is required for this project.
If you add a programmable controller as an extension, document its pin map separately.
How to upload code
The original design is implemented entirely in hardware, so proceed after verifying the circuit and supply.
Assemble, deploy, test, and troubleshoot.
Use the complete source notes in build order, then pass the final checks before calling the project finished.
Build in functional stages
- Power and regulation
- Controller or processing stage
- Inputs and sensors
- Outputs and loads
- Enclosure and strain relief
Power up safely
- Inspect unpowered continuity first
- Apply the lowest safe current limit
- Measure supply rails before signals
- Add one load at a time
- Record expected and actual results
Work from simple to complex
- Confirm power, ground, polarity, and orientation
- Compare each pin with the source
- Test inputs separately from outputs
- Replace only one variable at a time
- Power off before every correction
Follow the documented instructions.
These notes come from this project's source and remain in their original order.
Project overview
Project build noteThese days, many embedded systems need a +5V power supply with special features like power-fail detection, zero-crossing signals for mains power supply, and the ability to keep built-in batteries charged. Here is the circuit for a power supply for embedded systems like this one. It has +5V, a charger for the battery, zero-crossing signals, and a power-fail signal. The circuit is made up of common, cheap parts. To get started right away, you just need to make a few simple adjustments with potmeter POT1. The circuit in Fig. 1 is made up of a step-down transformer (X1), two bridge rectifiers (BR1 and BR2), an adjustable voltage regulator (IC1), a 5V voltage regulator (IC2), a hex inverter Schmitt trigger (IC3), and a few discrete components. Connector CON1 is given 230V AC, 50Hz power from the mains. Fuse F1 keeps the input from getting too much power. Some of the noise from the mains power supply is blocked by resistor R1 and capacitor C1. Power transformer X1 has a secondary that is 12V and 2.5A. The standard 5V regulator IC2 is used to power CON3 with 5V and 1A. The 2.5A rectifying bridge is BR1. The main filtering cap (C4) should have a
value of at least 4700 F. IC2 gives out a steady +5V with a current of up to 1A. If you need more current, you can use regulators like the 78T05 (3A, 5V) or the 78S05 (2A, 5V). In real life, it is best to keep the load on 78XX to between 0.7 and 0.8A. The voltage from CON4's unregulated output ranges from 10V to 18V, depending on the transformer used and how much current is drawn from the power supply. This voltage isn't controlled, but it can be used for other things. The output is protected by the fuse F2. The power supply has a battery charger with a regulator IC1 that can be changed. Some parts of the system are powered by a 6V rechargeable battery when the mains power supply isn't working right. The potmeter POT1 is used to change the maximum voltage level across the rechargeable battery. Resistor R7 limits the amount of charging current that can flow. Regulator IC1 has an output voltage range of +1.25V to +8.2V, which can be changed with potmeter POT1. The regulators IC1 and IC2 are protected by diodes D1, D2, and D3. Bridge rectifier BR2 is only used to send signals at zero-crossing points. The value of capacitor C2 should be low. Its purpose is to cut only the very high frequency, not to filter the power from the mains. IC3 and the parameters of the pulses that are made can change the values of R2 and R3. When the voltage at test point TP2 drops below about 8V, CON5 sends a power-fail signal. Transistor T1 stops doing its job, and the control unit knows this because pin 3 of CON5 goes high. The power-fail signal's threshold voltage is controlled by zener diode ZD2 (7.5V) and resistors R4 and R5. Switching transistors are best for T1, but most npn silicon transistors with a high gain will also work. Pins 2, 3, and 4 of connector CON6 send out different signals at a rate that is twice as fast as the mains power supply (100 Hz). These signals are active near the zero crossings of the mains power supply and can be used for many things, such as: They can be used to measure the frequency of the mains power supply by the control unit. You can use these to make the control unit work at the same time as the zero crossings of the mains power supply. The strength of signal TP4 is related to the voltage on the transformer's secondary side. It can be measured by the control unit, which can then figure out
what X1's secondary voltage is. The outputs TP5 and TP3 work with either TTL or CMOS, depending on IC3. IC3 can be either CMOS or TTL. Some examples are 74HC14, 74HCT14, 74LS14, etc. It should have a Schmitt trigger built in.
You built Multifunction Power Supply.
You followed the full workflow from understanding the mission to testing the finished project. That is a real engineering achievement - well done.
Browse all 500 projects