PDA

View Full Version : Eagle library with Teensy 3.0 footprint



UnaClocker
11-23-2012, 05:48 AM
I'm working on a board that will have a DIP socket that the Teensy 3.0 can simply plug into. I've found the Teensy 2.0 and Teensy++ footprints, but haven't found a 3.0 one yet. I'm using Eagle for this project. Has anyone got one already made?

Magnethead494
11-23-2012, 07:46 AM
http://www.pjrc.com/teensy/pinout.html

Looks to me, one pin longer than Teensy 2.0 and same width.

FWIW, I just did two rows of 20 @ 600 spacing for my T++2.0 sockets.

UnaClocker
11-23-2012, 09:00 AM
Ok, I just whipped up a Teensy 3.0 part. I've never tried creating a part in Eagle (or any other program) before, but I followed a nice guide (which was semi irrelevant for this particular part). I'd appreciate a peer review of this, especially if it saves me from making a bad board based on it. ;)
I assumed the pins were .1" spaced, 14 down each side, 5 between the rows. Not sure what the one by the USB jack or the 3 below it are for, so I left them out of the schematic. I also didn't do anything with the solder pads on the bottom of the board, this is just for the pins that seemed to be most important.
I made the hole sizes good and large (just over .038") so even the large breadboard friendly pins should fit.
http://www.neonsquirt.com/una.lbr

UnaClocker
11-23-2012, 09:05 AM
And then I looked at the other side of the card.. I see what those pins are for now.. It'd be worth adding them. I'll do that in the morning. :)

Magnethead494
11-23-2012, 08:11 PM
yes, I would suggest breaking out all of the pins on the Teensy. You may not need them now, but that could change later.

Constantin
11-25-2012, 09:55 AM
yes, I would suggest breaking out all of the pins on the Teensy. You may not need them now, but that could change later.

I have taken UNAs library and modified it to include all easily-accessible pin holes. I did not include the pads on the underside of the board because I consider them very hard to interface with (other than a bed of nails rig like Paul built). I did take some liberties in re-arranging pins on the symbols part, appended the GND1 and 3.3V1 pins, and changed the pin/pad symbols to only show the pin symbol.

I have yet to try this out in a development environment, please let me know what you think.

Possible improvements: stagger the pins like sparkfun does to make PCB header retention (prior to soldering) much easier. I didn't know how much you all would like such an arrangement, I happen to find it useful.

I uploaded a version earlier tonight that had digital pins 24 and A10 as well as digital pin 25 and A11 combined in the symbol. That has been fixed. Now only A10 and A11 appear in the symbol block.

EDIT: The attachment has been updated again to cover the Teensy 3.0, 3.1, 3.2, 3.5, 3.6 and LC series of boards.

UnaClocker
11-25-2012, 04:58 PM
Awesome, thanks.
And yeah, the sparkfun staggered pins thing seems childish to me.. Never really cared for it. Could always put both versions in the library though. I was thinking it'd be nice to have 3 versions of the Teensy in this library anyways.. A simple DIP28 version that can use a standard DIP socket. The "plus 5" version that I had done, and now this full featured "plus 9" version with all the extra pins.

UnaClocker
11-25-2012, 07:16 PM
Ok, I tried out the revised library you posted, Constantin. Looks good except that you had two pins on top of each other in the symbol, made it difficult to wire up in the shematic edittor, so I fixed that.
http://www.neonsquirt.com/teensy_problem.png
Latest revision posted on my server (http://www.neonsquirt.com/una.lbr).

Constantin
11-25-2012, 07:24 PM
Good catch! Also, since this was intended for non-breadboard applications, I made the holes 38 mils wide and with rounded edges. An updated library is attached.

Constantin
11-25-2012, 10:47 PM
EDIT: New eagle board library was releases, so updating the below. The library now includes the boards for the 3.x series and the LC. Outline options include:


All Pins includes all pins (i.e. including AREF, A11, A10, VUSB).
All Pins and Pads (Teensy 3.x only - includes all pins and pads. My presumption here was that you'd use a SMD pin header on the Teensy and a standard through-hole pin header on the mating PCB.
DILJust the DIL-equivalent outer row of pins (i.e. breadboard style)
DIL+4Just the DIL-equivalent outer row of pins plus AREF, A11, A10, VUSB.
Outer Row just includes the outer pins.


Let me know what you think.

DougALug
11-26-2012, 07:44 PM
Too late now, but I made one and posted it on an earlier post. Oh well. Just search the forums.

Constantin
11-28-2012, 06:29 PM
Hey Doug, I liked the one you published earlier but I feel it is a bit incomplete since it doesn't seem allow for the possibility of a SMD pin header on the underside of the unit, for example. Am I missing something?

The current library includes 7 versions of the Teensy 3.0 footprint, allowing for different combinations of footprints that people might be interested in using. I did omit all the pin numbering as some people might need that space for other things and the Teensy can only really be inserted one way correctly. But I can also see the argument in including said port numbers, all depends on the end-user.

I am currently using the "All-Analog" version, which allows me to also access the two Analog Pads on the underside. This in turn opens up the use of DAD3, the other differential analog input (pairing A12 and A13) for this unit. I plan on using both and I'm quite excited about the possibility of 200kSPS+ 16 bit sampling, even if the ENOB is only 13.

UnaClocker
01-23-2013, 12:29 AM
Constantin.. What on earth were you thinking with the pin size? I just had a batch of boards made using this library. When I made this library, I made the holes big enough to fit standard pins. When you revised it, you made them microscopic. What pins were you thinking people would be using to connect the Teensy with this footprint? As it sits, I think I'd have to use snipped leads from resistors, I can barely even fit an LED leg through these holes.
I'll be updating the library on my server, for now, everyone be warned. :)

UnaClocker
01-23-2013, 12:35 AM
All PCB pin hole diameters are 38 mils wide. Let me know what you think.

According to my screen, they're 23mil diameter holes.

Constantin
01-23-2013, 03:20 AM
According to my screen, they're 23mil diameter holes.

That is bizarre! I updated those files months ago, uploaded them here, and even I had boards made in the meantime that fit standard pin headers just fine. I will re-check tomorrow and I apologize for the issue.

UnaClocker
01-23-2013, 03:26 AM
Looks like if I get machine pins, they'll fit. So I'll do that for this set of boards.

Constantin
01-23-2013, 08:36 PM
Brian, could you be so kind and download the new file and see if that works better (i.e. the pin diameters are right!)

I have gone through the preceding posts and removed the 'bad' versions of this library and replaced them with the current one.

PaulStoffregen
01-25-2013, 02:17 AM
Is there a confirmed good Eagle file for Teensy 3.0 ? Maybe this page (http://www.pjrc.com/teensy/eagle_lib.html) should link to it?

I don't use Eagle, so I can't help with this.... so please do let me know?

Constantin
01-25-2013, 05:06 AM
Is there a confirmed good Eagle file for Teensy 3.0 ? Maybe this page (http://www.pjrc.com/teensy/eagle_lib.html) should link to it?

I don't use Eagle, so I can't help with this.... so please do let me know?

Hi Paul, I have successfully used this library with two pcbs so far. The original file had smaller holes due to an oversight on my part. I thought I had it fixed but I got confused by the uploading system here. Hence my appending the version number to the file name and replacing all versions here with that one.

FWIW, you can download eagle for free and add this library to see if its good. I have ten different sets in there, depending on whether the user wants the basic set (exterior pins) the all through-hole pin set (+4), the all analog set (ie +4 version and 4 SMD pins from the pads on the underside) or the all pin set which also needs to have a bigger SMD header soldered onto the underside.

I use the all-analog version with the power meter I'm working on and a full version for the DAQ module. Both fit, work great.

darkness
01-26-2013, 04:04 AM
I find the learning curve for Eagle to be too steep and I intend to use Fritzing to create my first PCB (home etched!). If you would be so kind as to convert it to a Fritzing part (I actually don't really care so much for the breadboard, I only need the schematic and PCB view), that would be perfect!

Constantin
01-26-2013, 06:07 PM
I find the learning curve for Eagle to be too steep and I intend to use Fritzing to create my first PCB (home etched!). If you would be so kind as to convert it to a Fritzing part (I actually don't really care so much for the breadboard, I only need the schematic and PCB view), that would be perfect!

Not easy to do, as best as I can tell since fritzing seems to expect a DIP form factor that fits into a breadboard. The teensy 3.0 has pins and pads for pins all over...

Nantonos
01-26-2013, 08:34 PM
Not easy to do, as best as I can tell since fritzing seems to expect a DIP form factor that fits into a breadboard. The teensy 3.0 has pins and pads for pins all over...

Fritzing does not require parts to be breadboard compatible (but does expect the pins to be on a 2.54mm (0.1 inch) grid). So it is more veroboard/stripboard compatible than solderless breadboard compatible.

Constantin
01-26-2013, 09:45 PM
Fritzing does not require parts to be breadboard compatible (but does expect the pins to be on a 2.54mm (0.1 inch) grid). So it is more veroboard/stripboard compatible than solderless breadboard compatible.

So, in other words, you need to define all the pins on a 0.1" grid even if they are not physically arranged that way? Seems odd and potentially confusing but ok.

Nantonos
01-27-2013, 01:12 AM
So, in other words, you need to define all the pins on a 0.1" grid even if they are not physically arranged that way? Seems odd and potentially confusing but ok.

Not sure. Things which are exactly on a 0.1" grid will autoconect in the 'breadboard' view and things which are slightly off won't. Need to look at the documentation for details. I would assume that things on finer pitches will still work in the schema and pcb views.

PaulStoffregen
01-27-2013, 04:57 PM
I added a link at the top of the Eagle libraries page (http://www.pjrc.com/teensy/eagle_lib.html).

pht
04-24-2013, 11:12 PM
I tried the above posted Eagle lbr in Eagle 5.11, it says that the lbr contains invalid data and doesn't load. Any reason why? Or is it just due to using an older/newer version?

Constantin
04-24-2013, 11:28 PM
I tried the above posted Eagle lbr in Eagle 5.11, it says that the lbr contains invalid data and doesn't load. Any reason why? Or is it just due to using an older/newer version?

Most likely, it's because I was using eagle 6. Thus, I'd recommend downloading the latest version of eagle and going from there. Some of the changes in eagle from version 5 to six include the ability to have multiple pins with the same signal (for example appending GND to three pins vs having three pins with names that are close but not the same (GND1 GND2 and so on). That's the likely source of error.

DrMefistO
08-10-2013, 11:08 AM
I have a question about differences between Teensy 3.0 parts here. I want to use all of 34 I/O pins (as it specified here (http://www.pjrc.com/teensy/index.html)), but at screen I have found only 24:
http://www.adafruit.com/adablog/wp-content/uploads/2012/09/photo-full.jpg
, and in lbr file there are 24/34 I/O pins. Where is the Truth?

PaulStoffregen
08-10-2013, 11:27 AM
there are 24/34 I/O pins. Where is the Truth?

On the pinout reference card that ships with every single Teensy3.

You can also view it and get the PDF files here:

http://www.pjrc.com/teensy/pinout.html

DrMefistO
08-10-2013, 11:34 AM
So, it's only 24?
But in Eagle's parts there is a scheme with 34 pins.

Constantin
08-10-2013, 12:44 PM
So, it's only 24? But in Eagle's parts there is a scheme with 34 pins.

Take another look at both sides of the Teensy 3 photos that Paul has provided here for the front (http://www.pjrc.com/teensy/card5a.pdf) and here for the back (http://www.pjrc.com/teensy/card5b.pdf). Specifically, take a look at the back of the board for the discussion that follows.

The board that Paul designed has one row of holes around the perimeter. Additionally, there are pin holes inside that. Then, there are pads, not holes, for a pin header that you can purchase at digikey. Here is a link to a selection of them (http://www.digikey.com/product-search/en?FV=fff40016%2Cfff802f3%2C700785%2C70078c%2C1140 003%2C160001e%2C1640001%2C1680002&k=pin+header&mnonly=0&newproducts=0&ColumnSort=1000011&page=1&stock=0&pbfree=0&rohs=0&quantity=1&ptm=0&fid=0&pageSize=50). You can solder them on pretty easily and the name of the game is to select a SMD header that has the same pin length as the regular through-hole pins you are using. The 'extra' holes of the 34 pin design conform to the expected locations of the pins coming out of the SMD header.

The key to soldering them on is to maintain the same 0.1" grid spacing as the rest of the pins in the Teensy 3 layout. I suggest using the usual technique of tacking on one corner carefully, then the opposite corner, making sure they're well-aligned, and then soldering on the other pins first. I'd solder this header after attaching a RTC crystal (they are very close) but before attaching the outer row pins.

If you wonder why there are pads vs. holes on the underside, it comes back to (IIRC) a decision that Paul made when the chip that he was supposed to be able to use became unavailable and he then switched to a 'bigger' chip that was not under development. The form factor of the board was already established so the only way that Paul could accommodate the additional pins of the physically larger replacement chip in use today was to put pads on the underside. HTH.

PS: It will be very interesting to see how Paul will differentiate the upcoming Teensy 3++ from the already awesome 3. I have no idea re: the details but it's going to be very very cool, I'm sure!

PaulStoffregen
08-10-2013, 08:04 PM
DrMefistO, do you actually have a Teensy 3.0 board? If so, just turn it over and look at the bottom side.

The reality is the 24 pins on the edges of the board are much easier to access. The 10 other digital pins, plus 2 more analog, are only available at the bottom side of the PCB. In designing any product, there are always trade-offs. With Teensy, an important goal has always been small size. If those 12 signals came to the edges of the board, it would need to be 43% larger. The vast majority of projects do not need more than 24 pins. Just look at how many projects work with Arduino Uno, which has 20 pins. But this chip has those extra 12 signals. I put those pads on the bottom side so you can get access to those other 12 signals, if you really need them. There are also 2 more analog, and the voltage ref, on a 2nd row of pads.

There truly are 34 digital I/O pins. There's also 4 more analog input only pins, so really there's a total of 38 signal pins. But those other 4 aren't "I/O", since you can't use them for output and as inputs, they're only for analog.

It sounds like you might be unhappy with the product's description? That too is a design trade-off, with a triple goal. #1: provide as much info as possible, #2: keep it brief, mentioning only the most important info, and #3: show the product's selling points. Certainly the goal is NOT to mislead you or anyone. But on a summary page, there isn't room for every little detail. That's why there's reference section. This is common practice for pretty much all technical products.

Every Teensy 3.0 has that printed reference card included. It's full color printed on both sides, using those 2 PDF files. To see the info about the other 12 signals on the back side, all you have to do is flip the card over. Or if the real Teensy3 is in your hand, just look at the bottom side. Since there's no parts on the bottom, pretty much all the space that isn't pads for connections is printing to label everything.

Emach
09-15-2015, 06:56 PM
Dumb question, the 3.0 Eagle libraries should be compatible with Teensy 3.1/3.2 correct?

HWGuy
09-15-2015, 07:49 PM
compatible, yes. But the Reset pin from the Teensy 3.0 is the new A14/DAC pin from Teensy 3.1/3.2.

Emach
09-15-2015, 08:43 PM
Thanks HWGuy for the reply. The A14/Reset won't be an issue for my design. Perhaps a better question. I am having trouble wrapping my head around the package for the Teensy in Eagle. What I am looking for is to be able to place 2 14-pin female headers on the board so I can replace/repurpose the Teensy. As I understand the existing package it provides pin locations for soldering a Teensy w/ pin headers directly onto the board. Can I leave the package as is and simply solder on female headers onto my board and male pins onto the Teensy? I'm not interested in the 5 pins at the foot of the 3.2, just the 2 side rows of 14 pins.

HWGuy
09-15-2015, 11:33 PM
What I am looking for is to be able to place 2 14-pin female headers on the board so I can replace/repurpose the Teensy. As I understand the existing package it provides pin locations for soldering a Teensy w/ pin headers directly onto the board. Can I leave the package as is and simply solder on female headers onto my board and male pins onto the Teensy? Yes.

Sparkfun does the same with the Teensy Arduino Shield Adapter https://www.sparkfun.com/products/13288

Constantin
12-02-2015, 07:05 PM
Hi guys,

I noted some errors in the LC board, i.e. still using the AGND pin when there isn't one. Also found that "17 @ VIN" will not display (Pin name).

Both have been corrected. This ZIP contains both the finished board outlines for the 3.x and LC series, as well as the chips needed to make Teensy's yourself.

Now I get to hunt for the older files... oh well!

ecurtz
12-02-2015, 07:18 PM
Thanks for making and maintaining these!

One thing I noticed was that as discussed in the recent thread about master/slave SPI, MOSI and MISO don't exist on the Teensy3 and these should probably be relabelled as SOUT and SIN next time you're doing revisions.

Constantin
12-03-2015, 05:45 AM
Thanks for making and maintaining these!

One thing I noticed was that as discussed in the recent thread about master/slave SPI, MOSI and MISO don't exist on the Teensy3 and these should probably be relabelled as SOUT and SIN next time you're doing revisions.

Great suggestion, but looking over the pinout card, I didn't see those terms used. Did you mean DOUT and DIN?

ecurtz
12-03-2015, 04:53 PM
Great suggestion, but looking over the pinout card, I didn't see those terms used. Did you mean DOUT and DIN?

The SPI section of the reference manual uses SIN and SOUT, but DIN and DOUT is better if that's what the reference card uses.

ness
07-08-2016, 03:52 PM
Hello,
I wasn't sure where to post this question...

Is there a surface mount connector of some kind or similar that could be soldered to the pads on the back of the Teensy 3.2 and have a cable attach to it?
If yes, does anybody have a part#?
Thanks...Ness

Constantin
07-08-2016, 04:18 PM
There are many approaches to doing this.

One involves the use of two dual-row headers, where the 'inner' set of pins are bent 90* as discussed here (https://forum.pjrc.com/threads/26071-Using-all-Teensy3-x-pins-with-a-socket).

Or, you can buy an 2x7 SMD pin header (http://www.digikey.com/product-search/en/connectors-interconnects/rectangular-connectors-headers-male-pins/1442547?k=header&k=&pkeyword=header&FV=700785%2C1140003%2C160001e%2C1640001%2C1680002% 2C8cc0003%2C8d00002%2Cfff40016%2Cfff802f3&mnonly=0&newproducts=0&ColumnSort=1000011&page=1&stock=1&quantity=1&ptm=0&fid=0&pageSize=25) and solder that on.

Or, you can buy one of the Teensy pin breakout boards on Tindie (https://www.tindie.com/search/#q=teensy%20breakout).

Daniel-J
09-17-2016, 05:41 AM
I just a got a batch of boards back that refused to work. Ultimately I think it traces back to MISO/MOSI being reversed in the Teensy_3.1_DIL package of the library "Teensy_3_and_LC_Series_Boards_v1.1".

- published pinouts on this site say MOSI (DIN) is pin 12 on the Teensy 3 series
- Eagle footprint for device "Teensy_3.1_DIL" says MISO is Pin 11

Could someone with a higher knoweldge have a look and see if the library is OK? It's entirely possible I am worng or made some mistake along the way, although breaking traces and reversing the two pins made the boards work!

I'm loving the Teensy BTW, thank you. Thank you also for the library, which saved a lot of time!

D

8206

HWGuy
09-17-2016, 05:58 AM
Pin 11 is DOUT -> MOSI (Master Out Slave In)
PIN 12 is DIN -> MISO (Master In Slave Out)

The Teensy_3.1_DIL package is ok.

edit:
note: this applies only to the Teensy in SPI master mode, in slave mode MOSI/MISO are reversed:

Pin 11 is DOUT -> MISO (Master In Slave Out)
PIN 12 is DIN -> MOSI (Master Out Slave In)

Constantin
09-18-2016, 01:16 AM
OK, here is a Eagle library update with a preliminary addition of the 3.5 and 3.6 series teensy boards. If someone could have a look at them to see if they match up, that would be great.

The main differences I can divine between the 3.6 and the 3.5:
* D+/D- is swapped for A25/A26 plus VUSB vs. NC for USB header
* No CAN1 serial on 3.5
* No I2C Channel 3 on 3.5
* No Touch pins on 3.5
* Some PWM pin differences.

Is that it?

Also, is that "DO" on the Debug header or DD, D0, etc?

No updates to the Teensy DIY library yet because I am unaware of any schematics being posted yet (hint hint!) :)

EDIT: the attached file has been updated from v1.2 to 1.3 to reflect Hw guys excellent feedback. Many thanks!
EDIT: Now updated again with Franks correction - thank you!

defragster
09-18-2016, 06:49 AM
OK, here is a Eagle library update with a preliminary addition of the 3.5 and 3.6 series teensy boards.

Constantin: I won't link this to K66_post_8 unless you say so since you have it marled preliminary - if you want it linked to #45 let me know and I'll make it sticky on K66 thread.

Jeez - I haven't seen a schematic either :confused: - maybe there is one in the works

HWGuy
09-18-2016, 08:57 AM
Eagle files for T3.6:
- Pin 13: SCK0
- Pin 16: +PWM
- Pin 32: -T -PWM +A13 +SCK1 +TX4
- Pin 33: -A15 +A14
- Pin 34: -A5 + A15

The pins from the larger smd header are swapped. (GND5, 3.3V2, 40 - 53)

The USB pin header is at the wrong position, the distance from the left row is not 2.54mm. In this post the distance is marked with 3.175mm (3.18mm): https://forum.pjrc.com/threads/34808-K66-Beta-Test?p=112826&viewfull=1#post112826

I have no experience with the 2nd USB port, but I think it's not good to connect both VUSB.

KurtE
09-18-2016, 02:51 PM
Looks like HWGuy pretty good look through the pin. As he mentioned, I would not connect the VUSB to the +5v connector on the USB Host connector. Not sure exactly what it is connected to, but it is not a 0 resistance between the pins.

I am not an expert in Eagle, much prefer Diptrace, so I converted it to Diptrace to take a look. For me, I prefer to actually split up the duplicate pins as at least with Diptrace, if I connect them all up to each other in the components and then use the component on a board, the system will expect that I need to run etch between each of these pins. So I prefer to choose which ones I wish to use or not use.... But again maybe Eagle is different.

Constantin
09-18-2016, 03:07 PM
Hi guys, first of all, many thanks in particular to HW guy for the look over!

I have updated the library, it is attached up above. The VUSB issue will be revisited once we get a schematic, I guess! I've left VUSB and 5V connected for now.

Also, all erroneous references to Touch have been removed from the Teensy 3.5 schematics.

defragster
09-20-2016, 12:36 AM
OK, here is a Eagle library update with a preliminary addition of the 3.5 and 3.6 series teensy boards. If someone could have a look at them to see if they match up, that would be great.

Also, is that "DO" on the Debug header or DD, D0, etc?

EDIT: the attached file has been updated from v1.2 to 1.3 to reflect Hw guys excellent feedback. Many thanks!

On my Beta boards silkscreen looks like a "DD"

I'm linking that 'Eagle' post to K66_Beta post_8 since is got some review.

Frank B
10-19-2016, 10:10 AM
OK, here is a Eagle library update with a preliminary addition of the 3.5 and 3.6 series teensy boards. If someone could have a look at them to see if they match up, that would be great.

Constantin, I just found a problem:

Your pin called VUSB1 (on the USB-connector) is NOT connected to VUSB on the T3.6 - I fear this can lead to heavy problems.. i'd choose an other name (5VOut?) and disconnect both in the library.

Constantin
10-25-2016, 07:00 PM
Fixed. and thanks!8591

jferguson
05-13-2017, 01:03 AM
Hi Constantin, thank you for your eagle files. I am routing boards which use Teensy 3.2 and maybe because of my age (74) and eyes could really use bigger pads. I did spend some time trying to see if I could edit the board file myself but either because I'm using the free Eagle (for small boards) or I'm not smart enough, I couldn't make it work. I can use the library for a dip socket but it would be much nicer to use your schematic.

Is this something that is difficult to change?

john ferguson

jferguson
05-14-2017, 03:59 AM
Never mind. I figured it out myself.
john