Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • CorBee's Avatar
    Today, 10:26 AM
    The code I am using for the TeensyBat on a Teensy4.1 can be found overhere:...
    6 replies | 104 view(s)
  • CorBee's Avatar
    07-22-2021, 11:42 AM
    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 process audioblocks and on...
    10 replies | 114 view(s)
  • CorBee's Avatar
    07-22-2021, 11:23 AM
    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 point. But this...
    10 replies | 114 view(s)
  • CorBee's Avatar
    07-22-2021, 10:59 AM
    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.
    10 replies | 114 view(s)
  • CorBee's Avatar
    07-22-2021, 10:43 AM
    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. Thats usefull...
    10 replies | 114 view(s)
  • CorBee's Avatar
    07-22-2021, 10:28 AM
    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 data (as that what I...
    10 replies | 114 view(s)
  • CorBee's Avatar
    07-22-2021, 09:42 AM
    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 reports 0.6-0.7, changing...
    10 replies | 114 view(s)
  • CorBee's Avatar
    07-22-2021, 09:12 AM
    Hi Paul, Ill try that now, will report here. cheers Cor
    10 replies | 114 view(s)
  • CorBee's Avatar
    07-22-2021, 07:56 AM
    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 directly available from the...
    10 replies | 114 view(s)
  • CorBee's Avatar
    07-20-2021, 05:27 AM
    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 |= SIM_SCGC6_I2S; cheers Cor
    1 replies | 134 view(s)
  • CorBee's Avatar
    07-13-2021, 01:21 PM
    CorBee replied to a thread Bat detector in Audio Projects
    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 its something a user...
    886 replies | 116161 view(s)
  • CorBee's Avatar
    07-13-2021, 11:49 AM
    CorBee replied to a thread Bat detector in Audio Projects
    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 modification will be helpfull...
    886 replies | 116161 view(s)
  • CorBee's Avatar
    07-02-2021, 08:43 AM
    For those that want to use this candidate in PlatformIO: You can add this line to your platformio.ini: platform_packages = ...
    80 replies | 2692 view(s)
  • CorBee's Avatar
    06-29-2021, 11:26 AM
    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 setscrollmargins was not yet (as...
    632 replies | 362802 view(s)
  • CorBee's Avatar
    06-29-2021, 06:48 AM
    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 framebuffer located in...
    632 replies | 362802 view(s)
  • CorBee's Avatar
    06-28-2021, 06:00 PM
    CorBee replied to a thread Bat detector in Audio Projects
    Or like this with the scale set to 5. Hope that will be helpfull. regards Cor
    886 replies | 116161 view(s)
  • CorBee's Avatar
    06-28-2021, 05:48 PM
    CorBee replied to a thread Bat detector in Audio Projects
    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 a size, in the example the...
    886 replies | 116161 view(s)
  • CorBee's Avatar
    06-28-2021, 05:35 PM
    CorBee replied to a thread Bat detector in Audio Projects
    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 know of bats most...
    886 replies | 116161 view(s)
  • CorBee's Avatar
    06-28-2021, 04:34 PM
    CorBee replied to a thread Bat detector in Audio Projects
    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 very necessary as we do...
    886 replies | 116161 view(s)
  • CorBee's Avatar
    05-29-2021, 09:48 AM
    CorBee replied to a thread Bat detector in Audio Projects
    Nice to hear that ! Good info for people that still have to format the SDcards.
    886 replies | 116161 view(s)
  • CorBee's Avatar
    05-27-2021, 01:19 PM
    CorBee replied to a thread Bat detector in Audio Projects
    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 reliable above 2Gb ......
    886 replies | 116161 view(s)
  • CorBee's Avatar
    05-27-2021, 05:50 AM
    CorBee replied to a thread Bat detector in Audio Projects
    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 are these files ? ...
    886 replies | 116161 view(s)
No More Results
About CorBee

Basic Information

About CorBee
Location:
Netherlands

Statistics


Total Posts
Total Posts
450
Posts Per Day
0.40
Last Post
I2s input limitation 16 bits 44100 ? Today 10:26 AM
General Information
Last Activity
Today 03:05 PM
Join Date
06-12-2018