Featured

How to Order PCB Manufacturing: From Gerber Files to Your Door
The steps for ordering a PCB from a factory: a DRC check with the factory's rules, preparing and reviewing the Gerber and drill files, the order settings (layers, thickness, copper, colour and finish), what drives up the price, the assembly service (BOM and CPL), the most common ordering mistakes, what to do when the board arrives, and tips for a first order.
Start here
New to electronics? Read these in order.
- 1Ohm's Law and Power: The Explanation You'll Use Every Day
- 2What Is a Capacitor? And How Does It Store Electricity?
- 3How to Calculate an LED Resistor Correctly (Without Burning It)
- 4The Breadboard: How It's Connected Inside and How to Build a Circuit on It
- 5How to Use a Multimeter: Voltage, Current, Resistance and Continuity
- 6Soldering for Beginners: Steps for a Clean, Reliable Joint
6 min readHow to Order PCB Manufacturing: From Gerber Files to Your Door
The steps for ordering a PCB from a factory: a DRC check with the factory's rules, preparing and reviewing the Gerber and drill files, the order settings (layers, thickness, copper, colour and finish), what drives up the price, the assembly service (BOM and CPL), the most common ordering mistakes, what to do when the board arrives, and tips for a first order.
5 min readSMD and THT Components: The Difference, and Sizes Such as 0805 and 0603
The difference between components soldered through holes (THT) and surface-mount components (SMD): advantages and drawbacks, resistor and capacitor sizes (1206, 0805, 0603 and 0402) and the power each size handles, reading the codes printed on resistors, chip and diode packages and polarity marks, how to start hand-soldering SMD, and what to choose in your design.
6 min readThe KY-040 Rotary Encoder: A Knob That Turns Forever
The rotary encoder explained: how it differs from a potentiometer, the A and B signals and finding the direction from the sequence of states, wiring and the button, reading it by polling, with interrupts, with a state table or with a library, short and long presses, an on-screen menu, acceleration, bounce and missed steps, and motor encoders.
6 min readThe NTC Thermistor: Measuring Temperature with Just a Resistor
How an NTC thermistor measures temperature: resistance falls as it heats, the 10k value at 25 °C and the B coefficient, wiring it as a voltage divider with the voltages at different temperatures, the Beta equation in code with a worked example, accuracy and self-heating, the ESP32 and its ADC, calibration, reading faults, the inrush-limiting NTC, and a comparison with the DS18B20.
6 min readThe 4×4 Keypad with an Arduino: 16 Buttons on 8 Pins
How a matrix keypad works: rows and columns and the scanning idea, wiring with 8 pins and finding their order with a multimeter, suitable pins on the Uno and ESP32, the Keypad library and long presses, entering a number, a password project that locks after wrong attempts, scanning without a library, ghosting, and saving pins with an I2C module.
5 min readThe DS18B20 Temperature Sensor: Good Accuracy and Several Sensors on One Wire
The DS18B20 explained: the 1-Wire protocol, the essential 4.7k resistor, the waterproof version, parasite power mode, connecting several sensors to the same pin and reading each sensor's address, the OneWire and DallasTemperature libraries, conversion time and resolution and reading without waiting, wiring long cables, an aquarium heater control project, and a fault table.
6 min readESP32 Deep Sleep: A Project That Lasts Months on a Battery
How to make an ESP32 run on a battery for a long time: the sleep modes and what each draws, deep sleep and waking by timer, by a pin or by several pins, finding the wake-up cause, RTC_DATA_ATTR variables, why the development board draws far more than the chip, the right regulator, shortening the awake time, the calculation, and the problem of uploading to a sleeping board.
6 min readKeeping Data After a Power Cut: EEPROM on the Arduino and Preferences on the ESP32
How to make your project remember its settings after the power goes off: the types of memory, EEPROM on the Arduino and the put, get and update functions, a magic number for the first run, saving once the user has finished, write endurance in numbers, verifying the data, the Preferences library on the ESP32 and the EEPROM.commit mistake, and common errors.
5 min readA Web Page from the ESP32: Control Your Project from Your Phone
Build a web server on the ESP32 in minutes: connecting to Wi-Fi, an HTML page showing a sensor reading, a button that switches an LED on and off, values that update without reloading the page (JSON), receiving numbers from the page, access point (AP) mode with no router, reaching it as esp32.local, reconnecting, and the limits of security.
5 min readTemperature and Humidity Sensors: the DHT11, the DHT22 and Their Alternatives
Comparing the DHT11 and DHT22: range, accuracy and reading speed, wiring with a single data wire and a pull-up resistor, how the protocol works, Arduino code without delay, heat index and dew point, calibrating with salt, where to place the sensor, common errors (NaN and reading too fast), and more accurate alternatives such as the SHT31 and BME280.
6 min readDisplays for Projects: the 16×2 LCD, OLED and TFT
A comparison of project displays: the 16×2 LCD with an I2C module (address, contrast, code and custom characters), the SSD1306 OLED and how it differs from the SH1106, plus the memory problem on the Uno, and colour TFT displays over SPI and their signal voltage, with an I2C scanner, preventing flicker, and a table of blank-screen faults.
6 min readmillis() Instead of delay(): Making the Arduino Do More Than One Thing at Once
Why delay() stops the whole program, and how to use millis() to run repeating tasks without stopping everything else: the basic method, several tasks at different intervals, different on and off times, a traffic light as a state machine, a timeout, steady timing, and the overflow every 49 days with a worked example.
6 min readThe Hall Effect Sensor: Sensing a Magnet Without Touching It
Hall sensors explained: the digital A3144 with its open-collector output that needs a pull-up and how to run it with an ESP32, the analog 49E that measures field strength and polarity, the types (unipolar, bipolar, latching), why the pole and distance matter, an RPM speed-counter project, a comparison with the reed switch, and common faults.
6 min readThe Serial Monitor: The Most Important Tool for Debugging Arduino Code
How to use Serial.print to find out what your code is doing: Serial.begin and the baud rate, strange characters and their cause, printing variables in different formats with timestamps, a method for tracking down faults, the Serial Plotter with named lines, receiving full commands from the computer, switching off debug messages with one line, and common mistakes.
7 min readInterrupts on the Arduino: Never Miss an Event
Interrupts explained for beginners: how a microcontroller pauses what it's doing to respond to an event immediately, attachInterrupt and the interrupt pins on the Uno and ESP32, edge types, rules for writing an ISR, volatile variables with an example of the bug, a water meter project with a flow sensor, measuring speed, debouncing inside an interrupt, and common problems.
5 min readRectifiers and the Bridge: How AC Becomes DC
Rectification explained for beginners: the half-wave rectifier, full-wave with a centre-tapped transformer, and the four-diode bridge, diode voltage drop and heat, reverse voltage and inrush current, ready-made bridges by current, testing with a multimeter, a bridge for polarity protection, and why a capacitor must follow.
6 min readBoost Converter Modules: the MT3608 and XL6009
How a boost module raises voltage, calculating the real input current with a lithium battery example, the practical limits of the MT3608 and XL6009 in a table, setting the voltage before connecting a load, why the output doesn't switch off when the chip stops, battery and holder problems, ready-made USB modules, and when you need a buck-boost.
5 min readWhat Is an Inductor? And Why Does It Resist Changes in Current?
The inductor explained for beginners: coiled wire storing energy in a magnetic field, the henry, its units and codes, why it resists changes in current and why it produces a high voltage at switch-off in numbers, reactance with frequency, the types (ferrite, toroid, beads and common-mode chokes), saturation current and resistance, and its uses in bucks, filters and transformers.
6 min readHow to Choose a Power Supply or Adapter for Your Project
How to read an adapter's label (voltage, current and polarity), why the voltage must match and the current must be equal or greater, calculating your project's consumption with an example, plug sizes, regulated, unregulated and switching supplies, LED strip supplies, two voltages from one source, USB and fast charging, load-testing an adapter, and safety tips.
6 min readWhat Is a Transformer? And How Does It Step Voltage Down?
The transformer explained for beginners: two coils on an iron core, the turns ratio and the voltage ratio with an example, primary and secondary currents, VA ratings and choosing a transformer for a power supply, the centre-tapped transformer, why it works only with AC, identifying and testing windings with a multimeter, and iron-core transformers vs modern chargers.
6 min readAC and DC: The Difference and Why Both Exist
The difference between alternating and direct current made simple: direction and waveform, 220 V and 50 Hz and the RMS value, why power is transmitted as AC in numbers, household wiring and three-phase, AC to DC inside a charger and DC to AC in an inverter, adapters labelled AC, and measuring both with a multimeter.
6 min readThe Zener Diode: A Fixed Voltage and Protection from Overvoltage
How a zener works in reverse to hold a voltage, reading its datasheet specifications, calculating the series resistor and zener power with a 12 V to 5.1 V example, when it works as a regulator and when it doesn't, boosting current with a transistor, protecting microcontroller inputs and MOSFET gates, and how to test it.
5 min readThe Comparator: An ON/OFF Decision from an Analog Signal
The comparator explained: comparing a voltage with a reference and outputting HIGH or LOW, an op-amp as a comparator vs the dedicated LM393 and its open-collector output, the input voltage range, chattering at the threshold and fixing it with hysteresis including the resistor calculation, the window comparator, and examples with a light sensor and a low-battery cut-off.
7 min readSoil Moisture Sensors: The Type That Corrodes and the Type That Lasts
The difference between resistive (fork) and capacitive soil moisture sensors, why the fork corrodes and how to extend its life, common faults in cheap capacitive versions, calibrating between dry and wet, where to place the sensor, and a complete automatic watering project with hysteresis and a maximum pump run time.
6 min readBulging Capacitors: The Most Common Cause of Device Failures and How to Replace Them
Why electrolytic capacitors fail over time: heat, drying electrolyte and rising ESR, calculating a capacitor's lifetime, the signs of a failed capacitor, its symptoms in power supplies and devices, how to measure it, and how to choose a replacement, fit it and discharge it safely with numbers.
6 min readWhat Is a Capacitor? And How Does It Store Electricity?
The capacitor explained for beginners: two plates and an insulator, the charge and energy it stores in numbers, the farad and its units, the voltage rating, series and parallel, how it behaves with DC and AC and its reactance, the types (ceramic, electrolytic, tantalum, film and supercapacitor), its uses, and how to measure it.
6 min readThe LM2596 Module: Efficiently Stepping 12 V Down to 5 V
A guide to the popular LM2596 buck module: the parts on it, input and output range, the required headroom, real output current and cooling, setting the voltage before connecting a load, calculating input current, ripple and smoothing it, reverse polarity and the failure that outputs the input voltage, display and constant-current versions, and fakes.
6 min readMeasuring Current in Projects: Shunts, the INA219 and the ACS712
How a microcontroller measures current: a shunt resistor and Ohm's law, low-side vs high-side sensing, amplifying a shunt with an op-amp, the INA219 with complete code, the Hall-effect ACS712 with zero calibration and its real resolution, measuring AC, logging consumption in Wh, and a comparison.
6 min readSolar Panels for Projects: Sizing the Panel and the Battery
Solar basics for small projects: panel specifications (Voc, Vmp, Imp) and types, PWM and MPPT charge controllers, sizing the panel from daily consumption and sun hours, battery size and type, two worked examples (an ESP32 sensor station and a camera), wiring order, shade, dust and heat.
6 min readCharging a Lithium Battery with the TP4056 Module
How to charge a lithium-ion cell safely with a TP4056 module: CC/CV charging to 4.2 V, setting the charge current with RPROG, the plain module vs the one with DW01 protection, the LEDs, charge time, the problem of charging with the load connected and the load-sharing fix, solar input, and mistakes that kill the module.
6 min readHeatsinks: How to Tell Whether a Part Needs Cooling
How to calculate the temperature of a regulator, transistor or MOSFET: power dissipated, thermal resistance (°C/W) as a circuit, maximum junction temperature, a 7805 with and without a heatsink, choosing a heatsink by calculation, MOSFETs, fans and enclosures, thermal paste and insulators, and cooling with PCB copper.
7 min readFixed Voltage Regulators: The 7805 and LDOs like the AMS1117
Fixed regulators 78xx, 79xx and LDOs explained: pinouts, the required dropout, capacitors, a worked heat calculation, quiescent current and battery projects, powering an ESP32 from a lithium cell, a ±12 V supply, the protection diode, and when a buck converter is the better choice.
7 min readThe MPU6050: Measuring Tilt and Motion with an Accelerometer and Gyroscope
The MPU6050 (GY-521) module explained: accelerometer vs gyroscope, I2C wiring and address 0x68, reading the sensor without a library and converting to real units, calculating tilt, drift and a complementary filter with complete code and calibration, yaw, ranges and the internal filter, and troubleshooting.
7 min readUART, I2C and SPI: How a Microcontroller Talks to Modules
A practical comparison of the UART, I2C and SPI protocols: how each one sends data, the wires and real speeds, addresses and an I2C scanner sketch, fixing address conflicts, wiring TX and RX and SoftwareSerial, SPI modes, distance, and a table of the most common wiring problems.
6 min readThe 555 Monostable: One Pulse of Fixed Length
The 555 in monostable mode: how it works inside, an output pulse of t = 1.1 × R × C, choosing R and C for a given time, wiring pin by pin, edge triggering for a button that stays pressed, false triggering at power-up, driving a relay, the CMOS 7555, and uses such as a stairwell timer.
6 min readPull-up and Pull-down Resistors: Why Your Button Reads Random Values
The floating pin problem in microcontrollers, pull-up and pull-down resistors and how to choose their value with numbers, INPUT_PULLUP on Arduino and ESP32, open-drain outputs, calculating I2C resistors, the MOSFET gate resistor, and the ESP32's boot pins.
7 min readButtons and Switches: Types and Debouncing
Types of switches and buttons (momentary, toggle and the four-leg tactile switch), NO and NC, connecting them to a microcontroller, the bounce problem that makes one press count several times, complete debounce code with a counter, long presses, multiple buttons, and the hardware fix with a resistor, capacitor and Schmitt trigger.
6 min readShort Circuits and Open Circuits: The Two Most Common Faults in Electronics
The difference between a short circuit and an open circuit in numbers, the symptoms of each, their common causes in soldering, breadboards and wiring, intermittent faults, and how to find them step by step with a multimeter, including tracking down a shorted part on a board.
7 min readThe Breadboard: How It's Connected Inside and How to Build a Circuit on It
A beginner's guide to the breadboard: the connected five-hole columns, the side power rails, the centre gap for chips, sizes, a complete LED and button example with Arduino, turning a schematic into a layout, jumper wires, current and frequency limits, and how to find a fault.
7 min readGetting Started with the ESP32: Setup, Pins and Wi-Fi
A getting-started guide to the ESP32: how it differs from the Arduino, board types, setup in the Arduino IDE and a first Blink, 3.3 V logic, the pins to avoid, a Wi-Fi connection that reconnects by itself, the BOOT button, power and brownouts, and fixes for the most common problems.
7 min readMQ Gas Sensors (MQ-2, MQ-135, MQ-7): How They Work and How to Read Them
How MQ gas sensors work and how to use them with Arduino: popular types, heater current, warm-up and burn-in, outputs, calculating sensor resistance and R0, practical alarm code, where to mount them, real CO2 sensors, relay risks, and safety warnings.
6 min readBattery Types for Electronics Projects: Which One to Choose?
A comparison of battery types for electronics projects: cell voltages, cycle life, what mAh means, lithium safety and fake cells, common sizes, cells in series and parallel, how each type charges, how to choose, voltage vs state of charge, and heat.
6 min readWhat Is an ADC? Reading Analog Values on Arduino and ESP32
What an ADC is and how to use it: resolution on paper vs in practice, converting readings to volts, how a SAR ADC works, speed, the reference voltage with an LM35 example, the ESP32's ADC quirks, the external ADS1115, the voltage limit, and tips for steadier readings.
6 min readWhat Is a Potentiometer and How Do You Read It with Arduino?
How a potentiometer works and how to use it: as a voltage divider read by Arduino with map(), as a rheostat, identifying the pins, reading the markings, linear vs log and other types, choosing the value, mechanical styles, power limits, pot vs encoder, and common problems.
6 min read10 Common PCB Design Mistakes and How to Avoid Them
The most common PCB design mistakes that force a re-order: thin power traces, missing decoupling, broken ground, polarity markings, footprints, DRC rules, heat, Wi-Fi antennas, mounting holes, test points, small mistakes, a pre-order checklist, and the first power-up.
6 min readDiode Types: 1N4007, 1N4148, Schottky, Zener and When to Use Each
A practical guide to diode types: forward voltage, the 1N4007 rectifier, the 1N4148 signal diode, Schottky, zener with a regulator calculation, fast recovery, TVS and LEDs, diode heat, SMD codes, common applications, finding the orientation, and a selection summary.
6 min readThe LM317 Adjustable Regulator: Calculating the Resistors and the Heat
A complete LM317 guide: pinout, the output voltage equation and ready values, why R1 = 240 Ω, dropout, heat, a variable power supply with a potentiometer, using it as a constant-current source, protection diodes, alternatives, and troubleshooting.
6 min readWhat Is a Fuse and How Do You Choose the Right One?
How a fuse works and how to choose one: the types (glass, ceramic, fast and slow, blade, PTC, thermal), reading the markings, why it doesn't blow at its exact rating, choosing current, voltage and speed, placement, PTCs in projects, fuses with batteries, and what to do when it blows.
6 min readCalculating the Filter Capacitor for a Transformer Power Supply
How to calculate the filter capacitor after a bridge rectifier: the equation, half-wave vs full-wave, the real peak voltage, a complete 12 V supply example with a 7812, voltage sag under load, inrush current, practical tips, and measuring ripple.
6 min readStatic Electricity (ESD): How It Damages Chips and How to Protect Them
What static electricity (ESD) is and how it damages chips: the numbers, which parts are sensitive, when the risk is highest, protecting parts while you work, a low-cost safe workbench, bags and storage, signs a part was hit, and protecting your circuits.
6 min readWhat Is a Transistor? A Simple Introduction to the BJT
A simple introduction to the BJT transistor: the idea, its pins, the three operating states with numbers, NPN and PNP, popular transistors and their complementary pairs, packages, Darlingtons and other types, BJT vs MOSFET, and testing and identifying it with a multimeter.
6 min readWhat Is a Relay and How Do You Drive It from Arduino and ESP32?
How a relay works, its terminals (COM, NO, NC) and ratings, AC vs DC contact ratings, coil current, driving it from a microcontroller, wiring a 220 V lamp correctly, difficult loads, testing with a multimeter, relay vs SSR vs MOSFET, projects and safety.
6 min readWhat Is a MOSFET and How Do You Use It as a Switch?
How a MOSFET works and how to use it as a switch with Arduino and ESP32: key specs, the non-logic-level trap, wiring tips, a worked LED strip example, PWM and the gate capacitance, the body diode, testing with a multimeter, and MOSFET vs BJT vs relay.
7 min readBuck vs Linear Regulators: When to Use a Switching Regulator
Linear regulators vs buck and boost converters with real numbers: efficiency and heat, when a linear regulator is still better, how a buck works, inductor and capacitor equations with worked examples, popular modules, noise, and mistakes that burn circuits.
7 min readSoldering for Beginners: Steps for a Clean, Reliable Joint
A beginner's soldering guide: tools and tips, the right temperature for leaded and lead-free solder, tinning, steps for a good joint, assembly order on a board, joining two wires, large pads, spotting bad joints, flux, desoldering and safety.
6 min readHow to Use a Multimeter: Voltage, Current, Resistance and Continuity
A practical guide to using a multimeter: reading the display (OL and ranges), measuring voltage, current and resistance, continuity and diode tests, 8 tests you'll do all the time, extra modes, choosing a meter, and safety tips.
7 min readThe HC-SR04 Ultrasonic Sensor: Measuring Distance with Arduino and ESP32
How the HC-SR04 ultrasonic sensor works, converting echo time to distance, wiring and code, steady readings with a median filter, temperature compensation, project ideas (water tank, parking sensor, obstacle-avoiding robot), using it safely with an ESP32, and troubleshooting.
6 min readKirchhoff's Laws: The Current Law and the Voltage Law Made Simple
Kirchhoff's current law (KCL) and voltage law (KVL) explained simply with numbers: series, parallel and mixed-circuit examples, sizing a power supply for all its loads, voltage drop in wires, and using both laws for troubleshooting with a multimeter.
7 min readCapacitor and SMD Resistor Codes: What 104, 103, 4R7 and 01C Mean
How to read capacitor codes (104, 103, 472) and SMD resistor codes (103, 4702, 4R7, 01C), tolerance letters, voltage codes like 2A and 1H, ceramic types X7R and C0G, polarity of electrolytic and tantalum capacitors, and parts with no marking at all.
6 min readReading Resistor Colour Codes: 4, 5 and 6 Bands in Detail
How to read resistor colour codes with 4, 5 and 6 bands: the colour table, where to start, examples, the colours of the most common values in kits, what the body colour tells you, burnt resistors, and the mistakes people keep making.
6 min readLight and Temperature Sensors: The LDR and the NTC Thermistor
Working with LDRs and NTC thermistors on Arduino and ESP32: wiring them as a voltage divider and choosing the fixed resistor, expected readings in numbers, code for a night light that doesn't flicker, the ready-made LDR module, and how they compare with digital sensors.
6 min readThe RC Time Constant: How a Capacitor Charges and How Long It Takes
The RC time constant explained: how a capacitor charges and discharges, τ = R × C and the percentage table, time to reach a given voltage, charging current and inrush, safely discharging big capacitors, measuring capacitance with an Arduino, and uses like debouncing and power-on reset.
6 min readThe 555 Timer in Astable Mode: Making Pulses at the Frequency You Want
The 555 timer in astable mode: pin-by-pin wiring, how it works, the frequency and duty cycle formulas, a table of ready values, applications like alternating LEDs, a buzzer tone and PWM motor speed control, and troubleshooting when it won't oscillate.
6 min readPCB Trace Width: Choosing It by Current and Trace Length
How to choose PCB trace width from current with the IPC-2221 formula, a ready-made table, why trace length matters for voltage drop, clearances and high voltage, ground return and vias, and a full design example for a board driving a motor.
6 min readThe Op-Amp: Inverting and Non-Inverting Amplifiers Made Simple
Op-amps without the jargon: the two golden rules, the gain formulas for inverting, non-inverting and voltage-follower circuits, worked examples for a sensor and a microphone, which chip to choose, real-world limits like supply voltage and bandwidth, and fixes for common problems.
7 min readThe Transistor as a Switch: Driving a Relay or Motor from a Microcontroller
How to use an NPN transistor as a switch for loads bigger than a microcontroller pin can handle: calculating the base resistor, gain, the protection diode for relays and motors, choosing a transistor, checking saturation, common mistakes, and when to use a MOSFET instead.
6 min readOhm's Law and Power: The Explanation You'll Use Every Day
A practical guide to Ohm's law (V = I × R) and the power formulas, with the Ohm's triangle to remember them, household and project examples, measuring current without opening the circuit, watts vs kilowatt-hours, and the most common unit mistakes.
7 min readHow to Calculate an LED Resistor Correctly (Without Burning It)
A step-by-step guide to the series resistor for an LED: forward voltage by colour, choosing the standard value and power rating, LEDs in series and parallel, LEDs on Arduino pins, RGB LEDs, and power LEDs that need a driver.
7 min readBattery Life: How Long Will Your Project Run on a Battery?
How to calculate battery life from capacity (mAh) and circuit consumption, average current with deep sleep, an ESP32 that wakes every 10 minutes, mAh vs Wh, measuring real consumption, and why batteries die sooner than the maths says.
7 min readThe Voltage Divider: When It Works and When It Fools You
The two-resistor voltage divider explained: the formula, practical examples (measuring a battery with an ADC and turning a 5 V signal into 3.3 V), how to choose the resistors step by step, why you can't power a load from it, and what to use instead.