I have a RS-FXJT-V10 10 volt wind direction sensor which I am struggling to make work with a raspberry pi 3.
I have tried a voltage reducer to lower the voltage from the sensor to 5 volts oe 3.3 volts and then used an Arduino Uno or pi pico to change the input signal to digital to read on the pi.
I have also tried an analogue to pwm convertor to input to the pi.
I have not been able to get any of these setups to work.
If anyone has got this sensor working I would be grateful for some advice.
That sensor has a 0-10 volt output that linearly represents 0-360º. You can scale that 0-10 volt signal with a resistive divider to match the input range of the ADC of your microcomputer and map that voltage into the degrees it represents.
as @EmilyJane suggests use a voltage divider to reduce the voltage range to the input range of your ADC (pi pico 3.3V or UNO 5V) - write the results to the serial monitor
once that is working plug the USB cable from the microcontroller into a USB connector of the RPi 3
it will create a virtual serial port, e.g. /dev/ttyUSB0
you can then implement a program to read the information from the serial port, e.g. in C++, Java, Python, Matlab, etc
Welcome!
Try a 20K on the upper (18.5K is the calculation) and a 10K on the bottom where the top if fed with the 10V signal and the junction of the two resistors goes to your analog input and the other end of the 10K goes to ground.
Thanks for the comeback, hlwever I did not draw it, it is the third picture showed when I looked for a voltage divider. Does this help, it was 3 pages down.
Sorry but It is not worth the effort to me, the cad machine is not here and it is something the op could have looked up by simply searching for "voltage divider" and clicking images. There are lots of choices. Thanks for the comments.
Since 3V3 is 1/3 of 10volt, i don't need a formula to calculate the voltage divider.
A 1:2 ratio is all you need.
If you don't have exact double or half values, then simply use three equal resistors.
One between MCU pin and MCU ground and two in series between sensor and MCU pin.