Running a microcontroller in car - power supply aspects

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • stj
    replied
    Re: Running a microcontroller in car - power supply aspects

    btw, the best thing about these modules is the pinout and spacing matches 78xx linear regulators!

    Leave a comment:


  • stj
    replied
    Re: Running a microcontroller in car - power supply aspects

    the mod i do on some is to replace the pot with 5k (original is something like 200k)
    and cut that track - then solder a resistor across it i salvage from the top for 5v.

    this gives me something like 5v-5.5v ajustment range!

    Leave a comment:


  • Dannyx
    replied
    Re: Running a microcontroller in car - power supply aspects

    Originally posted by redwire
    Ahh thanks I forgot which one you are using. That module uses MP2315 IC which has a low power mode set by a resistor to GND on pin 1. It's claimed to draw under 1mA and you get 10mA? I haven't tried one. You cut the tiny jumper?
    This guy found it has an instability and he did some mod. for low voltage I think https://www.youtube.com/watch?v=yyrgW5dNUIo
    I'll bet a bigger capacitors in/out would fix it.
    Yeah, OK, I never noticed the instructions when I got mine (the original link is gone anyway). I just assumed that track's just part of the board and is supposed to be there all the time, so I didn't mess with it, meaning I was getting BOTH the pot AND the fixed voltage resistors connected at once.....which means the same is going on in that monitor right now *fail*

    Ok, knowing that, I'll probably give it another go and report back. Keeping the power consumption of this whole thing as low as possible is very important.

    Leave a comment:


  • redwire
    replied
    Re: Running a microcontroller in car - power supply aspects

    Ahh thanks I forgot which one you are using. That module uses MP2315 IC which has a low power mode set by a resistor to GND on pin 1. It's claimed to draw under 1mA and you get 10mA? I haven't tried one. You cut the tiny jumper?
    This guy found it has an instability and he did some mod. for low voltage I think https://www.youtube.com/watch?v=yyrgW5dNUIo
    I'll bet a bigger capacitors in/out would fix it.
    Attached Files
    Last edited by redwire; 04-26-2020, 04:09 PM.

    Leave a comment:


  • Dannyx
    replied
    Re: Running a microcontroller in car - power supply aspects

    THESE are the "green" ones There was a link the first time I mentioned them, but it probably got buried in the post and you missed it

    Leave a comment:


  • redwire
    replied
    Re: Running a microcontroller in car - power supply aspects

    What's a "green one"? They simply might have put the wrong resistor in there, to give 4V not 5V. Or the IC has a different reference voltage or is defective. What IC does it use.

    Leave a comment:


  • Dannyx
    replied
    Re: Running a microcontroller in car - power supply aspects

    Originally posted by stj
    the pot is connected by default, there is a trace to cut if you dont use it
    Are you sure ? I don't see any traces that need cutting, other than those solder pads on the back which were obviously not bridged out of the box until I did so, unless I'm missing something. The pictures on that Ali link show the underside too.

    Leave a comment:


  • stj
    replied
    Re: Running a microcontroller in car - power supply aspects

    the pot is connected by default, there is a trace to cut if you dont use it

    Leave a comment:


  • Dannyx
    replied
    Re: Running a microcontroller in car - power supply aspects

    Originally posted by stj
    do the green ones have a pot on top?
    if yes then you need to cut a track to isolate the pot before using the fixed resistors
    Yes, it does have a pot, but the tracks on the bottom are "pre-cut" and you have to put a blob of solder across the ones you want to "activate": 1.5v, 3.3v all the way up to ADJ which is the pot itself, so I don't think it's connected otherwise.

    Leave a comment:


  • stj
    replied
    Re: Running a microcontroller in car - power supply aspects

    do the green ones have a pot on top?
    if yes then you need to cut a track to isolate the pot before using the fixed resistors

    Leave a comment:


  • Dannyx
    replied
    Re: Running a microcontroller in car - power supply aspects

    Not having the knowledge and tools (scope) to do in-depth analysis, the most basic check I did on them was measure the idle current draw, with nothing connected to the output, an input voltage of 12v and the output set to 5v. The smaller green ones were slightly disappointing, at least out of the box: the output is a full volt lower than what you set it to and the current draw is 10mA. These have some solder pads on the bottom which you bridge to set a fixed output voltage, so I bridged the ones for 5v and only got 4v. Not sure whether this can be improved by adding a beefier cap on the output or tweaking those resistors. There IS an "ADJ" setting as well, which inserts a small trimmer pot into the feedback loop in place of fixed resistors to control the output, but I was advised against using pots in the long run.

    I used one of these small ones to "fix" a monitor whose 5v (or 3.3v - can't remember) power rail had died and the switching IC was too expensive to replace, so I botched one of those in and it works to this day, so I think the monitor was happy even with 1v less than the rated input on that power rail, OR that one happened to have better regulation - can't remember precisely.

    The larger DC-DC converters (which I pictured in one of my previous posts) only use up 8mA with an input voltage of 12v and 6mA with an input of 15v. These are advertised as going up to 30v. The datasheet for the XL400 confirms this + the input cap is rated at 35v....

    Leave a comment:


  • redwire
    replied
    Re: Running a microcontroller in car - power supply aspects

    I would measure your 5V buck-converters and see if they are OK for low current use. Or change the Vreg IC to something low power and high enough input voltage to take transients in a car. The Pro-Mini LDO MIC5205 is a max. 20V input which is too low for a car, even with a clamp TVS. An 18V TVS clamps to 25V.

    Leave a comment:


  • Dannyx
    replied
    Re: Running a microcontroller in car - power supply aspects

    Originally posted by redwire
    Arduino Nano uses about 20-35mA, so I wonder about using a 5A buck converter? If it is OK with light loads and regulates OK- but it might waste power.
    It's actually an Arduino Pro Mini - KiKad doesn't have a Pro Mini model so I just used whatever it had close, that's where you probably got the idea. I do have some smaller buck regulators too, but I'd probably have to add some electrolytics to it (both on the input and output) and I'm not sure how well those survive in a car where it can get very hot in the summer...

    Originally posted by redwire
    You can put the Nano to sleep and wake it up if IGN is on. The USB IC apparently draws most of the current.
    No USB IC on the Pro Mini and I also had a look at THIS. I removed the LED and the regulator, but have not had a go with that sleep library. My hope is that it won't affect any of the functions running on it...

    Leave a comment:


  • redwire
    replied
    Re: Running a microcontroller in car - power supply aspects

    It looks not bad, many chinese DC-DC have a 1A diode which quickly cooks.
    Arduino Nano uses about 20-35mA, so I wonder about using a 5A buck converter? If it is OK with light loads and regulates OK- but it might waste power.
    I think the spec. limit for a car is about 70mA quiescent drain before the battery goes dead when the car is parked for a few weeks. Subaru firmware bug made their ECU use 150mA, which quickly wore out and killed the car's battery and pissed off all the owners who had to buy a new battery.

    You can put the Nano to sleep and wake it up if IGN is on. The USB IC apparently draws most of the current.
    I use a small LDO LP2950 for my MCU car projects, and the bigger 5A TPS40057 modules for USB car charging cell phones. Those use about 50mA (with LED) at rest.

    Leave a comment:


  • Dannyx
    replied
    Re: Running a microcontroller in car - power supply aspects

    Originally posted by redwire
    I guess there are fake LM2596 boards out there. The IC runs at 50kHz, not 150kHz and put in a 1k resistor instead of the pot, for 5V out.
    My main worry would be if the mystery IC can run at 30V input (during a spike)
    My buck converter doesn't even have an LM on it - it's a XL4005E1 so this should be interesting
    Attached Files
    Last edited by Dannyx; 04-25-2020, 03:15 AM.

    Leave a comment:


  • stj
    replied
    Re: Running a microcontroller in car - power supply aspects

    the advantage is you only power 1 relay to move the window, regardless of direction

    Leave a comment:


  • Dannyx
    replied
    Re: Running a microcontroller in car - power supply aspects

    Good pointers on those caps and diode, though I went with a different approach to switching direction: I used a DPDT relay. The caveat is that I now need a second "master" relay to cut the incoming power, since the DPDT relay has no "off" state - it just crosses the + and -, so it'd always run one way or the other. The relay count would be the same (4 - 2 for each window), but I ended up going with your design instead, since 4 SPDT relays are smaller than two DPDTs.

    Leave a comment:


  • redwire
    replied
    Re: Running a microcontroller in car - power supply aspects

    Maybe something like this sketch as a starting point.
    For EMI, it depends on the motor's wiring (long run or not) and if the metal housing is grounded. The brushes arcing can make EMI as well.
    I think a bi-directional TVS will limit the back-EMF from the motor and the relay contact arcing will be small.
    Attached Files

    Leave a comment:


  • Dannyx
    replied
    Re: Running a microcontroller in car - power supply aspects

    Originally posted by redwire
    Just a bit big but oh well.
    Yes - big indeed, especially at this high current.
    Originally posted by redwire
    A snubber or TVS across the motor will protect the contacts
    R+C snubber like this ?
    Originally posted by redwire
    and I would add a couple EMI caps so the Arduino does not crash when the relay contacts spark, as they always do to some extent. If the relays are close to the Arduino it can crash due to the EMI from the contacts.
    I was just thinking of that and yes, the arduino will be right next to the damn things, so I'll definitely have to do this. Where does this go ? Across the motor's terminals ?

    Leave a comment:


  • redwire
    replied
    Re: Running a microcontroller in car - power supply aspects

    I guess there are fake LM2596 boards out there. The IC runs at 50kHz, not 150kHz and put in a 1k resistor instead of the pot, for 5V out.
    My main worry would be if the mystery IC can run at 30V input (during a spike). I would bench test the module first. The zener on the output with a 1A fuse I think will protect the Arduino if the module shorts and gives say 12V for a while.
    Last edited by redwire; 04-24-2020, 01:12 PM.

    Leave a comment:

Related Topics

Collapse

  • CG2
    Meaco Arete One / Deye Dehumidifier not working
    by CG2
    I'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...
    08-17-2024, 07:47 AM
  • Kambi13
    Samsung NP370E4K No backlight running on battery
    by Kambi13
    Hi 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....
    09-04-2023, 11:06 AM
  • Dannyx
    "Kinetic" 433Mhz transmitter/receiver discussion
    by Dannyx
    Good 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
  • Skgod
    Asus Rog strix g15 g513ih hn0865 and it's having display issues while running on igpu
    by Skgod
    Hey 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?...
    10-16-2024, 08:11 PM
  • FALKLAN
    Running Line Voltage and Integrating LED Pods - Automotive
    by FALKLAN
    Howdy 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....
    02-05-2025, 12:30 AM
  • Loading...
  • No more items.
Working...