/r/electronics

Photograph via snooOG

Discussion and news about component-level electronic circuits.


A subreddit dedicated to news, articles and general discussions related to the field of electronic engineering.

CLICK HERE FOR CHAT ROOM

Rules

  1. Be civil: Do not insult fellow Redditors. Do not yell. As this is a professional sub, act and speak professionally.

  2. The focal point of a submission must be component-level electronic engineering, design, news, and circuits (with at least one active element: a semiconductor or a vacuum tube/valve). See below for off-topic subjects.

  3. No commercial or promotional posts: advertising, endorsing or praising a company, fundraising and crowdfunding, giveaways, sponsored products and services, selling, offers, product announcements and information, blogs, videos, pictures of / links to commercial boards. Applicable even if free or if submitter does not benefit monetarily. This sub abides strictly to Reddit's Rules of Self-promotion. [Post offers related to electronic engineering in /r/ElectronicsList]

  4. Add a flair your submission.

  • 'Project' must link to full (non-commercial) build instructions. Otherwise, use 'Gallery'.
  • 'Tip" is for tricks and suggestions useful to the electronics designer

Off topic

  • 2a) Ready-made electronic assemblies (e.g., a Single-Board-Computer - Arduino. PI -, a relay module, a computer mouse); projects that are based entirely on such ready-made electronics assemblies (e.g., a green-house watering system that uses an Arduino and no other electronic components)
  • 2b) Plain electrical components and circuits (no active components), such as transformers, relays, resistors, light bulbs, cables, batteries, connectors, sensors)
  • 2c) Consumer products (marketed as "electronics") or self-made products, even if historically significant. Do not post an enclosed assembly just because it contains 'electronics' internally
  • 2d) Questions [Ask questions about electronic circuits and components in /r/AskElectronics]
  • 2e) Memes (pictures w/text), low effort ("shit-posts"), as decided by the mods. [If about electronic circuits and components, post in /r/ElectronicsHumor]
  • 2f) Labs and test equipment [If electronics, post them here on a Wednesday. No submissions that may be considered to be focusing on equipment brands rather than technical merit. One submission a week max.]

---- Click HERE for our Wiki ----

Tags / Flairs

Please categorize your post by clicking the "add tag" (flair) button after submitting it.

Click a tag name below to view just the posts in that category

CLICK HERE TO RESET TAG FILTER

Gallery

General pictures or videos related to component-level electronic engineering (See posting Rule #1).

Videos with commercial content or sponsorship/patronage requests are likely to be removed; repeat offenders may be banned from the sub. If in doubt, contact the mods before posting.

General

Electronic engineering-related posts that don't fall into any other category.

News

An electronic engineering-related news article or announcement.

Project

Show us your (or someone else's) electronic circuit design and/or final build.

If you are just posting pictures or videos with no further write-up, please use the 'Gallery' tag.

Videos with commercial content or sponsorship/patronage requests are likely to be removed; repeat offenders may be banned from the sub. If in doubt, contact the mods before posting.

To qualify as a project, the details available should allow someone else to make a copy.

NB: This is for original work - pictures of stock kit builds will be deleted.

Tip

A useful or insightful technical note on component selection, circuit design or testing etc. - something beyond 'stick decoupling caps everywhere'!


Related subreddits

Electronic circuit design and repair questions go in /r/AskElectronics

View and contribute to our wiki page for beginners

Banner from original picture by Sergej Klammer (/u/zappadoing). Used with permission. Licence: CC-BY-SA*

(please edit!)

/r/electronics

1,037,076 Subscribers

432

2 second mistake, 30 minute botch 😖

Mirrored a symbol in the schematic for better readability, got a phonecall, forgot to mirror the signals too when I continued. Did this botch so I can continue writing the firmware whilst waiting for the fixed board to arrive. So, how is your "Revision A" going?

43 Comments
2024/04/20
16:42 UTC

3

Weekly discussion, complaint, and rant thread

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

2 Comments
2024/04/20
15:00 UTC

238

An RGB Microscope Ringlight

28 Comments
2024/04/17
10:08 UTC

96

Thank you for the comments on my first circuit! Got a little carried away today. Astable, monostable and bistable circuits with a switch and some gates!

Next I want to look into making some registers, and maybe solder some cable with pins to act as a bus. Also want to buy smaller resistors, they are HUGE

13 Comments
2024/04/17
09:11 UTC

57

My beginner workbench

11 Comments
2024/04/17
09:01 UTC

26

Silicon graffiti: short video of doodles in ICs.

5 Comments
2024/04/16
12:46 UTC

526

Just made my first ever circuit, I’m so excited! I’ve been watching Ben Eater.

47 Comments
2024/04/16
08:24 UTC

259

Color sensor/detector without microcontroller up-to 7 colors

This circuit can detect 7 different colors (red, green, blue, yellow, cyan, magenta, white) without any kind of microcontroller just with ldr and rgb led and bunch of ics like 555 timer that provides a clock pulse for 4017 ic so it can light up the rgb led with each pin separated from the other and shift register to save the data from the op amp which is connected to the ldr and bunch of diodes as rom memory and 7 segment display to show the first letter of the color.

34 Comments
2024/04/15
17:53 UTC

7

Weekly discussion, complaint, and rant thread

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

4 Comments
2024/04/13
15:00 UTC

287

Finally vot my hand on the open circuits book

41 Comments
2024/04/08
08:24 UTC

247

Some idiot (me) forgot to update copper fills after adding these plated mounting holes, shorting 12V to GND. Dremel to the rescue!

24 Comments
2024/04/07
07:46 UTC

7

Weekly discussion, complaint, and rant thread

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

5 Comments
2024/04/06
15:00 UTC

405

Current state of the lab

52 Comments
2024/04/03
20:11 UTC

21

100 LED chaser

I like building useless gadgets and this was my latest. It uses a 555 and 2 X 4017's. I originally found a circuit on the internet, and modified it so it would actually work. (Something found on the internet is totally wrong? -Never!) It now hangs on my workshop wall, constantly powered by a solar panel/battery. I ordered 100 blue LED's and got sent 95, that's why theres 5 odd ones.

https://preview.redd.it/kkvpic0d41sc1.jpg?width=4128&format=pjpg&auto=webp&s=cdc9e620000fdf71ca2acca01cd69bb2fff59f3e

https://preview.redd.it/wmjtsc0d41sc1.jpg?width=4128&format=pjpg&auto=webp&s=c3571f8339813dc150bd3eb35c866310c6062632

10 Comments
2024/04/02
08:47 UTC

107

Its fine, It's fine

Nothing to see here

42 Comments
2024/03/31
17:41 UTC

9

Weekly discussion, complaint, and rant thread

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

5 Comments
2024/03/30
15:00 UTC

23

I built Rem-RC's self balancing cube robot. I found it somewhat hard to follow, so this is my supplemental guide to try to help other novices like myself.

The following guide is how I managed to build my cube. I am a novice in many of the aspects of this project so this was a really fun challenge. As a novice I thought it would be good to put together a "from scratch" approach for this guide as not everyone has all the tools and parts available on hand. I hate being nearly finished and then discovering I don't have everything I need, it really kills my momentum.

All credit for the project and MANY THANKS to Rem-RC (Youtube / Github / Thingiverse).

#0 - Parts / Hardware / Tools List / etc

I noticed that there were parts mentioned, but there was no all encompassing list for everything needed in order to assemble a working cube.

Parts

  • ESP32-WROOM-32 - Microcontroller (30 pin version)
  • MPU6050 - Accelerometer/Gyro
  • 11.1V 3S1P LiPo Battery ~500mAh (I could only find 450 or 550 mAh batteries. Also note the type of connector and buy a compatible connector that you can terminate to the breadboard)
  • 5cm x 7cm Solderable Breadboard
  • (3x) Nidec 24h Brushless servo motors (Ebay)
  • PCB Mount Screw Terminal Block Connector
  • 2N2222 transistor
  • 5v Active Buzzer
  • 0.1µF ceramic capacitor (sometimes called 100nF or 104 capacitor)
  • 35V 100µF electrolytic capacitor (I could only find 50V, higher voltage rating will still work fine, just don’t go lower)
  • 7805 Voltage regulator
  • 6.8k Ω resistor
  • 33k Ω resistor
  • 10k Ω resistor

Hardware

  • Solder, Solder wick, flux, etc
  • 22awg solid wire
  • 6awg solid wire (for the battery connector, you might be able to use smaller gauge wire)
  • Breadboard header pins (break apart type is good)
  • Breadboard female header pin sockets (I got a pack of 15 pin header sockets and cut them apart as needed)
  • (~40x) M3 x 10mm screws
  • (~10x) M3 x 12mm screws
  • (~50x) M3 hex nuts
  • (~60x) M4 x 8mm screws
  • (~120x) M4 nuts (You want to make each reaction wheel’s mass around 70 grams, after 3d printing the wheels they came out to ~20g each, so I needed 50g of M4 hardware)

3D Printed Parts (from Rem-RC's Thingiverse)

  • (3x) reaction_wheel_cube_1 (these are the bottom sides of the cube)
  • (3x) reaction_wheel_cube_2 (these are the top sides of the cube)
  • (3x) reaction_wheel_cube_3 (these are the reaction wheels)
  • (3x) reaction_wheel_cube_4 (these are the motor mounts)
  • (1x) reaction_wheel_cube_5 (this is the triangular mount between the top sides)
  • (3x) reaction_wheel_cube_6 (these are the mounting brackets between the cube sides and the triangular mount)
  • (2x) reaction_wheel_cube_7 (these are the battery holder sides)
  • (1x) reaction_wheel_cube_8 (this is the battery holder backstop)
  • (1x) reaction_wheel_cube_9 (this is the breadboard mount)

Tools

  • Digital Multimeter (You need to check your battery voltage, and it helps with checking circuit continuity)
  • 3D Printer (or a friend that’s willing to print stuff for you)
  • Soldering Iron, Wire Strippers, screwdrivers, etc
  • LiPo Battery Charger (I recommend a balance charger like the SkyRC iMAX B6AC, it was recommended by the FPV drone and RC Planes communities)

#1 - Schematic

I saw that there were two different schematics, one for an “Arduino nano” and one for an “ESP32”, but they have essentially the same components with the exception of the buzzer circuit. The ESP32 schematic shows a P-type transistor with the Emitter, Collector, and Base in a different orientation to the N-type transistor on the Arduino nano schematic. I ended up using an N-type transistor “2n2222” on the ESP32 and had to switch the orientation to match.

I also got really easily confused as I am not great at mapping a schematic to a solderable breadboard. So I have re-drawn the schematic to “color code” it a little bit. Many components share a ground and many others share a 5V output of the 7805 voltage regulator. I won’t show you a picture of my board, because it is hideous and I won’t inflict that upon you, but I will show you a rough drawing of how my board is wired.

#2 - Circuit Assembly and Testing

I started by building everything on a regular breadboard, it made checking everything a lot easier than trying to solder and un-solder every incorrect component. First up was checking the voltage into and out of the 7805 to confirm it was 11.1V in and ~5V. I then made sure the MPU6050 was outputting appropriately (I fried at least one board because I accidentally gave it 11V straight off the LiPo battery, oopsies). The 7805 can get HOT if you’ve mis-wired anything, so don't burn yourself. I moved on to test that each motor worked with the “motors_test” file. This file basically makes Motor 1 spin clockwise, then counter-clockwise, then Motor 2, and then Motor 3.

#3 - 3D Printing and Initial Assembly

All of my parts were printed in PLA with .2mm layer height and 50% infill. Everything is pretty forgiving in terms of fit and tolerances. If you print the reaction wheels with more walls or higher infill, you may end up with more mass, and therefore need fewer screws and/or nuts. Make sure all of your screws have good clearance with each other when they rotate. I followed the assembly video on Rem-RC's youtube channel, and that should get you going. This video is what made me want to start the project in the first place.

#4 - Code and Calibration

I haven’t done many Arduino or microcontroller programming projects, so I had to start from basically scratch. Download the Arduino IDE, the USB driver for the ESP32, and plug in the ESP32. You will need to download the ESP32 plugin to be able to connect to it. Once done select ESP32 Dev Kit and the COM port that it shows up on (I found mine on COM 5).

I found that the existing code inside the functions.ino section didn’t work with what my MPU6050 was outputting during the calibration process. Basically the code is expecting the MPU6050 to balance between two values for each balance point.

With the USB cable disconnected and the battery connected, connect to it with a serial bluetooth terminal (I just found one on the google play store). Follow the process of calibration in the assembly video, essentially it is outputting the different X/Y values to the terminal which you will then need to add to your code. These are my values which will not be the same as yours, but you can use it as an example of what to look for in your own troubleshooting and calibration process.

Edge 1

Measured values: X= -33.71, Y= -1.57

Expected values range: -45 < X < -25, -30 < Y < -10

Corrected values range: -45 < X < -25, -30 < Y < -1

(My value was outside the expected range)

Edge 2

Measured values: X= 30.06, Y=-1.35

Expected values range: 20 < X < 40 , -30 < Y < -10

Corrected values range: 20 < X < 40 , -30 < Y < -1

(My value was outside the expected range)

Edge 3

Measured values: X= -3.33, Y= 49.98

Expected values range: |X|< 15 , 30 < Y < 50

Corrected values range: |X|< 15 , Y < 50

(My value was fine)

Vertex

Measured values: X= -2.54, Y= 17.04

Expected values range: |X| < 10 , |Y|< 10

Corrected values range: |X| < 10 , |Y|< 20

(My value was outside the expected range)

Once all of the balance points have been calibrated and it is held close to one of the balance point it will beep once and begin spinning the appropriate motor(s).

#5 - Other

Make sure your micro USB cable is good, no really, double check it. I tried to troubleshoot my ESP32 board for like 2 days straight before figuring out that BOTH of my micro USB cables were bad. They could pass power and turn on the LED, but no data.

Links:

remrc's github - https://github.com/remrc/Self-Balancing-Cube

3D Print Files - https://www.thingiverse.com/thing:5380306/files

Rem-RC's youtube assembly guide video - https://www.youtube.com/watch?v=AJQZFHJzwt4

Rem-RC's youtube tips video - https://www.youtube.com/watch?v=Nkm9PoihZOI

Arduino IDE - https://www.arduino.cc/en/software

ESP32 USB to UART Bridge (drivers) - https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers

2 Comments
2024/03/29
15:45 UTC

118

Inherited them from an old man in the nigmorehood who has past away ( former German WW2 Radio Operator )

19 Comments
2024/03/29
14:48 UTC

410

The insides of the first transistor radio: 1955's Sony TR-55.

70 Comments
2024/03/29
14:03 UTC

227

First European transistors created

16 Comments
2024/03/28
20:46 UTC

Back To Top