Mains-Voltage-Device-Controller
kkorzen·Mains-Voltage-Device-Controller·Controller_PCB/230V_controller.kicad_pcb
About the Mains-Voltage-Device-Controller PCB
Mains-Voltage-Device-Controller is an open source AVR/Arduino PCB design by kkorzen, published on GitHub under the MIT license. It is a 2-layer board measuring 85 × 106.5 mm, with 34 components from 16 distinct parts.
Its main chip is the Arduino_Nano_v3.x, from the AVR/Arduino family. Other key parts include the PC817 and MOC3021M. By type, the board carries 11 resistors, 9 diodes, 4 transistors, 4 connectors, 2 ICs and 2 relays.
It belongs with the power & battery designs in this gallery.
From the project
- Introduction - Electronics schematics + PCB Layout - Arduino Code - Application
- Introduction - Electronics schematics + PCB Layout - Arduino Code - Application
This project was under development during the first semester of Master's Studies at Warsaw University of Technology (Poland) as a final project for Industrial Communication Protocols. Using the UART adaptation of RS-232, a simple controller was created. Its main goal was to make it possible to control a flow of mains current to the load devices. The device contains of two relays for bi-stable control and one triac for more "analogue" control (e.g., a lightbulb dimmer). The heart is an Arduino Nano board.

Main components on the Mains-Voltage-Device-Controller
Mains-Voltage-Device-Controller bill of materials (BOM)
34 components, 16 distinct parts.
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | PC817 | DIP-4_W7.62mm | U1 |
| 1 | MOC3021M | DIP-6_W7.62mm | U3 |
| 1 | Arduino_Nano_v3.x | Arduino_Nano | A1 |
| 3 | BC546 | TO-92_Inline_Wide | Q1, Q2, Q4 |
| 1 | BT136-600 | TO-220-3_Vertical | Q3 |
| 4 | Screw_Terminal_01x02 | TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_Horizontal | J1, J2, J3, J4 |
| 2 | HF32FA | HF32FA_Type1_FormC | K1, K2 |
| 1 | SW_Push_DPDT | SW_Push_2P2T_Toggle_CK_PVA2xxH1xxxxxxV2 | SW2 |
| 4 | 1N4007 | D_DO-41_SOD81_P10.16mm_Horizontal | D1, D2, D3, D4 |
| 3 | LED | LED_D3.0mm | D5, D6, D9 |
| 2 | 1N4148 | D_DO-35_SOD27_P7.62mm_Horizontal | D7, D8 |
| 2 | 47k | R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R1, R2 |
| 1 | 10k | R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R3 |
| 3 | 330 | R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R4, R6, R11 |
| 2 | 220 | R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R5, R9 |
| 3 | 2.2k | R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R7, R8, R10 |
Mains-Voltage-Device-Controller design files
The KiCad project lives in the kkorzen/Mains-Voltage-Device-Controller repository on GitHub; these links point at the commit this page was built from.
Mains-Voltage-Device-Controller: common questions
What microcontroller does the Mains-Voltage-Device-Controller use?
The Mains-Voltage-Device-Controller is built around the Arduino_Nano_v3.x, from the AVR/Arduino family.
How big is the Mains-Voltage-Device-Controller PCB?
The Mains-Voltage-Device-Controller measures 85 × 106.5 mm, has 2 copper layers and is 1.6 mm thick.
How many components are on the Mains-Voltage-Device-Controller?
34 components, from 16 distinct parts. The full bill of materials is listed on this page.
Where can I download the Mains-Voltage-Device-Controller design files?
From the kkorzen/Mains-Voltage-Device-Controller repository on GitHub, which has the KiCad layout and the schematic; the links under Design files point to each one.
Can I use the Mains-Voltage-Device-Controller design in my own project?
Yes, under the terms of its MIT license, which kkorzen chose for the repository.
Can I test firmware for the Mains-Voltage-Device-Controller without the hardware?
Yes. HardLabs builds a simulation of the board from its netlist and BOM, so you can run and debug AVR/Arduino firmware against it before you order a PCB.
Similar boards
AVR/Arduino
Magspoof
samyk
35 × 29 mm11 parts2LNo license4.2kAVR/Arduino
Redox keyboard
mattdibi
162.2 × 126.5 mm77 parts2LMIT2.0kAVR/Arduino
Labrador
espotek-org
36.8 × 34.7 mm75 parts2LNo license1.2kAVR/Arduino
V4
stuartpittaway
30 × 50 mm38 parts2LCC-BY-NC-4.01.1kAVR/Arduino
ModuleV450
stuartpittaway
30 × 61.4 mm39 parts2LCC-BY-NC-4.01.1kAVR/Arduino
Discipline
coseyfannitutti
304.9 × 122.8 mm170 parts2LCC-BY-NC-4.01.0k