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

Search:

Type: Posts; User: CorBee

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. https://github.com/PaulStoffregen/Time

    https://github.com/PaulStoffregen/Time
  2. Thread: Bat detector

    by CorBee
    Replies
    905
    Views
    129,686

    TeensyBat V1_3 development-release available

    Hi,

    I have just uploaded all sourcecode including libraries and platformio.ini file and several compiled HEX files on the github repository:...
  3. Thread: Bat detector

    by CorBee
    Replies
    905
    Views
    129,686

    Improved HIGHPASS filter

    The HighPass filter has been changed considerably. The settings now allow you to set the number of "stages" the HI_pass filter will use.
    The previous setup was using only one stage, this created a...
  4. Thread: Bat detector

    by CorBee
    Replies
    905
    Views
    129,686

    SDConfig

    In version 1.3 we have added SDconfig. This is a new feature that can be enabled from the bat_defines.h file (by default it is ON). This allows you to store your preferred settings
    in a readable...
  5. Thread: Bat detector

    by CorBee
    Replies
    905
    Views
    129,686

    Deepsleep and AGC

    Hi Duncan,

    Both AGC and Deepsleep can be used for both models. Deepsleep is however dependent on a TFT screen with a backlight that can be switched OFF. For most of the TFTs that are used this...
  6. Thread: Bat detector

    by CorBee
    Replies
    905
    Views
    129,686

    TeensyBat V1.3 release pending (end of the week)

    Hi,

    The final testing of our code thusfar has not given much problems. I have allready added the libraries we use on the github repository. We will release the code but it will be structured to be...
  7. Thread: Bat detector

    by CorBee
    Replies
    905
    Views
    129,686

    The next update is using mode 3 in SDFat so will...

    The next update is using mode 3 in SDFat so will support Fat16/Fat32 and ExFat. And we have added extra buffering to prevent possible dataloss during a write to the SD.
  8. Thread: Bat detector

    by CorBee
    Replies
    905
    Views
    129,686

    Lets hope the update (which is completely based...

    Lets hope the update (which is completely based on the recent SDfat libraries) will be "easier".
  9. Thread: Bat detector

    by CorBee
    Replies
    905
    Views
    129,686

    Hi, SDcards come in different sizes but also...

    Hi,

    SDcards come in different sizes but also in different speeds. I only use SDcards with at least SD-HC 1, they allow higher transfer rates than the older cards.

    Cor
  10. Thread: Bat detector

    by CorBee
    Replies
    905
    Views
    129,686

    Hi Looks nice ! If you can try to share your...

    Hi

    Looks nice !
    If you can try to share your works (design etc) so that others that have 3d printers can copy your work.

    cheers
    Cor
  11. Thread: Bat detector

    by CorBee
    Replies
    905
    Views
    129,686

    Hi, The code we are about to release (I hope...

    Hi,

    The code we are about to release (I hope within 2 weeks) will be for both the T36 and T41. So its one codebase and you can compile that for both machines with specific options for either...
  12. Replies
    8
    Views
    268

    Done a bit more work on the possible issues. I...

    Done a bit more work on the possible issues. I now have the T4.1 running on sleep but with partial functionality. All functionality that uses storage in PSRAM had to be switched off, the TFT has to...
  13. Replies
    8
    Views
    268

    I am willing to spend time improving this library...

    I am willing to spend time improving this library but its difficult without a clear guidance that I can follow. The application notes of NXP are quite abstract and do not explain in detail what...
  14. Replies
    8
    Views
    268

    Nice work from you as that is important for...

    Nice work from you as that is important for users. But in my case I allready have a 100ms wait after the system should recover from sleep. Thats more than enough as your timings are closer to a few...
  15. Replies
    8
    Views
    268

    I inspected the hal.c file inside the Teensy40...

    I inspected the hal.c file inside the Teensy40 directory in the snooze library and this line is used on the top of

    int hal_sleep(void)
    SCB_SCR = SCB_SCR_SLEEPDEEP;
    That measn the System Control...
  16. Replies
    8
    Views
    268

    Ah ... I see my code still shows deepsleep ... my...

    Ah ... I see my code still shows deepsleep ... my bad. But I have tried the same with sleep and this also fails. When I use the demo-code (sleep_usb_serial.ino) from the
    library that does work as...
  17. Replies
    8
    Views
    268

    Teensy 4.1 snooze library ... resets

    Hi,

    For the TeensyBatdetector I am currently implementing a simple way to allow users to put the device somewhere ready to record (autorecording) ultrasounds at night without a need to look
    after...
  18. Replies
    30
    Views
    878

    Seems that the audio designer doesnt copy the...

    Seems that the audio designer doesnt copy the patchcords properly.
  19. Replies
    30
    Views
    878

    When I copied your code into the audio designer I...

    When I copied your code into the audio designer I got this ... are there missing connections ?

    25572
  20. Replies
    30
    Views
    878

    But that serial.println(millis()) is inside a...

    But that serial.println(millis()) is inside a buttonstate it seems. You have 8ms debounce on those, maybe a bit short ?
  21. Replies
    30
    Views
    878

    So thats also not the issue ... most of the audio...

    So thats also not the issue ... most of the audio objects run behind the screens in interrupts so they are a bit tricky to debug.
  22. Replies
    30
    Views
    878

    You could see what AudioMemoryUsageMax() tells...

    You could see what AudioMemoryUsageMax() tells you on the reserved audiomemory. You have reserved 240 blocks I see but use very large granular buffers, maybe some blocks do not get cleared properly....
  23. Replies
    30
    Views
    878

    Thats unfortunate, I have no idea what breaks...

    Thats unfortunate, I have no idea what breaks your code. You could try and add serial.print commands to see where in the flow it stops.
  24. Replies
    30
    Views
    878

    I suggested to test without any analogread, if it...

    I suggested to test without any analogread, if it then works you know analogread is part of the problem. If it doesnt play it cant be due to analogread. If it works, you need to select an ADC from...
  25. Replies
    30
    Views
    878

    This ADC problem between Analogread and audio...

    This ADC problem between Analogread and audio isnt related to a specific pin according to me, it has to do with ADC1 (and for ealier teensies ADC0). If you use that ADC also for analogread (so any of...
  26. Replies
    30
    Views
    878

    Try and see what happens if you disable your...

    Try and see what happens if you disable your analogRead on A13. I think A13 is on ADC1 on the Teensy 4.1 and audio also uses ADC1 for its input. And its know that this leads to problems.
    But I have...
  27. Thread: Bat detector

    by CorBee
    Replies
    905
    Views
    129,686

    Working towards a new update, now also for Teensy 4.1

    Hi,

    After we released TeensyBat 1.2 in May 2021 we (Edwin, Adrian, Thierry and me) have started to work on the next version.
    As some of us had allready a Teensy 4.1 at hand we also decided to see...
  28. Replies
    30
    Views
    878

    Maybe you have this issue :...

    Maybe you have this issue :
    https://forum.pjrc.com/threads/67946-Audio-library-and-analogRead()-not-working-together-on-Teensy-4-0?highlight=audio+ADC
  29. The audioboard has a headphone jack that is used...

    The audioboard has a headphone jack that is used for that purpose ...
  30. Hi, I have never measured the output as my...

    Hi,

    I have never measured the output as my audioboards are always connected to headphones. From the work I have done creating the TeensyBat I have not gotten the idea the signal was not amped...
  31. https://forum.pjrc.com/threads/47847-Teensy-3-2-AD...

    https://forum.pjrc.com/threads/47847-Teensy-3-2-ADC-audio-input-with-11-analog-reads-Possible
  32. You could try using the left and right Line IN...

    You could try using the left and right Line IN and combine those signals ? Your mic would need a preamp to get enough signal for that.
  33. Indeed not possible as there is a bit in the...

    Indeed not possible as there is a bit in the CHIP_ANA_CTRL register that is either MIC or LINE_IN.


    #define CHIP_ANA_CTRL 0x0024
    // 8 MUTE_LO LINEOUT Mute, 0 = Unmute, 1 = Mute (default 1)...
  34. Replies
    98
    Views
    7,005

    My platformio.ini looks like this and works fine....

    My platformio.ini looks like this and works fine.

    [env:teensy41]
    platform = https://github.com/platformio/platform-teensy.git
    board = teensy41
    framework = arduino
    build_flags =...
  35. Replies
    98
    Views
    7,005

    I am on linux but I think its the same on...

    I am on linux but I think its the same on windows.
    You need to go to the .platformio directory (hidden)
    Then go to packages
    and remove all framework-arduinoteensy subdirectories

    Than rebuild...
  36. Replies
    98
    Views
    7,005

    Hi Paul, Unfortunately it seems the new size...

    Hi Paul,

    Unfortunately it seems the new size report did not make it into the 1.54 that is currently stable on PIO. Just a few days ago that was announced but I dont get a detailed report. Maybe...
  37. Replies
    98
    Views
    7,005

    Hi, Its allready for a long time possible to...

    Hi,

    Its allready for a long time possible to get more info on the allocated memory during compilation,
    just add this to platformio.ini

    build_flags = -Wl,--print-memory-usage
    Gives this...
  38. Then the user probably needs to update pio core ?...

    Then the user probably needs to update pio core ? Or do these updates automagically appear ?
  39. Hi, To use the latest 1.54 the platformio.ini...

    Hi,

    To use the latest 1.54 the platformio.ini file needs to have this line:
    platform = https://github.com/platformio/platform-teensy.git
    otherwise it will use 1.53 (current default stable...
  40. Replies
    14
    Views
    689

    I had forgotten all about that modify command,...

    I had forgotten all about that modify command, thanks for suggesting that !
  41. Replies
    14
    Views
    689

    I am not aware of any option in the audio lib to...

    I am not aware of any option in the audio lib to change that specific bit for CHIP_ANA_ADC_CTRL. We for instance have micGain but that always sets this ATT bit to 0 again. The same for lineinlevel.
    ...
  42. Replies
    14
    Views
    689

    That should also work, in my case I opted to read...

    That should also work, in my case I opted to read the current gain settings and simply switch the bit on/off.

    EDIT: Tested and that works fine.
  43. Replies
    14
    Views
    689

    And using only the include the compiler...

    And using only the include the compiler (platformio ) was complaining about CHIP_ANA_ADC_CTRL as that is decllared in the .cpp
  44. Replies
    14
    Views
    689

    I am not on arduino ... so that might make the...

    I am not on arduino ... so that might make the difference. Ive justed tested this in the bat-detector code and it seems to work as planned.
  45. Replies
    14
    Views
    689

    I wonder if that code will work , as I liked the...

    I wonder if that code will work , as I liked the idea i have tested this on Teensybat, the code below works for me.


    #include "control_sgtl5000.cpp"

    class Bat_SGTL5000: public...
  46. Thread: issue with gps

    by CorBee
    Replies
    7
    Views
    487

    Than I would keep the gpstest4.ino as a working...

    Than I would keep the gpstest4.ino as a working model.
  47. Thread: issue with gps

    by CorBee
    Replies
    7
    Views
    487

    mygps.ugps() .... not mygps.ugps;

    mygps.ugps() .... not mygps.ugps;
  48. Thread: issue with gps

    by CorBee
    Replies
    7
    Views
    487

    Hi, Its my guess you probably need...

    Hi,

    Its my guess you probably need mygps.ugps() in the setup section.

    Cor
  49. Replies
    6
    Views
    448

    The code I am using for the TeensyBat on a...

    The code I am using for the TeensyBat on a Teensy4.1 can be found overhere:...
  50. Replies
    10
    Views
    485

    It seems the compiler was not picking up things...

    It seems the compiler was not picking up things as I had hoped, but I now have proper readouts for T3.6 and T4.1. On the T3.6 I see that the current TeensyBat uses 10% of the available time to...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4