Search results

  1. pictographer

    how to usb device serial output connect to teensy 4.0 usb

    If I recall correctly, I connected a Teensy 3.2 to a GPS using USB-Serial using no other hardware than a cable. It's possible I wired the GPS to hardware TX and RX pins of the Teensy, but I don't think so. I'd be surprised if this didn't work with the Teensy 4. I've got a Teensy 4. I'll see if I...
  2. pictographer

    Teensy 4.1 butchery

    Wow. Congrats on getting it working! I'm sure I'm not the only one who is curious about what marvelous gadget will you put this in and what will it do?
  3. pictographer

    Teensy 4.1 butchery

    Would a Teensy 4.0 spare you a heap of trouble?
  4. pictographer

    Powering a Teensy LC from 2.2V source for IRremote

    Summing up, I thought it would be easy to add an IR remote to a wireless keyboard. A Teensy LC, an IR LED, and the IRRemote library work beautifully, but with only two AA batteries in parallel, the low power design challenge is beyond me. Added a boost converter module and the Teensy LC runs...
  5. pictographer

    Powering a Teensy LC from 2.2V source for IRremote

    Wondering how to do the investigation/measurement with what I have... I've got an external USB battery that powers the Teensy + LED well enough to work at the intended range and a multimeter. I could use the multimeter to measure the current output of the USB battery as compared to the boost...
  6. pictographer

    Powering a Teensy LC from 2.2V source for IRremote

    4.7MFD is literally what's printed on the cardboard the capacitor came in. Looking closer at the capacitor itself, it's 4.7µF. Thanks again, MarkT.
  7. pictographer

    Powering a Teensy LC from 2.2V source for IRremote

    The boost converter gets the Teensy LC to work and it can flash its builtin LED. Alas, the 3mm IR LED doesn't seem to illuminate. With a big USB battery, it worked fine. IR remote controls flash many brief pulses to encode commands. A capacitor across Vin and Ground could charge up between...
  8. pictographer

    Powering a Teensy LC from 2.2V source for IRremote

    I ordered some boost converter modules. We'll see how it goes.
  9. pictographer

    Powering a Teensy LC from 2.2V source for IRremote

    MarkT, thanks for the insights. The IR LED I'm using didn't come with a datasheet. Not sure how to measure my working prototype. I've got a cheap hand held multimeter, an inline USB tester, a bunch of Teensys, and various 'jellybean' components. I could measure the steady-state current, but to...
  10. pictographer

    Powering a Teensy LC from 2.2V source for IRremote

    Trying to embed a Teensy LC in a Logitech K400r wireless keyboard that we use to control a media PC running Ubuntu. The keyboard controls the computer just fine, but I thought it would be nice to be able to control the Samsung TV as well. I prototyped this with a portable battery and the Teensy...
  11. pictographer

    Mini 3.2 - Made Teensy 3.2 smaller at 30.48mm x 12.98mm.

    Neat design! I hope people do buy or make some.
  12. pictographer

    Touch Sense through soldermask? And any advice for pad-shape?

    Should be fine to cover the traces with solder mask. The touch sense hardware has tuning parameters. You might want to take a look at the source code for touchRead. You might want to include code to automatically calibrated the sensor. The baseline reading varies with humidity or temperature.
  13. pictographer

    OTA Sketch Updates for Teensy

    I've updated a Teensy with a Raspberry Pi Zero W. If you need the Pi desktop environment to install Arduino and configure things, the Zero is so slow, it's barely usable. Once you struggle through that, though, the teensy_loader_cli command works and will update your Teensys. The Raspberry Pi 4...
  14. pictographer

    Text-To-Speech as Teensy Audio Lib component?

    That's an excellent idea! Maybe this thread will be helpful: https://forum.pjrc.com/threads/44587-TTS-(Text-to-Speech)-Library-Port
  15. pictographer

    Non-blocking (no wait) touch sense (touchRead) routine for Teensy 3.2

    Have you looked at https://forum.pjrc.com/threads/13987-Teensy-3-0-capactive-touch?highlight=touchread+timeout ? I think there's a need for a library on GitHub to support non-blocking touch sense. Posting code on the forum is great for working out issues, but not as effective as putting the...
  16. pictographer

    Ubuntu 20.10 updated and /dev/ttyACM0 vanished

    Thanks, Paul. I did grab the latest udev rules. I'll update my Arduino/Teensyduino soon.
  17. pictographer

    Teensy capacitive touch sensing as stud finder

    Tried an experiment with a bare teensy LC that shows some promise. Using touchRead() you can tell the difference between the following Teensy held its USB cable plugged into the PC Teensy held against its reference card Teensy held against its reference card with a metal ruler on the opposite...
  18. pictographer

    Ubuntu 20.10 updated and /dev/ttyACM0 vanished

    Now that /dev/ttyACM0 is back, I can select it in the Arduino IDE Port menu and things are back to working. Well, working with a workaround. I don't think the Arduino IDE serial monitor should have failed the way it did. At very least, an error message suggesting the fix is needed.
  19. pictographer

    Ubuntu 20.10 updated and /dev/ttyACM0 vanished

    Thanks, Kurt. I think you're probably right. My first symptom was that the Arduino Serial Monitor failed to open with an error. Unfortunately, I didn't write down the error at the time. When multiple projects are open, I think the Arduino IDE doesn't do a good job of keeping all the settings...
  20. pictographer

    Ubuntu 20.10 updated and /dev/ttyACM0 vanished

    Progress! I tried a different Teensy that hadn't been updated lately and that uses USB Serial. /dev/ttyACM0 appeared as usual. I'm guessing that somehow the Arduino IDE settings got confused between two projects and as a result, my initial Teensy simply wasn't configured as a USB Serial device...
  21. pictographer

    Ubuntu 20.10 updated and /dev/ttyACM0 vanished

    The teensy still functions as a keyboard device, but USB-serial still isn't working. Still no /dev/ttyACM0. Tried various things. sudo modprobe cdc-acm sudo modprobe usbcore sudo modprobe ohci-hcd sudo modprobe ehci-hcd modinfo cdc-acm modinfo usbserial I have no idea what to reinstall or...
  22. pictographer

    Ubuntu 20.10 updated and /dev/ttyACM0 vanished

    corbett@nao:/dev$ uname -a Linux nao 5.8.0-44-generic #50-Ubuntu SMP Tue Feb 9 06:29:41 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
  23. pictographer

    Ubuntu 20.10 updated and /dev/ttyACM0 vanished

    corbett@nao:/dev$ cat !$ cat /var/log/apt/history.log Start-Date: 2021-03-04 08:57:32 Commandline: /usr/bin/unattended-upgrade Upgrade: wpasupplicant:amd64 (2:2.9-1ubuntu8.1, 2:2.9-1ubuntu8.2) End-Date: 2021-03-04 08:57:37 Start-Date: 2021-03-05 08:57:09 Commandline: aptdaemon...
  24. pictographer

    Ubuntu 20.10 updated and /dev/ttyACM0 vanished

    A recent update to Ubuntu 20.10 on my desktop PC seems to have removed /dev/ttyACM0. This was working fine in Ubuntu 20.10 before the update. I tried updating to the latest UDEV rules. I tried rebooting. I tried removing the ModemManager. lsusb does detect a teensy. dmesg reports [...
  25. pictographer

    USB Serial port fails on Linux

    Perhaps the Pi doesn't have the needed USB serial driver installed. There should be a device like /dev/ttyACM0. You might also need to mess with stty to configure it or use a terminal emulator like screen, picoterm, nanoterm, etc. handle the baud rate, etc. I've been able to connect a Teensy to...
  26. pictographer

    Programming Teensy3.x attached to MIPS OpenWRT wireless router

    Recently, I was able to build and run teensy_loader_cli for OpenWrt 19.07.7 running on an GL-iNet Mango GL-MT300N-V2 Mini Router. As I mentioned in another thread, I'm able to reprogram the Teensy over the air, but there are some bugs and workarounds. The OpenWrt image needs packages for USB...
  27. pictographer

    Teensy 4 as a USB-I2C gateway for OpenWrt

    I've done something like this with plain serial. It's a little wonky if the serial port also has all the console messages. You can disable the console messages, but then debugging the system gets harder. What I do instead is use USB serial. I suppose this depends on what you mean by "wide USB...
  28. pictographer

    Pop Goes my Teensy

    You could try posting picture and giving a bit more information. What exactly did you do? What did you expect? What did you observe? What have you tried regarding fixing it?
  29. pictographer

    Teensy capacitive touch sensing as stud finder

    Some stud finders use capacitance to locate wooden studs behind drywall, based on the difference between the dielectric constant of air and wood. I'm wondering if a Teensy could be made into a stud finder by adding an antenna and a small piezoelectric speaker to play a tone with pitch...
  30. pictographer

    APA102 clock recovery circuit

    Paul diagnosed why long runs of APA101 LEDs don't perform at high speed. How complicated would it be to make a circuit that gets inserted every 100 or so LEDs to clean up the clock signal? For most projects, keeping the runs of APA102 RGB LEDs relatively short is probably the best way to go...
  31. pictographer

    Replacing a board in an old keyboard with teensy++2.0

    I guess this is possible What makes you think the keyboard controller is the problem and not the switches or a trace in common between the failing switches?
  32. pictographer

    color detection using camera

    If you think of a photodiode as a single pixel camera, you can make a very low resolution color detector by using three of them. Either get ones that target the color frequencies you care about or get ones that sense full spectrum daylight and put translucent gel in front of each to allow you to...
  33. pictographer

    Teensy 4.0 code security?

    I second this. Paul and the community here are amazing at providing help to anyone willing to share code and follow up reasonably. Many of the amazing libraries that make Teensys so useful are contributed by community members. Many times Paul has gone as far as purchasing hardware to duplicate a...
  34. pictographer

    Teensy LC printf float options

    I did have a second copy of arduino-1.8.12. When I sorted that and upgraded to Arduino 1.8.13 and Teensyduino 1.53, I was able to remove nano.spec, but on a Teensy LC, Serial.printf("Using Serial.printf: %f\n", pi); still prints garbage from memory or crashes the Teensy.
  35. pictographer

    touchRead() but only with bad soldering

    With the touchRead sense wire just pressing against the metal case, the difference between touch and no touch was about two counts. Now with a bit of magnet wire taped to the inside of the case over the length of the long side, the counts differ by about 20 from 739 to 759. Seems to work...
  36. pictographer

    Teensy LC printf float options

    Thanks, Paul. I did search for other copies of boards.txt and none of the others mentioned the Teensy LC. Haven't yet tried updating Arduino and Teensyduino. Verbose output still includes nano.specs, but maybe I missed something. I searched under /usr and /home. I'll report back later after I...
  37. pictographer

    Teensy LC printf float options

    I edited boards.txt and restarted arduino. Haven't been able to make it work. It appears the changes to boards.txt didn't take effect. teensyLC.menu.opt.osstd=Smallest Code teensyLC.menu.opt.osstd.build.flags.optimize=-Os teensyLC.menu.opt.osstd.build.flags.ldspecs= Ubuntu 20.04.1 LTS Teensy...
  38. pictographer

    touchRead() but only with bad soldering

    My latest project is a desk light. It uses a Teensy LC in an electrical junction box 4"x2"x1.5" made of metal that's about a 1/16" thick. While I was refining it, I had a wire soldered from Teensy LC pin 0 to the metal junction box. touchRead(0) worked as expected. After adding a few more...
  39. pictographer

    Teensy LC printf float options

    Thanks, manitou! Since my needs are modest, I'm getting by with Serial.println() which does print floats okay. Was reporting the bug in case there was interest in fixing it. I mean, I can understand not supporting floating point due to the code bloat, but a printf implementation that prints...
  40. pictographer

    Teensy LC printf float options

    Tried Paul's magic trick from https://forum.pjrc.com/threads/27827-Float-in-sscanf-on-Teensy-3-1?p=65321&viewfull=1#post65321 but no joy.
  41. pictographer

    Teensy LC printf float options

    I haven't been able to make Serial.printf() print floats on the Teensy LC with any of the compiler settings I've tried. Some settings produce no output. Some produce different memory garbage. The output below is from Tools > Optimize > Smallest code. Arduino 1.8.12 Teensyduino 1.52-beta3...
  42. pictographer

    Teensy 4.1 Beta Test

    Same issue for Mouse.h. Removing Mouse.h and Keyboard.h allows the KeyboardAndMouseControl sketch to compile and run. Arduino: 1.8.12 (Linux), TD: 1.52-beta3, Board: "Teensy 4.1, Serial + Keyboard + Mouse + Joystick, 600 MHz, Faster, US English" /home/corbett/arduino-1.8.12/arduino-builder...
  43. pictographer

    Teensy 4.1 Beta Test

    Looks like keyboard emulation isn't there yet. Here's the example from https://www.pjrc.com/teensy/td_keyboard.html #include "Keyboard.h" int count = 0; void setup() { } // no setup needed void loop() { Keyboard.print("Hello World "); Keyboard.println(count); count = count + 1...
  44. pictographer

    Teensy 4.1 Beta Test

    I'm going to try to compile the examples in menu order starting from the top. I've made it through 01.Basic and 02.Digital so far with no issues other than spurious "An error occurred while uploading the sketch" and old pin values for the onboard LED. It's a shame the Arduino examples don't use...
  45. pictographer

    Teensy 4.1 Beta Test

    The Generate_Password example doesn't compile for the T4.1 beta doesn't compile. Arduino: 1.8.12 (Linux), TD: 1.52-beta3, Board: "Teensy 4.1, Serial, 600 MHz, Faster, US English" /home/corbett/arduino-1.8.12/arduino-builder -dump-prefs -logger=machine -hardware...
  46. pictographer

    Teensy 4.1 Beta Test

    An error occurred while uploading the sketch I've never been able to observe a pattern that explains when the program button needs to be pushed and when it doesn't. Just tried switching from my little Hello program to the FastLED demo program. Compiled fine, but wouldn't upload without...
  47. pictographer

    Teensy 4.1 Beta Test

    Just got my T4.1 beta! It blinked as expected when I plugged it in to a USB port of my AMD A10-7800 radeon r7 running Ubuntu 19.10. My first upload attempt failed because I forgot to change the board from Teensy LC to Teensy 4.1. There was an odd combination of messages at the compiler output...
  48. pictographer

    MCU trends

    Interesting article on trends and trade-offs in MCU design: https://semiengineering.com/the-mcu-dilemma/
  49. pictographer

    Teensy 4.0 First Beta Test

    The TimeAlarm library appears to work. I ran the TimeAlarmExample.pde from Paul's github repo. Here's the output: 14:23:02.018 -> 8:29:0014:23:02.952 -> 8:29:01 14:23:03.944 -> 2 second timer 14:23:03.944 -> 8:29:02 14:23:04.970 -> 8:29:03 14:23:05.962 -> 2 second timer 14:23:05.962 -> 8:29:04...
  50. pictographer

    Teensy 4.0 First Beta Test

    @defragster, thank you. The time appears to be set reasonably by the TeensyLoader. I modified the example to report the time during setup. The example does not recognize that the Teensy is synchronized until it gets time from the source it expects, even though it already has the time from the...
Back
Top