Reddit:Electronics

Subscribe to Reddit:Electronics потік
Discussion and news about component-level electronic circuits.Electronic circuits at the component-level
Оновлене: 2 години 52 хв тому

Just started the ICL7135-based multimeter

Чтв, 03/12/2026 - 23:03
Just started the ICL7135-based multimeter

Yes, I will try to build a precise voltage/current measurment equipment from scratch just for fun. Wish me luck.

One step at a time: - 5-digit multiplexed display with the К176ИД2 driver - MC34063 negative rail DC-DC converter - 555 timer 120kHz click source - REF3333 precise voltage reference

submitted by /u/nerovny
[link] [comments]

I built a text-to-schematic CLI tool

Чтв, 03/12/2026 - 19:09
I built a text-to-schematic CLI tool

There are a lot of "AI generates hardware" claims floating around, and most of them produce garbage. I've been working on a tool called boardsmith that I think does something actually useful, and I want to show what it really outputs rather than making abstract claims.

Here's what happens when you run boardsmith build -p "ESP32 with BME280 temperature sensor, SSD1306 OLED, and DRV8833 motor driver" --no-llm:

You get a KiCad 8 schematic with actual nets wired between component pins. The I2C bus has computed pull-up resistors (value based on bus capacitance with all connected devices factored in). Each IC has decoupling caps with values per the datasheet recommendations. The power section has a voltage regulator sized for the total current budget. I2C addresses are assigned to avoid conflicts. The schematic passes KiCad's ERC clean.

You also get a BOM with JLCPCB part numbers (191 LCSC mappings), Gerber files ready for fab upload, and firmware that compiles for the target MCU.

The ERCAgent automatically repairs ERC violations after generation. boardsmith modify lets you patch existing schematics ("add battery management") without rebuilding. And boardsmith verify runs 6 semantic verification tools against the design intent (connectivity, bootability, power, components, BOM, PCB).

The tool has a --no-llm mode that's fully deterministic — no AI, no API key, no network. The synthesis pipeline has 9 stages and 11 constraint checks. It's computing the design, not asking a language model to guess at it.

Where it falls short: 212 components in the knowledge base (covers common embedded parts, but you'll hit limits). No high-speed digital design — no impedance matching, no differential pairs. No analog circuits — no op-amp topologies, no filter design. Auto-placed PCB layout is a starting point, not a finished board. It's fundamentally a tool for the "boring" part of embedded design — the standard sensor-to-MCU wiring that experienced engineers can do in their sleep but still takes 30 minutes.

Open source (AGPL-3.0), built by a small team at ForestHub.ai. I'd love feedback from people who actually design circuits — is this solving a real annoyance, or am I in a bubble?

submitted by /u/ForestHubAI
[link] [comments]

CCTV Controller - Running on a RP2040 Microcontroller using circuit python KMK firmware for switching between camera feeds

Чтв, 03/12/2026 - 15:26
CCTV Controller - Running on a RP2040 Microcontroller using circuit python KMK firmware for switching between camera feeds

I posted this a bit ago for the keyboard diode matrix I made. Please ignore the shoddy soldering on the prototype board lol.

But this project has been my first dive into microcontrollers, and after watching some videos on how easy circuit python KMK firmware ( https://github.com/KMKfw/kmk\_firmware ) was to install and configure I just knew I had to do it. In essence this thing is just a clunky big macro board that I made as a proof of concept before I make a nicer one.

The software it's intended to be used with is a bit of python that I used gemini / chatgpt to make ( https://github.com/IvoryToothpaste/rtsp-viewer ) that maps all the camera feeds to a specific hotkey via the config file.

This thing was a lot of fun to make, and I'm excited to post the final version of everything :)

submitted by /u/IvoryToothpaste
[link] [comments]

Dual SCR dimmer circuit

Срд, 03/11/2026 - 00:02
Dual SCR dimmer circuit

Finally got my phase control circuit off the breadboard and soldered together. Adjusting the potentiometer changes where in the ac waveform the scr fires, thereby allowing for more or less average power delivered to the load. It is the same idea as a triac based lamp dimmer circuit, but using back to back scrs allows for higher power handling capability, and is more suited for inductive loads. This one will be used to adjust the speed of an angle grinder for use as an asynchronous rotary spark gap for my Tesla coil.

submitted by /u/teslatinkering
[link] [comments]

New toy adr1001 devboard

Втр, 03/10/2026 - 23:42
New toy adr1001 devboard

I'm playing with it for now. I'll see what the measurements show and what the difference is between a wall adapter and a linear power supply.

But a quick measurement showed it was pretty good.

Plc 20 Max = 5.0008206V Min = 5.0008197V Std = 0.2 ppmV

Also I need to make a box for it.

submitted by /u/romdu3
[link] [comments]

Inside of an CO/smoke detector.

Втр, 03/10/2026 - 19:34

My CO alarm recently expired so I have opened it, curious about the insides. To my surprise, it looked like the CO sensor was missing! Thanks to this blog I found the sensor and learned a lot more. In the age of AI slop, I truly appreciate websites like that and though I will share this find.

submitted by /u/sameoldfred
[link] [comments]

Logitech wireless mouse sensor

Втр, 03/10/2026 - 19:12
Logitech wireless mouse sensor

These photos were taken under a microscope, the mouse was gaming and I found the shape of the sensor interesting since it was mounted on a flexible board and had a lens on it.

submitted by /u/aguilavoladora36
[link] [comments]

FYI you can use AI to identify components. Take a picture of the component and upload it to an AI

Втр, 03/10/2026 - 06:34
FYI you can use AI to identify components. Take a picture of the component and upload it to an AI

Make sure the package markings are clear in your picture. I used grok. It will even find parts if it doesn't have the part number on the part, just a marking code.

submitted by /u/The_Didlyest
[link] [comments]

I'm a first year high school electrical student and I designed a 4-to-10 weighted sum decoder from scratch using discrete NPN transistors. Here's how it works.

Втр, 03/10/2026 - 01:05
I'm a first year high school electrical student and I designed a 4-to-10 weighted sum decoder from scratch using discrete NPN transistors. Here's how it works.

I started this a few months ago. No university, no engineering background, just a goal: 4 input switches, 10 LEDs, light up N LEDs when the inputs sum to N. I figured out the logic, built it in simulation, got told I was wrong by experienced people, proved them right, and then discovered what I built has a name in a field I'd never heard of.

---

**The Core Idea: Non-Binary Weighting**

Most 4-bit decoders assign binary weights: 1, 2, 4, 8. I didn't do that. I assigned decimal additive weights:

- SW-A = 1

- SW-B = 2

- SW-C = 3

- SW-D = 4

Maximum sum = exactly 10. Every integer from 0 to 10 is reachable. The 16 physical switch combinations collapse into 11 unique output states. Five of those states are reachable by two different switch combinations (e.g. A+D = 5 and B+C = 5). The circuit correctly treats these as identical — it decodes *value*, not *pattern*.

---

**Logic: Series NPN AND Gates**

Each output channel is a chain of NPN transistors in series. All transistors in the chain must be ON for collector current to flow — logical AND. Chain depth varies per output:

- 1 NPN: single input conditions

- 2 NPNs in series: two-input conditions

- 3 NPNs in series: three-input conditions

- 4 NPNs in series: sum = 10 only

The Vbe stacking problem is real — 4 transistors in series drops ~2.8V. I solved it by using a 9V supply and adding a booster NPN after each AND gate to restore a clean full-swing signal before hitting the LED stage.

---

**Output Stage**

Each booster drives an LED via a 330 ohm resistor to VCC:

R = (9V - 2V) / 20mA = 350 ohms → 330 ohm standard value, ~21mA per LED

This fully isolates logic voltage from LED forward voltage. Without this separation the LED acts as a voltage divider and corrupts the logic states — I learned that the hard way in the simulation.

---

**The Part That Surprised Me**

After I finished, someone pointed out that this circuit structure is identical to a single hardware neuron:

- Weighted inputs → synaptic weights

- Arithmetic sum → dendritic summation

- AND gate threshold → activation function

- Thermometer output → step activation

I had never heard of neuromorphic computing when I designed this. I just landed there by solving the problem from first principles. Apparently there's a billion dollars of research built on the same idea.

---

**Simulation Results (all confirmed working):**

- A → 1 LED ✓

- B → 2 LEDs ✓

- C → 3 LEDs ✓

- A+B → 3 LEDs ✓

- A+D → 5 LEDs ✓

- B+C → 5 LEDs ✓

- B+D → 6 LEDs ✓

- A+B+C+D → 10 LEDs ✓

---
**Detailed document**
https://docs.google.com/document/d/18wD1k79H8T8Y3WScr6QKEXsPy5rKq8as/edit?usp=drive_link&ouid=102019556573904444870&rtpof=true&sd=true
---

Happy to share full schematics and simulation screenshots. Thanks for reading.

submitted by /u/IntelligentAd4871
[link] [comments]

Building I2C-PPS. Part 5 - BOM

Ндл, 03/08/2026 - 11:13
Building I2C-PPS. Part 5 - BOM

This is the next update on the programmable power supply project (you can find previous posts and more details in its umbrella repository condevtion/i2c-pps, while schematics itself is in condevtion/i2c-pps-hw).

During the past week I managed to select exact market available components for the device and create detailed BOM. I need parts for 3 copies of the power supply - two sets to actually build devices and one on standby just in case. Honestly, I expected the BOM to be 3 times cheaper (or at least 2) but costs for hundred components quickly add up. In the first picture above (left chart) you can see average unit price of a part per its type with quite expected the BQ25758S controller being the most expensive thing. However, as the right chart shows total amount of capacitors easily gives them the lead in final cost, which is $108.88 (or $36.29 per set). For just one set the total is $48.99 making it almost buy two get one for free.

The next picture shows quantities of parts per device and totals for 3 devices with additional components (marked green) per part type (total here is 393 for all 3 sets). The latest allows to reduce cost even further due to substantially lower prices on bigger quantities.

Now, knowing exact parts and their footprints I can start designing PCB itself.

submitted by /u/WeekSpender
[link] [comments]

Weekly discussion, complaint, and rant thread

Сбт, 03/07/2026 - 18:00

Open to anything, including discussions, complaints, and rants.

Sub rules do not apply, so don't bother reporting incivility, off-topic, or spam.

Reddit-wide rules do apply.

To see the newest posts, sort the comments by "new" (instead of "best" or "top").

submitted by /u/AutoModerator
[link] [comments]

My first two PCBs created while I try to teach myself electronics!

Сбт, 03/07/2026 - 08:41
My first two PCBs created while I try to teach myself electronics!

The first started as a way to test ADCs and parallel I/O, and I turned it into a toy oscilloscope using some software I wrote for my Raspberry Pi. I didn't really understand op-amp input bias current and so it doesn't really work properly with the probe in 10x mode. The offset is huge, but I now understand the mistake. I also used one more op-amp than I really needed, and could've gotten away with cheaper ones, but it works up to 50MS/s!

The second board is a buffered variable-gain amplifier test with voltage-variable gain and bias. I fell down a rabbit hole w/oscilloscopes and am working on making an improved 2-channel one with modern components, so I broke out some of the front end into a test board and just finished building it. It's a miracle the QFN op-amp works, I was sure I'd bridge something underneath it.

There's a subtle crucial mistake in the second design, all you need to know to spot it is that the second amp is an LMH6505. It somehow does partially function still!

submitted by /u/hapemask
[link] [comments]

I designed my own Morse code trainer

Птн, 03/06/2026 - 06:09
I designed my own Morse code trainer

Demo at https://www.youtube.com/watch?v=sKtSpykOBXY

This is the Morse code trainer I designed. It runs on an AVR128DA48 microcontroller with a 2.42 inch 128x64 OLED and a custom-designed capacitive touch sensor PCB straight key. It also includes an NRF24L01+ radio module to allow 2-way send and receive of Morse code between nearby devices. The whole thing is powered by a rechargeable 3.7V 800mAh LiPo battery. I also designed the enclosure and 3D print it out of PET-G filament.

Happy to answer any questions!

submitted by /u/neverlogout891231902
[link] [comments]

My home lab as a 13.7 year old

Чтв, 03/05/2026 - 23:14
My home lab as a 13.7 year old

Helloo

I have been building my setup for a year or two i participated in isef last year. as a Iraqis second year in isef i really like my setup. any suggestions

submitted by /u/Maximus_robotics
[link] [comments]

I finally finished my z80 project.

Срд, 03/04/2026 - 22:24
I finally finished my z80 project.

After about 3 months and a lot of dedication, I successfully completed my project.

It's almost exactly Grant's project, the only modification is that the SRAM has 8KB, a 32KB one will arrive soon and, since the wiring was already done with it in mind, the change will be easy.

submitted by /u/Actual-Ad-6935
[link] [comments]

Сторінки