Author Archives: Amir Hakim

12V Solenoid Lock: Fail-Secure Wiring with Arduino, Relay or MOSFET

Cartoon of a silver 12V solenoid lock fixed inside a wooden cabinet with its bevelled bolt locked into a strike plate while a black wall adapter lies unplugged beside the socket

A 12V solenoid lock is fail-secure: it stays locked with no power and opens only while 12V flows through its coil. This guide explains why it can’t run from an Arduino pin or a powerbank, how to switch it with a relay or an IRF520 MOSFET from its own supply, why the flyback diode is required, and how to mount it so the bolt doesn’t jam.

Which Battery Holder? 18650 vs AA, Slots and Switch

Cartoon of a black four-slot 18650 battery holder and a black two-slot holder loaded with pink cells, next to a black covered AA battery case with purple AA cells and its lid slid half open

Pick a battery holder by the voltage it makes, not by how many cells it takes. The slots are wired in series: four NiMH AAs make 4.8 V for servos and two 18650s make 7.4 V for an Uno’s barrel jack. This guide also covers why a holder with one unseated cell looks like a dead battery, and when the covered AA case with a switch is worth buying.

How to Wire a Timer Relay to 220V/240V Mains: Switch an Appliance Safely

Cartoon of a royal-blue timer relay module inside an open grey plastic enclosure, powered by a small black plug adapter on the left and switching a white stand fan through two white mains cables on the right

A 220V timer relay module switches a mains appliance only through its relay contacts. The board runs on low-voltage DC and the trigger stays a low-voltage signal. This guide shows how to wire the live through COM and NO, how to tell a DC-supplied board from a mains-powered one, how to check the wiring with the plug pulled, and when a plug-in timer is the better choice.

Mini Solar Panel: Which 5V or 6V One for Your Project?

Kartun lima panel solar mini disusun mengikut saiz menaik, bermula dengan kepingan epoksi hitam kecil berwayar merah dan hitam, panel biru bersalur, panel poli biru gelap, panel biru berbingkai hitam dengan soket USB-A putih, dan panel monokristalin hitam berbingkai putih dengan plug USB-C perak

Pick a mini solar panel by the current it actually delivers, not by the number on its label. What 5V and 6V really mean against a TP4056’s 4.0-8.0 V input window, how many mA each size gives in full sun and under Malaysian cloud, why a 2W panel cannot run an Arduino or a water pump directly, and the panel to charge module to 18650 cell to load chain that does work.