Question: Homework 7-Volkswagen Jetta Adaptive Front Lighting Simulation Adaptive headlights which turn as you steer to better illuminate bends in the road -are one of the
Homework 7-Volkswagen Jetta Adaptive Front Lighting Simulation Adaptive headlights which turn as you steer to better illuminate bends in the road -are one of the new technologies in proactive safety measures. Here is a link to the Volkswagen Jetta Adaptive Front Lighting feature: wa Write a c program, using the Arduino's integrated development environment (IDE), to simulate the Volkswagen Jetta Adaptive Front Lighting control system with 1 LED light, 1 servo motor, 1 joy stick, and 1 potentiometer 1. Use one (1) LED light to simulate one of the head light 2. Use one (1) joy stick to simulate the steering wheel. The steering wheel can steer the front lights to turn 0 to 15 degrees to the right. The steering wheel can steer the front lights to turn 0 to 15 degrees to the left. a. b. 3. Use one(1) servo motor to simulate the motor behind the head light that can rotate 15 degrees to the right or 15 degrees to the left based on the steering wheel position. a. When the joystick is at the center, point the headlight to 90 degrees. b. Read the joystick x direction value and compute the angle using angle 90+(xVal-512)/15. 4. Separate the potentiometer's rotation range into 2 sections to simulate the headlight switch. OFF- When the headlight is at the "OFF" position, turn off the LED light. The headlight will not rotate with the steering wheel. ON -When the headlight is at the "ON" position, turn on the LED light. The headlight will rotate 0-15 degrees left or 0-15 degrees right to match with the direction of the wheels up to 15 degrees to the left or 15 degrees to the right. a. b
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
