Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: manitou

Page 1 of 10 1 2 3 4

Search: Search took 0.02 seconds.

  1. FWIW, i ran your sketch adding a sine-wave on the...

    FWIW, i ran your sketch adding a sine-wave on the T3.2 DAC (A14) as my 1khz input jumpered to A3 and hooked to scope. I didn't have any FastLEDs connected. sine wave on scope had no noise. (maybe...
  2. You could use the DAC (A12) jumpered to audioIn...

    You could use the DAC (A12) jumpered to audioIn on the propshield with audio amp pin enabled to drive an 8 ohm speaker connected to shield. Here's a link on 8-bit WAV for LC ...
  3. Replies
    3,408
    Views
    368,304

    One of my GPS requries 5v, i'd just use a 2nd USB...

    One of my GPS requries 5v, i'd just use a 2nd USB to T3.2 and use its Vin to power the GPS, and jumper the PPS pin to one of the Serialx male pins on the T4 breakout.
  4. Replies
    49
    Views
    12,523

    Discussion reminds of ye old "rugged arduino" ...

    Discussion reminds of ye old "rugged arduino" https://www.rugged-circuits.com/10-ways-to-destroy-an-arduino

    Or use littlebits to help you properly connect components. :D
  5. Replies
    3
    Views
    117

    please provide the sketch you are running and...

    please provide the sketch you are running and maybe a photo of your setup and which encoder are you using? (vendor/model) Do you have soldered headers?
  6. Here is a T3.2 sketch where you can define...

    Here is a T3.2 sketch where you can define FASTISR to have the core transfer to your ISR on a pin interrupt. you are then responsible for figuring out which pin in PORTC interrupted and clearing the...
  7. Replies
    33
    Views
    823

    can you post your "sketch of death" that is...

    can you post your "sketch of death" that is running on your T3.6?
  8. The sparkfun library is based on Wire lib, but...

    The sparkfun library is based on Wire lib, but you have also included i2c_t3.h library which is not compatible with Wire.h -- you can't use them both in one sketch. For example, the begin() for each...
  9. Replies
    3,408
    Views
    368,304

    I have examples using internal DAC to do ADC...

    I have examples using internal DAC to do ADC compare, and using ADC_ETC to do timed ADC reads, and free-running ADC with double-buffered DMA, BUT i never found a way to do what audio lib needs: ...
  10. Did you buy your Teensy 2 from PJRC or an...

    Did you buy your Teensy 2 from PJRC or an approved Teensy distributor? Often counterfeits are unreliable.

    https://forum.pjrc.com/threads/23601-Official-Distributors
  11. Replies
    3,408
    Views
    368,304

    Sorry you misunderstood my poor attempt at humor....

    Sorry you misunderstood my poor attempt at humor. I had actually tried to reply to your post with just "sure", and the forum gui (vBulletin) would not accept such a short reply. go figure.
  12. Replies
    3,408
    Views
    368,304

    sure. "random words to get around minimum...

    sure.

    "random words to get around minimum reply threshold"
  13. Replies
    3,408
    Views
    368,304

    Should i be able to see the white wire without...

    Should i be able to see the white wire without pulling MCU out of breakout board? I haven't ever pulled MCU out, fearing i'll not get pogo pins aligned again ?? any how, the loader log seems to...
  14. Replies
    3,408
    Views
    368,304

    OK, beta3 really did update my bootloader. Help...

    OK, beta3 really did update my bootloader. Help verbose says: Board is: Teensy 4-Beta2 (IMXRT1062), version 0.04

    So i built WavFilePlayer on 1.47-beta2 system, and now the beta2 version of...
  15. Replies
    3,408
    Views
    368,304

    Re: broken WavFilePlayer I'll check msg #6...

    Re: broken WavFilePlayer


    I'll check msg #6 stuff, and add if not there. The WavFilePlayer problem is also popping up in a lot of threads for T3.5 and T3.6 BUILTIN_SDCARD. Started failing with...
  16. Replies
    3,408
    Views
    368,304

    in audio lib: play_sd_wav.h: change buffer...

    in audio lib:
    play_sd_wav.h: change buffer declaration to uint8_t buffer[512] __attribute__((aligned(0x4)));

    in play_sd_wav.cpp: comment out __disable_irq(); before SD.open();

    The SD lib was...
  17. Replies
    3,408
    Views
    368,304

    Well, BUILTIN_SDCARD WavFilePlayer (with audio...

    Well, BUILTIN_SDCARD WavFilePlayer (with audio lib hacks) is working now on my T4B2 with beta3?? I reseated audio board and used another USB port on linux box ... I can't see how that changed...
  18. Replies
    3,408
    Views
    368,304

    With beta3, i had to re-apply hack to audio lib...

    With beta3, i had to re-apply hack to audio lib play_sd_wav.h and .cpp to fix BUILTIN_SDCARD WavFilePlayer bug in T4, T3.6, T3.5, see...
  19. This is likely a BUILTIN_SDCARD problem with...

    This is likely a BUILTIN_SDCARD problem with Teensyduino 1.46, discussed several times on this forum, see
    ...
  20. Replies
    3,408
    Views
    368,304

    Yep, RTC is set to correct time and is ticking ...

    Yep, RTC is set to correct time and is ticking ;)

    // T4 RTC 32khz crystal
    #include <time.h>

    void setup() {
    }

    void loop() {
    time_t tt = rtc_get();
  21. Replies
    3,408
    Views
    368,304

    Yes, my disjointed CalibrateSensors and...

    Yes, my disjointed CalibrateSensors and MotionCal (on another machine) worked after Paul's eeprom.c fix.

    I just installed 1.47-beta3 on T4B2 and it said bootloader updated. I actually thought i...
  22. Replies
    3,408
    Views
    368,304

    Re: T4 EEPROM FWIW, i did a few more EEPROM...

    Re: T4 EEPROM
    FWIW, i did a few more EEPROM tests on both 1052 and 1062. I confirmed that if flash sector is filled, core properly preserves current data bytes and reflashes sector and restores...
  23. Replies
    3,408
    Views
    368,304

    Thanks! looks good.

    Thanks! looks good.
  24. Replies
    3,408
    Views
    368,304

    I also had an EEPROM test sketch that made NO use...

    I also had an EEPROM test sketch that made NO use of Serial -- it incremented EERPOM byte 0 every 5 seconds, and flashed the LED the number of times determined by the read of EEPROM byte 0. It also...
  25. Replies
    3,408
    Views
    368,304

    It may not be helpful or relevant but NXP SDK has...

    It may not be helpful or relevant but NXP SDK has bootloader source and flexspi flash example.

    middleware/mcu-boot/tools/src/bootloader
    middleware/mcu-boot/src/bootloader
    ...
  26. Replies
    3,408
    Views
    368,304

    this is way above my pay grade, but status =...

    this is way above my pay grade, but status = *(uint8_t *)&FLEXSPI_RFDR0; seems a strange "status" register, since manual says RFDR0 is 32-bits of data from RX FIFO ???

    I have not seen a hang in my...
  27. Replies
    3,408
    Views
    368,304

    Re: NXPMotionSense and EEPROM :confused: OK,...

    Re: NXPMotionSense and EEPROM :confused:

    OK, here is the simplest example. It doesn't have anything to do with CalibrateSensors and MotionCal.

    #include <EEPROM.h>

    void setup() {
    ...
  28. Replies
    3,408
    Views
    368,304

    Yes, I've been running with 1.8.8/1.47 beta2 and...

    Yes, I've been running with 1.8.8/1.47 beta2 and latest github cores. propshield with T3.2 and T3.6 are good with MotionCal on windows and macos, but i get no green check mark or EEPROM update with...
  29. Replies
    3,408
    Views
    368,304

    I did pick up new MotionCal executables...

    I did pick up new MotionCal executables yesterday, and those provided the green check when I tested prop shield with T3.2 or T3.6. But T4B2 when sending calibration will do a fast flash of the LED...
  30. Replies
    3,408
    Views
    368,304

    Re: EEPROM and NXPMotionSense I compiled and...

    Re: EEPROM and NXPMotionSense

    I compiled and ran example CalibrateSensors with propshield and T4B2 and I2C sensor data is properly streaming to /dev/ttyACM0. I then ran MotionCal visualizer...
  31. Replies
    3,408
    Views
    368,304

    Ran my old Arduino EEPROM sketch (EEPROM.write()...

    Ran my old Arduino EEPROM sketch (EEPROM.write() and EEPROM.read() of 100 bytes. Write worked. cycled power, read was good.
    100-bytes write: T3.6 5984 us, T4B2 write 1506 us
    100-bytes read:...
  32. Replies
    3,408
    Views
    368,304

    Your DOTSTARs don't work on T3.5 with production...

    Your DOTSTARs don't work on T3.5 with production FastLED lib? Not sure i can help.

    Sanity check:
    for my T4 modified FastLED lib, you need to edit boards.txt so that F_CPU will be set to 600 mhz....
  33. Replies
    3,408
    Views
    368,304

    With the delay(1) (maybe a shorter microsecond...

    With the delay(1) (maybe a shorter microsecond delay will work?), the Wire adaptation (attached) of Kris Winer's propshield sketch works on T4B2, exercising all the MPU sensors. We'll need EEPROM...
  34. Replies
    3,408
    Views
    368,304

    it worked if i added a delay(1) in readByte()...

    it worked if i added a delay(1) in readByte() after Wire.endTransmission(). maybe T4 is too fast
  35. Replies
    3,408
    Views
    368,304

    i think T4 wire lib is handling repeated start...

    i think T4 wire lib is handling repeated start (using Wire.endTransmission(false); ) since sensor is working with sparkfun lib. I added a note about using a Wire-lib port of Kris Winer's sketch in...
  36. Replies
    3,408
    Views
    368,304

    MPL3115A2 With my propshield, I first used...

    MPL3115A2

    With my propshield, I first used Sparkfun lib and MPL3115A2 example -- worked on T3.2, T3.6 and T4B2 (3v3 GND SDA SCL and Wire lib). This sensor uses I2C repeated start.

    I tried...
  37. Replies
    3,408
    Views
    368,304

    Editing play_sd_wav.h and play_sd_wav.cpp I...

    Editing play_sd_wav.h and play_sd_wav.cpp
    I aligned buffer and commented out __disable_irq() before SD.open(), and WavFilePlayer seems to be playing on T4B2 (observed with scope), fix based on...
  38. Thanks for the bug fixing. This likely will...

    Thanks for the bug fixing. This likely will solve problem with WavFilePlayer introduced by Teensyduino 1.46 and discussed in several recent threads....
  39. Replies
    11
    Views
    413

    maybe this recent post fixes the problem ?...

    maybe this recent post fixes the problem ? https://forum.pjrc.com/threads/56355-AudioPlaySdWav-DMA-timing-and-buffer-misalignment-issues
    Further testing required ...
  40. Replies
    16
    Views
    2,333

    Sticky: Maybe this recent post fixes the problem?...

    Maybe this recent post fixes the problem? https://forum.pjrc.com/threads/56355-AudioPlaySdWav-DMA-timing-and-buffer-misalignment-issues
    further study required ...
  41. Replies
    16
    Views
    2,333

    Sticky: I suspect changes to SD lib in 1.46 broke the...

    I suspect changes to SD lib in 1.46 broke the audio example WavFilePlayer for BUILTIN_SDCARD on T3.5 and T3.6 (and T4B2). see...
  42. Replies
    3,408
    Views
    368,304

    With a pin interrupt ISR, you'll be limited to...

    With a pin interrupt ISR, you'll be limited to about 3 mhz as you noted. The external clocking of GPT is good up to 1/4 ipg_clk (150mhz/4 == 37.5 mhz)
  43. try analogWriteDAC0(value) it is what is...

    try analogWriteDAC0(value) it is what is called by analogWrite() for DACs

    hardware/teensy/avr/cores/teensy3/analog.c
  44. Replies
    4
    Views
    221

    maybe start with...

    maybe start with https://github.com/PaulStoffregen/FreqMeasureMulti
  45. Replies
    3,408
    Views
    368,304

    I think the gpt_count sketch works on both 1052...

    I think the gpt_count sketch works on both 1052 and 1062 since pin 25 is the same (Serial6 Rx on breakout board)
  46. I modified you sketch just a bit. It works for...

    I modified you sketch just a bit. It works for optimization Smallest or Fast but misbehaves for Faster and Fastest ???

    #include <string.h>

    void rcv_msg(char *rcv_msg) {

    char...
  47. add while(!Serial); after Serial.begin(115200);

    add while(!Serial); after Serial.begin(115200);
  48. Replies
    3,408
    Views
    368,304

    I did some experimenting with FastLED on T4 but...

    I did some experimenting with FastLED on T4 but there is work to be done see
    https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=202885&viewfull=1#post202885
  49. Replies
    14
    Views
    466

    There also a chance the uSD card is misbehaving. ...

    There also a chance the uSD card is misbehaving. Do you have another uSD card that you can try?
  50. The T3.6 is not 5v tolerant so be sure to power...

    The T3.6 is not 5v tolerant so be sure to power the sensor board with 3.3v or you may damage the T3.6. Both the Wire and i2c_t3 libs have an I2C scanner example sketch that you can run to see if the...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4