OpenMarine

Full Version: Introducing myself
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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.
(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!