Ask Electronics

3173 readers
3 users here now

For questions about component-level electronic circuits, tools and equipment.

Rules

1: Be nice.

2: Be on-topic (eg: Electronic, not electrical).

3: No commercial stuff, buying, selling or valuations.

4: Be safe.


founded 1 year ago
MODERATORS
1
 
 

Can I charge a 19V laptop from multiple USB ports?

My laptop's charger is rated at 19V 2.1A. I was wondering if it would be possible to build an adapter which would allow me to charge it from a power bank, even if just slowly or via multiple USB ports.

I know you can buy adapters which utilise USB power delivery, but most outlets and powerbanks don't have PD yet.

@askelectronics #AskFedi #Electronics #DIY #USB

2
 
 

I've been messing around with circuits my entire life but this design was time sensitive and I've never done my own PCB designs before, so I hired someone to put this together. After getting some test boards, when I plug them in the charger chip gets very hot and smells like burning....

Circuit is just a simple li-ion usb charger and a switch. I've gone through the datasheet for the bq25302 more times than I can count and I'm missing something obvious here. Using it just for delivering power seems to work fine, the problem is only when charging.

I do see R6 + R7 off TS don't have the recommended 10k values, but I don't feel like that would cause what I'm seeing. This is being connected to a 21700 lipo.

Someone mind lending me their eyes please?

bq25302 datasheet - https://www.ti.com/lit/ds/symlink/bq25302.pdf

3
 
 

A simple thing like this, but premanufactured. I scoured the internet trying to find one (at a reasonable price) and there is nothing. I would make one myself, but I just don't have the time currently to do that.

I need it for a mains fan control. Doesn't have to be fancy (all of the ones I encoutered were very fancy, with touch sliders and whatnot), 5 steps is enough, on/off control as well as speed control through the remote. Nothing fancy, as I said, 5 steps is more than enough. So, basically, just 3 buttons on the remote: on/off, + and - is all I need.

Also, I don't need smart/phone/app solutions, I would like it to just have a remote, that's it.

4
 
 

I asked a while ago, how to build an automatic light switch and finally got around to actually building it.

My board is an ESP8266 mini D, and ignoring all the sensor parts, my problem right now is powering the actual light.

It's just a small LED array and I connected it directly to the 5V and GND pins (controlled via a transistor).

Measuring from the wall (so including the PSU), this whole setup pulls about 3W (so far expected), however, one small component close to the USB connector gets uncomfortably warm, and I'm not sure, whether that's ok.

The hot component is one of the two small thingies circled in the picture. I thought the 5V get pulled directly from the USB plug, so I'm not sure, why there is any circuitry involved.

5
 
 

I've been trying to solve an automotive electronics problem for several weeks now, but everyone I've spoke to can't seem to come up with a solution.

In brief, I'm trying to add a relay in-line with the horn switch in my car, such that I can close my own circuit when the horn is pressed, without affecting the existing horn circuit in the car.

I had some JD1912 12V relays left over from a previous install, so I tried to use those. (Relevant image: Diagram)

First, I placed connected the trigger wire (pin 86) to the the wire coming into the horn switch, and the ground (pin 85). The relay triggered when the horn button was pressed as expected, but this also caused the actual car horn to sound continuously. Presumably doing this was enough to give the factory horn relay enough current to close.

Next, I tried placing the relay in series with the horn switch by splicing the wiring heading into the horn switch, and connecting the relay (pin 86 and 85) in line. Once again, the relay triggered with the horn switch as expected. However, this time, the actual car horn didn't sound at all.

The best I can work out is that there's a resistor in-line with the relay trigger (otherwise connecting it straight to ground would cause a short, right?) However, that resistor is just enough to allow the factory horn relay to trigger when connected to ground.

The way the car is designed, I can't splice into the wire coming out of the switch to detect when the horn is pressed, since it's a shared ground with other components.

My question is, is there such a thing as a relay with no resistor? Essentially all I'm looking for is a component that will "detect" current on the horn switch wire, and close a separate circuit. I'm not sure if a relay is even the correct way to go about this. Hopefully you guys can point me in the right direction.

6
 
 

cross-posted from: https://lemmy.dbzer0.com/post/26703241

This diagram is from the service manual of a combi boiler. It’s a flow sensor which detects whether hot water is running, which is then used to trigger on-demand heat and switch a diverter to take radiators out of the loop.

In English, the diagram shows:

  • X ⅔ red wire (+5V)
  • X 2/2 black wire (ground)
  • X 2/6 green wire (signal)

I need to know what those fractions mean. I took the voltage measurements in this video:

I cannot necessarily trust the model in that video to have the same specs as mine. My voltmeter detected 4.68 V on the red input wire showing that the sensor is well fed. The green “signal” wire is supposed to be 0 V at rest and 2 V with water running (or I think the reverse of that is used in some models). In my case the green wire is ~1.33 V at rest and ~0.66 V when water is running. I need to know if these readings are normal as I troubleshoot this problem.

update


@[email protected] and a couple others gave the answer I was after. Then @[email protected] helped solve the underlying problem. The theory that the sensor was fine but the board was not drove me to test the sensor in isolation. The sensor gave correct output in isolation. Then I connected it back to the motherboard to retest and reconfirm that it’s still broken. But it actually worked. The hot water suddenly and mysteriously works now. I guess the act of draining the water and unplugging the connector then reconnecting and repressurizing caused it to work. It may be temporary, since in the past it was hit or miss whether it would work.

7
15
submitted 3 weeks ago* (last edited 3 weeks ago) by acannan to c/[email protected]
 
 

I've recently been learning about superhet and frequency mixing and wanted to start tinkering. Specifically I'd like to try using two heterodynes in series to first frequency shift then uninvert the original audio, sort of like an analog frequency shifter.

To do this, I'd need a frequency mixer. I've been looking at a ring modulator (like https://upload.wikimedia.org/wikipedia/commons/1/1b/Diode_DBM.png) which should require 4 shottky diodes and 2 center-tapped transformers. I've had difficulty locating an affordable transformer, with good enough fidelity for audio, that also includes a center tap.

I have a few questions:

  • Where can I locate affordable, good-enough-for-audio transformers?
  • Is the ring mod approach good enough? I see there's also a gilbert cell.
  • Any general advice for someone just starting a project like this?

Thanks!

8
 
 

I'm trying to achieve variable speed control on two brushed DC motors powered by a 3s or 4s LiPo battery (~12V or 15V). This is for a nerf blaster I'm modifying, which is why I'm not using a pre-made speed control ie I want control over the shape/layout. I'd like to vary projectile speed with a thumb knob.

I just finished watching ElectricMonkeyBrain's YouTube video on the TL494 PWM chip.

I was initially planning to vary the duty cycle with a potentiometer on the chip's control pin, to get a PWM signal and feed that into a MOSFET. But in the video he mentions that the chip has an integrated over current protection function. Ie the chip will

monitor the voltage across a sense resistor in series with the load 

and will

kill the output if the sensed voltage/current goes above a reference voltage

It occured to me that I could actually adjust the reference voltage as a way to control the motor speed.

Would this be a better way to achieve speed control and protect my motors/battery? Or is it a terrible idea altogether.

9
18
Schematic review (discuss.tchncs.de)
submitted 1 month ago by [email protected] to c/[email protected]
 
 

Hi there

The purpose of this schematic is to control a DC motor that runs at 8V max. That is why I chose 4 N-channel mosfets in the H bridge. P-channels would not fully activate at voltages above -10Vgs but the N-channels can handle 18V at the gate.

The 5v switches represent an Arduino's digital output pins. One to turn forward, one for reverse. To prevent a failure scenario where both pins are HIGH I added a transistor that prevents current from flowing through the optocoupler on the second half bridge.

Does this circuit make sense? I'm not an electronics engineer, just a hobbyist and have doubts about how effective the gate driving circuit is of the mosfets.

Thanks!

10
 
 

I'm trying to build a very simple, stupid light switch for my grow light. Essentially, I want to turn on the light, if it gets too dark outside, so that my plants can survive the northern winter.

Since I'm a software guy, my first thought was an ESP32, but that seems excessive.

My current approach would be something like this: https://www.ebay.com/itm/313561010352 In conjunction with a relay, both powered by a USB-PSU.

If the light level is low enough, the logic DO pin should send a signal and that should be enough to trigger a small relay, so that the relay then closes the circuit to switch on the lights.

Is that idea completely stupid? With electronics, I'm usually missing something very obvious.

The lights themselves are already just usb powered and only draw 5W, so that shouldn't be problem.

What I'm concerned with is the actual switching. Is the logic signal "strong" enough to activate a relay? Would simple transistor maybe sufficient?

11
 
 

I have one of those basic motor kits you can buy off of Amazon. I was wondering what steps I should take to make it so that I can turn the motor on/off with the press of a button, wirelessly.

I'm still very new, so any information you can offer no matter how basic will probably be useful to me.

12
22
submitted 2 months ago* (last edited 2 months ago) by [email protected] to c/[email protected]
 
 

I built a Ploopy mouse yesterday. All the buttons work, and for the most part it's fine. But the movement is on and off laggy. Sometimes it works great, even faster than what I had before, and then it just stalls or stutters and slows down for a several seconds. I've tried a couple different USB cables, I've taken it apart and tried to reseat everything, I took the optic piece off and tried to blow out any dust that may have been in there. But it's still on and off laggy. Happens in windows and Linux both.

This is only the second thing I've ever soldered, and I'm sure I did a pretty trash job of it. The board is mostly done but you have to solder the optical chip in at build time. Could that cause it to be laggy like that? I don't see any pins accidentally soldered together, there's separation between each soldered lead, though I definitely can't do the nice pretty little dots, they're ugly as hell.

They've provided instructions to build/update the firmware, could that help maybe?

Just wondering if there's any other ideas to help fix this? If I knew it was a legit bad board or something I could maybe go back to the seller and see about getting a replacement, but I'm afraid my soldering could be at fault in which case I don't want to make that his problem. So I'm hoping someone here may have an idea. I love the idea of this diy 3d printed mouse, just hoping it wasn't a $100 mistake.

Thanks in advance.

13
 
 

I have a foldable 120w one with 4 panels in sewn cloth. Gust blew it and the little plastic anti-tug box broke so wires could move.

Still worked, but one day the watts were halved.

Examined wires closely, not easy because most of that little protective box still in place, but it looked like they twisted around each other in there, so I untwisted and glued anti-tug fitting to case so it can't turn again.

Today broke two mounts of the little box so I can see wires clearly, two stranded leads with what looks like a can cap in between and the remains of a foam strip that looks like it went in between.

Still puts out half wattage at about 24v, but I'm wondering if wires under the fabric case are disconnected. It used to put out more than the rated 120w, I've seen 138w on the battery boxes meter.

My thinking is either open the case seam to see in, or assume a panel or two shorted and are lost anyway, leave alone and be happy it works at all.

One thing I don't know what happens when solar panels short, if that's what happened. I do have a DVM and could check resistance, but without disassembly it would be cumulative.

Or the twisting could have disconnected one or more panels, they're supposedly wired in series and its putting out like it would on an overcast day. In which case I might be able to reconnect them.

Bluetti is nice enough superficially but I'm sure I'm unlikely to get tech info out of them. They're very Apple-like is dealing with consumers.

(BTW, they will sell your email address to multiple marketers promoting "sales" of bluetti products after a purchase. Not a lot, but the sender addresses are always different.)

14
 
 

Kind of an ELI5, but I tune a radion into a specific frequency to listen to a station. If that frequency is constantly being modulated (changed), how is the radio not going in and out of tune? I expect it is finding a way to measure multiple frequencies around the tuned station and decodes the data from it's deviation from the tuned frequency?

15
29
submitted 2 months ago* (last edited 2 months ago) by [email protected] to c/[email protected]
 
 

Hello,

I am looking for a good way to mount a daughter board to a motherboard that can be ~~hot~~ swappable. I would like it to be able to mount securely preferably with mechanical clips or fixings.

There will be up to 10A to go through it for power as well as around 10 signal pins. Obviously I can use several pins to get the required current rating.

I have seen DIN 41612 connectors but I am concerned about the daughter board coming loose.

If anyone can help me it would be much appreciated 😊

16
 
 

I've got a VFD display on board along with UPD16311 driver is made for negative voltage around -30V and i think so is display (i couldn't find any info on display) and I'm doing it mostly from junk parts. I want to know what devices could/should contain power supply for such voltage. I've tried -12V from psu i've got lying around but it didn't work. There's also a chance that display itself is damaged but there's no visual sign of it.

17
 
 

According to the A4998 datasheet you're supposed to wait 1 millisecond after waking from sleep to allow the circuit to energise.

What is the worst that can happen if you neglect to do this? I use stepper motors to drive a plant watering pump and losing a step or two really isn't an issue. Is there a risk of damaging the module or is losing the first step the biggest risk?

I trigger the pump by pulling the EN pin low and a 555 timer on the STEP pin makes it pump continuously. It seems sensible to pull the SLP pin down as well with it as that saves a little bit of power.

18
 
 

I have a 3d printer in my car powered by a bluetti eb3a. The bluetti is charged by the 12v outlet in my car while driving. I have a 24v solar panel i want to mount to the roof of the car. My bluetti has only one dc 7909 input. So got a a Y splitter to combine power from the car and panel. But when plug it into the car outlet that turns off when i turn off the car, the solar panel turns on the stereo. Thats not the case with the outlets that are always on. I am worried that i will danage the car electrical system from a 24v solar panel flowing electricity back into the car?

19
 
 

I have a project that is using a Teensy 4.1, the cheep 5v regulator I was using in the project let the magic smoke out for no good reason. I replaced that but now the Teensy boots and runs for about a min then quits. There is a TLV75733P power IC that is supplying the 3v3 and it gets hot then quits supplying power. Since that IC is $0.46 vs a new Teensy 4.1 ~ $40 I want to try and replace it. I have done a bit of SMD work but not tried to remove a tiny chip with a GND pad before so I’m looking for any tips. The PCB of the Teensy has header pins so I can’t really get good contact to a hot plate to preheat the board.

20
29
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
 
 

I am working on a WLED project, using a esp32 in a 3d printed enclosere. But my dad says that i can't install it because it is not UL listed. He is worried if the house burns down, the insurance company won't insure it due to diy electronics possibly starting a fire. What am i to do, i am not developing a project to sell?

21
 
 

Hello !

I recently 3dprinted a train whistle that usually works with a mouthpiece. It works by simply blowing air in it.

However, I would like to convert it to a whistle for my bike. For that I would need a system that could blow air in it, instead of myself, with the press of a button.

Any idea on what i could start with to build that ? It would be best if the circuitry was quite compact too.

Thanks !

22
 
 

I want to store a battery powered device long term (decades) as a reference article, it will never be switched on or charged again. The problem is that it contains a small LiPo battery that will be very hard to remove.

Is there likely to be any significant risk I need to worry about? Once depleted will the battery be relatively inert?

23
 
 

EDIT: Thanks everyone for you help, that has been very instructive. I think I just have a very poor quality cable adapter. Given that Blueretro is mostly an opensource DIY project, I’ll make a cable adapter myself instead of trying to fix what would obviously not function properly.

Hi everyone,

First of all let me say that I’m a total noob in electronics (I really only know the basics) and I’m facing an issue that I really don’t know how to tackle.

I have bought a Blueretro NES adapter on Aliexpress (this one) and it does behave erratically when powered by the console alone (Bluetooth not working, LED indicator down, random outputs to the console).

When I’m powering via USB, everything function properly.

So I guessed that I might have a voltage issue on the NES side. I tested mine and make a few friend test theirs (5 in total including mine) and the result is still the same: the controller ports outputs between 4.6 and 4.8V instead of 5V.

The Blueretro itself apparently uses an AMS1117 (picture here) which, from my understanding, is stepping down 5V to 3.3V (wild guess, I don’t really know what it does, just quickly read the datasheet).

So, sorry for the long intro, here are my questions:

  • Is it wise to try to step up the voltage from the NES to the Blueretro from 4.6V to 5V? How would it be possible? Is it even possible?
  • Given that the Blueretro is taking 3.3V apparently, is it possible to step down from 4.6V to 3.3V instead? Is it wiser than stepping up?

Thanks in advance and sorry for the long post :)

24
 
 

So my wife cracked the screen of her Playdate console. I got a replacement memory LCD (Sharp LS027B7DH01A), but the LCD is mounted with optically clear adhesive directly to a piece of glass which is adhered around the edges to the console’s faceplate.

The glass measures 65.15x41.64mm by 0.65mm thick. Definitely not a standard size. I can’t find anywhere to buy glass so thin and so large.

My first thought was to cut a phone screen protector down to size with a glass cutter. My first attempt failed because the screen protector I bought was actually coated in plastic on both sides. Even if I got a straight cut, I couldn’t find a way to slice through the plastic layers cleanly.

Any ideas on where to find cuttable glass sheets this thin? I could try more screen protectors, but there’s no way to know if they’ll work before buying them.

25
 
 

I came across this today and I thought it might be an incredibly powerful tool. So I was curious to see if anybody in this community has used it yet?

view more: next ›