I have home weather station project for my home. I got 10.3129.10.712 Wind Direction Sensor Datasheet and you can reach the datasheet by clicking the link.
My arduino is Arduino UNO R3.
Now I have some problems also some failures.
This is my connection wires according to the datasheet. In the datasheet It says you must restrict current by 1 mA and where should i put resistor in this diagram ( If the diagram is true? )
Here my code
void setup() {
// put your setup code here, to run once:
pinMode(A0,INPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println(analogRead(A0));
delay(500);
}
And here my serial print outputs for 5 seconds ( even I hold fixed the direction )
vaj4088:
All the grounds should be solidly connected to each other. 5 volts should NEVER be connected to 24 volts.
Yes you are right, I got my failure on that issue. 24V and 5V may form a current from flow high voltage to low one. But which pins that i use AGND - SENSE (-) ?
Remove the 24V completely from the sensor.
Your diagram shows 1 and 2 are INTERNALLY connected together.
Your diagram shows 4 and 5 are INTERNALLY connected together.
So you only need to use 1, 3, and 5. . . .
The 1mA refers to a fault current, which if you wire it as above should never occur.
The 24V is needed if you are aiming to heat the sensor to prevent freezing.
The fault current occurs when the sensor points North and the ends of the potentiometer are shorted to each other. 5V / 1mA = 5,000 ohms in series with the +5V wire. Note that this will affect the maximum reading.