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
Introducing myself
#1
I have gotten Openplotter working and built an electric tilt compensated compass with ESP32 and gy9250 which I then output with NMEA-183 into Openplotter and it works great. 

Now I want to build a NMEA 2000 interface and make lots of sensors like Fuel level, bilge pump alarm, etc.

I can't spend lots of money so I am trying to use mcp2515 boards which I can get to work with Arduino Uno and Nano boards but when I try the NMEA 2000 library it says can't compile for this board. 

I can compile the NMEA 2000 examples for ESP32 boards but I can't get the mcp2515 boards to work with the ESP32.

Today I tried two SN65HVD230 CAN Boards with the ESP32 and both the can bus demo and NMEA 2000 compile but nothing works.

Any advice or suggestions are welcome.
Reply
#2
Generate Signal K instead and add the N2K connection to your Openplotter server. The server can convert Signal K to N2K for you.

https://github.com/SignalK/SensESP has a bunch of sensors already implemented and additional sensors are pretty easy to add.
Reply
#3
(2020-09-05, 06:11 PM)tkurki Wrote: Generate Signal K instead and add the N2K connection to your Openplotter server. The server can convert Signal K to N2K for you.

https://github.com/SignalK/SensESP has a bunch of sensors already implemented and additional sensors are pretty easy to add.

Thank you for the quick response. 

After a lot of effort and poking around finally found solution.

I wasn't until I read the NMEA200_CAM.h file that I discovered the secret!

I added:
#define USE_N2K_CAN 7 // for use with ESP32
#define ESP32_CAN_TX_PIN GPIO_NUM_5
#define ESP32_CAN_RX_PIN GPIO_NUM_4
#define N2k_CAN_INT_PIN 0xff
before the include libraries

Would be nice to include this instruction in the demo programs so newbies like me don't have so much trouble.

I am so happy to have this work as it open a world of possibilities.

I want to thank everyone who works so hard on all these programs!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)