/r/electronics
Discussion and news about component-level electronic circuits.
A subreddit dedicated to news, articles and general discussions related to the field of electronic engineering.
Be civil: Do not insult fellow Redditors. Do not yell. As this is a professional sub, act and speak professionally.
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.
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]
Add a flair your submission.
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
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.
Electronic engineering-related posts that don't fall into any other category.
An electronic engineering-related news article or announcement.
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.
A useful or insightful technical note on component selection, circuit design or testing etc. - something beyond 'stick decoupling caps everywhere'!
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*
/r/electronics
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?
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").
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
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.
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").
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").
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.
Nothing to see here
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").
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
Hardware
3D Printed Parts (from Rem-RC's Thingiverse)
Tools
#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