Re: Running a microcontroller in car - power supply aspects
hmm...
you shouldnt have zeners on the opto's
you shouldnt have 5v1 across the regulator output either - it will be destroyed.
Running a microcontroller in car - power supply aspects
Collapse
X
-
-
Re: Running a microcontroller in car - power supply aspects
yes, the zener value is too low - they will conduct earlier than you expect.Leave a comment:
-
Re: Running a microcontroller in car - power supply aspects
So you're saying the zener value is too LOW and you suggested a higher value ? 5.1 is lower than 5.6, isn't it ?Leave a comment:
-
Re: Running a microcontroller in car - power supply aspects
well zeners - good ones are 5%
so they will start conducting at 5.05v and your atmel has internal resistors that may not like that.
as the mcu is o.k. upto atleast 5.5v i would use 5v6Leave a comment:
-
Re: Running a microcontroller in car - power supply aspects
Originally posted by stj5,1v zeners are a bit close, should go up a step.
Originally posted by stjand why reference the window switches to the battery?I want this thing to be as PnP as possible, because I don't have a garage to work in - I have to do it all out in the parking lot with my gas soldering iron, so keeping modifications to the car's harness to a minimum is a must
EDIT: the micro MCU1 in the schematic is a Nano, but I'll be using a ProMini. KiKad didn't have the exact part and it was too trivial to waste time drawing it myself. The pinning also differs from the actual project.Last edited by Dannyx; 07-09-2019, 06:53 AM.Leave a comment:
-
Re: Running a microcontroller in car - power supply aspects
hmmm..
5,1v zeners are a bit close, should go up a step.
and why reference the window switches to the battery?
if you reference them to vcc or better yet use the ground, you can dump the opto couplers.Leave a comment:
-
Re: Running a microcontroller in car - power supply aspects
Here I am again. I messed around with KiCad and after a very long time (KiKad not being the most user-friendly out there), I managed to put together the schematic for the project...hope I didn't leave anything out. Not sure about what diode should go across L1, but other than that, it works on the breadboard the way it is, without L1 for now.Last edited by Dannyx; 07-09-2019, 04:07 AM.Leave a comment:
-
Re: Running a microcontroller in car - power supply aspects
Ok, so no CM choke then. Your last schematic seems to be what I should go for - the one with the 470uH coil and diode across it.Leave a comment:
-
Re: Running a microcontroller in car - power supply aspects
If you put a scope on a car's 12V power, there is a lot of low frequency noise from the ignition system, fuel injectors, fuel pump motor, alternator ripple etc. It is a few hundred to a few kHz, and over a volt pp.
It is worse if you have an old battery or old wiring connections like rusty grounds and battery terminals.
The noise is differential (not common-mode) so it is between 12V and GND. A mains SMPS makes lots of common-mode noise (between LV secondary and earth GND). Rare to see a CM choke in a car.
If it's an old car with a distributor, which makes a lot of RF interference and is one reason car makers went to coil-on-plug. It's hard to read an O2 sensor when you have many kV arcs in the distributor nearby.
An inductor on 12V input helps with noise in either direction (coming in from ignition, or going back from 5V SMPS to car). For analog car stereos it used to be big iron-core mH's and now 22-470uH choke or whatever fits is still enough.
The minimum is a ferrite bead and TVS+reverse diode. The ferrite bead is to stop high frequency >1MHz noise from affecting AM radio of the ECU.Leave a comment:
-
Re: Running a microcontroller in car - power supply aspects
Another idea came to mind, which I've seen on wires and circuits before but don't know for sure how to correctly choose it or IF it should be used at all in my scenario at all: how about a common-mode choke ? Two things come to MY mind when I hear the term: a ferrite ring which has the + and - wires going to the circuit wrapped through it AND the more "advanced" version which already has copper wires properly arranged on it and comes as a standalone device which all SMPSs have on their AC mains inputs. How's that ?Leave a comment:
-
Re: Running a microcontroller in car - power supply aspects
Not sure how much ripple/noise a car has on its battery when running. I plan to run wires straight from the battery terminals to run this thing (quite a lot of current required for the power windows), so there's going to be no filtering whatsoever there - what's present at the battery will immediately show up at the input to my circuit exactly.
You're also assuming that the battery's output impedance is low enough that "loads" (yours and others) won't affect what you see on it's terminals.
Note that even the resistance between the binding post and the cable clamp can be "significant" in terms of other aspects of the "system" (assuming you aren't drilling into the binding post to secure "your" connection, upstream of the cable clamp).
[I.e., all resistances between the battery and the loads in question appear as parts of the battery's output impedance]Leave a comment:
-
Re: Running a microcontroller in car - power supply aspects
Not sure how much ripple/noise a car has on its battery when running. I plan to run wires straight from the battery terminals to run this thing (quite a lot of current required for the power windows), so there's going to be no filtering whatsoever there - what's present at the battery will immediately show up at the input to my circuit exactly.Leave a comment:
-
Re: Running a microcontroller in car - power supply aspects
I might be wrong but, in a fairly clean dc to dc source, you are mainly going to be choosing an inductor based on the dc resistance the inductor poses and the potential peak current spikes from the source. Essentially, if you don't have visible/measurable switching noise on the dc output on the car, then doing frequency calculations doesn't really work. With that, the main focus would be "how much current will it take to drive the core into saturation?" and "how hot will this inductor get due to it's dc resistance"? You can get both of these statistics from Datasheets and, in this case, would want an inductor with a higher saturation current than what your circuit is going to be using and to know that the total watts that the inductor dissipates would be within tolerable range for the inductor.
I THINK I'm right on this, but I really really need to brush up on inductors/the math needed to do calculations.Last edited by Retro-Hipster; 05-10-2019, 12:15 PM.Leave a comment:
-
Re: Running a microcontroller in car - power supply aspects
Also, why 470uH on the coil there ? Forgot to ask. How would one determine the value of the inductor in such a circuit ?Leave a comment:
-
Re: Running a microcontroller in car - power supply aspects
Can't run off accessory power, since the thing needs to be on standby all the time - I added a feature to roll up the windows when the car is locked with the key fob, so the ignition would be off at that point.Leave a comment:
-
Re: Running a microcontroller in car - power supply aspects
I know adding a filter inductor is a good idea but it added new problems.
The inductor back-emf can make a spike worse, so they add a diode across it. This is the circuit I remember. I will check with the people I know that design automotive ECU's.
Are you sure the LM2596 can run off your car battery? I thought it uses a lot of current, and more with an Arduino running. You should measure it, or run it off IGN power.Leave a comment:
-
Re: Running a microcontroller in car - power supply aspects
The DC-DC converter can take 32v max apparently.Last edited by Dannyx; 05-02-2019, 12:25 PM.Leave a comment:
-
Re: Running a microcontroller in car - power supply aspects
This is what I use in cars. For me it's quicker to draw it in KiCad or Altium we use at work. A pencil is more powerful but taking pictures of paper sucks.
If you use an large inductor to filter out ignition and fuel pump EMI, it can add to a spike sometimes and make them worse. So you have to be careful. If I have room I add 100uH-1mH with a diode across it, instead of ferrite bead.
Your 5V regulator needs to take ~30-40V input max. and 6V min. or else the Arduino will reboot when you start the car, cranking gives low voltage.
I think an Arduino Nano needs around 20mA. I use an LDO LP2950 to power it and a sleep command to go down to a few mA.
I can explain each part if you want to make sense of it.Leave a comment:
Related Topics
Collapse
-
by CG2I've got a dehumidifier that has stopped working. Plug it in, press the power switch, and it beeps 5 times. Nothing showing in the display (which is just two 7 segment displays) apart from the two decimal points flashing. The model is a MeacoDry Arete One 18L, which seems to be a rebadged Deye (all the boards are marked Deye). Here's what I've got so far (details in case anyone else in future should need them).
Starting with the power board. Mains power comes in at the red connector top left. The compressor is powered by the orange connector to the right of that and is switched by...5 Photos -
by Kambi13Hi all, need some help. I have a Samsung NP370E4K-KD2BR, which as a 5th Gen Intel CPU that works fine when running with the charger plugged in, but has soon as I remove it and it's running on battery the screen backlight goes off.
Tried different battery - no change
Tried different screen - no change
Removed the plastic film from the screen inverter and looked for pwm signal which as about 3.3v when running with the charger plugged in, when I take it off the voltage drops down to 2.232v, so my best guess is that the EC is not providing the correct voltage.... -
by DannyxGood day folks.
TL;DR: has anyone tried pairing one of THESE "kinetic" battery-less switches with THESE generic remote modules ?
Details: I recently got hit by this craze of wanting to add remote controls to the lights around my house, so I went with those generic 433Mhz remote relay modules found everywhere, which are really basic, easy to use and work well, since I used them before in other projects. What I like most about them is they accept all kinds of 433Mhz remotes that float around Aliexpress, since they're all the same under the hood, save for the...03-08-2022, 11:01 AM -
by SkgodHey I am having Asus Rog strix g15 g513ih hn0865 and it's having display issues while running on igpu. Works fine when I open any game or whatsapp windows application. The issues are :
Black screen, freeze
The weird thing is that when as long as the laptop is running on igpu the problem keeps happening. But as soon as I open any game or whatsapp windows application, the laptop works completely fine.
When the screen freeze or black screen I used to move the display lid up and down and it usually works like that.
So can anyone tell me what would be the possible cause?... -
by FALKLANHowdy everyone! I hope all is well where ever you are!
I'm attempting to integrate a couple of LED pods into an automotive reverse lamp circuit. The problem being, while the vehicle is running there is a 8.5v current present on the reverse lamp power wire. Needless to say is that all LED pods and lights dimly illuminate while the 8.5v is present, so the LEDs are always powered on while the vehicle is running. When the vehicle is shifted into reverse, the voltage changes to 12 volts.
I am uncertain how to convert this line into a switched 12v output line for the LED pods.... - Loading...
- No more items.
Leave a comment: