Latest activity

  • PaulStoffregen
    PaulStoffregen replied to the thread Teensy 3.2 End Of Life.
    Several times I've considered making an ADC shield. Might still do it. Recently have been playing with a relatively cheap (~$4) single channel 16 bit ADC chip and a 8:1 mux, both controlled with FlexIO. Input setting time is a difficult...
  • PaulStoffregen
    Every Teensy comes with a pinout reference card that shows which pins. I'm guessing you already have that? Or you can see it on the Teensy 4.1 page and find a link to download the PDF. If you're looking for more detailed documentation, this...
  • B
    Bob08 replied to the thread FlexCAN_T4 - FlexCAN for Teensy 4.
    Hello tonton81, I am using your great library, but I miss a function to read a specifc mailbox. I'm using dedicated mailboxes, just receiving one single Can-Message/Identifier per Mailbox. I want to read out that specific content of the...
  • PaulStoffregen
    Sure, here's a quick attempt
    • 1701265889462.png
  • PaulStoffregen
    When talking of what can versus can not be done, it's important to keep in mind whether the limit is the hardware capability or only the artificial limits imposed by the MPU. If you configure the MPU differently, the hardware can indeed execute...
  • mjs513
    mjs513 reacted to luni's post in the thread micros() rollover period on Teensy 4.1 with Like Like.
    Micros returns a 32bit result. It overflows every 2^32 µs which is every 4.295E9 µs (=4295s = 71.6min). To prolong this you can store the value in the lower 32 bits of a 64bit variable. Then look periodically (at least once every 71min) if the...
  • mjs513
    I have developed 2 libraries for DMA Serial for Teensy 3.6 and Teensy 4.0 which are fully compatible with Arduino architecture and code style and easy to use. They are currently open-source and available to public at my Github page...
  • mjs513
    If you look at this Arduino Library for the L6DSOX you will see what @brtaylor and @PaulStoffregen is recommending. It illustrates the typical way of working with SPI devices: pinMode(_csPin, OUTPUT); digitalWriteFast(_csPin, HIGH); //Lib...
  • BriComp
    Let's start with the first serial port on pins 1&2, this is addressed as Serial1, so Serial1.begin(11520); works. Likewise for the second serial port on pins 7&8, this is addressed as Serial2 and Serial2.begin(11520); works. I am sure you get the...
  • luni
    Looks like the controller has a simple serial interface (set speed by sending a byte). So, instead of an EE solution you could think of using a Teensy (or a cheap controller like a XIAO) to read in the throttle value, calculate the required speed...
  • shookti
    Great! thanks.
  • luni
    Micros returns a 32bit result. It overflows every 2^32 µs which is every 4.295E9 µs (=4295s = 71.6min). To prolong this you can store the value in the lower 32 bits of a 64bit variable. Then look periodically (at least once every 71min) if the...
  • shookti
    How much time ellapses before the micros() built-in function rolls over on a Teensy 4.1, and how to increase this time?
  • M
    Hello Micky, You mentioned you picked up a Teensy 4.1 for this, so here is fine. The C4 connects to the Teensy via the Teensy's USB host port, with this cable and as seen here : https://www.pjrc.com/store/cable_usb_host_t36.html Grab that cable...
  • H
    hmprasser replied to the thread Teensy 3.2 End Of Life.
    Since you recommend to move to Teensy 4.0 and 4.1 as a replacement, it would really be very good to develop a version of these controllers that provide a better ADC accuracy. There are numerous users that have problems with missing bits etc., as...
  • R
    Hi - Is it possible to play audio at a specific time in a wav file and for a specific duration with the current audio library? Thanks!
  • defragster
    This may be the reason it won't start with that battery on? That keeping the RTC part alive with 3V is good to help power on in some cases noted by PJRC. But that pin like others is 3.3V limited and having higher voltage may be blocking startup...
  • A
    I have developed 2 libraries for DMA Serial for Teensy 3.6 and Teensy 4.0 which are fully compatible with Arduino architecture and code style and easy to use. They are currently open-source and available to public at my Github page...
  • D
    drjohn reacted to PaulStoffregen's post in the thread ornament & crime beta testing with Like Like.
    If you just want to try Phazerville firmware on Teensy 4, all you need is a normal (not VOR) version of the Ornament and Crime boards... with Teensy 3.2 installed in a socket. (sadly, it seems many were built with Teensy 3.2 hard soldered). If...
  • KrisKasprzak
    I have a DC motor controller that requires a 0-5 VDC input to vary the PWM for a DC motor controller. I bought a motorcycle-style handgrip to control the controller. Unfortuntatly the handgrip is based on a 49E hall sensor and outputs 0.8 to 4.2...
  • Davidelvig
    I'm listening but this is part of the discussion above my pay grade. Because of the current draw, I re-implemented an older circuit of mine for Push On - Hold Off, and am now using a separate RTC as noted earlier in this thread. I'd like to use...
  • B
    The processor manual has this temptation to try for wakeup on pin (state? change?): 11.4.1 SW_MUX_CTL_PAD_WAKEUP SW MUX Control Register (IOMUXC_SNVS_SW_MUX_CTL_PAD_WAKEUP) MUX_MODE : MUX Mode Select Field. Select 1 of 2 iomux modes to be used...
  • B
    Yep - just a thing to watch out for, and a solution. Rechargeable lithiums also go to 4V or so while charging, so that's something to regulate down for longest battery life. The big surprise is that the consumption goes UP when you turn the...
  • J
    Hey! I was inspired by this thread to put together a project of my own, this time as an audio vectorscope for displaying oscilloscope art. I'm using a teensy 4.0 and a Riverdi RVT70HSBNWN00, the 7" EVE4 TFT display without touch screen. I am...
  • B
    Wonder if you could set RTC alarm for say 15 seconds and have it check for a pin level change and if no change go back to sleep. User would have to switch something or hold a button for at most 15 seconds.
  • B
    I'm listening. It needs to be noted that the recommended batteries are 3V lithium coin cell, not a 3.6V lithium, different chemistry and voltage.
  • T
    theboot900 reacted to jonr's post in the thread Can Teensy handle a camera? with Like Like.
    This one works and could be attached to an ESP8266. https://www.sparkfun.com/products/12804
  • J
    The short version is that loading/executing dynamic code without any sort of MMU available to remap memory is more trouble than it's worth. You've only got 1MB of RAM total to play with, already split into three separate regions (ITCM, DTCM and...
  • B
    Hi ChrisR, I've just started experimenting with SNVS mode also. See my piping up on https://forum.pjrc.com/index.php?threads/beware-t4x-rtc-power-consumption.64216/ for more infoz. Note my mention there that a battery much over 3V will be...
  • B
    More on getting the standby (xtal RTC only) current down, and a question (anybody listening to this thread? :) Currently I'm using the same large 3.6V lithium (Tadrian TL-4902 non-rechargeable) battery, but with two silicon diode drops in series...
  • KurtE
    KurtE reacted to PaulStoffregen's post in the thread ornament & crime beta testing with Like Like.
    If you just want to try Phazerville firmware on Teensy 4, all you need is a normal (not VOR) version of the Ornament and Crime boards... with Teensy 3.2 installed in a socket. (sadly, it seems many were built with Teensy 3.2 hard soldered). If...
  • J
    jpswensen replied to the thread Teensy 3.2 End Of Life.
    Kindof sad. The one thing I had used the LC for was a project that needed DAC output. The 4.x doesn't have that built in.
  • N
    @tim: You should be able to use the PITCHBEND & MODWHEEL pots exactly as wired. PITCHBEND usually has some mechanical mechanism to return it to center when not activated, so I'll assume that this is the case in my functional description below...
  • mjs513
    mjs513 reacted to PaulStoffregen's post in the thread ornament & crime beta testing with Like Like.
    If you just want to try Phazerville firmware on Teensy 4, all you need is a normal (not VOR) version of the Ornament and Crime boards... with Teensy 3.2 installed in a socket. (sadly, it seems many were built with Teensy 3.2 hard soldered). If...
  • M
    I posted a question to your GitHub but probably more appropriate here as it’s not an issue. I don’t see where pins are set for RX/TX and here are 8 potential RX/TX sets. What am I missing? Also it seems that PlatformIO/VSCode doesn’t respond to...
  • M
    Double check solder bridge on address select pads, the pic is unclear. Try inserting 150R in SCL and SDA lines as close as possible to T4.1 SCL and SDA pins.
  • PaulS
    Are you using this board? If so, connect the sensor board Vin pin to the Teensy 3V3 pin, as described here. Luckily, the DO/MISO pin from the sensor board is not level-shifted to the sensor board Vin voltage, so your Teensy will be OK for now. Paul
  • defragster
    Follow up. Here is the output after a bootloader update. It does NOT report Connected until the bootloader update is fully complete, satisfying my requirements. Connected [History] -> {empty} -> usb:0/140000/0/5/3/4/2 hid#vid_16c0&pid_0486...
  • L
  • N
    Follow up. Here is the output after a bootloader update. It does NOT report Connected until the bootloader update is fully complete, satisfying my requirements. Connected [History] -> {empty} -> usb:0/140000/0/5/3/4/2 hid#vid_16c0&pid_0486...
  • N
    For anyone that may stumble upon this thread, I wrote a very quick and dirty C# proof of concept to verify the solution proposed by @h4yn0nnym0u5e and it works well. I am going to begin writing a proper implementation of this for production use...
  • R
    royontog replied to the thread Teensyduino Library location.
    Found it, thanks! On my Win 10 laptop they are in c:\Users\<me>\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1\libraries\... I installed the Arduino IDE for all users, but the teensy extensions got installed under my user profile...
  • S
    Thank you! The MPU reconfiguration was also addressed by PaulStoffregen in an old post (for Teensy 3) and this seems possible in a similar way for Teensy 4.1. After even digging longer in the subject, I found people in this forum trying to...
  • PaulStoffregen
    The location depends on your operation system. On MacOS and Windows it's a hidden folder (as viewed from Finder or Explorer). On any OS, to see the full pathnames of all libraries Arduino used, click File > Preferences (may be Arduino >...
  • h4yn0nnym0u5e
    h4yn0nnym0u5e replied to the thread unexpected delay.
    While waiting for the trigger, Teensy 2 needs to discard any data arriving in Q_in_L…
  • R
    royontog replied to the thread Teensyduino Library location.
    I just updated from Arduino IDE 1.8x to 2.2.1, To install the teensy tools you enter a .json URL. I cannot find the teensy libraries anywhere on my local drive, so I assume they are now stored in the cloud?
  • mjs513
    Good luck and remember to hook up the RST and INT pins. Seems to work that way, any other way you may run into issues.
  • N
    Indeed the timing is based on the original design from 2009 where Arduino just gets the files ready and causes the chip to go into bootloader mode, then Teensy Loader takes care of the rest. The only feedback mechanism was meant to be visual...
  • N
    Thanks for the information. I am currently testing between monitoring Win32 window titles for Teensy "Programming" to appear, and I will also test @h4yn0nnym0u5e suggestion of continuing to monitor teensy_ports for a Teensy without the bootloader...
  • N
    How about running teensy_ports after programming, until it detects a Teensy which doesn’t enumerate as Bootloader?
Back
Top