Skip to content

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.)

Notifications You must be signed in to change notification settings

nk25719/PMD___aka-KiCad-esp32-6leds-2switches-1pj-circuit-

Repository files navigation

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: #33
Journal of assembly of JLCPCB order in this issue: #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 number Function as used ESP32_DEVKITV1 pin number Target device
0 BOOT BOOT NA
2 LED_BUILTIN / OUTPUT 27 D4-ONOFF
34 INPUT ONLY 12 S3-muteFiveMin1
35 INPUT ONLY 11 S4-SendEmergMessage1
39 INPUT ONLY 13 S2-RepeatCalculation1
36 INPUT ONLY 14 S1-morseCodeDanger1
23 OUTPUT 1 D9-MUTE1
15 OUTPUT 28 D5-coldFood1
4 OUTPUT 26 D3-babyCrying1
5 OUTPUT 23 D8-highBP1
18 OUTPUT 22 D7-SheildFailure1
19 OUTPUT 21 D6-lostSock1
21 SDA 19 SDA LCD
22 SCL 17 SCL LCD
17 TX2 24 RX DFPLAYER
16 RX2 25 TX 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

About

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.)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published