Jump to content

Paul Stoffregen

Active Members
  • Content Count

  • Joined

  • Last visited

Everything posted by Paul Stoffregen

  1. Hi, Paul here.... the guy who designed Teensy and wrote Teensyduino. Teensy is based on the Atmel AVR ATMEGA32U4 microcontroller, which has a fully generic (up to 7 endpoints) USB device controller built in. So in theory, you could program it to be virtually anything. In practice, writing the USB driver code is a LOT of work, starting with the 600 page USB spec and many other necessary USB documents (the 600 page spec is only the basic stuff, not how any particular device actually uses it...) Only about half a dozen people appear to have ever written such code for these AVR chips, and only
  2. Has anyone found a very compact off-the-shelf Mini-B to A adaptor? I get this question sometimes, and it'd be nice to know if are any readily available that are much smaller than the usual.
  3. Opps, yeah, I missed that one. I just added it and uploaded a new copy.
  4. Good to hear it's working. Thanks. It's really a huge help. It should also be able to type all those non-US characters which require AltGr or first pressing the deadkeys. Well, at least all of them on the German keyboard. Some keyboards like Finnish Multilingual have massive numbers of very special glyphs. So far, I've only coded unicode-to-keystroke for ASCII, Latin-1 and the Euro symbol.
  5. Thanks. I actually did quite a bit of experimentation and found code 100. Well, I hope anyway. If not, well, those characters normally from that key between the left shift and the Y key will be wrong. On keyboards made in the USA, they don't put a key there at all. The left shift is wider and the Z key is right next to it. Z and Y are swapped from US to German layouts, so imagine no key between your Y key and shift. That's how they are here, so that 1 extra key has been a real mystery. Well, also, every layout diagram shows a key directly above Enter on US layouts, but it's to the le
  6. Here's an alpha test version with international keyboard support. It also has a MIDI USB type. Linux only so far. I'll port to Mac and Windows in a couple weeks. Of course, devices you create in Linux should work when plugged into PCs with Windows or Macs, but right now this alpha code only supports building them on Linux. http://www.pjrc.com/teensy/beta/teensyduino To change the keyboard type, look for the file hardware/teensy/cores/teensy/keylayouts.h. Just uncomment the one you want. So far, I've done US-English, US-Intl, German and Canadian French. More will be added soon. Even
  7. I am working on a keyboard layout layer, which will eventually be selected from a Tools > Keyboard Layout menu. I hope to make an alpha test release in about 1 week, which will not have the menu but you can change the layout by editing a file. So far, I've done US-English, US-International and German. None are tested yet. I could REALLY use your help now with one a little question. I need to know which codes are '<' and '#' when the German layout/locale is selected. For example, if you were to do: for (int i=4; i&lt;64; i++) { Keyboard.print(i); Keyboard.set_modifier
  8. I'd like to add a "Keyboard Layout" option in the next version of Teensyduino. It would appear in the Tools menu immediately below the "USB Type" and be enabled if you selected a USB type which includes Keyboard. I've found several pictures that show the various layouts, but nowhere have I been able to find solid specs on the actual key codes (in terms of HID usage tables, not legacy PC stuff) which different keyboard layouts actually send. Does anyone know where I might find these? Or is there somewhere (hopefully cheap) where I can buy various non-US keyboards from within the USA? O
  9. I recently added a page about this. http://www.pjrc.com/teensy/external_power.html
  10. You can't use programs like Hyperterminal or Zterm that are designed to talk with serial ports, because it's not a serial device. In theory, you could write a terminal emulator that does HID communication, but that would be a LOT of work!!! The HID API is completely different on each operating system too. But I've already done the low-level part for you..... Inside your arduino directory (on a mac, use option-click and "show package contents"), there's a tiny program called teensy_gateway. It talks HID protocol to the teensy and makes that communication available on TCP port 28541. Whe
  11. Just click on the serial monitor button. Don't worry about selecting a serial port, because there isn't any in this mode. It will "just work" (because I implemented a communication channel with a custom HID interface and hacked the serial monitor to use it in this mode)
  12. Yes http://www.pjrc.com/teensy/td_libs_LiquidCrystal.html
  13. The main new features are USB Serial driver install in the main Teensyduino installer, and simulating the Arduino reset behavior when launching the serial monitor window. Some really broken stuff in 0016 was fixed.... since nobody's complained, maybe it's a good bet nobody's actually using 0016. http://www.pjrc.com/teensy/experimental.html
  14. Try compiling for a regular Arduino. Just select it from the Tools > Boards menu, and click verify. If that compiles, please let me know. In fact, if you can, just zip up your entire arduino directory and send it to me. That might be too big of a file? If you get the same error when compiling for Arduino, then it's probably a bug in the library or something messed up with your arduino install. You could download a fresh copy of the arduino software and try that.
  15. That's what it should do, exactly the same as a USB card reader when there's no media present.
  16. Very likely a loose or unconnected wire. First, only 6 pins are needed: +5, gnd, miso, mosi, sclk, ss. So rip out those other 4 wires that do nothing, assuming you're working on that breadboard. Grab a voltmeter. Set it to a range that can measure 5 volts DC (eg, if there's 2, 20, 200, you'd use 20). Use a clip lead to attach the black wire to the USB metal shell, which is ground. First, measure the voltage on +5 and gnd at the SD adaptor. Try to touch the side of the solder joint close to the actual pad on the PCB, not the pin in the center. +5 should measure about +5 volts. A litt
  17. I wrote the Teensyduino code to (hopefully) work with any SD card. If you find one that does not work, but others do (eg, your hardware is confirmed working with other cards), please contact me directly at paul at pjrc dot com and I will swap a known-to-work card of similar or better specs for yours... and of course I'll (eventually) use your card for testing compatibility of future releases. My current collection spans 16 megs to 4 gigs, both version 1 and 2 cards, and both SD and SDHC in version 2. Teensyduino has been tested with all those cards.
  18. Here's the list of changes in 0019: ARDUINO 0019 [core / libraries] * Added aliases for the analog input pins: A0, A1, etc. http://code.google.com/p/arduino/issues/detail?id=244 * Added a String class. * Added an SPI library (by Christian Maglie). http://code.google.com/p/arduino/issues/detail?id=240 * Revised Ethernet library (by Christian Maglie). * Added a shiftIn() function (from Wiring). http://code.google.com/p/arduino/issues/detail?id=280 * Updated version of Firmata supports Mega and capability querying. * More accurate delay() function from BenF. http
  19. Arduino 0019 is getting very close. A first release candidate recently appeared. Here's the files: Mac OS X: http://arduino.googlecode.com/files/arduino-0019-rc1.dmg Windows: http://arduino.googlecode.com/files/arduino-0019-rc1.zip Linux (32-bit): http://arduino.googlecode.com/files/arduino-0019-rc1.tgz Here's an updated Teensyduino to support 0019-rc1: Teensyduino: http://www.pjrc.com/teensy/experimental.html I've done some quick testing on Linux, Mac and Windows XP and everything seems to work. Haven't tried Win 7 yet... A long-standing and annoying but harmless bug has been
  20. I'm looking for a few good Keyboard and Mouse examples to include in the upcoming Teensyduino ...to be released soon after Arduino 0019 comes out, which ought to be "real soon now". Of course, any examples contributed will give full credit to their authors. They will appear under in the menus, File > Examples > Teensy > (sub-category)
  21. Soldering irons come in 3 fundamentally different types, depending on how they regulate temperature. The cheapest irons don't regulate at all, other than having limited power that's always on. Often they are specified by their heater's power level, like 20 watts. They heat up slowly and the eventual temperature is only whatever equilibrium is reached with the room's temperature and air flow. Usually they get too hot, and as you solder they get too cold, until they slowly heat back up again. Better irons switch the heater on and off using a sensor mounted in the iron, usually close to wh
  22. Arduino 0019 looks like it's about to release, and when it does I'll need to make a new Teensyduino release within a few days. My question is if 0.9 is ready to be called stable and replace 0.8. About half my planned features moved to the new feature, thought the list approximately doubled since I started 0.9.... software!!! If you've used 0.9, was it stable for you? I'm seriously leaning towards just discontinuing 0.8.
  23. Ok, it looks like you've completed adding Teensyduino to Arduino. That means you now have software that is capable of producing programs for Teensy, so your next step is to actually load the code for a tiny program and try compiling and getting it into your Teensy. Something to keep in mind is Teensy is just a tiny little computer. Computers do exactly what you tell them to do, which isn't necessarily what you want them to do. So far, you've loaded software on your computer, and that software is capable of making software for Teensy. As far as the Teensy is concerned, you haven't told i
  24. Sounds you've completing step #2 of the getting started section? You could go on to steps #3 and #4, which admittedly were written before Teensyduino existed and are in need of some updates (to mention Arduino as an alternate path). Or you could download Arduino and Teensyduino, install them, and try the Teensyduino tutorial. Those tutorials will walk you though some of the more conventional ways to use Teensy. As for controlling a PC, with Arduino you'd probably want to look at the info on this page (perhaps after completing tutorial #1): http://www.pjrc.com/teensy/td_keyboard.html
  • Create New...