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

Search:

Type: Posts; User: NuttyMonk

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    353
    Views
    59,455

    It's probably my code. I have about 3k lines of...

    It's probably my code. I have about 3k lines of code and i'm using 5 or 6 timers so i'm probably doing something wrong somewhere. I just went back to elapsedMillis for this as, based on your...
  2. Replies
    353
    Views
    59,455

    Yeah, been thinking that myself. Oh well, back...

    Yeah, been thinking that myself. Oh well, back to the way it was.

    Thanks for your help Joe.

    Cheers

    NM
  3. Replies
    353
    Views
    59,455

    Hi Joe, i am looking to use a callback routine...

    Hi Joe,

    i am looking to use a callback routine instead of polling using elapsedMillis if i can. I've been weeding elapsedMillis/Micros out of my project and if i can get this working it'll stay...
  4. Replies
    353
    Views
    59,455

    p.s. i've been able to determine that the largest...

    p.s. i've been able to determine that the largest value i can put into timeoutMillis[0] is 178,956 which is 178,956,000 when it is put into the timeoutTimer.trigger(); function. Any values larger...
  5. Replies
    353
    Views
    59,455

    Hi Luni, I'm using the TTT in one-shot mode to...

    Hi Luni,

    I'm using the TTT in one-shot mode to manage a screen timeout on an attached OLED but it isn't behaving as expected.

    I've used the following code (this is just part of my code, not all...
  6. Ah, now that works well. Thanks joe. Getting...

    Ah, now that works well. Thanks joe.

    Getting very accurate times now.
  7. lol. Yup, there is good support on this forum. ...

    lol. Yup, there is good support on this forum.

    I was getting microsecond accuracy when i was using elapsedMicros before. I'm not sure if i've used it for timing testing since i moved to the...
  8. So, how does millis() and micros() get their...

    So, how does millis() and micros() get their timestamps? do they use timers?

    I ask because i am using elapsedMicros to test the timing of intervalTimer and it's jumping about between 124,000...
  9. I can't find anywhere in the elapsedMillis...

    I can't find anywhere in the elapsedMillis documentation page on PJRC that states what timers it uses.

    Does anyone know?

    Cheers

    NM
  10. OK. So it's a 24MHz clock. That gives it a tick...

    OK. So it's a 24MHz clock. That gives it a tick time of 41.67 nanoseconds and the accuracy seems to be within +-1 microsecond. Very nice.

    The last question is can i have 4 of them running at...
  11. I've just done a quick test with the...

    I've just done a quick test with the intervalTimer library and it's stable as a rock. I've used the code below and i'm checking how long it takes for each step using elapsedMicros and it's showing...
  12. I am running 4 clock outputs from the Teensy 4.0....

    I am running 4 clock outputs from the Teensy 4.0. They are for an audio project as a clock source for sequencing purposes. That means i need 4 independent timers. The PIT timers would be good to...
  13. The minimum time interval is about 3.7...

    The minimum time interval is about 3.7 milliseconds, the maximum is about 60 seconds, at least for the moment. I also want the clock pulses coming out of the project to be as jitter-free and stable...
  14. I was just getting the timers and interrupts...

    I was just getting the timers and interrupts working and then i realised i don't know how to decide when the 3 cascaded timer channels have reached the correct count.



    I am currently using...
  15. Teensy 4.0 Timers and Interrupts using registers

    Hi all,

    i'm wanting to do 48-bit timing on a Teensy 4.0. The only way i can do that is to use the QUADTimers and cascade them. After testing the QUADTimers i was able to determine that they run...
  16. Ah, that makes sense. ...

    Ah,

    that makes sense. Computers-count-from-zero strikes again!!!

    lol

    NM
  17. Hi all, so i found the eeprom.h file in this...

    Hi all,

    so i found the eeprom.h file in this location

    C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4\avr

    and changed this

    #define E2END 0x437
  18. Thanks for the replies. I'll give that a go. ...

    Thanks for the replies. I'll give that a go.

    There's absolutely no issue with me using up enough space on the flash memory that i can't run at the max emulated EEPROM. That will give me 12 save...
  19. Adjusting the Emulated EEPROM size on 4.0?

    Hi all,

    just a quick check to see if it is possible to adjust the size of the emulated EEPROM on the Teensy 4.0.

    I'd made my project on the 3.2 and was able to get 6 save spaces for settings...
  20. Using comparator with internal CMP ADC on Teensy 3.2

    Hi all,

    i've been looking into using comparators for a project and the libraries i can find don't have enough flexibility for me so i have been looking into setting the registers myself to get the...
  21. Hi KurtE, Thanks for the reply. The display...

    Hi KurtE,

    Thanks for the reply.

    The display can be showing several things as it has 3 pages. One page is just settings for the project so can be ignored. The other two screens show details...
  22. Strategies for attempting separate simultaneous updates on SSD1306 from Teensy

    Hi all,

    i am working on a project which uses a SSD1306 display connected to a Teensy 3.2. At first i was updating the display whenever something happened which should cause the display to be...
  23. Replies
    8
    Views
    240

    Those pins worked a treat. The display updates...

    Those pins worked a treat. The display updates in 3.4 milliseconds now. It was 35 milliseconds when i was using I2C, Massive difference.

    Being able to pick the SPI pins will also help when...
  24. Replies
    8
    Views
    240

    Very interesting. Thanks, will check it out. ...

    Very interesting.

    Thanks, will check it out.

    NM
  25. Replies
    8
    Views
    240

    Thanks defragster. It's good to get...

    Thanks defragster.

    It's good to get confirmation.

    Much appreciated

    NM
  26. Replies
    8
    Views
    240

    Am i correct in saying that these are how the...

    Am i correct in saying that these are how the pins are labelled on the Teensy 3.2?

    MOSI = DOUT (Pin 11)
    SCK = SCK (Pin 13)

    Can i pick another SCK pin such as pin 14? If so would i have to...
  27. Replies
    8
    Views
    240

    p.s. i've just realised that i might need to hook...

    p.s. i've just realised that i might need to hook up more than 3 pins from the Teensy 3.2 and the SSD1306. I still have enough free pins on the Teensy 3.2 in my project but am even more confused...
  28. Replies
    8
    Views
    240

    Teensy 3.2, SSD1306 + Hardware SPI

    Hi all,

    i've been trying to get hardware SPI to work for my SSD1306 (Adafruit Monochrome 1.3" 128x64 OLED graphic display - STEMMA QT / Qwiic) display on a Teensy 3.2 but with no luck. I've been...
  29. So it would seem :)

    So it would seem :)
  30. I thought it might be hardware at first but it...

    I thought it might be hardware at first but it only happens when i set the first clocks reset number to that of another clock, and they are all set to be reset by clock 1. All 3 of them will be...
  31. Yes, it works fine. I know what the issue is and...

    Yes, it works fine. I know what the issue is and am not needing help debugging any code, but i am looking for suggestions for code



    I am looking for ideas for code that will help me with this...
  32. p.s. i have the values for which clock resets...

    p.s. i have the values for which clock resets which in an array named


    int resetClock[5] = {0, 0, 1, 1, 1};

    In this example, clocks 2, 3 and 4 are all reset by clock 1. I ignore the value...
  33. Teensy resetting due to infinite loop conflict with 4 clocks

    Hi all,

    my Teensy 3.2 was resetting and i couldn't figure out why. The Teensy is being used to run 4 clocks for modular synths which all have various settings. One of the functions i've built is...
  34. Replies
    8
    Views
    1,044

    Thanks Jonathan, that sounds exactly like what i...

    Thanks Jonathan, that sounds exactly like what i need, especially the connect/disconnect part.

    I'll give it a go and update you on any problems if i find them.

    Cheers

    NM
  35. Replies
    8
    Views
    1,044

    That's a question i'd like an answer to as well. ...

    That's a question i'd like an answer to as well. I'd like to create an audio analyser tool that can switch between different 'screens', each screen having a different function. When one screen is...
  36. Replies
    0
    Views
    262

    Jack plug inserted detection

    Hi all,

    i've been puzzling over this for a wee while and can't figure it out.

    I have a mono jack socket with a normally closed tip-switch. The socket is for input voltages. I want to detect...
  37. Replies
    11
    Views
    1,084

    Is there a technical drawing of the...

    Is there a technical drawing of the https://www.pjrc.com/store/cable_usb_host_t36.html

    NM
  38. Replies
    11
    Views
    1,084

    Thanks very much for all of your help Paul. I...

    Thanks very much for all of your help Paul.

    I think i've decided on the Teensy 3.6 for this project and the USB Host cable. Will be easier to set up. I will just need to cut the VIN-VUSB pads...
  39. Replies
    11
    Views
    1,084

    I've just been checking over the pinouts for the...

    I've just been checking over the pinouts for the 3.6, 4.0 and 4.1 and i can see D- and D+ pins there so i know where to connect to. The only final question i have is with regards to the 3.3v...
  40. Replies
    11
    Views
    1,084

    Thanks again Paul, detailed enough for me to...

    Thanks again Paul, detailed enough for me to understand why my assumptions were wrong.

    So, assuming i have a Teensy with USB Host functionality, how do i connect the USB connector to the Teensy? ...
  41. Replies
    11
    Views
    1,084

    Thanks for your quick reply Paul. So if i...

    Thanks for your quick reply Paul.

    So if i connect a USB MIDI device to the Teensy pins then i need the Teensy to have USB Host support? I can't just read the input from the USB MIDI connection...
  42. Replies
    11
    Views
    1,084

    USB MIDI - not much info available

    Hi all,

    i am wanting to connect a small USB keyboard to a Teensy 3.2 which should only SEND data to the Teensy 3.2. No data needs to be sent to the keyboard. I can power the keyboard using my...
  43. Replies
    1
    Views
    343

    p.s. this is the code i have currently built...

    p.s.

    this is the code i have currently built up to test my serial data receiving capabilities. This code runs once a second.



    if (Serial.available() > 0) {
    // read the incoming data and...
  44. Replies
    1
    Views
    343

    Serial Port Noob Questions

    Hi all,

    i am using Teensy 2.0 and Teensy 3.2. On the Teensy 2.0 there is a Tx and Rx pin. In this case i assume i use "Serial" to instigate a serial connection. On the Teensy 3.2 there are...
  45. This page was really helpful ...

    This page was really helpful

    http://medesign.seas.upenn.edu/index.php/Guides/MaEvArM-timer3
  46. Hi Paul, thanks for the quick reply. So if i...

    Hi Paul, thanks for the quick reply.

    So if i just change my Timer0 code to Timer3 will it still work ok? Is it an 8-bit timer like Timer0? If there are any changes to the code i need to make,...
  47. Error with Timers when compiling for Teensy 2.0 on Arduino software

    Hi all,

    i am compiling some code in the Arduino software for loading onto a Teensy 2.0 and i get an error message telling me that there is an error with the timers

    e.g. "'TCCR2A' was not...
  48. Replies
    4
    Views
    574

    Thanks Mark, that link is proving to be very...

    Thanks Mark,

    that link is proving to be very useful.

    So if i cut the pad then i can power the Teensy with USB, external power or use both at the same time and there will be no problems. Also i...
  49. Replies
    4
    Views
    574

    Hi Mark, thanks for the reply. That is all...

    Hi Mark,

    thanks for the reply. That is all very useful.

    What about if i have the Teensy plugged in to USB to monitor the serial port but i also have other items connected to the Teensy which...
  50. Replies
    4
    Views
    574

    Current flow into Teensy 2.0 pins

    Hi all,

    i've been looking for this data but can't find it.. Maybe you can help?

    I am using an external (not USB) 5V power supply to power my Teensy 2.0. I am using switches going into digital...
Results 1 to 50 of 52
Page 1 of 2 1 2