This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HY-WDC2E wind with MacArthur hat
#1
https://photos05.redcart.pl/templates/im...manual.pdf

I know there's been some discussion about using this wind sensor; and I'm interested in being one of the guinea pigs. Mostly because I can't afford a brand name unit. I'm wondering if it's possible to connect this directly to my MacArthur HAT or the RasPi GPIO? Datasheets says:

Digital Output: RS485, RS232, SDI-12
Baud Rate: 4800 - 19200
Communication Protocol: ModBus, NMEA-0183, ASCII

None of the digital outputs really match NMEA-0183 (which is RS422 AFAIK) yet the protocol says it does? I'm most interested in getting the data into signalK and back out onto the boat network as NMEA2k to a wind display instrument or OpenCPN. I am barking up an impossible tree here? I can code, I can wire... and I'm ok with a bit of both Smile

Here's a bit more detail from the datasheet linked above:

1 Physical port definition 
  • Start bit——1bit
  • Stop bit——1bit
  • Data bit——8bits 
  • Check bit——none 
  • Baud rate——9600bps 
2 Data-frame format(ASCII) 
  • $WIMWV,180,R,0.01,M,A*06

Code:
Appendix.Checksum
unsigned char NMEA_CheckSum(unsigned char *pStr,unsigned int DStrlen)
{
unsigned char ChkSum = 0;
unsigned int i=0;
while(DStrlen--)
{
ChkSum ^= pStr[i];
i++;
}
return ChkSum;
}
Reply
#2
RS-485 is basically bi-directional RS-422, so NMEA 0183 listeners (RX) should work.
Reply
#3
(2026-04-05, 09:45 PM)Adrian Wrote: RS-485 is basically bi-directional RS-422, so NMEA 0183 listeners (RX) should work.

Ahh, thank you! That's giving me hope. Will report back Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)