How to program a CAN-BUS Arduino shield to control car windows?
-
My project is to control car windows using voice recognition. I have successfully controlled some LEDs using the EasyVR Arduino shield using and Arduino MEGA. Now I want to take control of the windows using the CAN-BUS arduino shield. Because the car that I own doesn't have an OBD-II connector, I am using two Arduinos with two CAN-BUS Arduino shields making one a sender and the other a receiver. How can I program the CAN-BUS Arduino shield to make a simulation of the car's windows? CAN-BUS shield that I am using: https://www.sparkfun.com/products/10039 Arduino Mega: https://www.sparkfun.com/products/11061
-
Answer:
What model car do you have? Most cars do not have the ability to control power windows from the car computer. Late model cars will have the ability to control the window motors using bidirectional functions on a scan tool. On any car, the window motors have two wires, if one wire is given power and one ground it will spin if you switch the wire that gets power with the wire that gets ground it spin in the opposite direction. In my experience the way power windows work are both wires are ground while the switch is in the neutral position and by flipping the switch the switch will disconnect one of the grounds and replace it with a power. Find a wiring diagram for your car, and look at how the windows are controlled. Get a 2 relay breakout board such as this one (make sure you check the current ratings): http://rads.stackoverflow.com/amzn/click/B0057OC6D8 Connect the ground wire to the normally closed (when no power is applied to the relay this is connected to the output wire) side of both relays and the 12v power to the normally open (when power is applied to the relay this is connected to the output wire)side of both relays. In order to control the relay breakout board you choose one io pin per relay and set it as an output, then connect those pins to the corresponding pin on the breakout board. Set one of the pins to high (you apply power to one relay) the motor now has a power and a ground connection, set the opposite pin high to spin the other way. I would place this in the driver side door underneath the window master switches because you can have access to every windows wires as they come out of the master switch. Some late model cars will have a different set up than the one described, but the window motor will only have two wires (it is just a brushed DC motor) just find the window motor and hookup there. I hope this helps.
user3508331 at Arduino Visit the source
Other answers
the central lock system will close the car doors and close the windows, i think you should build your system with the same idea, dealing with windows motors as normal motor without special commands for the window
pyCuda
Related Q & A:
- How to program a key fob on a 2000 cavalier?Best solution by remotesremotes.com
- How much would a party bus cost?Best solution by Yahoo! Answers
- How to program a dish control with the new TV?Best solution by ChaCha
- How to program a directv remote control?Best solution by Yahoo! Answers
- How to program a rca tv with a philips universal remote?Best solution by eHow old
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.