Hi! I have a problem connecting my Ultrasonic Anemometer 2D WP 4.388x.xx.xxx (Thies CLIMA) to my CR3000 datalogger (Campbell Scientific). This sensor measures wind speed (WS) and wind direction (WD). The analog output range of the sensor is 0-10V. Because the maximum input range of the CR3000 is 5V I am using a voltage divider (VDIV2:1, Campbell Scientific).
I am using LoggerNet and the CRBasic programming language. I tried using VoltSE() and VoltDiff() for single-ended and differential measurements but it does not work.
Public WD,WS
DataTable (ultra,True,-1)
DataInterval (0,1,Sec,10)
Sample (1,WD,FP2)
Sample (1,WS,FP2)
EndTable
BeginProg
Scan (1,Sec,3,0)
VoltSe (WS,1,mV5000,25,1,0,250,1.0,0)
VoltSe (WD,1,mV5000,27,1,0,250,1.0,0)
CallTable ultra
NextScan
EndProg
OR
Public WD,WS
DataTable (ultra,True,-1)
DataInterval (0,1,Sec,10)
Sample (1,WD,FP2)
Sample (1,WS,FP2)
EndTable
BeginProg
Scan (1,Sec,3,0)
VoltDiff (WD,1,mV5000,1,True ,0,250,1.0,0)
VoltDiff (WS,1,mV5000,2,True ,0,250,1.0,0)
CallTable ultra
NextScan
EndProg
My question is: Has anyone succeeded in connecting the same sensor to CR3000 datalogger? Where is the mistake in my code?
I would really appreciate it if someone could help me as I am new to programming.
Thanks,
Zoi
and you couldn't get the digital version? :-)
1) have you tested the signal lines of the sensor to give out 0-10 V when you .. I don't know point a fan at it? Maybe with an oscilloscope?
2) have you seen this: "The VDIV2:1 contains two 10 kΩ resistors that have a ratio tolerance of ±0.02%. Increased input settling time may be necessary to accommodate the relatively high resistance of the voltage divider."
Make sure you connect the signal wires to H and their respective references to L for diff channel 1 and 2.
Then try this (reverse measurement switched off and settling time 1 ms):
Public WD,WS DataTable (ultra,True,-1) DataInterval (0,1,Sec,10) Sample (1,WD,FP2) Sample (1,WS,FP2) EndTable BeginProg Scan (1,Sec,3,0) VoltDiff (WD,1,mV5000,1,False,1000,250,1.0,0) VoltDiff (WS,1,mV5000,2,False,1000,250,1.0,0) CallTable ultra NextScan EndProg
Thank you Nico for your reply!
I connected the wires for differential measurement as you suggested and I used the code you posted. However, it still doesn't work. I can't use the digital version because the ports of CR3000 for digital communication are used for other sensors and I do not have a RS485 to RS232 converter.
Is it possible that the problem is associated with the power supply? ? For power supply I am using the following ports of CR3000: 12V and G.
According to the manual of the sensor the operating voltage for electronic is 8V...40V DC or 12V...28V AC 50Hz/60Hz;0.7W@24V.
Any ideas?
Thank you in advance.
the website says 2.5W, so at 12V that's 200mA.. no problem for the CR3000 12V terminal (up to 3A if your power supply can do it).. how does your power supply look like that drives the CR3000?
you can check the diff input of the cr3000 by applying the 5V terminal to the H and L channels.. should give you 5000 without the 2:1 reducer and 2500 with it.
But the logger checks itself upon reboot (or via device config I think you can prompt it) so this is not really needed.. would only give youa test to see if the code works and you got the correct terminals.
I can't see a pinout for the 8 pol sensor connector.
What do you got on that one?
If I were to guess you have:
Power
Ground
TX
RX
Dir_analog
Spd_analog
Heat +
Heat -
Is that correct?
Or is it more convoluted?
What does the manual say about wiring when you use the analog signals?
How do you connect the reference Ground that is prob also used for power?
How do you know your analog signals are not in current mode?
How can you switch between the two?
Or is that an at-order-time setting?
Is there a troubleshooting guide in the manual for the sensor?
What test gear do you have at your disposal? Voltmeter? Oscilloscope?
Thanks for the reply! I have a 12 V power supply for the CR3000 (Regulator, 230V 50Hz 21W).
The pinout for the 8 pol sensor connector is:
1 WV analog output wind velocity (isolated)
2 TXD-/RXD- serial interface (isolated)
3 AC/DC power supply for heating
4 WD analog output wind direction (isolated)
5 TXD+/RXD+ serial interface (isolated)
6 AGND ground for analog output and serial interface (isolated)
7 AC DC power supply for electric and heating
8 AC DC power supply for electric
9 shield against electric fields
The manual provided by the company is quite short and the only one that I found online is the following:
https://www.catec.nl/uploads/pdf/2D%20ws%20manual_1253.pdf. There is a small difference in the pinout (7 and 8 in reverse).
On page 30, for analog outputs, it suggests using pins 1-2 and 4-5 for differential measurements of the wind velocity and wind direction, respectively. Perhaps for the power supply, the right pins are 8-6 or 7-6. I couldn't find any examples of wiring my sensor to a data logger (especially to CR3000). I think there isn't a troubleshooting guide for my sensor.
I am using a digital multimeter for testing.
I hope that I answered most of your questions. Do you have any suggestions about the wiring?
Best regards,
Zoi