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

Search:

Type: Posts; User: defragster

Page 1 of 10 1 2 3 4

Search: Search took 0.08 seconds.

  1. No that would be an added setting. Not sure if...

    No that would be an added setting. Not sure if that changes the speed when doing the non-repeating reads here - but may only affect the continuous type? Easy to test with a couple of loops with the...
  2. Wish there were one or more of your sensors set...

    Wish there were one or more of your sensors set up here so I could see. Never looked this close at it before - and only from the code end. Not sure of the effect on the reading with the fast...
  3. Indeed - need to account for the extra bits. 12...

    Indeed - need to account for the extra bits. 12 bit Conversion takes a tad longer so ideally the 10th bit less jumpy with right shift of 2 or divided by 4. Then treat the same as the 10 bit samples....
  4. Replies
    13
    Views
    321

    Awesome :)

    Awesome :)
  5. Pre-Processor is just text replacement as used. ...

    Pre-Processor is just text replacement as used. It can take 'param' letters for use - but that not done there as I just wanted to be able to put in code or if commented - take out that "someWork"...
  6. Welcome back to Teensy. Stupid Computers.

    Welcome back to Teensy. Stupid Computers.
  7. Replies
    11
    Views
    163

    c/c++ are cleverly designed to do as told - for...

    c/c++ are cleverly designed to do as told - for better or worse - c++ did incorporate some typical clever stuff that all the cool kids were doing

    proper use of 'extern' is needed to avoid...
  8. adc_pins[] array reference indexing like in the...

    adc_pins[] array reference indexing like in the for(i=0... ) code when unrolled added processor cycles - it seemed because 'i' was no longer an active variable stored in a register.

    ...
  9. Enjoy ... These are test code : #define...

    Enjoy ...

    These are test code : #define someWork and someWork_Global
    and any use or ref of waitCnt

    And this and any of the vars are just for measuring and limiting output to 1/sec:


    if...
  10. Just coded that in place - where someWork and...

    Just coded that in place - where someWork and someWork_Global are just placeholders for timing measure:


    #define someWork_Global { delayNanoseconds(3500);} // Delay waiting for first data to...
  11. That someWork delayMicroseconds() was to get some...

    That someWork delayMicroseconds() was to get some measure of the amount of time available to do "Work" without affecting the actual throughput of the reading. With that active watch the reads per...
  12. @laptophead - this probably isn't the best thread...

    @laptophead - this probably isn't the best thread for this - but that isn't normal behavior when the sketch is running properly - at least on Windows. If there is trouble in the code or interrupts...
  13. Indeed that code can be tweaked - as noted last...

    Indeed that code can be tweaked - as noted last post was avg(1) and running 133,386 reads of 10 pins per second.

    Changing to this:

    ///// ADC0 ////
    adc->adc0->setAveraging(2); ...
  14. The last code I have here was asking for 12 bit...

    The last code I have here was asking for 12 bit ADC reads - with 1 avg - not sure if that gives a more stable 10 bit value? It takes longer - but with the dual read improvement it offset the longer...
  15. Replies
    4
    Views
    401

    Sticky: Win 10 install over 1.53b3 on IDE 1.8.13 went well

    Win 10 install over 1.53b3 on IDE 1.8.13 went well
  16. For the send - how much and how fast? The same...

    For the send - how much and how fast? The same data to all slaves?
  17. It is building - Recognized as invalid it won't...

    It is building - Recognized as invalid it won't be used - especially without the header it can't be - but to avoid confusion removing that folder would be better since it can't be used.
  18. Have fun. The prior loop code is decent -...

    Have fun. The prior loop code is decent - unrolling minimally better as the core. Not sure it can go faster given two ADC's with both in use.

    Just make sure to do the error check - at least in...
  19. Yes, during the wait for one set of readings -...

    Yes, during the wait for one set of readings - which are a time fixed by the resolution and any averaging of the values - there is a block of time now available while the hardware is busy.

    Anyhow...
  20. The T_4.1 onboard SD socket is directly connected...

    The T_4.1 onboard SD socket is directly connected to specific pins not exposed elsewhere and will not conflict. They are connected to a 4 bit data SDIO bus independent of other SPI pins or hardware....
  21. instead of 2nd code post #61: for (i

    instead of 2nd code post #61:


    for (i<pins) {
    start read
    do something - if data from prior read
    read next data
    }
  22. This link into the header file on github shows a...

    This link into the header file on github shows a single param for setBreakPoint( func );

    If any SerMon has the COM port attached that is expected to be used to program - that will prevent upload...
  23. The start read and return in post #61 :...

    The start read and return in post #61 : adc->startSynchronizedSingleRead
    >> then do calc from prior read
    then get values
    ... repeat

    Would give time as done to ask for more averaging - and...
  24. In ::...

    In :: ...\hardware\teensy\avr\cores\teensy3\serial3.c

    look for >> #define SERIAL3_RX_BUFFER_SIZE 64 // number of incoming bytes to buffer

    On Teensy 3.2 best to use Serial1 or Serial2 as...
  25. Multiple sensors will give different readings by...

    Multiple sensors will give different readings by nature and location in the drum head - and more overhead to read them and reduce to a meaningful value.

    I just bumped the above fastest yet code to...
  26. code with some testing outside the post editor...

    code with some testing outside the post editor ... - there was a !Not missing in the while() - and the use of ADC func()'s perhaps ... below is actually faster than last posted by another 10K per...
  27. Replies
    10
    Views
    303

    Paul - that was "breadboard/veroboard" not ref to...

    Paul - that was "breadboard/veroboard" not ref to other less than Teensy BulletinBoard forums.

    F-73P : assembler works with Teensy toolchain - though you have lots of history with prior tools -...
  28. Replies
    10
    Views
    303

    Opps - after so much web clicking to check for...

    Opps - after so much web clicking to check for answer to #1 seems it was forgotten as I rushed off to make a note on the web updates thread.

    - Paul gave of course a better version of the intended...
  29. Replies
    770
    Views
    25,540

    Good thing the LA will work as it only 12 Mbs:...

    Good thing the LA will work as it only 12 Mbs: "Dual-mode Bluetooth transfer, compatible Full-speed USB 2.0 interface, USB 1.1"

    Hopefully Linux function isn't critical to your debug effort KurtE?...
  30. Subtle change for error check...

    <REPLACING ABOVE> Subtle change for error check still finds error but not every cycle - takes out some overhead - 3.2K more reads per second.

    ADC1: Wrong pin
    P#24: 13854508.00V <P#25:...
  31. THANKS >> @jonr: That's the answer - it is...

    THANKS >> @jonr: That's the answer - it is working where the prior scheme was hanging something - and the GDB didn't help me see where ...

    >> updated to post #55
  32. Working on another forum post with ADC I get one...

    Working on another forum post with ADC I get one cycle through loop() then it dies? Perfect chance for using GDB - EXCEPT::


    Reading symbols from...
  33. Updating prior p#28 sample to use that paired...

    Updating prior p#28 sample to use that paired 'startSingleRead' it completes ONCE and then quits ... ???
    adjustments haven't helped yet - including checking for ADC errors:

    ...
  34. Replies
    770
    Views
    25,540

    It is BLE - but as seen - it claims full utility....

    It is BLE - but as seen - it claims full utility. Did see notes and noted ... 'use their driver' ... figured that would make it not worth the trouble ...

    It was so pleasing to see it come up as...
  35. Replies
    11
    Views
    163

    Updated github shows : sequencer.ino and...

    Updated github shows : sequencer.ino and forwarddec.h

    But neither of them show anything now for nullIntFunc()?

    Error next refers to :: \sketch\debug.cpp.o:c:\program files...
  36. Paul - does this relate to T_4.x...

    Paul - does this relate to T_4.x availableforWrite() dropping by 2048 when Serial goes offline before the blocking stall on the write when buffers run out ... with short 11 byte writes?

    noted...
  37. Replies
    11
    Views
    163

    What is the build environment? An .ino is not...

    What is the build environment? An .ino is not apparent in the github tree - is that a library folder independent of the sketch?

    It should follow normal build rules - .cpp files are compiled and...
  38. Replies
    770
    Views
    25,540

    Laptop with TechKey won't see Mouse - or Sense -...

    Laptop with TechKey won't see Mouse - or Sense - or logitech K480 keyboard - or Rii bluetooth unit

    Putting the CSR dongle on that laptop shows all of those as Found to Pair.

    So the problem is...
  39. Replies
    770
    Views
    25,540

    Yes, no surprise the Rii didn't like mouse - but...

    Yes, no surprise the Rii didn't like mouse - but at least the CSR connected it.

    Indeed the TechKey w/Bt 5 is NEW - that was the issue to get to.

    My Surface and Desktop have native Bluetooth -...
  40. @KurtE points to the more efficient - it seems -...

    @KurtE points to the more efficient - it seems - use of twin ADC's - as long as the pins are ordered so the ADC can see the pin given in hardware.
  41. Replies
    770
    Views
    25,540

    Yes noted about the mouse came online with CSR -...

    Yes noted about the mouse came online with CSR - but didn't include that to minimize the diff.

    OPPPS - the mouse was LOGITECH M557!

    Just powered MSFT mouse (unlabeled? Sculpt?) worked before...
  42. Yes, apparently BBC Micro.bit uses this - wasn't...

    Yes, apparently BBC Micro.bit uses this - wasn't sure if that was a potential way to push code over USB - problem is the Teensy will be in Sketch Run mode with WebUSB not bootloader mode so didn't...
  43. Replies
    770
    Views
    25,540

    I bought this $20 Techkey USB Mini Bluetooth 5.0...

    I bought this $20 Techkey USB Mini Bluetooth 5.0 EDR Dongle.

    Powering up the working and known CSR dongle gave this debug text and (not shown) it paired/connected MSFT Bt mouse - then...
  44. Replies
    12
    Views
    438

    The reference page link is hard to get to appear...

    The reference page link is hard to get to appear on the left frame - finally top clicked TEENSY and then it was there - would be nice to have it when viewing the store/device info:...
  45. Replies
    10
    Views
    303

    Dimensions of the T_4.0 should match the T_3.2...

    Dimensions of the T_4.0 should match the T_3.2 shown here : https://pjrc.com/teensy/dimensions.html
    > That page doesn't include the T_4.1 or T_3.6 which add 10 pins - so should be one inch longer...
  46. Good detail @luni, didn't find that one. March...

    Good detail @luni, didn't find that one.

    March 2018: story below notes the problem - seems a link from the wiki page matches the only interesting search result ...
    Anything with the power to be...
  47. Replies
    30
    Views
    1,145

    opps ... Meant to add on another thread ... I...

    opps ... Meant to add on another thread ... I opened an ADC example and modified to read 8 pins fast and that worked on T_4.0 and T_4.1

    Since then I plugged a (known to work before) Bluetooth...
  48. Replies
    30
    Views
    1,145

    Check for updates at start was annoying and...

    Check for updates at start was annoying and turned off here long ago.

    I keep moving with the newest as TeensyDuino updates - seems to improve - especially the version after they screw something up...
  49. Yes, posted code has that line commented out -...

    Yes, posted code has that line commented out - uncomment it and it reads the 8 pins 26K times per second. Not sure where 8 came from on this end ... if it is 10 - add two more analogs to that array...
  50. easy to test with provided timing with cyccnt. ...

    easy to test with provided timing with cyccnt. Seems they would be better as unint32_t at the cost of 24 bytes of memory.

    But the majority of time will be spent in the adc reading - so saving one...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4