Hi Roger,
I asked your help in logging weather data for a wind turbine back in May. Now I would like to add serial functionality to send this data to a microcontroller and receive the value of the turbines speed in return.
The returned value should be also be displayed as "main shaft speed" on the LCD screen I have tried to use the following code to achieve this but as yet no luck. I can't even get any information from a terminal program (I use CoolTerm).
Is there something I am doing wrong here?
BEGIN "SVAWT"
PROFILE "HOST_PORT" "FUNCTION"="SERIAL"
'set rs232 port to send and receive serial data
RA"weather"("B:",DATA:OV:7D)1s
'Schedule scans weather station every second, saves up to 7 days of data
S1=0,352,0,9500"Degrees" 'Define span for wind direction
1R(S1,"Wind Direction",=4CV) 'Read pot and convert to degrees
1HSC(LT,R,RS,W,=1CV) 'Sample cup anemometer
3CV("Wind Speed~m/s")=0.75*1CV+0.2 'Convert freq to m/s as per weather station datasheet
5CV("Main shaft speed~RPM")=0
2SERIAL("\e{%f[3CV], %f[4CV]}%f[5CV]",W)
5CV
LOGON
END
Hi Roger,
I asked your help in logging weather data for a wind turbine back in May. Now I would like to add serial functionality to send this data to a microcontroller and receive the value of the turbines speed in return.
The returned value should be also be displayed as "main shaft speed" on the LCD screen I have tried to use the following code to achieve this but as yet no luck. I can't even get any information from a terminal program (I use CoolTerm).
Is there something I am doing wrong here?
````
BEGIN "SVAWT"
PROFILE "HOST_PORT" "FUNCTION"="SERIAL"
'set rs232 port to send and receive serial data
RA"weather"("B:",DATA:OV:7D)1s
'Schedule scans weather station every second, saves up to 7 days of data
S1=0,352,0,9500"Degrees" 'Define span for wind direction
1R(S1,"Wind Direction",=4CV) 'Read pot and convert to degrees
1HSC(LT,R,RS,W,=1CV) 'Sample cup anemometer
3CV("Wind Speed~m/s")=0.75*1CV+0.2 'Convert freq to m/s as per weather station datasheet
5CV("Main shaft speed~RPM")=0
2SERIAL("\e{%f[3CV], %f[4CV]}%f[5CV]",W)
5CV
LOGON
END
````