Skip to the content
2 layers113.1 × 52.7 mmHomeWork2, the printed circuit board in 3D

In this repo I am practicing KICAD. Created an ESP32 DevKit V1 module and a PCB footprint. I designed a circuit around this ESP32 consisting of six lamps, four switches, and two power jacks and added a voltage regulater to Vin to maintain a supply of +5V. (This project was originally made of two switches and 1 power jack and was named homeWork2.)

Size
113.1 × 52.7 mm
Copper layers
2
Thickness
1.6 mm
Parts
60
Nets
42
Pads
170
Tracks, vias
213, 9
Pours
4
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
7 Apr 2024
Updated
30 May 2026

Overview

HomeWork2 is an open-source printed circuit board by PubInv, from the PubInv/PMD_-pseudo-medical-device-aka-Homework2- repository on GitHub. It is a 2-layer board of 113.1 × 52.7 mm with 60 parts on 42 nets, routed with 213 tracks and 9 vias.

It is built around the LM7805CTG, LTW-2R3D7 and RMC06033301%N, with the RH-5000, CC0603KRX7R9BB104 and RVT47UF16V67RV0019 among its other parts. Its parts include 14 resistors, 9 capacitors, 9 diodes, 5 connectors and 4 switches.

Main components

12

README

README.md

PMD

A "Pseudo Medical Device" and more

Summary

An ESP32 microcontroller project with a printed cirucit designed by nagham.kheir25.
This repository contains files which started as a KiCad home work project but which has evolved to become so usefull that in the summer of 2024 orders were placed for real hardware from JLCPCB for delivery in USA and from PCBWay for delivery in Lebanon.
Begun as Homework 2, by late 2024 we began refering to it as a "Pseudo Medical Device" akd PMD.
At times the PMD approximates the Krake hardware of the Public Invention project Krake. See: https://github.com/PubInv/krake

Status

As of 20240911 See the README.md with in the Firmware folder for descriptions of files there. As of 202709
Journal of assembly of PCBWay order in this issue: https://github.com/nk25719/KiCad-esp32-6leds-2switches-1pj-circuit/issues/33
Journal of assembly of JLCPCB order in this issue: https://github.com/nk25719/KiCad-esp32-6leds-2switches-1pj-circuit/issues/32

To finish the assemblies LEDs were soldered to the PCB Image of assembly with LEDs on the Public Inventino GPAD stand off spacers.
image

Another view of the LEDs.
image

PMD mounted to the workbench

View of the PMD on the workbench. Workbench designed by Oyindamola Adeniran

Several firmware "sketches" have been developed to assist in the verification of the assemblies including a marching 1 and marching 0 test.

During brain storming we have discussed how this assembly might be used as a "PMD" Pesudo Medical Device. A device to control a Krake and the Mocking Krake. (See Krake: https://github.com/PubInv/krake)

The KiCad File "HOMEWORK 2"

The "HOMEWORK 2" PCB is designed around the ESP32 Devkit V1. Documentation for the devkit V1 can be found here. https://embedded-systems-design.github.io/overview-of-the-esp32-devkit-doit-v1/

Valuable symbols and circuits have been acquired and deposited in this repository for the public use:

  • ESP32 symbol and footprint libraries.
  • A voltage regulation circuit.
  • Switches are linked to the input pins of the ESP32 with pull-up resistors.

PMD Design Summary

  • 4 switches connected to the input pins of the esp32
  • 6 leds are connected to the output pins of the Esp32
  • the voltage regulator supply the esp32 with a 5 V

Design Details

  • Esp32-6leds-2switches-1pj-circuit > Kicanvas live view of current schematic and PCB is found at:

schematic Link & PCB Link

  • Esp32-6leds-2switches-1pj-circuit > KiCad PCB Layers View:

image

3D view of the PCB

Screenshot 2024-07-07 074220

All Layers View

PMD ESP32 Pin Mapping

GPIO numberFunction as usedESP32_DEVKITV1 pin numberTarget device
0BOOTBOOTNA
2LED_BUILTIN / OUTPUT27D4-ONOFF
34INPUT ONLY12S3-muteFiveMin1
35INPUT ONLY11S4-SendEmergMessage1
39INPUT ONLY13S2-RepeatCalculation1
36INPUT ONLY14S1-morseCodeDanger1
23OUTPUT1D9-MUTE1
15OUTPUT28D5-coldFood1
4OUTPUT26D3-babyCrying1
5OUTPUT23D8-highBP1
18OUTPUT22D7-SheildFailure1
19OUTPUT21D6-lostSock1
21SDA19SDA LCD
22SCL17SCL LCD
17TX224RX DFPLAYER
16RX225TX DFPLAYER

Facts

  • I understand the function of a decoupling resistor.
  • I comprehend the rationale behind including a voltage regulator circuit.
  • ESP32 input pins require a pull-up resistor.
  • It's necessary to include a power flag next to your GND and Vin connections in the KiCad schematic.
  • The ESP32 antenna should be positioned at the edge of the PCB.
  • The anular ring between the inner and outer diameters of the through holes in the ESP32 footprint is 0.7 mm.
  • the pins of the Esp32 are numberred counter clockwise
  • Fun Fact, LED_BUILTIN Not Defined for ESP32 Dev Module but is defined for ESP32S2 Dev Module

Do Not Tell

  • I've made errors.
  • Engineers and spelling are not bestfriends.
  • I was about to distroy the universe but my ESP32 was not strong enough.

Did You Know?

In propositional logic and Boolean algebra, De Morgan's laws, AKA De Morgan's theorem,
are a pair of transformation rules that are both valid rules of inference.
The rules allow the expression of conjunctions and disjunctions purely in terms of each other via negation. Named after Augustus De Morgan, a 19th-century British mathematician.

Credits

I would like to express my gratitude to the developers and maintainers of several platforms. Firstly, GitHub, for its project management features, issues tracking, and project board, which have consistently proven useful during our usage. Additionally, I extend my thanks to KiCAD for providing the tools necessary for schematic capture and PCB design. I also appreciate the inventors and developers of the Arduino ecosystem, whose tools and hardware have had a profoundly positive impact on many individuals.

Furthermore, I am grateful for the Public Invention platform, which has facilitated communication and collaboration. Special recognition goes to my exceptional mentors and colleague Oyindamola Adeniran, Mr. Forrest Lee Ereckson and Mr. Robert Reed. Their guidance has been invaluable in navigating these projects, fostering skill development, and providing ongoing support. Their mentorship has empowered me to apply my knowledge to projects that benefit public invention.

License

  • Firmware: Affero GPL 3.0
  • CERN Open Hardware Licence Version 2 - Strongly Reciprocal

Parts

60
QtyValueFootprintReferences
8LED_T1.75_CLEAR_REDGeneralPurposeAlarmDevicePCB:LED_5mm_RadialD1, D3-babyCrying1, D4-ONOFF1, D5-coldFood1, D6-lostSock1, D7-SheildFailure1, D8-highBP1, D9-MUTE1
762Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR8, R9, R10, R11, R12, R13, R14
5TestPointTestPoint:TestPoint_Loop_D2.54mm_Drill1.5mm_BeadedTP1, TP2, TP3, TP4, TP5
4100nFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC1, C5, C6, C8
410kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR3, R4, R5, R6
447uF 16VCapacitor_SMD:CP_Elec_5x5.4C3, C4, C7, C9
4MountingHole_Pad_3.5mmGeneralPurposeAlarmDevicePCB:MountingHole_3.5mm_Pad_ViaH1, H2, H3, H4
4SWITCH_TACTILE_SPST-NO_0.05A_24VButton_Switch_THT:SW_PUSH_6mm_H9.5mmS1-morseCodeDanger1, S2-RepeatCalculation1, S3-muteFiveMin1, S4-SendEmergMessage1
2clipboard:4d4f84bf-47b5-4440-bb6d-76d1ab99c339,
2clipboard:70bdaf9e-728c-4c59-bf8e-af8f097ba873,
2clipboard:061db143-2db6-424e-a8f9-62dfbcc2d95b,
21Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR1, R7
2Conn_01x04Connector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_VerticalJ4_LCD1, J5_DFPLAYER1
2Conn_01x15_SocketConnector_PinSocket_2.54mm:PinSocket_1x15_P2.54mm_VerticalJ2, J3
2LOGOPubInv_KiCad_PCB:Logo_PI_BandW_70percent_10x10G***, G***
1150Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR2
139pFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC2
1Barrel_Jack_Switch_SMTGeneralPurposeAlarmDevicePCB:BarrelJack_CLIFF_FC681465S_SMT_HorizontalJ1
1D_SchottkyDiode_SMD:D_SMBD2
1LM7805_TO220Package_TO_SOT_THT:TO-220-3_VerticalU1
1Polyfuse_SmallFuse:Fuse_0603_1608MetricF1

Similar boards

  • 2 layers137.2 × 83.8 mmPWA REV2, the printed circuit board in 3D

    PWA REV2

    PubInv/krake

    The Krake™ is a Wi-Fi–enabled server using an MQTT broker, which means it can be controlled remotely by other devices ("clients") via the internet.

    215 parts9AGPL-3.0
  • 2 layers137.2 × 83.8 mmGeneralPurposeAlarmDevicePCB, the printed circuit board in 3D

    GeneralPurposeAlarmDevicePCB

    PubInv/general-purpose-alarm-device

    A general purpose alarm device (with software) as a module for medical devices (and others)

    140 parts7AGPL-3.0
  • 2 layers205 × 190 mmControl 1v2, the printed circuit board in 3D

    Control 1v2

    PubInv/high-amp-controller-board

    A PCB assembly for controlling up to 60 amps of power for electolysis of electroplating

    350 partsAGPL-3.0
  • 2 layers140 × 190 mmControl v1, the printed circuit board in 3D

    Control v1

    PubInv/Ox

    An oxygen concentrator for low-resource communities.

    212 parts14AGPL-3.0
  • 2 layers70 × 70 mmWater Cutoff, the printed circuit board in 3D

    Water Cutoff

    cyberknet/water-sensor-cutoff

    Water sensor and cutoff for HomeAssistant using an ESP32 DevKitC board

    38 parts
  • 2 layers108 × 65 mmPcb moonratII, the printed circuit board in 3D

    Pcb moonratII

    PubInv/moonrat

    Moonrat: A second-generation portable incubator

    37 parts5AGPL-3.0
  • 4 layers102 × 96 mmAstraControl, the printed circuit board in 3D

    AstraControl

    LiveLeds/AstraControl

    291 parts2
  • 4 layers102 × 65 mmAstraDriver, the printed circuit board in 3D

    AstraDriver

    LiveLeds/AstraDriver

    LiveAstra Driver PCB

    118 parts2

Questions

How big is the HomeWork2 PCB?

It measures 113.1 × 52.7 mm and has 2 copper layers, 1.6 mm thick.

What parts does the HomeWork2 use?

60 parts, built around the LM7805CTG, LTW-2R3D7, RMC06033301%N and RH-5000. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the HomeWork2 KiCad files?

From the PubInv/PMD_-pseudo-medical-device-aka-Homework2- repository on GitHub, at the commit this page was made from: the board is homeWork2/homeWork2.kicad_pcb and its schematic Kicad_Libs/PubInv_Symbols&Footprints/PubInv_Symbols&Footprints.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the HomeWork2 design in my own project?

Its repository states no licence, so its author keeps all rights: ask PubInv before reusing the design.