Open cheeseheap opened 1 year ago
1) PCB looks good, but I prefer to use isolated tranceivers for connecting bus to PC. Schema "Teensy 3.2, simple unisolated" you refer is only for devices, which are totally isolated on other side. Check isolation schema examples like "Teensy 3.2, simple isolated" and add protection as on other picture. Since you are using it from PC, you do not need to power Teensy with other DC-DC converter and cut USB power from it.
2) You do not need to modify #define N2k_CAN_INT_PIN 21 since that is only for external MCP2515 CAN controller. Teensies has internal CAN controller.
Hi Timo,
Thanks! I will try to make a second version using the ISO1050.
Couple of followup questions:
Thanks again!
Thanks so much! Apologies I didn't see your comment regarding the DC-DC converter earlier.
I watched some tutorials on SMT and am going to give it a try. Attached the updated PCB with ISO1050, this one was much easier to make. Would be super helpful if you could take another look!
Last two questions (hopefully):
Gerber_ISO1050 CAN hat_2023-06-03.zip PCB_ISO1050 CAN hat_2023-06-03.pdf
I can not say anything from the picture except that nice 3D. It does no tell anything about schema.
Thanks! I've been doing some more research after your comment and learning a lot :) I'm assuming when you talk about diodes / L2 you are talking about those seen on this schematic? I've been looking at those parts (specifically the diode) and I'm worried I don't have the skill / tools to solder that small. Therefore I will order two boards, one with and one without the diode. Regarding the L2, I'm assuming this is a Common Mode Choke? If not, what do you mean by L2? If you have a part number that would be great, as it's difficult for me to figure out exactly what I need.
Apologies if I'm asking obvious questions! I'm a beginner and just getting started. FYI please see my progress below.
Board without Diodes
With diodes
You do not need two boards with and without diodes, since you can just leave diodes not connected.
Yes, L2 is common shoke filter. I'll try to find code... It is also small tiny part, but you can do the same as with diodes and put jumpers.
Your board probably works, but it does not follow isolation rules. Your left side wires runs under the chip and there are left side through holes on right side. There should be clear separation between left and right side of ISO1050 chip as in document https://www.ti.com/lit/ds/symlink/iso1050.pdf 11.2 Layout Example.
N2k cables normally also has shield around. You can use 4 pin connector and leave shield hanging around to cause risk of short or use 5-pin connector where to connect shield. On board shield pin will be left unconnected. Note also that as in my examples I used 5-pin connector with pin order as in connectors use with DeviceNet, where NMEA2000 has been inherited. You can also use 3.5 mm pin separation to save space.
EDIT: FORGET WHAT I SENT BEFORE. BELOW IS UPDATED.
Hi Timo. I've been making some progress based on your feedback, thanks again! I am working with a PCB supplier and also partially dependent on the parts that they can supply. Also, I have shifted my strategy a bit and thought it would be cool to be able to create something that, after soldering a couple pins onto, you can just "push" a Teensy 4.0 onto. Please see below, let me know your thoughts! Keep in mind: I'm trying to follow the isolation rules as much as possible, but I'm not looking for 100% perfection.
Also, any recommendations on that choke filter? I am hoping I will be able to source it from the supplier that I am getting the PCB from (similar for the diode, they are able to provide me that part).
Board looks better.
I am not specialist with hw design. R-78e5.0-0.5 is anyway DC-DC converter and will cause some noise to CAN V+if there is no filtering.
One possibility for filter is SRF2012-121YA.
Thanks! I've made some final updates to the board and added a common mode filter to it. I can't get my hands on the part that you mentioned, but I found this WCM2012F2SF-121 as an alternative. Let me know if you think that would be OK. The basic parameters are:
Impedance: 120Ohm ±25% Frequency: 100MHz DC resistance max: 0.30 Ohm Rated Current: 400mA Rated Voltage max: 50Vdc Withstand Voltage max: 125Vdc IR: 10M Ohm
Final board layout below. Will order soon. Could you let me know if there is anything that you think is wrong? For instance, does it matter which way the common mode filter is connected? (I couldn't find this in the documentation)
Thanks a ton! I'll post my findings after I receive the board and hook it up to the NMEA 2000 bus on board (btw, I created a prototype with the MCP2562 and it works well!)
HI Timo. Thanks for your feedback (again)! You made me think and I have re-done the design again. I'm going to order this tomorrow so let me know if you absolutely think this will not work. Note I am not aiming for perfection here, just something that will (likely) work. Also note: forget about P5-P7 and U11 (this was automatically created by the software). I'm thinking of a different way of mounting the Teensy to this. I hope to be able to show you with pictures of the final result.
A few things that I have tried to do with this change:
Lmk if you find anything off!
Hi folks,
IT WORKS! :) Last update here for those that may be interested in doing this in the future. PCB Gerber file attached (obviously I can't guarantee anything as I am not a professional in PCB design). Tag me in any questions you may have!
I ordered the PCB from China using easyeda.com and subsequently ordering through their parent company JLCPCB.com. I used that provider because they have an easy UI and they were able to (very cheaply) supply some of the parts that I couldn't find easily here. They happened to have a deal where they would solder for a small fee the parts that they were supplying. This made things VERY easy for me. I was especially worried about having to solder the choke (its tiny). See pictures below. When it arrived I only needed to solder the capacitors, DC-DC converter (left over from my prototype) and and the male/female pin headers. I was then able to slide it onto the Teensy no problem.
You'll notice I changed the design compared to the previous post. I changed the way the PCB is oriented compared to the Teensy and this allowed me to (at least to a degree) respect the ISO 1050 isolation rules. It's effectively a "CAN HAT" for the Teensy 4.0. I'm sure that from a best-practices POV there is still a whole lot wrong with this design, but hey it works. Last thing for me to do is to create a permanent mounting solution. I was thinking of modifying this bracket for that.
Overall the cost amounted to about €100 in parts total. A whole lot less than an Actisence NGT-1!
Parts list:
Thank you again Timo for all your help!
Update: we’re almost a year on and the pcb is still working great!
Hi Timo,
First of all: thank you so much for the work you've done here!
My goal is to connect our NMEA2000 (Raymarine SeaTalkNG) network to our onboard PC, which is running OpenCPN. I noticed you can buy an NGT-1 from Actisense to do this, however I'm not comfortable with the outrageous price. I noticed some others have tried the same so I've been playing around and bought a Teensy 4.0, MCP2562, some other parts and a soldering iron. I haven't tested the contraption that I created yet, however I already know that I want to create something more "elegant" for the long term.
That's why I've investigated creating a custom PCB for this, and this seems easier than I thought! Please find attached a PDF, which is the easiest way to get an idea of what I'm trying to do (zoom in). Also attached a 3d visual and a Gerber file I want to use to order the part. FYI I created this on https://easyeda.com/, which seems very intuitive to use, even for a newbie like me! The goal was to create a simple PCB that can be put together by a non-expert with limited skills like me. For instance, I am only using THT. I am planning to "place" this on top of the Teensy by using some tall header pins. On the right-top of the PDF you'll see a hole for above the Teensy pin Vin (5V). Below that GND, 3.3V etc. Note that I tried to make the board work for both Teensy 3.2 and 4.0 by for instance routing the Tx to pin 3 (for Teensy 3.2) and to pin 22 (for 4.0).
I have two questions for you (or anyone else viewing this):
FYI if there is anyone here who would like this PCB as well, I am required to order more than one. Send me a message and if you live in Europe and are interested. For cost of board + shipping I am more than happy to send to you!
Thanks so much!
Cheers,
Cees (NL)
PCB_MCP2562 CAN hat_2023-06-02.pdf Gerber_MCP2562 CAN hat_2023-06-02.zip