# Adding a toggle switch to Power window logic

**URL:** <https://community.ecumaster.com/t/adding-a-toggle-switch-to-power-window-logic/2547>\
**Category:** PMU\
**Created:** [October 15, 2024, 8:26am UTC](https://community.ecumaster.com/t/adding-a-toggle-switch-to-power-window-logic/2547 "2024-10-15T08:26:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ellisd](https://avatars.discourse-cdn.com/v4/letter/e/94ad74/32.png) [@ellisd](https://community.ecumaster.com/u/ellisd)\
**Post date:** [October 15, 2024, 8:26am UTC](https://community.ecumaster.com/t/adding-a-toggle-switch-to-power-window-logic/2547/1 "2024-10-15T08:26:09Z")

</div>

I’ve managed to get my H Bridge to get my power windows to work in a fashion

Well at least I’ve managed to get the to open on power up and close on shut down thanks to ECUmaster prompt replies from the tech dept.

> **[Google Drive: Sign-in](https://accounts.google.com/v3/signin/identifier?continue=https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F1g8kcFUYJcQjv1cpWuali52H0330WCWFm%2Fview%3Fusp%3Ddrive_link&followup=https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F1g8kcFUYJcQjv1cpWuali52H0330WCWFm%2Fview%3Fusp%3Ddrive_link&ifkv=ARpgrqdp3qfSVxy3PnqKxQulNMLVVH_ohSgrjKHwH4JINewHAJJNsRAgQiIXpRFEzGjvoojPEY2lzA&osid=1&passive=1209600&service=wise&flowName=GlifWebSignIn&flowEntry=ServiceLogin&dsh=S-838170136%3A1728979690563178&ddm=0)**
>
> Access Google Drive with a Google account (for personal use) or Google Workspace account (for business use).

I’ve run out of talent though when trying to add a toggle switch into the mix. I’m wanting essentially have a push button (doesn’t mechanically latch) change whatever the current state is but retain the (close on shut down/ open on power up logic)

could someone a bit better at navigating the software look at my configurations and see what I need to do?

PMU24 config

> **[Google Drive: Sign-in](https://accounts.google.com/v3/signin/identifier?continue=https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F1QS_5fxjAoK59DBt9b6jVx-zcJdoMg5aW%2Fview%3Fusp%3Ddrive_link&followup=https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F1QS_5fxjAoK59DBt9b6jVx-zcJdoMg5aW%2Fview%3Fusp%3Ddrive_link&ifkv=ARpgrqcO3SKEFr7-tn1aNoJLcmhxA1lQBb81mGI6S98rSn4UdYBAoJ2RGxJYRR9EYMpFkBEtm28iig&osid=1&passive=1209600&service=wise&flowName=GlifWebSignIn&flowEntry=ServiceLogin&dsh=S-99931172%3A1728980222470371&ddm=0)**
>
> Access Google Drive with a Google account (for personal use) or Google Workspace account (for business use).

H Bridge

> **[Google Drive: Sign-in](https://accounts.google.com/v3/signin/identifier?continue=https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F15t64IArNa8-ibjLxSjK8CBr3lNNXc5ay%2Fview%3Fusp%3Ddrive_link&followup=https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F15t64IArNa8-ibjLxSjK8CBr3lNNXc5ay%2Fview%3Fusp%3Ddrive_link&ifkv=ARpgrqePh_zNqLCsaxIJKvSsTJYWto-AL2qYHKIHQZ5BWTCAAoPW-yy65pxdAiey0AGJoB85wuBL3A&osid=1&passive=1209600&service=wise&flowName=GlifWebSignIn&flowEntry=ServiceLogin&dsh=S-568789344%3A1728980266756761&ddm=0)**
>
> Access Google Drive with a Google account (for personal use) or Google Workspace account (for business use).

Thanks for anyone who takes te time to have a look

---

<div class="post-metadata">

**Author:** ![mfudala\_ECUMASTER](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@mfudala\_ECUMASTER](https://community.ecumaster.com/u/mfudala_ECUMASTER)\
**Post date:** [October 15, 2024, 12:29pm UTC](https://community.ecumaster.com/t/adding-a-toggle-switch-to-power-window-logic/2547/2 "2024-10-15T12:29:58Z")

</div>

I’m not sure how you have connected your push button, but you can try the modified project attached below.

[N\_\_\_TRD Front PMU24.pmu](https://community.ecumaster.com/uploads/short-url/cl72radFVeS6utzaIabYZscr3Zr.pmu) (7.1 KB)

---

<div class="post-metadata">

**Author:** ![ellisd](https://avatars.discourse-cdn.com/v4/letter/e/94ad74/32.png) [@ellisd](https://community.ecumaster.com/u/ellisd)\
**Post date:** [October 15, 2024, 1:43pm UTC](https://community.ecumaster.com/t/adding-a-toggle-switch-to-power-window-logic/2547/3 "2024-10-15T13:43:54Z")

</div>

Thanks, ill give it a try.

Essentially, the motor circuit has 2 12v limit switches that open /close at either end of the motors travel. Ive wired each one to a1 and a2 in the H brudge and send that data to the pmu24
