The Sensor Sudut Setir Mobil is a specialized sensor used in vehicles to measure the angle of the steering wheel. This data is crucial for various automotive systems, including electronic stability control (ESC) and advanced driver-assistance systems (ADAS). By providing real-time feedback on the steering wheel's position, the sensor helps enhance vehicle safety and performance.
Parameter | Value |
---|---|
Supply Voltage | 5V DC |
Operating Current | 10mA |
Output Signal | Analog (0-5V) |
Measurement Range | -720° to +720° |
Resolution | 0.1° |
Operating Temperature | -40°C to 85°C |
Connector Type | 3-pin (VCC, GND, OUT) |
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (5V DC) |
2 | GND | Ground |
3 | OUT | Analog output signal (0-5V) |
+5V (Arduino) ----> VCC (Sensor)
GND (Arduino) ----> GND (Sensor)
A0 (Arduino) ----> OUT (Sensor)
// Sensor Sudut Setir Mobil Example Code
// This code reads the analog output from the sensor and prints the steering
// angle to the Serial Monitor.
const int sensorPin = A0; // Analog pin connected to the sensor's OUT pin
int sensorValue = 0; // Variable to store the sensor value
float steeringAngle = 0; // Variable to store the calculated steering angle
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
}
void loop() {
sensorValue = analogRead(sensorPin); // Read the analog value from the sensor
steeringAngle = map(sensorValue, 0, 1023, -720, 720); // Map the value to the
// steering angle range
Serial.print("Steering Angle: ");
Serial.print(steeringAngle);
Serial.println(" degrees");
delay(100); // Wait for 100 milliseconds before the next reading
}
Inaccurate Readings:
No Output Signal:
Fluctuating Readings:
Q1: Can the sensor be used with a 3.3V microcontroller?
Q2: How often should the sensor be calibrated?
Q3: What is the maximum steering angle the sensor can measure?
Q4: Can the sensor be used in outdoor environments?
By following this documentation, users can effectively integrate the Sensor Sudut Setir Mobil into their automotive systems, ensuring accurate and reliable steering angle measurements.