Ask Electronics
- Building DIY a smart doorbell but would appreciate some help with the power and wiring
Hello, and thank you in advance.
I'm making a privacy friendly "ring" cam/doorbell following this guide: https://tristam.ie/2023/758/ which has been great, but requires running a micro-usb cable down to the doorbell for power. I'm hoping to improve on this by using the existing doorbell power instead.
The problem is that I'm a DIY electronics noob and I can't create a mental model for how it should all work. The picture I attached is my existing doorbell wiring scheme, which is as simple as it comes. I totally get how this works. Pressing the doorbell completes the circuit and makes the bingbongs. But this will have to change so the new door cam gets power full time. Ideally without the chime bingbonging full time.
In addition to the ESP-32CAM, button, ring lights, etc., I also bought these: https://www.amazon.com/dp/B079FJSYGY which I thought might be needed to complete the circuit?
I measured the voltage after the transformer and it was around 18 volts, but maybe this is AC and I want DC?
Generally I don't know where in "the loop" to put things. Also, all the existing components are very far apart from each other, so I would love a solution that doesn't involve running any new wires through the walls.
Any help is appreciated. Thank you!!
xoJimbabwe
- Reverse emmc/microsd adapter
So I used something like these some years ago to recover data off a phone, but I was wondering if the reverse is possible in having a bga soldered adapter with a microsd slot on top. Or if PCBs can even be soldered together like that. I've never actually checked if bga chips have raised pads or something. The purpose would be for rapidly testing custom firmware for shitty old devices that were designed to be replaced without removing the emmc to flash it separately.
- What's this thing called?
This was a switch that got its wires pulled out. I learned how to desolder today in order to remove it from the little switch board and now there's three holes where this used to be. Does this component have a name, because I'm wondering whether I can just get a replacement one like this. There are lots of tools and supplies at the makerspace I used, but I need to know what I'd be looking for.
Alternatively, what else might I be able to use to do this? I suppose I could just trim and strip the wires and shove those through and solder, but that seems...crude? I don't know. I'd prefer something with pins because I practiced soldering and desoldering using some broken electronics I had, and I'm more confident with pins than something so freeform.
Thanks for your time.
- I'm looking for large, battery powered customizable Bluetooth buttons
I am looking for some sort of big programmable buttons. Not sure if something simple exists.
Basically, this is to enhance flow through clinic, looking for a relatively simple solution.
I just want some big battery-powered bluetooth buttons that I can give custom commands in tasker to text tell people to assist with tasks or bring me certain things. I'm not sure if something simple like this exists. (Thinking of like three or four different colored "easy" buttons).
I haven't found anything quite as specific as this, but it's been something nerdy I've been thinking about that would save me time.
- Designing an efficient LED array
LEDs will conduct more current when they get warmer and differences between individual LEDs mean you cannot easily put them in parallel. A constant current DC supply will be good enough for part of the LEDs but will overload some others. To normalize current a series resistor is used with each individual LED.
Now, those resistors waste a bit of power. Are they really necessary? If you put several LEDs in series the individual differences become negligible at some point and a constant current supply will suffice for several strips of series LEDs in parallel.
How many LEDs would this require? Another possibility would be to have the resistor in series with a strip of LEDs.
I got some LED strips off AliExpress that run on 12V and each individual LED has a resistor in series with it. I believe this to be quite wasteful and it would be better to have several LEDs in series with a current regulator instead. The LEDs will end up in an autonomous greenhouse where power efficiency is important.
- Suggestion for mounting ServoMotor on the door for Automatic Door Unlock with ESPHome on ESP32
Hello Lemmings, Hope you guys are doing well.
Objective: Open the door automatically through HomeAssistant
My Plan:
-
Use an ESP32 and flash ESPhome. Wire up Servo Motor (SG90) with ESP32. Tie a thread on between the Servo Motor Arm and the physical latch (physical latch that I can pull to unlock the door) such that when the servo motor turns from -100 to +100, the latch is being pulled to cause the door to be unlocked.
-
I am planning to power this using AA Cells + DC DC Boost convertor.
Issue:
- How do I mount the Servo Motor on the door?
- Is there any other (read better) way to achieve the same result?
- Would you recommend any power source other than AA Cells?
Image for reference:
The latch has a keychain-like loop where the thread is tied. To unlock the door manually, I pull the latch towards right (---->) . This action is planned to be automated by Servo Motor.
-
- Making a PCB, using solder mask as etch resist.
This is an idea that entered my mind. The traditional way is applying some etch resist like toner or dry film, etching away the copper and then adding solder mask before populating the board with components.
Can the solder mask be used as etch resist instead? It feels like skipping an unnecessary step in the process. Why isn´t this more common? This way you won´t need the step of removing etch resist only to replace it with a slightly different compound.
- Whats the Best Breadboard Starter Kit for beginners?
Ever since I've gotten into Retro Computing, I've been confronted about things like soldering, Circuits and Electrics in general... and it has made me want to try experimenting with my own ideas!
That does however mean that im still pretty inexperienced and thusly don't have anything to actually experiment with either.
So what kind of Breadboard Kit will give me the best and most things to start getting into this Hobby?
- PCB solder mask making using UV resin
It appears to me that UV resin, used for SLA printers should be quite convenient for making PCBs with a laser etcher. You can spread a thin layer of resin on the board and quickly expose it using a laser engraver. It should be most convenient for silkscreen layers that are otherwise difficult to apply.
I think the common method of applying UV mask and spreading it using a piece of plastic sheet is messy and I can never guess how much resin to apply. It's always too much or too little and it's always unevenly spread. And then the UV light exposure is another guessing game.
I have a 500mw 405nm laser module attached to my 3D printer and could easily 'print' some PCB layouts on a thin layer of SLA resin.
Does anyone have experience with this?
- Help creating a BoM for the Ring Accelerator?
Hello,
I'm creating a BoM for a youth group project. We're planning on building the Electromagnetic Ring Accelerator from Hyperspace Pirate. He's provided the 3d print files, but not the finer details on wire gauge, enamel wire gauge and ball size. I also want to confirm the photoresistor. Are there different photoresistors with with different sensitivities or ranges?
I've included the wip of the BoM.
- i have a problem with USB c charging 😅
Hey guys i cant find any usefull guide on how USB c charging works in depth. In particular i have bought a pair of Sony headphones which i would like to make wireless change so I also bought a crappy wireless coil meant to convert a phone into wireless charging. i opened the headphones, located the ground and 5v pin coming from the USB connected the circuit and surprise the charging led doesn't light ... The charging board is separated from the main board so I checked the flat cable that connects them, found the 5v and gnd ,spliced into it, and the led light lit as if it was charging. the next morning the led was of signaling the headphones are full, unfortunately after powering them on the battery status indicated was still 20% as the evening before ... Have I done anything wrong ? What about that phase when they negotiate the power output with a magic resistor ? What should I try next? Thanks in advance 👍🏻
- Autonomous LED Driver Dev PCB
Greetings again! Yesterday I posted the schematic for this circuit, and today I have routed it as a 2 layer PCB. The intent of this board is for it to be a playground to build autonomous LED animations with the LP5812 ICs from TI, which seem pretty neat.
I'm hoping to get feedback on this design and sanity checks to make sure I haven't missed something when routing this out. I couldn't figure out how to upload multiple photos, so I'll add some more views in the comments. Cheers!
If you're interested in the KiCad files or other related things, I've got it on GitHub.
- Who created MELFs and who hurt them?
Seriously, what sadist saw a flat PCB surface, flat pick and place machine heads, and said "lets create a round component"?
Joking aside I am genuinely curious what advantage the MELF design actually offers. I know they're a pain to get a machine to place properly, they have more solder flow issues than components with flat leads, and they seem like they would be harder to manufacture too. So why a round component? Anyone here have any insight on why they even exist?
- Autonomous LED Driver Dev Board Schematic
Greetings! I've been throwing this schematic together as I want to experiment with the TI LP5812 IC which is an i2c controlled autonomous matrix LED driver. I am a novice when it comes to electronics so I'm looking to see if I've missed anything in this demo board schematic.
The intended purpose of this circuit will be to provide a playground to experiment with different lighting patterns by allowing the user to interact with two of these LP5812 ICs over i2c as each can only drive 4 RGB leds each.
My main points of concern: Making sure that I haven't missed anything critical in the rather dense TI datasheet https://www.ti.com/lit/ds/symlink/lp5812.pdf?ts=1710689049125 as well as making sure that my schematic makes sense.
I chose not to include i2c pullups on this dev board as I felt that was best left for the host to configure, but I'm happy to learn. Thank you!
Here's a link to the KiCad project if you'd like to see more https://github.com/scytherswings/Starlight-LP5812-Dev-Board/tree/main
- Why is it dangerous to chain power dividers?
Besides putting too many devices on a single wall socket, that draw too much power, what is supposed to happen?
Like say I chain ten dividers and put a single vacuum cleaner at the end. Is that more dangerous than plugging it directly into the wall?
- Mission MS 200 Schematics / Repair pointers
I have a Mission MS 200 Subwoofer where the power supply has stopped working. I was quite happy with it, and would like to try to fix it, also I don't have the money for another. I have taken it apart and have narrowed the fault down to the PSU. I have visually inspected the solderings and components, and nothing obvious is wrong. I am not good enough to be able to reverse engineer the board, and was hoping there might be someone here with access to a schematic? Failing that, any pointers on where to maybe do some in-circuit measurements to narrow down which part(s) might be broken, would be very highly appreciated!
- DC Theory: negative voltage
I'm trying to understand what's happening in this circuit:
I------------------T1 (+333V) I I I R1(10K) (pos) I 1000V I------------gnd (0V) (neg) I I R2(10K) I I I IT2(-333V) I I I R3(10K) I I I-----------------IT3 (-666.7V)
I am learning basic DC theory from reading and sometimes I come across something I'd like to ask a question about, so:
-
In the above circuit, without the ground, the voltage across all components would begin at 10V and finish at 0V. By adding a ground, I'm basically saying "here is 0V" and everything gets redefined in reference to that point and I end up with a 10 volt circuit with +3.33 as it's highest voltage and -6.667 as it's lowest.
-
The electrons could care less, they still flow from the anode to the cathode of the battery under normal conditions, going from the highest potential to the lowest.
-
This example was only used to demonstrate voltage dividers. It revolved around worker protection present in aluminum processing. Each machine is in series and mobile grounds are used nearest the machine a worker is using. I assume that this allows the worker to have the least exposure to electrical shock as they are also at ground potential?
I actually think working though these questions has cleared everything up, but please, comment on anything I got wrong.
Also, sorry about the crappy drawing, the autowrap in this editor really made things tough to format
Thanks!
-
- Linux capable chip with really low power consumption?
I want to build a linux(yes i want linux specifically or a deritive of it) smartwatch as a prototype that lasts ~24 hours. Ive been looking for chips that are small and power effient enough but most of them cant run linux. If i have a 400mah battery that gives me a power budget of about 60mw... I know its possibly because there are wearos(basically android) watches that last 3-4 days. I dont know what kind of sorcery that is but that means it consumes about 15mw??? I really do feel like im miscalculating something but i checked multiple times. Do they hibernate linux/android and run it off of another chip. I also dont know how to excecute that properly and its kind of off topic of my question. So point is linux on a ~60mw budget in s smartwatch. I want to use a mip display as i really like the look and it uses little power but if ever want a heart rate sensor in it thats even more power consumpotion. Thanks in advance i guess if a saint answers this shitstorm of a question.
- What could be causing my phone (or charger) randomly heating up while charging?
It happens rarely, but I will notice either my phone or the charger getting pretty toasty randomly. What could be causing this?
- [Advice Request]: managing thermal pads for SMD components in custom PCB
cross-posted from: https://sh.itjust.works/post/13637559
> Hello everyone, I need some advice. > > I am making custom PCBs for a project of mine. It's basically for a little remotely controlled robot using little DC motors. I chose the Seeed Studio XIAO ESP32C3 as the uC since it has inbuilt wifi/bt, 3.3V regulator that I can use to power the motors (can source up to 700mA) and lipo charging management (the robots will run on battery). As you can see from here, the microcontroller is surface mounted and the pads for the battery are on the bottom layer. Same story goes for the thermal pad of the microcontroller and the thermal pad of the motor driver (datasheet). > I have worked with SMD components in the past and can solder them by hand, but I have never worked with SMD components that have thermal pads on the bottom layer. My question is: how to manage (route?) them? My PCB is 2-layer and I was planning on having both layers filled with a ground plane. Do I just connect thermal pads to the ground plane and call it a day? Wouldn't that make the components hard to solder with hot air? Do I make an isolated polygon that only acts as a thermal pad? > > > Speaking of soldering is even hot air the way to go in this case? My PCB has components on both sides, and I was planning on ordering stencils together with the boards and using solder paste, placing the components and then using hot air to solder the components in place. I thought a hot plate would be better but I don't have access to one and I don't know how that works with components on both sides. > > > I attached some photos of the PCB in Kicad, and here's the git repo. If it is of any help, I'm planning of having them manifactured by JLCPCB. > It is also my first time using KiCad, so go easy on me :) > > > Thanks! > > > [![][1]][1] > > [![][2]][2] > > [![][3]][3] > > > [1]: https://files.catbox.moe/ztw2pb.png > [2]: https://files.catbox.moe/hytn9j.png > [3]: https://files.catbox.moe/l9nqcb.png
- Do both sides of a transformer need to be fused?
I work on equipment that runs off 3 phase 208V but it uses uses a transformer to drop it down to 120V for most of the controls. On this equipment I noticed that there are two fuses on the lines exclusively feeding the 208V side of the transformer and a fuse directly off of the hot side on the 120V side of the transformer.
Isn't the fuse on the 120V side of the transformer redundant? From my understanding, if there is a current spike on the 120V side of the transformer then that will cause a current spike on the 208V side of the transformer and immediately blow those fuses anyways. Is this just a certification thing where that redundancy is required? I'm in the US but this equipment does also get shipped to various overseas locations. Also, while it isn't standard, this equipment is capable of passing a TUV inspection if a customer requests it so I'm not sure if the potentially redundant fuse is just a TUV requirement.
- Simultaneous joystick 3-axis protocol
Working on a joystick. Seems like any protocol I use to read from peripherals is going to be bottlenecked by having just one input. My microcontroller might have multiple ADCs, but there's just one processor stepping through them. Same for spi, or i2c, or uart. There's really only ever one sensor reporting back its data at a time.
I know this might not matter for measurement resolution. Especially if you're polling at like 115k serial or something, but...
That's 8 bits per axis, and three axis. Now that's at least 34 bits. To sample each axis we're down to only 4.5k samples per second. Plus whatever other cycles the controller has to handle... even if I spent half that time doing microcontrolle cycles at like 2k we're probably still well with the best star craft apms or whatever. I'd still like to find some way to really over engineer this thing.
I read a little about tdm, but that's out of my league and I don't know if you could even have 3 simultaneously signals that way
I'm thinking a microcontroller for each axis, and a usb port for each of them. So it appears like 3 different controllers to the computer. The user would just have to map the axis from the 3 controllers into 1 in their game software. I assume the steam remapping could do this.
Is it just going to get smashed back into one thread in the computer's usb hub anyway?
Any other suggestions?
- Any good beginner guides for identifying broken parts in a desktop computer ?
I've recently bought a used computer, and it has a few problems. I'm looking for a guide to help me identify which parts are causing the problem.
I've tried to watch and read a few guides on how to build a pc, but they haven't given me any information on how to identify broken parts.
I'm interesting in a guide, but I'll also post my specific problems, if any of you know how I might fix them \\
the problems I'm experiencing are the following:
the screen will sometimes glitch out with black areas when watching movies, but only when in fullscreen. The problem usually disappears for some time when exiting and re-entering fullscreen mode.
The computer won't run certain drivers and sometimes when powering off, the computer will use a long time closing certain applications, but will fail in the end and I have to power it off manually. Also, it will sometimes reset my settings. Back to factory wallpaper and factory everything. it remembers my users and my applications.
I've grouped them into two paragraphs, because I have an idea, that the graphical problem might be caused a bad GPU.
I have no idea, what's causing the stuff in the second paragraph 😅
also, I hope this is the right community for this question - I couldn't find any communities specifically for computers.
any help is welcomed \\
//EDIT:
Thanks for the help :))
I removed the gpu and now only use the integrated graphics in the cpu, and the visual glitches are gone :))
I've run some tests on the computer (from the boot screen), and it seems the memory is fine. The only driver I know to be a problem is the driver for my WiFi usb. I'll try to work on that, or maybe I'll buy a WiFi card and pray that works better \\
thanks for the help :))
//EDIT2:
All my problems are fixed now \\
the wallpaper change was because I am a doofus and forgot that I had made a new user on the computer, which of course had the default wallpaper 😅
the driver problem was only with my WiFi adapter, and I fixed that by removing the current driver (rtl8812ub) and installing another driver (rtl8811au), which fixed the problem :))
thanks for the help :))
- USB Cable check
Hello altogether, I guess everybody has some USB-C cables lying around, but wonder if it's 3A, 5A, 3.0, TB... Anybody able to recomment a device able to determine that? Maybe also something that can be combined with a load tester.
- TP4056 useless protection circuit?
I got these TP4056 modules from an AliExpress vendor and fail to understand how the protection circuit works or if it's just typical Ali shovelware. It could be my limited understanding of electronics.
The protection circuit appears to be just for show. To the right there's a DW01S chip that prevents over charging and discharging in combination with the 8205 dual channel MOSFET.
It looks like the drain of this MOSFET isn't connected anywhere. I've tried following the traces using a multimeter and no other pin shows continuity with the drain. Source1 is connected to Battery - and Source2 is connected to Terminal -.
I suppose the Drain starts participating in the circuit when one mosfet activates.
What was the idea behind this? That the 8205 acts as an AND gate by having them both in series?
I'm trying to make an 18650 testing circuit that uses these modules to charge and discharge a battery and wanted to use the protection circuit mosfet as a trigger for discharging.
- What brand is this?
It's an SPST-NO micro switch. Don't waste time searching for it. I already wasted mine. Just let me know what it is if you know it off the top of your head. 😊
- MOSFET gate resistor
Since MOSFETs have a gate capacitance you'd want to limit the inrush of current from the output of a microcontroller to prevent it from getting damaged prematurely. That's what gate resistors are usually good for.
Another thing is that most MOSFETs don't fully activate with a gate voltage below 10V (n type) so usually a microcontroller pin isn't good enough for switching large loads.
I have a 24V system and have made a voltage divider using two 10k resistors to step down 24V to 12V as gate driving voltage which is pulled down with a weaker MOSFET. The power MOSFET essentially ends up with a 10k gate resistor this way meaning it will take a bit longer to fully saturate.
Is too high harmful? In this situation the load is a heater that activates when the room temperature drops below 18C and deactivates when it gets above 22C so fast switching is not an issue.
- What's your solder of choice?
I recently came to the realization that I've been kinda punishing myself with cheap no-name solder that is really difficult to work with.
I reluctantly bought this (rather expensive) lead free solder for around $25 and the difference really took me by surprise - it melts and flows so easily!
Kinda got me wondering what everyone else has been using for solder, or what's worked well for you so far at least?
- I sort of left the hobbyist electronics world back in 2018, and now everything seems to have an embedded Raspberry Pi in it. What's the best way to catch up?
I'm an EE by trade focusing on embedded devices, but most of my work is in relatively low-power STM32 applications. When I stopped following developments in hobby kits, it was mostly Arduino Unos slowly driving I2C OLED displays.
Now suddenly, there are embedded Raspberry Pis and ESP32s doing realtime facial recognition and video feeds.
Is there a good place to look to catch up on what's now possible with these embedded devices?
Also, while I enjoy the ease of the hobby kits, I'm also interested in more mass-production-focused solutions.
- Can someone help me identify this potentiometer from a third party Xbox controller?
Trying to repair a Hyperkin Duke Xbox controller where the left trigger doesn't respond. Found that the resistance of this potentiometer doesn't change when it's moved, so I'm looking to replace it. I'm a novice with this stuff though and I'm having trouble identifying it. Any help is appreciated.
- Temporary pull-up during boot (ESP-01)
Hi everyone!
I'm trying to control a "dumb" led light strip segment with an ESP-01S. This is fairly low current, the strip will pull 150mA-200mA max (depends on... artistic? needs).
I have two NPN transistors (2N2222), one to control the 12V supply to the white "channel" and the other the red+blue (don't need the green).
I had to pull-down the gates as I had some flickering, and it works perfectly if I manually connect the GPIOs after the ESP-01S boots.
The ESP will boot if I have the RX pin (GPIO03) pulled down on boot, but not if I pull down any of the others.
I'm not smart enough to come up with a way to have that extra pin I need to be high only during boot, while the gate it's attached to needs to be pulled down...
Any thought, other than getting something with more IO pins?
- Is this a fuse? If so, what kind? if not, what is it?
I'm learning about electronic components. I believe this is the part which has broken and made this heating pad unsafe to use. Well, unusable, not just unsafe lol.
- Designing a synth bipolar PSU inspired by Doepfer's A-100 PSU3
I'm planning to make a modular synth from scratch, but I need to start with the PSU. Do you see any issues with this schematic?
The main difference between this design and traditional linear PSUs is the replacement of the transformer/rectifier/filter circuit by Mean Well IRM AC/DC converters. The linear regulation circuit is basically the reference design for the 78xx/79xx.
Do you think there would be an issue once scaled? The AC/DC converters have a lot of headroom, as I plan to make up to 3 regulation circuits like so:
(the regulated outputs will actually never go nowhere near 1A per rail)
- Making an old lamp smart
cross-posted from: https://lemmy.world/post/9052986
> I've got an antique lamp that needs a new switch knob, but then scope-creep happened and now I want to "smartify" it. I started off thinking that, since it has a metal body, I'd install a capacitive touch switch, but now it's escalated to wanting to put an ESP8266 or ESP32 in it to handle the capacitive sensing, Home Assistant connectivity/control, and maybe even switching to some kind of low-voltage RGBW LED instead of a 120VAC Edison-base bulb (especially since I suspect I'd need some kind of antenna sticking out the top, since the metal lamp body would presumably otherwise block the ESP32's signal). > > The lamp, BTW: > > ! > > (Apparently it's a Genie lamp by Laurel Lamp Company, in case anybody cares. Also, the lamp shown is the same model, but it's not my picture.) > > I'm aware that the "easy" way would probably be to just screw a smart light bulb into the socket and wiring I already have, but (a) I'm picky about both avoiding "clouds" and using FOSS firmware, and I don't feel like sorting through the junk on Amazon to figure out which ones can be flashed with ESPHome, and more practically (b) that wouldn't let me turn it on and off just by touching the lamp body, which is what sent me down this rabbit-hole in the first place. > > Anyway, I know this sort of thing can be done, but I'm not completely sure how. I know I could figure it out myself eventually, but I figured it couldn't hurt to ask for advice in case somebody happens to be able to rattle off part numbers for the whole BOM off the top of their head, or knows exactly the right ESPHome howto to point me towards, or something like that. Any advice is welcome! > > (In case it's relevant: my level of experience is that I programmed an Arduino to run neopixels (WS2812 RGB addressable LEDs) once, I've flashed ESPHome on some Sonoff S31 smart switches, and I'm a software engineer by trade but have never worked on anything IoT related professionally.)
- What is this connector called?
I want to replace one half of this with longer wire, but I am not confident about the name of the connector used.
Image of JST-XH included to convey size. Ruler is metric.
- Sanity check for LiFePO4 Charger Design
So, there are these great 32700 LiFePO4 batteries that showed up in my local industrial market. For like USD 2$!
However, there are no LiFePO4 chargers available. The vendors assure me I can "totally use" a 4.2V Li-ion charger, but I don't believe them (although the cells test as being in good shape).
I whipped up a 5V system with a buck converter managed by an MCU. It turns off the buck converter that charges the battery, measures the battery voltage, and if it's under 3.6V it enables the buck converter. Repeats every few 100s of milliseconds.
Did I overengineer this? Could I have just used a linear voltage regulator that outputs 3.6V (or a Zener), and a current-limited 5v power supply?
Charge speed is not really important in my application. Anything under 4 hours is great. Frankly, I'm just trying to phase out the less safe kinds of lithium cell in my lab.