Hi Timo
thank you for help, it looks like a nice sensor.
There is a version with built-in PT100, do you think is useful to compensate for density variations? Temperature before and after the engine can be quite different.
And yes, i fear that pulsation dampers are indispensable me too...
popeye_70:
There is a version with built-in PT100, do you think is useful to compensate for density variations? Temperature before and after the engine can be quite different.
I prefer to do it somehow. I did not notice that version, so I have planned to use 1-wire sensors.
Yes, but then you need to force code to use mcp_can instead of internal can controllor. Also that seem to be with 8MHz clock, so you have to set that too.
And why you would like to use external controller, while there is build in CAN?
In picture it has termination resistor on the board. Take care that you have exactly 2 termination resistor on whole N2k bus. Resistors has to be on end of the bus and any drop cable must not exceed 6 m.
Simply because I have not had any problem with MCP2562. If you check posts others have had some problems with SN65HVD230 and then switched to MCP2562. Maybe they have connected it wrong and burned it or what ever. MCP2562 works with both 5V and 3.3V as far one connects Vio to used IO level. Now I have started to use ISO1050 to isolate device from bus.
Isolation is naturally more complex and requires more parts. Note also that if you make device just for your own and you anyway feed N2k bus from same 12V source as you feed your device, isolation does not make sense. For isolation you should think it then more widely. Certified devices are required to be isolated on bus side. So if you feed N2k power with isolated PSU, then you could think having isolation on your tranceiver.
Just Google ISO1050 and download datasheets. There is good example. In the example there is isolated DC-DC converter from device side feeding tranceiver. Other way is to have DC-DC converter taking power from N2k bus and feed ISO1050 with that. Then you feed your device from battery with other DC-DC.
hey,
I have a DST800 sensor (depth sensor, speed and temperature).
This sensor works with the NMEA2000 standard.
I am using a seeed CAN shield (v1-2) (CAN-BUS Shield V1.2 | Seeed Studio Wiki)
And i use an arduino MEGA 2560 and a 12V continuous stable power supply.
I think i need to use the "ttlappalainen" library (ttlappalainen (Timo Lappalainen) · GitHub).
Someone would have managed to acquire the data from this sensor?
If yes, how did you do it?
DST800 sends standard depth PGN 128267 and speed PGN 128259. To read these with Mega 2560 you need to install NMEA 2000 library, NMEA2000_mcp and CAN_BUS_Shield libraries from my git ttlappalainen (ttlappalainen) / Repositories · GitHub.
Under NMEA2000 library examples there is DataDisplay2, which shows various bus data in clear text format. The example should give you way to handle received data. That e.g. handles speed on Speed(const tN2kMsg &N2kMsg) and depth on WaterDepth(const tN2kMsg &N2kMsg) callbacks.
If your electronics and connections are ok, the example works.
Thanks timolappalainen to help me. But this doesn't work.
This is what i did in the first time:
I downloaded NMEA2000_mcp-master; NMEA2000-master; CAN_BUS_Shield-master-2
I test "DataDisplay2" but i don't work. They are "CAN device failed to open Running...CAN device failed to open all the time"
After:
I test "receive_check.ino" in CAN_BUS_Shield-master-2. I change "Slave select" of SPI (const int SPI_CS_PIN = 9;) because in my seeed CAN shield (v1-2) the CS (SS) is in 10. After I changed (const int SPI_CS_PIN =10) he tell me "CAN BUS Shield init ok!" but nothing else.
After:
I return in "DataDisplay2.ino" i connect the pin10 in pin9 (I twisted the pin and i connected a wire between pin 10 to 9 because i don't know where i can change the instruction in your software) but he tells me all time the same message (CAN device failed to open Running...CAN device failed)
In the same time i changed #define N2k_CAN_INT_PIN 21 to 2 (because I tested electronically "INT" of my MCP2515 is connected to the pin 2 of arduino MEGA2560)
There are also library specific defines:
mcp_can:
#define N2k_SPI_CS_PIN 53 // Pin for SPI Can Select
#define N2k_CAN_INT_PIN 21 // Use interrupt and it is connected to pin 21
#define USE_MCP_CAN_CLOCK_SET 8 // possible values 8 for 8Mhz and 16 for 16 Mhz clock
You should not touch any library code at all. If test example, you can take copy of it and modify that. If you need to change definition, you do it in your code before including NMEA2000_CAN.h - not modifying itself. Like this: