Author Topic: teensy 2.0 or 3.1  (Read 4925 times)

0 Members and 1 Guest are viewing this topic.

Offline Bailey

  • Thread Starter
  • Posts: 6
teensy 2.0 or 3.1
« on: Sun, 28 September 2014, 20:51:23 »
Hi,

 I'm new to keyboard building. I have done some research and have noticed only teensy 2.0 is used as a keyboard micro controller. Is there is a reason why the 3.1 version is not used? too many I/Os? or is it more of firmware related issue?

Bailey

Offline jdcarpe

  • * Curator
  • Posts: 8852
  • Location: Odessa, TX
  • Live long, and prosper.
Re: teensy 2.0 or 3.1
« Reply #1 on: Sun, 28 September 2014, 21:12:43 »
It's a firmware issue. The 3.1 uses an ARM processor, and I'm not aware of any existing firmwares for it. The 2.0 uses the ATmega32u processor, for which you have Soarer's firmware, TMK, etc.
KMAC :: LZ-GH :: WASD CODE :: WASD v2 :: GH60 :: Alps64 :: JD45 :: IBM Model M :: IBM 4704 "Pingmaster"

http://jd40.info :: http://jd45.info


in memoriam

"When I was a kid, I used to take things apart and never put them back together."

Offline Bailey

  • Thread Starter
  • Posts: 6
Re: teensy 2.0 or 3.1
« Reply #2 on: Sun, 28 September 2014, 21:22:24 »
Thanks,

So essentially if I am to build a 10 keyless keyboard I should go with the Teensy 2.0, while for a standard keyboard layout, I will need to go with the Teensy 2.0++?

Offline 0100010

  • Posts: 1127
  • Location: DFW, TX, US
  • Not Sure
Re: teensy 2.0 or 3.1
« Reply #3 on: Sun, 28 September 2014, 21:27:15 »
Only need the 2.0++ if you have a very large matrix or you need lots of additional pins for other functions.  For most keyboards, the 2.0 is plenty.
  Quoting me causes a posting error that you need to ignore.

Offline Bailey

  • Thread Starter
  • Posts: 6
Re: teensy 2.0 or 3.1
« Reply #4 on: Sun, 28 September 2014, 21:33:57 »
I see, well the idea is to replace the Micro controller on my Ducky2108LS (essentially a Ducky Zero with LEDs on every key) and since it has 108 keys it looks like I will need to use the Teensy 2.0++.

Another question I have, how many I/O do I have leave spare if I am to have full keyboard LED (all light up at the same time, nothing fancy)?

Offline Melvang

  • Exquisite Lord of Bumfluff
  • * Maker
  • Posts: 4398
  • Location: Waterloo, IA
  • Melvang's Desktop Customs
Re: teensy 2.0 or 3.1
« Reply #5 on: Sun, 28 September 2014, 21:58:33 »
I see, well the idea is to replace the Micro controller on my Ducky2108LS (essentially a Ducky Zero with LEDs on every key) and since it has 108 keys it looks like I will need to use the Teensy 2.0++.

Another question I have, how many I/O do I have leave spare if I am to have full keyboard LED (all light up at the same time, nothing fancy)?

Outside of the full backlight you can technically get away with using a 2.0, you just have to get creative with the rows and columns using a 10x11 matrix.

For the full backlighting I can't help you yo much there.
OG Kishsaver, Razer Orbweaver clears and reds with blue LEDs, and Razer Naga Epic.   "Great minds crawl in the same sewer"  Uncle Rich

Offline dorkvader

  • Posts: 6288
  • Location: Boston area
  • all about the "hack" in "geekhack"
Re: teensy 2.0 or 3.1
« Reply #6 on: Sun, 28 September 2014, 22:04:23 »
I see, well the idea is to replace the Micro controller on my Ducky2108LS (essentially a Ducky Zero with LEDs on every key) and since it has 108 keys it looks like I will need to use the Teensy 2.0++.

Another question I have, how many I/O do I have leave spare if I am to have full keyboard LED (all light up at the same time, nothing fancy)?

Outside of the full backlight you can technically get away with using a 2.0, you just have to get creative with the rows and columns using a 10x11 matrix.

For the full backlighting I can't help you yo much there.

if you want it "always on" or controllable with an external switch or something the LEDs require no pins. If you want all the LEDs to be controllable as a single group, you can use a single pin for PWM and a transistor or two. If you also want lock LEDs, you need one pin per LED unless if you want to get creative.

Offline Findecanor

  • Posts: 5040
  • Location: Koriko
Re: teensy 2.0 or 3.1
« Reply #7 on: Sun, 28 September 2014, 23:04:17 »
I see, well the idea is to replace the Micro controller on my Ducky2108LS (essentially a Ducky Zero with LEDs on every key) and since it has 108 keys it looks like I will need to use the Teensy 2.0++.
If you are not at the level of a professional Electrical Engineer at electronics and microcontroller programming, I would advice against it.
The backlighting on the Ducky keyboards is done by digital circuitry in combination with the existing keyboard controller and a Teensy chip can not replace it outright.

I also think that the actual microcontroller chip is surface-mounted, so it would be difficult to get access to its tiny pins. I suppose that you could wire each row and column with a separate wire, but that would be a bit of work and you could make a mess.

If you want a mechanical keyboard with a programmable controller, I suggest that you switch to a Filco Majestouch or a Rosewill. On those keyboards the controller is on separate daughterboard, respectively and replacement controllers for them do exist which you could install relatively easily.
« Last Edit: Sun, 28 September 2014, 23:06:09 by Findecanor »
🍉

Offline Bailey

  • Thread Starter
  • Posts: 6
Re: teensy 2.0 or 3.1
« Reply #8 on: Sun, 28 September 2014, 23:25:32 »
I see, well the idea is to replace the Micro controller on my Ducky2108LS (essentially a Ducky Zero with LEDs on every key) and since it has 108 keys it looks like I will need to use the Teensy 2.0++.
If you are not at the level of a professional Electrical Engineer at electronics and microcontroller programming, I would advice against it.
The backlighting on the Ducky keyboards is done by digital circuitry in combination with the existing keyboard controller and a Teensy chip can not replace it outright.

I also think that the actual microcontroller chip is surface-mounted, so it would be difficult to get access to its tiny pins. I suppose that you could wire each row and column with a separate wire, but that would be a bit of work and you could make a mess.

 I understand your concern but I don't want to waste the keyboard switches, casing etc. (With the Ducky the num lock, scroll lock and cap lock blinks several times and than switches off with no response, so after checking the cable and connector with a multimeter, I have concluded that its the microcontroller)

 My bad, when I say replace, I mean to remove the Ducky PCB and rewire to the Teensy by hand. At the moment I don't know if I should go Teensy 2.0 and just go 10 key less, this way I can just use the phantom firmware (seems like a more straight forward build).

The only part that concerns me is the LED lighting and wiring, the resistors I will need etc? Does anyone know the specifications on the Ducky LEDs?

Offline vvp

  • Posts: 887
Re: teensy 2.0 or 3.1
« Reply #9 on: Mon, 29 September 2014, 04:56:06 »
Before deciding which controller to use, you need to decide first how you want to control the LEDs.

If you want to control each one separately (i.e. you want an option to create any pattern on the whole led matrix) then you can go on with a shift register brigade and use ISP SPI interface on even an ATmega32u4 (Teensy 2.0). If it would be powered with USB power only then you need to check if your diodes will be bright enough when driven with only about 2 mA in average. You need to decide how bright the diodes should be (i.e. how big the average driving current needs to be). You may get creative with using software PWM on each diode and a smaller resistor or just drive them statically and use a bigger resistor (this is more power hungry).

If you want only few LEDs driven separately then you may rather use one controller pin for each separately driven LED and then it may make sense to go with Teensy 2.0++ (or something else with more GPIO rich controller).

So you need to decide first what you want to achieve. After that you can decide what controller to use.
« Last Edit: Mon, 29 September 2014, 05:03:00 by vvp »

Offline Findecanor

  • Posts: 5040
  • Location: Koriko
Re: teensy 2.0 or 3.1
« Reply #10 on: Mon, 29 September 2014, 13:23:25 »
My bad, when I say replace, I mean to remove the Ducky PCB and rewire to the Teensy by hand. At the moment I don't know if I should go Teensy 2.0 and just go 10 key less, this way I can just use the phantom firmware (seems like a more straight forward build).

The only part that concerns me is the LED lighting and wiring, the resistors I will need etc?
OK then. :)

The Phantom firmware is quite simple to mod to support a full-size keyboard.

There is also a fork of Hasu's TMK firmware for the Red Scarf keyboard, which supports both the µcontroller in the Teensy/Teensy++ and backlighting through the use of a simple cheap chip. (I forgot the number, but it is one that you can get everywhere)
🍉