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. Then the user probably needs to update pio core ?...

    Then the user probably needs to update pio core ? Or do these updates automagically appear ?
  2. 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...
  3. Replies
    14
    Views
    189

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

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

    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.
    ...
  5. Replies
    14
    Views
    189

    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.
  6. Replies
    14
    Views
    189

    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
  7. Replies
    14
    Views
    189

    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.
  8. Replies
    14
    Views
    189

    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...
  9. Thread: issue with gps

    by CorBee
    Replies
    7
    Views
    243

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

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

    by CorBee
    Replies
    7
    Views
    243

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

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

    by CorBee
    Replies
    7
    Views
    243

    Hi, Its my guess you probably need...

    Hi,

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

    Cor
  12. Replies
    6
    Views
    186

    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:...
  13. Replies
    10
    Views
    188

    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...
  14. Replies
    10
    Views
    188

    Checked my code using VisualCode and the...

    Checked my code using VisualCode and the reference for ARM_DWT_CYCCNT is
    going to :
    #define ARM_DWT_CYCCNT (*(volatile uint32_t *)0xE0001004) // Cycle count register

    So nothing odd at that...
  15. Replies
    10
    Views
    188

    It seems that I am not getting a proper readout...

    It seems that I am not getting a proper readout for ARM_DWT_CYCCNT on the T3.6. Will check which register this should be.
  16. Replies
    10
    Views
    188

    Seems I wasnt reading @PAUL carefully, he stated...

    Seems I wasnt reading @PAUL carefully, he stated to remove the >>4:
    cycles = (ARM_DWT_CYCCNT - cycles) >> 4;

    Ive just done that and I see on the T4.1 a 2.3/2.4 % usage....
  17. Replies
    10
    Views
    188

    The only thing I find important is that the...

    The only thing I find important is that the numbers the CYCLE_COUNTER_APPROX_PERCENT delivers do give a good idea of the relative processor-time needed to process a single incoming audio_block of...
  18. Replies
    10
    Views
    188

    Hi, Had to change this in the Audiostream.cpp...

    Hi,

    Had to change this in the Audiostream.cpp

    uint32_t AudioStream::cpu_cycles_total = 0;
    uint32_t AudioStream::cpu_cycles_total_max = 0;

    After this the code runs fine on a T4.1 and...
  19. Replies
    10
    Views
    188

    Hi Paul, Ill try that now, will report here. ...

    Hi Paul,

    Ill try that now, will report here.

    cheers
    Cor
  20. Replies
    10
    Views
    188

    AudioProcessorUsage on higher samplingrates

    Hi

    As we are developing the TeensyBat (https://forum.pjrc.com/threads/38988-Bat-detector/page36) with further enhancements I would like to keep track of
    the AudioprocessorUsage(). This is...
  21. Replies
    1
    Views
    162

    Hi, You seem to turn I2S off for the audio...

    Hi,

    You seem to turn I2S off for the audio (logical when going to sleep) with:

    SIM_SCGC6 &= ~SIM_SCGC6_I2S;
    but never seem to turn it back on when you wake up with:

    SIM_SCGC6 |=...
  22. Thread: Bat detector

    by CorBee
    Replies
    886
    Views
    117,590

    Hi, We have a GPS in the system working fine...

    Hi,

    We have a GPS in the system working fine and I am sure that with some advanced algorithm we could use the latest record position as a "guesstimate" for the sunset/sunrise. But I think that...
  23. Thread: Bat detector

    by CorBee
    Replies
    886
    Views
    117,590

    Hi Duncan, This is one of the things we want...

    Hi Duncan,

    This is one of the things we want to see how it can be done in a stable manner. There is a good sleep/snooze library for teensy but it will need proper testing. The screen-off...
  24. Replies
    80
    Views
    3,196

    For those that want to use this candidate in...

    For those that want to use this candidate in PlatformIO:
    You can add this line to your platformio.ini:


    platform_packages =
    ...
  25. It at least seems to work from code without any...

    It at least seems to work from code without any problems, since I do use scrolling 1pixel lines in the code I will have to find a good way to do that in memory. The recent
    addition of...
  26. Hi, Thanks to KurtE for adding the...

    Hi,

    Thanks to KurtE for adding the setscrollmargins function, this works completely as planned in our TeensyBat project. I am currently looking for an example that uses this library with a...
  27. Thread: Bat detector

    by CorBee
    Replies
    886
    Views
    117,590

    25154 Or like this with the scale set to 5. Hope...

    25154
    Or like this with the scale set to 5. Hope that will be helpfull.

    regards
    Cor
  28. Thread: Bat detector

    by CorBee
    Replies
    886
    Views
    117,590

    25153 This shows a possible way to allow a scale...

    25153
    This shows a possible way to allow a scale at the bottom, Ive added this to the current development-code we are working on.
    If this stays you can simply set the "bottom-scale" variable with...
  29. Thread: Bat detector

    by CorBee
    Replies
    886
    Views
    117,590

    I am not convinced this is going to help much....

    I am not convinced this is going to help much. What I will consider is having a scale at the bottom of the graph to mimick the scale above.
    But this does probably not look very tidy. For what I...
  30. Thread: Bat detector

    by CorBee
    Replies
    886
    Views
    117,590

    Hi Thanks for the suggestion but I wonder how...

    Hi

    Thanks for the suggestion but I wonder how that would help identification. But maybe you do have a clear idea for this. Showing a "line" in the graph for a given frequency is in my view not...
  31. Thread: Bat detector

    by CorBee
    Replies
    886
    Views
    117,590

    Nice to hear that ! Good info for people that...

    Nice to hear that ! Good info for people that still have to format the SDcards.
  32. Thread: Bat detector

    by CorBee
    Replies
    886
    Views
    117,590

    Hi, Although I will not change the code - as...

    Hi,

    Although I will not change the code - as there is no clear problem with the recording setup - be aware that the recording system we use is not based on sdFAT but on uSDFS. If that is less...
  33. Thread: Bat detector

    by CorBee
    Replies
    886
    Views
    117,590

    Hi Helge, The code was never intended to play...

    Hi Helge,

    The code was never intended to play recordings with that length, but if the recordings are fine (you hopefully have checked that with other software) than this is not an issue. What size...
  34. Thread: Bat detector

    by CorBee
    Replies
    886
    Views
    117,590

    sdFat is the library that supports long filenames...

    sdFat is the library that supports long filenames and different formats. In our setup we allow SDcards to be in FAT16, FAT32 and exFAT. Thats all possible due to the great library by bill Greiman....
  35. Thread: Bat detector

    by CorBee
    Replies
    886
    Views
    117,590

    @Helge: whats the problem with that ... we had...

    @Helge: whats the problem with that ... we had the choice to NOT use the left pushbutton (since you cannot record with it) or to allow it to have its previous functionality when no SD is present.
  36. Thread: Bat detector

    by CorBee
    Replies
    886
    Views
    117,590

    @Helge: Alternatively, when you pickup your...

    @Helge: Alternatively, when you pickup your detector after switching off the TFT and using AREC to have it somewhere outside waiting/recording the best procedure is to switch off the detector. Then...
  37. Thread: Bat detector

    by CorBee
    Replies
    886
    Views
    117,590

    When you use PWM (Edwin has described this...

    When you use PWM (Edwin has described this before) to control the backlight of the TFT it can be brought to sleep and we also set the backlight OFF. That way the TFT does consume the bare minimum and...
  38. Thread: Bat detector

    by CorBee
    Replies
    886
    Views
    117,590

    Hi Helge, If you longpress the left pushbutton...

    Hi Helge,

    If you longpress the left pushbutton (longer than 2 seconds) it will create a screen-recording. During that time you will see the word "SDUMP" on the topleft of your screen.
    See it as a...
  39. Thread: Bat detector

    by CorBee
    Replies
    886
    Views
    117,590

    Teensybat V1.2 released 20210522

    Hi all,

    I have just finished copying both the libraries/code and HEX files onto the github repository:
    https://github.com/CorBer/teensy_batdetector/tree/master/version1_2

    The HEX files will...
  40. Thread: Bat detector

    by CorBee
    Replies
    886
    Views
    117,590

    TEENSYBAT V1.2 release pending (coming days)

    Hi all,

    We (Edwin, Adrian, Thierry and I) have been very busy since the release of the V1.1 "development" update last month and we are pleased to annouce that we are planning to release a new...
  41. Hi, Look overhere:...

    Hi,

    Look overhere:
    https://www.pjrc.com/store/teensy3_audio.html

    This states that pins 20,21,23 are used for the audio of the audioboard. So you cannot use those also for an encoder.

    cheers...
  42. Thread: Bat detector

    by CorBee
    Replies
    886
    Views
    117,590

    Nice from you to share Peter, it does look sleek !

    Nice from you to share Peter, it does look sleek !
  43. The issue was open for over a year, not many...

    The issue was open for over a year, not many people use this feature so thats why it probably wasnt solved yet. Thanks for adding the PR at the adafruit-github.
  44. I see you used the basic concept from Adafruit,...

    I see you used the basic concept from Adafruit, that has a flaw according to me.
    uint16_t middle = _height - top + bottom;

    The display is sectioned in 3 parts, top, middle and bottom. The sum of...
  45. Hi Kurt, Thanks for adding it, Ill see if I...

    Hi Kurt,

    Thanks for adding it, Ill see if I can switch from ILI9341_t3 to t3n without much fuzz. As I am using a T3.6 that needs a lot of memory to keep data from incoming sounds buffers are not a...
  46. I decided to adapt the class definition, that way...

    I decided to adapt the class definition, that way I keep the current logic of the ILI9341_t3 library but can add additional functionality.


    #ifndef _ILI9341_T3_EXT_H
    #define _ILI9341_T3_EXT_H
    ...
  47. Hi Kurt. Thanks but I have no experience with...

    Hi Kurt.

    Thanks but I have no experience with pull requests and the extra work this demands. So Ive now changed the way I use this by simply creating a small routine that uses SPI to send the...
  48. Feature request: setScrollArea

    Hi,

    I was wondering why both the default t3 (maintained by paul) and the t3n library dont have a setscrollarea routine available. The ili9341 allows the user to assign an area (based on Y...
  49. Thread: Bat detector

    by CorBee
    Replies
    886
    Views
    117,590

    Hi Helge, In the current setup you can only...

    Hi Helge,

    In the current setup you can only store one set of personal "defaults", so you cannot use a set of different "profiles". If many people see this as a good development we might think of...
  50. Thread: Bat detector

    by CorBee
    Replies
    886
    Views
    117,590

    Hi, Ive added the updated effect_granular...

    Hi,

    Ive added the updated effect_granular files to the lib section separately.

    cheers
    Cor
Results 1 to 50 of 467
Page 1 of 10 1 2 3 4