I'm in the middle of making my own comfort module for my car based on Arduino. I've ported most of the stock features, including controlling the windows via a switch, but I want to add auto-closing feature when my rain sensor detects rain, and auto-closing when passenger holds the button for more than half a second. The question is - how do I know if the window is fully opened or fully closed? Is there some additional sensor fitted into the cars with this feature? Do I just measure motor power usage and stop when it's above average? I thought about measuring the time window takes from fully opened to fully closed and vice versa, but that wouldn't be very accurate.
-
A simple limit switch will do. – Eugene Sh. Jul 26 '22 at 21:07
-
@EugeneSh. is this how it works in modern cars? – dante3 Jul 26 '22 at 21:09
-
Stepper motor. Just remember the steps. – RemyHx Jul 26 '22 at 21:13
-
Unlikely. They might have current sensing in the motor controller, but limit switch is probably the simplest way (electrically, not mechanically) to implement sensing for your side system. https://engineering.stackexchange.com/questions/6083/do-car-power-windows-have-limit-switches - this pretty much a duplicate of your question – Eugene Sh. Jul 26 '22 at 21:13
-
1@RemyHx lots of work to replace current motors, especially considering that they probably (didn't look yet) have custom mounts – dante3 Jul 26 '22 at 21:39
-
@EugeneSh. thank you very much, I searched before asking but couldn't find it, maybe bad wording – dante3 Jul 26 '22 at 21:39
-
Better measure the current drawing by motor. Then it is stacked at low or high position, current rise suddenly. – user263983 Jul 26 '22 at 22:55
-
The windows in some modern cars are pretty smart. They can tell if they hit an obstruction prior to closing, and if they do they will back off a bit. – user57037 Jul 27 '22 at 00:23
3 Answers
Car windows with features like auto up/down or remote open on modern cars tend to have rotary encoders, off board controllers like a bcm or a module in the door switch panel). The more expensive the car...
Car windows without those features tend to be basic motors only and have no way to determine if open or closed. They won't add encoders to the motor assembly because they know they won't use it and it cost them pennies more.
Without modification, these can be forced to close by running to motor for x seconds, and assume they close. If they start to overheat from say a stall condition like a stuck window or an object in the way, the required kill condition feature should kick in. On the cheaper models that's a simple PTC inline with the motor. It will trip, and the motor stops.
- 73,027
- 7
- 93
- 209
-
1Lots of car windows have had the safety feature of if a certain load is exceeded then they open, not just stop - imagine a child’s neck getting squeezed then the motor just stops. And this has existed for over 30 years… – Solar Mike Jul 26 '22 at 23:04
-
@solarmike uhh final rule in effect 2008. And it only requires buttons that can't be pressed easily. The reversal rule is an alternative. From Gils link
in this document, the agency is also denying two petitions for rulemaking requesting that the agency require power windows in new vehicles to be equipped with an automatic reversal system or other anti-entrapment feature– Passerby Jul 27 '22 at 02:13 -
@SolarMike that auto reverse is only mandated for cars after 2010 with auto-up windows https://www.law.cornell.edu/cfr/text/49/571.118 Basic windows without those features, like I specifically stated, do not have that requirement. – Passerby Jul 27 '22 at 02:25
-
2@SolarMike how can the car tell the difference between the window being fully closed and the window encountering an obstruction? Unless there is some kind of position feedback? – user57037 Jul 27 '22 at 04:10
-
@Passerby USA-centric then, been done before by other countries and car makers. – Solar Mike Jul 27 '22 at 06:25
-
@mkeith how are car windows "pretty smart”? Re your comment to another answer? – Solar Mike Jul 27 '22 at 06:26
-
@SolarMike They can tell the difference between overload due to being closed and overload due to meeting an obstruction while still open. I consider that pretty smart. Would love an explanation of how they do it. The obvious way would be if they have a position sensor (in which case it is pretty easy). – user57037 Jul 27 '22 at 06:31
-
@mkeith I think they sense the change in current as an obstruction would cause the current to rise. Was looking at my car wiring diagram (from 2005) and did not see any position sensors or procedure to calibrate them... – Solar Mike Jul 27 '22 at 07:31
-
1@mkeith a 2015 nissan with auto up driver window uses rotary encoder with a circuit in the driver side button panel, and a process to learn the position. If you cut the battery or it drains, you'll have to retrain the auto up/down for it to work again. It uses the encoders and not the current to stop it at the top. No noticible current sensing on the pcb. That motor does have a ptc that triggers if you manually hold the window up/down button past the normal stopping points. You can hear it click so to speak. The dumb passenger windows have none of that. – Passerby Jul 27 '22 at 07:40
-
@SolarMike what does it do when it senses a current rise caused by an obstruction, though? Does it just stop or does it reverse? I would think that there would be a current rise when the window is all the way up. My 2012 acura will sense an obstruction and reverse. It probably has a position encoder. My 1999 Tacoma doesn't have electric windows. – user57037 Jul 27 '22 at 09:05
-
-
@SolarMike so how does the car know the difference between the current rise caused by an obstruction vs the current rise caused when the window is fully up and is pushing against the door frame seal? – user57037 Jul 27 '22 at 15:22
-
-
Anti Pinch is now required on all vehicle power windows in North America and many other countries. Check this Federal Register link for some of the requirements in the US: https://www.federalregister.gov/documents/2004/09/15/04-20714/federal-motor-vehicle-safety-standards-power-operated-window-partition-and-roof-panel-systems All car manufacturers now have an anti-pinch feature on all power windows. This safety concept is to eventually include every moving pinch part on the vehicle is happening very fast. In the near term it will require all windows, sun roofs, sliding doors, tailgates, lift gates, seats, and any power driven moving object to eventually be controlled by an anti-pinch system.
It is easy to say measure the current but remember that the motor can be from -40 to about 85C. The viscosity of the grease changes as does the wear and tear of the gears changing the current requirements. You can use this sensor to determine travel limits. Hopefully this helps.
- 5,113
- 2
- 13
- 14
-
In this document, the agency is also denying two petitions for rulemaking requesting that the agency require power windows in new vehicles to be equipped with an automatic reversal system or other anti-entrapment feature– Passerby Jul 27 '22 at 02:14 -
The final rule is "window buttons can't be hair triggers (or alternatively but not required, reversal is okay)". Did you mistake this for a different rule? – Passerby Jul 27 '22 at 02:16
-
Effectively that rule meant all us cars switched to a pull for up window button, instead of the older rocker or push button style. https://www.google.com/amp/s/www.cnet.com/google-amp/news/why-car-power-windows-work-differently/ – Passerby Jul 27 '22 at 02:21
-
It is most likely the change in current value as the window hits an obstruction not the absolute value of the current. – Solar Mike Jul 27 '22 at 06:29
No. The main operating system for the power windows does not have any complexity. In fact the principle, still used today, was developed in the 90s and is adopted by most automobile manufacturers, precisely because it is a basic and efficient project. The strategy is based on a central module, responsible for managing individual central units installed in each door of the vehicle.
In the case of the locking system, how does it know where to stop? Simple, the module installed in each door is usually integrated with the drive motor itself. The system needs to be "warned" when the glass reaches the upper limit. In the following way:
- The glass is opened to its lower limit.
- The switch is activated (keeping it pressed) until total closing.
- Even when reaching the end of stroke, the programming is performed keeping the switch pressed for 5 seconds. The slave module, installed in the door associates the end of stroke due to a small voltage drop, a few mVolts. Immediately the power to the motor is interrupted. Many might say "then the anti-squashing system would work". Actually, no! Remember the switch is held down. In this case the system cuts the power but does not go back.
- After 5 seconds the switch is released and at the same instant it activates the opening, with just one touch (it is not held down). Actually, when the up button was kept pressed, the slave module recognized the procedure, and warned the central module. When it is triggered to open, again the central module is warned by the slave system that immediately orders the window to open, even if the button does not remain pressed. And this way, every time the button is pressed and released in a period of less than 1 second the system interprets that the closing or the opening must occur completely.
In the case of the anti-squashing system, again the system takes into account the voltage drop suffered by the motor. It immediately commands the slave module to reverse the rotation.
- 175,532
- 13
- 190
- 404