Search results

  1. P

    T4.0 I2s Parallel Output?

    Yes, I need NTSC to send to an FPV transmitter. Even though the youtube is about VGA, it still shows the data transfer the youtuber used was fast enough for video transmission in general, so I figured I could do something similar for NTSC. Either way, I think DMA is the way to go - what do you...
  2. P

    T4.0 I2s Parallel Output?

    After more googling, I think what I'm asking for is DMA and not necessarily I2S. Is there an easy way to doing DMA or am I going to have to slog through super complex "example libraries" that happen to use DMA?
  3. P

    T4.0 I2s Parallel Output?

    Can you parallel shift out data with a T4.0 I2S port? If so, how? Would there be a better way to do this than I2S? I'm new to I2S - my basic understanding is that I2S can directly access blocks of internal memory set by the processor, but I'm not sure how it all really works. In the end, I'd...
  4. P

    SD Logger has Occasional High Latency

    Thanks, however that's exactly what I'm doing (as far as I can tell), and yet still have the lag :(
  5. P

    SD Logger has Occasional High Latency

    I'm still looking for how to change the priority of a normal interrupt - is it even possible???
  6. P

    SD Logger has Occasional High Latency

    I changed it to an unsigned long and I still have the lag spikes in the sample timestamps, so I don't think it's rollover. Here's the code: #include "Adafruit_LSM6DS33.h" #include "Adafruit_LIS3MDL.h" #include "SdFat.h" #include "navduino.h" #include "attitude.h" #include "FireTimer.h"...
  7. P

    SD Logger has Occasional High Latency

    I'm still confused - why are my sample timestamps showing a periodic lag if the samples are taken in an ISR callback? (I don't actually care how long it takes for the SD writeout to occur, I only care that both my sensors are sampled consistently and that all the data eventually ends up on the...
  8. P

    SD Logger has Occasional High Latency

    What about for normal interrupts? I'll likely be using timer and signal interrupts simultaneously and I need to make sure they're all prioritized correctly
  9. P

    SD Logger has Occasional High Latency

    How is that possible if I'm doing the sensor collection using interrupts? The timestamps represent exactly when the sensors were polled, not when the main loop is processed (I forgot to update the plot labels)
  10. P

    SD Logger has Occasional High Latency

    Ok, I gave the interrupt thing a shot. Here's the code: #include "Adafruit_LSM6DS33.h" #include "Adafruit_LIS3MDL.h" #include "SdFat.h" #include "navduino.h" #include "attitude.h" #include "FireTimer.h" #ifdef SDCARD_SS_PIN const uint8_t SD_CS_PIN = SDCARD_SS_PIN; #endif // SDCARD_SS_PIN...
  11. P

    SD Logger has Occasional High Latency

    Ok, that makes sense. Tangentially: is there an easy way to set interrupt priority levels? I'll need to do this for more complex projects
  12. P

    SD Logger has Occasional High Latency

    Thanks! Dumb question: If I use an interrupt (which is what I assume `DataLogTimer` uses) to sample the sensors, I'm guessing I can still get the sensor data at a predictible rate during these occasions of SD latency?
  13. P

    SD Logger has Occasional High Latency

    Dang, that's annoying/disappointing. Thanks for the info - I didn't know!
  14. P

    SD Logger has Occasional High Latency

    I have a T4.1 and I'm trying to do ~100Hz data logging to an SD card via the built-in slot. Even when running the T4.1 overclocked, I have inconsistent logging rates. Most of the logging is at 100Hz, but sometimes I get lags of up to 0.125 seconds! These lags are not evenly spaced through time...
  15. P

    Fastest Way to Log to SD Card

    I'm using the built-in SD interface on my T4.1 for datalogging and want to have as low of latency as absolutely possible. I'm using SdFat.h and have successfully tested the following sketch: #include "SdFat.h" #ifdef SDCARD_SS_PIN const uint8_t SD_CS_PIN = SDCARD_SS_PIN; #endif //...
  16. P

    T4.1 SCK on Pin 13 Fubar?

    I also tried with this super simple example: #include <SPI.h> // include the SPI library: const int slaveSelectPin = 10; void setup() { // set the slaveSelectPin as an output: pinMode (slaveSelectPin, OUTPUT); // initialize SPI: SPI.begin(); } void loop() { // go through the six...
  17. P

    T4.1 SCK on Pin 13 Fubar?

    The code is an example of the linked library, no devices, o-scope connected directly to pin 13. Not sure why SCK isn't working for both of my T4.1. It's a really simple setup
  18. P

    T4.1 SCK on Pin 13 Fubar?

    I'm trying to use a SPI display with my Teensy 4.1, but using the SCK on pin 13 is not working (see blue o-scope trace below). For reference I'm using the ILI9341_T4.h library (have tried others, too with no luck). Seems this is a recurring problem for Teensy 4.1s??? Is my T4.1 completely...
  19. P

    Teensy 4.0 Randomly Bricked - WTF?

    This is incredible - After switching USB cables it worked. I'm glad it's fixed, but the original USB cable that things errored with was working perfectly fine up until now...
  20. P

    Teensy 4.0 Randomly Bricked - WTF?

    Another thing. When I press the program mode button manually to force upload, after I let it go, a red LED lights by the USB receptacle and stays lit. If I completely power cycle by unplugging and replugging in the USB entirely, that red LED doesn't light up and the previous sketch boots up (I...
  21. P

    Teensy 4.0 Randomly Bricked - WTF?

    I was doing some shady stuff with an ISR in my sketch, but idk if it was that shady to mess things up like this.
  22. P

    Teensy 4.0 Randomly Bricked - WTF?

    I've tried that, but unfortunately it doesn't work. My versions are Arduino 1.8.13 and Teensyduino 1.53. Should I uninstall Teensyduino to the latest version? Will this help since Windows can't even recognize my MCU?
  23. P

    Teensy 4.0 Randomly Bricked - WTF?

    I've been working on a project with everything going well, (plenty of sketch updates and successful uploads to the T4.0) and this last sketch update bricked my Teensy. Now whenever I try to reupload a sketch I just get Looking in the device manager (Windows 10) I see the teensy is listed under...
  24. P

    Teensy 4.1 Cannot access Internal SD card

    Haven't tried - I don't own a T4
  25. P

    Teensy 4.1 Cannot access Internal SD card

    As for softwareserial, I need it to interface with a one-wire device (FrSky ASS-70 pitot tube sensor) via this library, but apparently, softwareserial only works in transmit only, and the previously linked lib requires transmit and receive...
  26. P

    Teensy 4.1 Cannot access Internal SD card

    I deleted the original SdFat library and replaced it with the beta - but still, this is a question about the normal SD lib, not the SdFat lib - I just wanted to spell out the source of my overall frustration with T4.1 SD issues (and, more recently, softwareserial issues).
  27. P

    Teensy 4.1 Cannot access Internal SD card

    Ok, so to get my card working with SdFat-Beta, I had to do the following (with help from here): #include "SdFat.h" SdExFat sd; void setup() { if (!sd.begin(SdioConfig(FIFO_SDIO))) { // SdFat.h Ver 2.0.0 Beta Serial.println("m.SD initialization failed!"); } else {...
  28. P

    Teensy 4.1 Cannot access Internal SD card

    It has nothing to do with "SdTerminal". The problem lies with "SdFat-beta" since the same library, well, SdFat.h, works flawlessly with "SdTerminal" with Teensy 3.5 and 3.6 boards, but can't compile for my Teensy 4.1. @MichaelMeissner : My SD card is a SanDisk ImageMate microSDXC card with...
  29. P

    Teensy 4.1 Cannot access Internal SD card

    I'm also trying to get the T4.1 to play nice with the built-in SD card slot and having nothing but trouble. After realizing neither SdFat.h nor SdFat-beta work, I tried the above method by using the following code: #include <SD.h> #include <SPI.h> void setup() { if...
  30. P

    T3.6 USB Host - Joysticks

    Any updates? I tried printing "joystick" class attributes in the "XBOXONE" case to see if I can get button press info, but the library doesn't recognize/initialize the controller correctly. Can you look into this?
  31. P

    T3.6 USB Host - Joysticks

    Ok, cool - can't believe ctrl+f "debug" didn't find that statement, lol. I ran it with my (hardwired) XBox One controller attached and got the following: I'm not experienced with HID or USB enough to know what the printouts mean - is my device connecting correctly?
  32. P

    T3.6 USB Host - Joysticks

    Now when I plug my XBox One controller into my T3.6 and run the test sketch, the only thing that shows up in the serial monitor is "USB Host Testing". My controller on lights do not turn on and none of the buttons cause any printouts. You mentioned something about uncommenting a #define with...
  33. P

    T3.6 USB Host - Joysticks

    Ok, I actually figured it out - you need to add #include "ILI9341_t3n.h" to either ili9341_t3n_font_Arial.h or to the example sketch in order for things to work. I think that should be updated in the repository. I can do a PR if you want.
  34. P

    T3.6 USB Host - Joysticks

    I installed the libraries in the correct place, so finding the installed headers is not the problem. Also, I'm compiling for T3.6 with the current Teensyduino version. I'd really appreciate if you can figure out why it's broken.
  35. P

    T3.6 USB Host - Joysticks

    Ok, not sure what's going on, but when I try the USBHost_viewer sketch, I get the following error: I directly cloned the following libs to my Arduino IDE "libraries" folder: https://github.com/KurtE/USBHost_t36 https://github.com/KurtE/ILI9341_t3n @KurtE - Any idea what's going on? I figured...
  36. P

    T3.6 USB Host - Joysticks

    Any update on the XBox One front? I'd really like to incorporate it into one of my T3.6 projects!
  37. P

    Serial Data Transfer Library Finished!

    Recently finished writing the pip-installable Python package pySerialTransfer that is compatible with SerialTransfer.h. Now you can easily, quickly, and reliably communicate with Arduinos via Python!
  38. P

    Serial Data Transfer Library Finished!

    Also, I updated the library a ton since originally posting this. One of the big updates is that I replaced the checksum portion with CRC-8 (polynomial 0x9B with a lookup table)
  39. P

    Serial Data Transfer Library Finished!

    I'm not sure what you're getting at - what do you mean?
  40. P

    Serial Data Transfer Library Finished!

    As part of one of my personal projects, I decided to write a library to transfer UART serial data in a fast and reliable manner. This library (SerialTransfer.h): is non blocking uses packet delimiters uses consistent overhead byte stuffing uses cyclic redundancy checksums allows the use of...
  41. P

    USB Host Shield with T3.5 and Mouse

    Setup() now looks like this: void setup() { Serial.begin( 115200 ); #if !defined(__MIPSEL__) while (!Serial && millis()<2000); // Wait for serial port to connect delay(1000); #endif Serial.println("Start"); /////////////////////////////////////////////////////////////////...
  42. P

    USB Host Shield with T3.5 and Mouse

    Hey guys, I'm trying to get data from a mouse via one of those USB host shields, but when I run the example code below, I just get "OSC did not start" in the serial monitor and I'm not sure what exactly is going on. I think it's because I'm using the non-standard SPI pins. Curious, I did add...
  43. P

    T3.X Multipurpose Breakout PCB/Library

    I've designed a few PCBs for different projects I've worked on and got sick of having to make new designs for each project. That's when I figured it would be easier, less time consuming, and cheaper to design one master breakout PCB that I can order a bunch and use spares for multiple projects...
  44. P

    Secondary Ports - T3.5

    Awesome! That clears things up a ton. I'm guessing I2C and SPI interfaces have something similar to .setTX(1)? i.e. .setCS(1) or .setSDA(1)?
  45. P

    Secondary Ports - T3.5

    I'm designing a PCB for a project for massive amounts of I/O for a T3.5 and was wondering about secondary ports. For instance, the pinout I have says D26 can be used as an alternate for TX1. Does that mean if I do Serial1.println("hi'); in my code, will D26 output a waveform by default? If not...
  46. P

    RC Airplane Project

    Hey guys, This past weekend I had a successful maiden test flight with my Teensy 3.5 RC airplane. The hand controller electronics, flight electronics, and all software are custom designed. I'm most proud of the software considering how powerful and easy it is to use. Basically, I wrote a...
  47. P

    FlexCAN for Teensy 3.5 for Car OBDII?

    Cool! Thanks for the link. Might be a dumb question, but have you tested your library to get data (i.e. speed) from a car's CAN port?
  48. P

    FlexCAN for Teensy 3.5 for Car OBDII?

    Hey guys, I have a Teensy 3.5 and a WaveShare CAN transceiver I'd like to use to get basic diagnostics data from my 2015 Dodge Charger R/T such as speed and RPM. I did some digging and it looks like FlexCAN is the library to use for a project like this, but the main problem is that all the...
  49. P

    T3.5 w/ Lidar Lite V3 - Nothing but Nacks!

    Nvm, I got it to work! I used the "extern TwoWire Wire2;" method found here: https://forum.arduino.cc/index.php?topic=216359.0. Unfortunately, I had to change the LiDAR Lite library with the above patch in order for it to work.
  50. P

    T3.5 w/ Lidar Lite V3 - Nothing but Nacks!

    Hey guys, I'm trying to get my Teensy 3.5 to work with a Lidar Lite V3, but I'm getting all nacks. Setup: - 4.7K external pullups to 5V - Using port I2C2 (pins 3 and 4) Schematic/Board Layout: Code: #include <Wire.h> #include <LIDARLite.h> LIDARLite myLidarLite; void setup() {...
Back
Top