Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • CorBee's Avatar
    Yesterday, 06:35 PM
    CorBee replied to a thread Bat detector in Audio Projects
    Thanks. Its clear that the device is tested at multiple baudrates but the code did not get a response. As you can see from the DEBUG we tested also at 9600 which seems to be the most common frequency for these devices.
    920 replies | 131333 view(s)
  • CorBee's Avatar
    Yesterday, 03:28 PM
    CorBee replied to a thread Bat detector in Audio Projects
    Hi, The debug will output on 19200 baud over serial, so you indeed need to connect a PC to the USB and look at a serial-monitor. This forum is NOT ment to share/store images/sounds of bats, maybe you can provide...
    920 replies | 131333 view(s)
  • CorBee's Avatar
    Yesterday, 12:57 PM
    CorBee replied to a thread Bat detector in Audio Projects
    this file is removed !!
    920 replies | 131333 view(s)
  • CorBee's Avatar
    Yesterday, 12:49 PM
    CorBee replied to a thread Bat detector in Audio Projects
    Hi Helge, That means the GPS did not react to the request to change the baudrate from the teensybat software. But if this works fine than its a good solution. Thanks for reporting back ! I would have liked to see...
    920 replies | 131333 view(s)
  • CorBee's Avatar
    Yesterday, 09:59 AM
    CorBee replied to a thread Bat detector in Audio Projects
    https://github.com/CorBer/teensy_batdetector/blob/master/version1_3development/hex/T1_3_GPS_TEMP_DEBUG.hex @HELGE: Ive created a temporary HEX only for the T3.6 with GPS and TEMP enabled and DEBUG active. THIS WILL BE...
    920 replies | 131333 view(s)
  • CorBee's Avatar
    Yesterday, 09:51 AM
    CorBee replied to a thread Bat detector in Audio Projects
    Hi Helge, I have only tested this setup with a Beitian 180 and 220, both of these work as expected not only on my machines but also with the other testers in our team. Maybe you can compile the source yourself and...
    920 replies | 131333 view(s)
  • CorBee's Avatar
    09-24-2021, 05:24 PM
    CorBee replied to a thread Bat detector in Audio Projects
    Hi Helge, As Edwin allready has stated we have upgraded the GPS setup and this now actively communicates with the GPS-module during setup. You can see the necessary connections in the bat_defines.h file, RX and TX...
    920 replies | 131333 view(s)
  • CorBee's Avatar
    09-14-2021, 02:57 PM
    https://github.com/PaulStoffregen/Time
    2 replies | 144 view(s)
  • CorBee's Avatar
    09-09-2021, 10:57 AM
    CorBee replied to a thread Bat detector in Audio Projects
    Hi, I have just uploaded all sourcecode including libraries and platformio.ini file and several compiled HEX files on the github repository:...
    920 replies | 131333 view(s)
  • CorBee's Avatar
    09-09-2021, 07:21 AM
    CorBee replied to a thread Bat detector in Audio Projects
    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 filter that was not...
    920 replies | 131333 view(s)
  • CorBee's Avatar
    09-09-2021, 07:00 AM
    CorBee replied to a thread Bat detector in Audio Projects
    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 textfile on the SDcard....
    920 replies | 131333 view(s)
  • CorBee's Avatar
    09-09-2021, 06:03 AM
    CorBee replied to a thread Bat detector in Audio Projects
    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 needs a very simple...
    920 replies | 131333 view(s)
  • CorBee's Avatar
    09-07-2021, 06:55 AM
    CorBee replied to a thread Bat detector in Audio Projects
    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 used on a...
    920 replies | 131333 view(s)
  • CorBee's Avatar
    09-01-2021, 05:21 AM
    CorBee replied to a thread Bat detector in Audio Projects
    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.
    920 replies | 131333 view(s)
  • CorBee's Avatar
    08-31-2021, 03:10 PM
    CorBee replied to a thread Bat detector in Audio Projects
    Lets hope the update (which is completely based on the recent SDfat libraries) will be "easier".
    920 replies | 131333 view(s)
  • CorBee's Avatar
    08-31-2021, 02:32 PM
    CorBee replied to a thread Bat detector in Audio Projects
    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
    920 replies | 131333 view(s)
  • CorBee's Avatar
    08-31-2021, 08:53 AM
    CorBee replied to a thread Bat detector in Audio Projects
    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
    920 replies | 131333 view(s)
  • CorBee's Avatar
    08-30-2021, 06:09 AM
    CorBee replied to a thread Bat detector in Audio Projects
    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 machine. Currently we...
    920 replies | 131333 view(s)
  • CorBee's Avatar
    08-17-2021, 02:12 PM
    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 be switched off after...
    8 replies | 281 view(s)
  • CorBee's Avatar
    08-16-2021, 04:56 PM
    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 should be set exactly....
    8 replies | 281 view(s)
  • CorBee's Avatar
    08-16-2021, 04:41 PM
    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 ms. We are running...
    8 replies | 281 view(s)
  • CorBee's Avatar
    08-16-2021, 03:01 PM
    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 Register is set to...
    8 replies | 281 view(s)
  • CorBee's Avatar
    08-16-2021, 12:28 PM
    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 planned. But I have...
    8 replies | 281 view(s)
  • CorBee's Avatar
    08-16-2021, 11:54 AM
    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 the device. The...
    8 replies | 281 view(s)
  • CorBee's Avatar
    08-14-2021, 04:11 PM
    Seems that the audio designer doesnt copy the patchcords properly.
    30 replies | 963 view(s)
  • CorBee's Avatar
    08-14-2021, 04:00 PM
    When I copied your code into the audio designer I got this ... are there missing connections ?
    30 replies | 963 view(s)
  • CorBee's Avatar
    08-14-2021, 03:42 PM
    But that serial.println(millis()) is inside a buttonstate it seems. You have 8ms debounce on those, maybe a bit short ?
    30 replies | 963 view(s)
  • CorBee's Avatar
    08-14-2021, 03:24 PM
    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.
    30 replies | 963 view(s)
  • CorBee's Avatar
    08-14-2021, 03:12 PM
    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. This simple metric...
    30 replies | 963 view(s)
  • CorBee's Avatar
    08-13-2021, 01:50 PM
    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.
    30 replies | 963 view(s)
  • CorBee's Avatar
    08-13-2021, 10:55 AM
    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 ADC2 on the teensy,...
    30 replies | 963 view(s)
  • CorBee's Avatar
    08-13-2021, 10:47 AM
    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 the ADC1 pins) this...
    30 replies | 963 view(s)
  • CorBee's Avatar
    08-13-2021, 10:39 AM
    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 not tried your setup...
    30 replies | 963 view(s)
  • CorBee's Avatar
    08-12-2021, 05:16 PM
    CorBee replied to a thread Bat detector in Audio Projects
    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 if the code could...
    920 replies | 131333 view(s)
  • CorBee's Avatar
    08-12-2021, 11:24 AM
    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
    30 replies | 963 view(s)
  • CorBee's Avatar
    08-11-2021, 06:28 PM
    The audioboard has a headphone jack that is used for that purpose ...
    10 replies | 503 view(s)
  • CorBee's Avatar
    08-11-2021, 06:12 PM
    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 enough by the SGTL....
    10 replies | 503 view(s)
  • CorBee's Avatar
    08-11-2021, 02:56 PM
    https://forum.pjrc.com/threads/47847-Teensy-3-2-ADC-audio-input-with-11-analog-reads-Possible
    4 replies | 232 view(s)
  • CorBee's Avatar
    08-11-2021, 11:53 AM
    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.
    10 replies | 503 view(s)
  • CorBee's Avatar
    08-11-2021, 11:46 AM
    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) // 6 SELECT_HP Select...
    10 replies | 503 view(s)
  • CorBee's Avatar
    08-04-2021, 04:07 PM
    My platformio.ini looks like this and works fine. platform = https://github.com/platformio/platform-teensy.git board = teensy41 framework = arduino build_flags = -Wl,--print-memory-usage
    98 replies | 7241 view(s)
  • CorBee's Avatar
    08-04-2021, 02:14 PM
    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 your code and...
    98 replies | 7241 view(s)
  • CorBee's Avatar
    08-04-2021, 01:07 PM
    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 the next time. This...
    98 replies | 7241 view(s)
  • CorBee's Avatar
    08-04-2021, 12:31 PM
    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 output Memory region ...
    98 replies | 7241 view(s)
  • CorBee's Avatar
    07-29-2021, 05:24 AM
    Then the user probably needs to update pio core ? Or do these updates automagically appear ?
    9 replies | 428 view(s)
  • CorBee's Avatar
    07-29-2021, 04:16 AM
    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 version). cheers Cor
    9 replies | 428 view(s)
  • CorBee's Avatar
    07-28-2021, 04:16 PM
    I had forgotten all about that modify command, thanks for suggesting that !
    14 replies | 713 view(s)
  • CorBee's Avatar
    07-28-2021, 03:59 PM
    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. cheers Cor
    14 replies | 713 view(s)
  • CorBee's Avatar
    07-28-2021, 01:15 PM
    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.
    14 replies | 713 view(s)
  • CorBee's Avatar
    07-28-2021, 01:04 PM
    And using only the include the compiler (platformio ) was complaining about CHIP_ANA_ADC_CTRL as that is decllared in the .cpp
    14 replies | 713 view(s)
  • CorBee's Avatar
    07-28-2021, 12:58 PM
    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.
    14 replies | 713 view(s)
  • CorBee's Avatar
    07-28-2021, 12:49 PM
    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 AudioControlSGTL5000 { uint16_t...
    14 replies | 713 view(s)
No More Results
About CorBee

Basic Information

About CorBee
Location:
Netherlands

Statistics


Total Posts
Total Posts
505
Posts Per Day
0.42
Last Post
Bat detector Yesterday 06:35 PM
General Information
Last Activity
Today 02:59 PM
Join Date
06-12-2018