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. :confused: you failed to provide an example...

    :confused: you failed to provide an example sketch that demonstrates the problem ??

    I pasted your class definitions into the following test and it works for me on T3.2 and T.36 prints 106
    ...
  2. Replies
    28
    Views
    178

    TWBR is a legacy emulation for ye ol 8-bit AVR...

    TWBR is a legacy emulation for ye ol 8-bit AVR processors. I don't think T4 supports the emulation. use Wire.setClock(400000) and verify with scope on SCL pin.

    if your device can do it, the T4...
  3. Thread: Teensy 4 ADC

    by manitou
    Replies
    6
    Views
    77

    What? SerialPlotter works for me on T4 (arduino...

    What? SerialPlotter works for me on T4 (arduino IDE 1.8.11) on ubuntu
  4. Thread: Teensy 4 ADC

    by manitou
    Replies
    6
    Views
    77

    the default analog Reference is 3.3v. You can...

    the default analog Reference is 3.3v. You can use analogReference(INTERNAL); to reduce the range to 0 to 1.2v

    As the forum rule states, please provide complete source code that demonstrates...
  5. Your dbgPrint() comes BEFORE you've enabled the ...

    Your dbgPrint() comes BEFORE you've enabled the LPTMR (SIM_SCGC5 |= SIM_SCGC5_LPTIMER; ), dbgPrint() needs to be after that.

    TPM/FTM timers are enabled as part of core startup.
  6. I haven't run your sketch but you need to clear...

    I haven't run your sketch but you need to clear the interrupt in LPTMR_isr() LPTMR0_CSR |= LPTMR_CSR_TCF;, otherwise the sketch will be in a tight loop spinning in the isr.

    and you probably...
  7. can you post your new LPTMR sketch? did you...

    can you post your new LPTMR sketch? did you enable the timer SIM_SCGC5 |= SIM_SCGC5_LPTIMER; ?
    here is a LPTMR sketch that counts pulses from pin 13 (T3.2?)...
  8. see post #3 to confirm PDM mic working.

    see post #3 to confirm PDM mic working.
  9. here is a sketch i used with...

    here is a sketch i used with https://www.adafruit.com/product/3492 hooked to T3.2, using 3v3, GND, DAT to pin 13, CLK to 9, SEL not connected.

    #include <Audio.h>
    #define MICGAIN 100

    //...
  10. Replies
    28
    Views
    178

    also see...

    also see https://forum.pjrc.com/threads/40115-Teensy-Hearing-Aid
  11. are you using an ethernet crossover cable between...

    are you using an ethernet crossover cable between the two wiznet modules? (Rx to Tx, Tx to Rx) I don't think wiznet supports auto MDI-X
  12. Replies
    3
    Views
    67

    does the simple blink sketch work on USB and also...

    does the simple blink sketch work on USB and also on just external Vin?
    make sure your test sketch does not have while(!Serial); -- that will stall the sketch if not hooked to USB

    as the rule at...
  13. Replies
    2
    Views
    63

    Careful if you are using HC-SR04. I think it...

    Careful if you are using HC-SR04. I think it requires 5v and Teensy 3.6 is NOT 5v tolerant.

    pulseIn() measurements can be affected by interrupt activity. NewPing lib uses interval timer.
    ...
  14. I corrected post #8

    I corrected post #8
  15. I reproduced your problem with this simple...

    I reproduced your problem with this simple sketch using Arduino 1.8.11 and TD 1.51-beta1

    //
    // Teensy 3.x/LC simple internal temperature
    //

    #include <InternalTemperature.h>
    ...
  16. Ah, then your challenge becomes developing a...

    Ah, then your challenge becomes developing a small program that exhibits the problem. In this case, it seems a small program that uses InternalTemperature and reads an analog pin with 2.4v on it. ...
  17. The default setting (begin()) for...

    The default setting (begin()) for InternalTemperature lib will do analogReference(INTERNAL); (1.2v)

    As Frank notes, without seeing your sketch, we can only guess.
  18. Replies
    7
    Views
    287

    are you going to add MQS output to GUI?

    are you going to add MQS output to GUI?
  19. not 32-bit SDTEST3.WAV: RIFF (little-endian)...

    not 32-bit
    SDTEST3.WAV: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 44100 Hz
  20. you didn't make BUILTI_SDCARD one of your...

    you didn't make BUILTI_SDCARD one of your selections? and BUILTIN_SDCARD is 254 which is a negative number for 8 bit int. here's my version of your sketch

    #include <SPI.h>
    #include <SD.h>
    ...
  21. No. look at pin info card:...

    No. look at pin info card: https://www.pjrc.com/teensy/pinout.html If there are gray pin numbers associated with pin, then it can can do "digital things" like pullups/pulldowns. A10, A11 A21, A22...
  22. Replies
    2
    Views
    128

    search the forum for MQS it's not part of the...

    search the forum for MQS

    it's not part of the audio GUI yet, here's a simple sketch that I used in beta testing

    // teensy4 mqs frank's audiolib pins 10/12 rt/left 8 ohm speaker with 100uF...
  23. you might do a ps uax | grep tee and look for...

    you might do a ps uax | grep tee and look for orphaned teensy tasks that might need to be killed, in particular teensy_ports -J2
  24. i'm having trouble understanding your IDE output...

    i'm having trouble understanding your IDE output :confused:
    /home/ryan/ryan_stuff/projects/microprocessing/arduino-1.8.12/hardware/teensy/../tools/teensy_post_compile -file=test_serial.ino...
  25. i'm not sure if it's necessary or the right...

    i'm not sure if it's necessary or the right incantation, but have you tried sudo systemctl restart udev.service that restarts the udev service so it sees any changes to rules.d/
  26. Replies
    320
    Views
    8,337

    ah, that makes sense. I don't have GigE on my...

    ah, that makes sense. I don't have GigE on my home setup.
  27. Replies
    320
    Views
    8,337

    I'm trying to make sense of these "unbelievably"...

    I'm trying to make sense of these "unbelievably" fast UDP data rates. The amazon USB Ethernet dongle is only good for 10/100 mbs Ethernet? So what does 760 mbs mean? Even the USB is only 480 mbs? ...
  28. So did you get calibration implemented in the...

    So did you get calibration implemented in the sketch/firmware? can you post your working calibration sketch?
  29. Replies
    2
    Views
    144

    see...

    see https://forum.pjrc.com/threads/59813-Teensy-4-0-Internal-Temperature-measurement
    and you can look in the core source files to see how tempmonGetTemp() does it
  30. Replies
    5
    Views
    250

    you can see the output after the preprocessor...

    you can see the output after the preprocessor stage with gcc -E file.c
    i think the compiler will do 500/5 at compile time
  31. Replies
    320
    Views
    8,337

    I just tried it on T3.6 and T4.0, works for me. ...

    I just tried it on T3.6 and T4.0, works for me. Sketch prints the usual startup stuff for DHCP etc, then

    ...
    ntp 3791047716 887142411 utc 20:48:36 RTT 896 us
    ntp 3791047717 891406643 utc...
  32. Replies
    320
    Views
    8,337

    see attached tmp.zip. I had tried different...

    see attached tmp.zip. I had tried different things with this sketch (like not using threads), but i think this is a working version. you'll need to provide an IP for an NTP server
  33. Replies
    320
    Views
    8,337

    if you look in...

    if you look in sketchbook/libraries/FNET/src/service, you'll see a collection of client/server folders:

    autoip/ dns/ fnet_service.h* link/ serial/ tftp/
    azure/ flash/ ...
  34. Teensy schematics at...

    Teensy schematics at https://www.pjrc.com/teensy/schematic.html
  35. As defragster noted in post #7, there might be...

    As defragster noted in post #7, there might be native Ethernet with follow-on Teensy 4 (requires 12 pins from the 1062). If you compare the NXP ethernet chapters in the Teensy 3.6 and Teensy 4...
  36. Replies
    2
    Views
    105

    Why not use FreqMeasure lib? here are some tips...

    Why not use FreqMeasure lib? here are some tips and a DMA capture example
    https://forum.pjrc.com/threads/53142-Howto-use-timer-capture-mode-Teensy-3-5
  37. you might add some lines to setup() to reset the...

    you might add some lines to setup() to reset the wiz820io, see end of https://www.pjrc.com/store/wiz820_sd_adaptor.html
  38. Replies
    320
    Views
    8,337

    It still works for me. Amazon USB ether dongle...

    It still works for me. Amazon USB ether dongle hooked to T4B2 USB host port. Ethernet hooked to switch -> router/switch
    dongle's yellow and green LED are ON. Built/ran example ASIXEthernet_Test...
  39. Replies
    11
    Views
    222

    UDP can be effective on a local ethernet. On the...

    UDP can be effective on a local ethernet. On the Internet, blasting UDP packets is "socially unacceptable" -- your LC/host may be considered mounting a denial-of-service attack! Also UDP is...
  40. Replies
    8
    Views
    273

    you might use FTM timer capture with DMA, see...

    you might use FTM timer capture with DMA, see https://forum.pjrc.com/threads/37148-Measuring-pulse-width-interrupts?p=124805&viewfull=1#post124805

    also look at...
  41. Just for the record, with the NXP SDK on 1062, I...

    Just for the record, with the NXP SDK on 1062, I noticed that IOMUXC_GPR->GPR16 is 0x200003, though I see nothing in the SDK C sources where that "2" is set ?? How did you discover the magic bit? ...
  42. Replies
    7
    Views
    183

    again, referring to...

    again, referring to https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=197435&viewfull=1#post197435
    paul speculates there may be bus buffers associated with flexspi FLASH
  43. Replies
    11
    Views
    222

    you might want to use wireshark to watch TCP...

    you might want to use wireshark to watch TCP traffic from your W5500 for different W5500 socket buffer size, and read about TCP delay-bandwidth product.

    throughput = TCP buffersize/RTT

    so for...
  44. FWIW, there were discussions on T4 cache behavior...

    FWIW, there were discussions on T4 cache behavior in giant Teensy 4 beta thread, e.g.
    https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=197430&viewfull=1#post197430
  45. Replies
    85
    Views
    7,707

    Please don't post any photos of your...

    Please don't post any photos of your micropythong! ;)

    My fingers also like to add the "g"
  46. Replies
    2
    Views
    132

    are the header pins soldered to your T3.5?

    are the header pins soldered to your T3.5?
  47. Replies
    85
    Views
    7,707

    i'm pretty sure FPU is configured (by SDK...

    i'm pretty sure FPU is configured (by SDK SystemInit()) and compiler switches are correct, and that double and float are working for your Teensy 4 branch. Many of my .py tests were float intensive...
  48. Replies
    2
    Views
    119

    tone just uses intervaltimer with microsecond...

    tone just uses intervaltimer with microsecond period, and you could make your own variation from Teensy's Tone.cpp, see
    hardware/teensy/avr/cores/teensy3/Tone.cpp
  49. Replies
    85
    Views
    7,707

    Hack alert: OK, I've updated post #14...

    Hack alert:

    OK, I've updated post #14 again. I added SCB_EnableDCache() to cpu.voltage, and then invoke cpu.voltage at the start of each of my .py tests, so I should have DCache enabled, and...
  50. Replies
    85
    Views
    7,707

    @tannewt I cloned your latest teensy4-dev branch...

    @tannewt I cloned your latest teensy4-dev branch and was able to run all of my benchmark circuitypython scripts. I updated results in post #14. As I understand it, DCache is disabled? So things...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4