# Alternator Control 5V PWM

**URL:** <https://community.ecumaster.com/t/alternator-control-5v-pwm/706>\
**Category:** EMU BLACK / CLASSIC\
**Created:** [February 5, 2024, 10:43am UTC](https://community.ecumaster.com/t/alternator-control-5v-pwm/706 "2024-02-05T10:43:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cody](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ecumaster.com/cody/32/54_2.png) [@Cody](https://community.ecumaster.com/u/Cody)\
**Post date:** [February 5, 2024, 10:43am UTC](https://community.ecumaster.com/t/alternator-control-5v-pwm/706/1 "2024-02-05T10:43:12Z")

</div>

My alternator is a P-D type. The P terminal requires a 0-5V PWM at 250Hz to initiate charging and control the voltage output.

As far as I’m aware there isn’t a suitable output from the ECU (maybe a spare IGN output - I’m not sure if they’re 12V or 5V).

Couple of ways I’ve thought of controlling the alternator:

1. Switched 12V to a DC-DC converter, 5V from the converter to the alternator then use an AUX output to pulldown PWM. I’m not sure if this will work as the DC-DC converter outputs a regulated 5V and would probably freak out being pulled to ground 250 times a second - I’m not sure if this is correct, it might be fine…
2. PWM from the Hbridge (12V) into a voltage divider circuit to achieve 5V. The problem I see with this method is that the Hbridge 12V will be more like 14V when the alternator is charging which means it’ll be difficult to select the right resistor pair to end up at 5V.

Has anybody PWM controlled a 0-5V accessory (alternator or otherwise) with the EMU Black? What is the best way to do it?

---

<div class="post-metadata">

**Author:** ![Greg](https://avatars.discourse-cdn.com/v4/letter/g/71c47a/32.png) [@Greg](https://community.ecumaster.com/u/Greg)\
**Post date:** [February 5, 2024, 3:40pm UTC](https://community.ecumaster.com/t/alternator-control-5v-pwm/706/2 "2024-02-05T15:40:01Z")

</div>

HI  
Auxiliary outputs have internal pullups so can be used for this control

---

<div class="post-metadata">

**Author:** ![Cody](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ecumaster.com/cody/32/54_2.png) [@Cody](https://community.ecumaster.com/u/Cody)\
**Post date:** [February 5, 2024, 8:35pm UTC](https://community.ecumaster.com/t/alternator-control-5v-pwm/706/3 "2024-02-05T20:35:41Z")

</div>

Oh right! That’s much simpler.

Will the internal pull-ups pull to 12V or can they be set to pull to 5V?

Just having a look through the software and see user selectable pull-up resistors for analogue inputs, but nothing for auxiliary outputs…

Am I missing something in the software?

---

<div class="post-metadata">

**Author:** ![FloorItGarage](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ecumaster.com/flooritgarage/32/61_2.png) [@FloorItGarage](https://community.ecumaster.com/u/FloorItGarage)\
**Post date:** [February 6, 2024, 6:25am UTC](https://community.ecumaster.com/t/alternator-control-5v-pwm/706/4 "2024-02-06T06:25:07Z")

</div>

I have done this with a pull up resistor on the aux channel PWM’ing the alt.

I assume you have a GM alt of some kind?

I am not sure what Greg means by the aux outputs have internal pullups as I don’t believe they do. The H bridges can be flipped to use 12V out (high side), but the aux, inj and ign are low side control when used like this. Perhaps he can elaborate

---

<div class="post-metadata">

**Author:** ![Cody](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ecumaster.com/cody/32/54_2.png) [@Cody](https://community.ecumaster.com/u/Cody)\
**Post date:** [February 6, 2024, 7:04am UTC](https://community.ecumaster.com/t/alternator-control-5v-pwm/706/5 "2024-02-06T07:04:41Z")

</div>

It’s a Mitsubishi alternator that will go onto my 2.5 Duratec. I was mistaken about the 0-5V requirement, its actually 0-2V.

What did you pull up to?

My current plan after talking to an elec engineering mate is to use a voltage divider to get down to 2V from 12V and include a zenner diode to cap the output at 2V to account for changes in Hbridge output between charging and not charging.

---

<div class="post-metadata">

**Author:** ![FloorItGarage](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ecumaster.com/flooritgarage/32/61_2.png) [@FloorItGarage](https://community.ecumaster.com/u/FloorItGarage)\
**Post date:** [February 7, 2024, 6:58am UTC](https://community.ecumaster.com/t/alternator-control-5v-pwm/706/6 "2024-02-07T06:58:31Z")

</div>

I pulled up to the ECU’s 5V in that instance. 2V sounds very strange lol, your solution or one like may be the way to tackle that one.  
Never heard of a 2V controlled alt, what make/model is it from?

---

<div class="post-metadata">

**Author:** ![Cody](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ecumaster.com/cody/32/54_2.png) [@Cody](https://community.ecumaster.com/u/Cody)\
**Post date:** [February 7, 2024, 8:28pm UTC](https://community.ecumaster.com/t/alternator-control-5v-pwm/706/7 "2024-02-07T20:28:38Z")

</div>

The alternator is from a BK1 series Mazda 3 2.3L.

> **[Alternator replacing A003TG1391 / A003TG1391A / a3tg1391 / a3tg1391A](https://wagendass.com/en/alternator/15072-alternator-replacing-a003tg1391-a003tg1391a-a3tg1391-a3tg1391a.html)**
>
> Alternator replacing A003TG1391 / A003TG1391A / a3tg1391 / a3tg1391A

It is a weird one, I got the control voltage numbers from consulting a workshop manual.  
page 921 of this (generator control signal):  
[https://www.scribd.com/document/441265391/Mazda-3-Workshop-Manual-Engine-Wiring-Diagrams-Diagnostic-Trouble-Codes-pdf](https://www.scribd.com/document/441265391/Mazda-3-Workshop-Manual-Engine-Wiring-Diagrams-Diagnostic-Trouble-Codes-pdf)

![image](https://europe1.discourse-cdn.com/flex013/uploads/ecumaster/original/1X/e0648215d014d30b809cc14415635565deecb38e.png)

Other diagnostics say that a working alternator should have voltage 0.7V to 2V at that pin so that checks out too.

I’d have thought pulling up to the ECU’s 5V might cause havoc with sensors?

---

<div class="post-metadata">

**Author:** ![Jadzwin\_ECUMASTER](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ecumaster.com/jadzwin_ecumaster/32/28_2.png) [@Jadzwin\_ECUMASTER](https://community.ecumaster.com/u/Jadzwin_ECUMASTER)\
**Post date:** [February 10, 2024, 12:31am UTC](https://community.ecumaster.com/t/alternator-control-5v-pwm/706/8 "2024-02-10T00:31:37Z")

</div>

Aux 4 has pullup to 12v.  
If you pullup other aux to +5v nothing wrong happens.  
The resistor will limit the current and nothing will broken.
