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. see...

    see https://www.pjrc.com/teensy/td_libs_Servo.html
    that says servo() uses timer3
    Tone also uses timer 3, see Tone.cpp
  2. Replies
    13
    Views
    103

    this data sheet...

    this data sheet says SD0 needs to go to GND for default I2C address. I have a working BMP280 but it's part of a MPU9250 IMU PCB fronted by a sensor hub.
  3. Replies
    13
    Views
    103

    https://components101.com/sensors/gy-bmp280-module...

    https://components101.com/sensors/gy-bmp280-module says you need CSB to 3v3 for I2C

    you could also try SPI mode.
  4. Replies
    13
    Views
    103

    do you have a link to the actual PCB you're...

    do you have a link to the actual PCB you're using, e.g. https://www.adafruit.com/product/2651 (includes pullups).
    maybe attach a photo of your setup. also try I2C scanner example in Wire lib
    Check...
  5. Replies
    41
    Views
    3,381

    likely TEMPMON fix described in github issue...

    likely TEMPMON fix described in github issue

    FYI, circuitpython T4 register settings:

    SystemCoreClock 600000000 14:17:35 Jan 16 2020 ok

    AhbClk 600000000 kCLOCK_RtcClk 32768 ...
  6. Replies
    41
    Views
    3,381

    ok, i started over from cloning your teensy4...

    ok, i started over from cloning your teensy4 branch ... and the make worked.
    thanks
  7. Replies
    41
    Views
    3,381

    so i should restart by cloning your branch again,...

    so i should restart by cloning your branch again, and then doing all the submodule stuff?
  8. Replies
    41
    Views
    3,381

    OK, i did those git submodule, and that ends with...

    OK, i did those git submodule, and that ends with

    ...
    error: Server does not allow request for unadvertised object cf3acd6b6d47e3aaeb0ca29a70ca1339d415908b
    Fetched in submodule path...
  9. Replies
    12
    Views
    253

    i haven't seen that error. i've gotten ...

    i haven't seen that error. i've gotten watchdog crash
    Stack canary watchpoint triggered
    I had to increase stack size in cores/esp32/main.cpp
    ...
  10. Replies
    41
    Views
    3,381

    @tannewt I have successfully built...

    @tannewt
    I have successfully built circuitpython for STM32F405 (increased CPU clock to 168mhz) , but my build failed starting from your branch
    https://github.com/tannewt/circuitpython/tree/teensy4...
  11. Replies
    12
    Views
    253

    you can change compiler optimization in...

    you can change compiler optimization in platform.txt
    .arduino15/packages/esp32/hardware/esp32/1.0.4/platform.txt
  12. Replies
    12
    Views
    253

    I've had no problems doing simple testing with...

    I've had no problems doing simple testing with Sparkfun's ESP32 thing and the Arduino IDE
    https://www.sparkfun.com/products/13907
    Some sketches had to be modified for the ESP32. I think a few...
  13. I think in your ISR, you would need to look at...

    I think in your ISR, you would need to look at GPTx_SR, and bits OF1 OF2 OF3 would indicate which compare-event fired, and then you could call your associated routine for that event. (and clear the ...
  14. datasheet says max is Vddio of 1.8v. sparkfun...

    datasheet says max is Vddio of 1.8v. sparkfun has a breakout and they use pullups to 1.8v
    https://www.sparkfun.com/products/15335
  15. Replies
    41
    Views
    3,381

    there is a microcontroller.delay_us() in...

    there is a microcontroller.delay_us() in micropython

    >>> import time
    >>> import microcontroller
    >>> t1 = time.monotonic_ns(); microcontroller.delay_us(3000); t2 = time.monotonic_ns(); t2-t1...
  16. Replies
    41
    Views
    3,381

    don't take my word for it but i found ...

    don't take my word for it but i found

    ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1062/clocks.c
    #define BOARD_BOOTCLOCKRUN_CORE_CLOCK 600000000

    so i think...
  17. Replies
    41
    Views
    3,381

    blink.py with no sleep, e.g. circuitypython...

    blink.py with no sleep, e.g. circuitypython toggle, use scope on pin 13 to measure period.

    circuit playground express 100 us SAMD21
    M4 21.4 us SAMD51
    STM32F405 38.4 us
    T4 43.6 us
  18. Replies
    41
    Views
    3,381

    that might be a "feature" -- i saw the same thing...

    that might be a "feature" -- i saw the same thing and using .00501 gets you closer to 5 ms

    >>> import time
    >>> t1 = time.monotonic(); time.sleep(0.001); t2 = time.monotonic(); t2-t1
    0.0
    >>> t1...
  19. Replies
    12
    Views
    288

    Has yourT4 had any electrical trauma? have you...

    Has yourT4 had any electrical trauma? have you mistakenly connected 5v to any of the T4 digital/analog pins?? T4 is NOT 5v tolerant.
  20. Replies
    41
    Views
    3,381

    more photos on arturo's twitter feed ...

    more photos on arturo's twitter feed https://twitter.com/arturo182/status/1199841134253682690
  21. Replies
    41
    Views
    3,381

    OK, I fetched the zip file and loaded the .hex on...

    OK, I fetched the zip file and loaded the .hex on to one of my T4's. CIRCUITPY disk popped up as expected. terminal/REPL on /dev/ttyACM0. copied my blink.py on to CIRCUITPY disk and import...
  22. Replies
    41
    Views
    3,381

    Yep, when you power up an MCU running...

    Yep, when you power up an MCU running circuitpython, a disk drive pops up. you can drop/edit .py files on the disk and then execute the .py files.

    you should get an adafruit circuit playground...
  23. if you count interrupts in the isr (cnt++) and...

    if you count interrupts in the isr (cnt++) and print cnt every second in loop, you will see for your sketch at high CPU speed, it is counting 2 interrupts every second. isr is firing twice. If you...
  24. Replies
    12
    Views
    288

    I would recommend updating Teensyduino to 1.48 or...

    I would recommend updating Teensyduino to 1.48 or 1.49-beta4
  25. try reordering the statements in the isr void...

    try reordering the statements in the isr

    void pdb_isr() {
    PDB0_SC = PDB_CONFIG | PDB_SC_LDOK; // (also clears interrupt flag)
    GPIOC_PTOR |= (1 << 5); // toggle pin 13 each interrupt
    }...
  26. Replies
    12
    Views
    288

    maybe a cut-and-paste error, but this doesn't...

    maybe a cut-and-paste error, but this doesn't look right

    ARDUINO 10809
    TEENSYDUINO10809 ???

    TEENSYDUINO should be something like 148 or 149

    and does little temperature sketch stop printing...
  27. Replies
    12
    Views
    288

    The forum rules request that you post the...

    The forum rules request that you post the complete source code that you are running on the T4 so others can reproduce the problem. What version of Arduino IDE and Teensyduino are you using? What...
  28. To force float over double, you can use float...

    To force float over double, you can use float constants (1.77f) and the float version of math functions ( sinf() ). T4 has hardware double and float. T3.5/3.6 has only single-precision FPU hardware...
  29. Replies
    10
    Views
    96

    the example sketch provided was run with wiznet...

    the example sketch provided was run with wiznet hardware (hardwired Ethernet RJ45) -- example should also work with wifi
  30. Replies
    10
    Views
    96

    I think you need Udp.beginMulticast(). Here is a...

    I think you need Udp.beginMulticast(). Here is a 3 year old example
    https://github.com/manitou48/teensy3/blob/master/mtalk.ino

    and a little python script (mtalk.py) to exercise mutlicast:
    ...
  31. I recently got a Dell XPS 13 Ubuntu laptop and it...

    I recently got a Dell XPS 13 Ubuntu laptop and it came with USB C slot and a short C to A cable. I also bought a small C to USB hub (with 3 A ports). I have an Adafruit STM32F405 (168MHz) that uses...
  32. entropy lib is based on "duelling clocks" and has...

    entropy lib is based on "duelling clocks" and has not been ported to T4, but T3.5, T3.6, and T4.0 have hardware random number generators. The T4 generator is discussed in this thread:...
  33. Replies
    11
    Views
    206

    Maybe the LM393 is introducing delay? I have a...

    Maybe the LM393 is introducing delay? I have a simple Hall-effect sensor. When hooked to a T3.5 with 10K pullup on output to 3v3 (also tried 5v), I see 3v3 on the output pin. With the magnet...
  34. Replies
    2
    Views
    95

    Since you've set DAC analogWriteResolution to 12...

    Since you've set DAC analogWriteResolution to 12 bits, you need to use 12 bits for ADC too, change to
    adc->setResolution(12); // set bits of resolution
  35. FWIW, FastLED.show() is blocking, but...

    FWIW,
    FastLED.show() is blocking, but micros()/millis() appear ok (12273 us)
  36. Replies
    12
    Views
    189

    maybe add a strip.begin(); after Serial.begin()...

    maybe add a strip.begin(); after Serial.begin()

    or try running the simple example from Adafruit NeoPixel lib
  37. this works for me: sudo apt-get purge modemmanager

    this works for me: sudo apt-get purge modemmanager
  38. So as mentioned in earlier posts, did you try...

    So as mentioned in earlier posts, did you try adding delay(10); to the loop() ?

    what OS/version are you running? your photos seem to show ModemManager running ... I don't think the "kill" will...
  39. Replies
    199
    Views
    3,624

    So you have timed ADC reads with DMA? Is this...

    So you have timed ADC reads with DMA? Is this not the key to supporting T4 ADC in audio lib? are you doing double-buffered DMA -- half-complete + complete ISR.
  40. the first page of the T4 beta test thread (HUGE)...

    the first page of the T4 beta test thread (HUGE) describes audio things that are working and not.
    https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test
  41. Re: I2C sniffer google is your friend see...

    Re: I2C sniffer
    google is your friend see https://forum.pjrc.com/threads/28737-My-i2c-sniffer
  42. mjs513 tests are getting close -- T4 "too fast",...

    mjs513 tests are getting close -- T4 "too fast", delays needed. My MPU9250 is soldered to I2C, so I can't test the sketch. I ran simple SPI loopback tests on T4 with both 1.48 and 1.49-beta3 and...
  43. I hooked up sparkfun MPU9250 to T3.6 I2C and ran...

    I hooked up sparkfun MPU9250 to T3.6 I2C and ran your sketch. with just accel enabled IMU.enableFifo(true,false,false,false); i get
    0.143659 0.325628 -9.620393
    0.148448 0.335205 -9.629970...
  44. OK i think i mixed two different CoreMark...

    OK i think i mixed two different CoreMark sketches. Re-running with Paul's CoreMark -O3 @24mhz, on 1.48 I get 98.77 iterations/sec and 34.44 ma. With 1.49-beta3, I get 98.75 iterations/sec and...
  45. I don't think AudioInputAnalog is supported yet...

    I don't think AudioInputAnalog is supported yet on the T4. In the interim maybe try a T3.5 or T3.6
  46. Is the noise apparent with audio lib's sample WAV...

    Is the noise apparent with audio lib's sample WAV files (SDTEST1.WAV SDTEST2.WAV SDTEST3.WAV SDTEST4.WAV), or are those "too loud"? Is noise apparent with synthetic (e.g. sine wave) output? what...
  47. Replies
    45
    Views
    2,860

    I added 1.48 SPI results to post #30

    I added 1.48 SPI results to post #30
  48. Replies
    45
    Views
    2,860

    The max SPI clock for Teensyduino 1.48 was 37.7...

    The max SPI clock for Teensyduino 1.48 was 37.7 mhz (528/7/2) with an effective data rate of 30.8 mbs. With LPSPI clock changed in 1.49-beta 3, max SPI clock is 120mhz. I ran some 1024-byte SPI...
  49. Replies
    45
    Views
    2,860

    I ran neurofun's sketch on T4@600mhz, but I have...

    I ran neurofun's sketch on T4@600mhz, but I have nothing attached to SPI (i have no RA8875). With scope hooked to 13 (SPI CLK), here are my results for various SPI CLK settings in tft.begin()

    ...
  50. I changed Serial.print to Serial.println in your...

    I changed Serial.print to Serial.println in your sketch, and instead of Serial monitor, i selected Serial Plotter from IDE. you will see a nice graph of yaw pitch and roll that will vary as you...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4