Forum Rule: Always post complete source code & details to reproduce any issue!
Page 30 of 34 FirstFirst ... 20 28 29 30 31 32 ... LastLast
Results 726 to 750 of 845

Thread: Bat detector

  1. #726
    Senior Member
    Join Date
    Nov 2018
    Location
    Netherlands
    Posts
    154
    The forum shows we are already on page 30, but my browser won't open that page. Maybe it will with this new reply.

    I did already get some questions about a new revision of the board. I do have to admit I am kind of working in that, but i was not planning to release anything soon.
    There are only minor modifications needed to add the teensy-controlled backlight for example. The GPS and thermometer were described already and need a few extra wires but nothing special. For the GPS a metal shield over the Teensy seems important, but is is not to hard to cut away the soldermask if you want to solder that to the board groundplane.

    Fot the people wondering about the backlight modification, it requires a simple resistor and capacitor. We did already have this in the code but did not use it because we seemed to but different displays. Today almost every display is sold with Q1 that can control the brightness.

    We use pin 17 of the teensy to generate a PWM signal that is driving the display intensity circuit. In order to get a smooth signal and no rapid flickering display with all the noise that comes with it, we add a resistor in series with the PWM line and a capacitor across the display's LED line. I used 1k and 47uF for a first test, but these values are not critical.

    The code is not yet released but to make sure people know what to expect form board modifications I am posting the circuit modification here. You could perhaps use the small switch to power the GPS unit, or maybe even switch the detector on and off.

    If you do not want to do the modification... you can still use the new (to be released) code. The main advantage is that on autorecord you can choose to put the display in sleep mode. Sleep mode saves about 15mA. You can stil do that and switch the backlight to a dimmed/off state but if you do the display brightness PWM modification the teensy can switch off the display backlight in sleep mode and you can choose different brightness levels, reducing power consumption by working with an even lower backlight setting than just switching between bright and dimm.

    Sorry Cor, I fear people will be eager to get the new code soon, but I just had to inform about newer PCB versions which will not be here soon because of only some minor modifications that are needed.

    The attached image shows R9 and R12 are not needed any longer, the new parts for backlight control are drawn in blue.



    Kind regards,

    Edwin

    Click image for larger version. 

Name:	teensybat schematic0.2gpstempbl.jpg 
Views:	47 
Size:	150.0 KB 
ID:	24132

    Use the image in this message, i can't get rid of the thumbnail which has a small error. The PWM line in the thumbnail seems attached to the audioboard but it comes for the Teensy of course.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	teensybat schematic0.2gpstempbl.jpg 
Views:	25 
Size:	149.9 KB 
ID:	24131  
    Last edited by pe1pwf; 03-21-2021 at 08:50 PM. Reason: Struggling with attached thumbnail.

  2. #727
    Senior Member CorBee's Avatar
    Join Date
    Jun 2018
    Location
    Netherlands
    Posts
    413
    Hi,

    As not everybody will be having a TFT with Q1 mounted on the backside (many old models do not have this and are still being sold) there is a simple solution (Edwin shared this with me)
    to get PWM controlled backlight also in those cases. I my detector with this type of TFT I have added a small perfboard with this Click image for larger version. 

Name:	Selection_677.png 
Views:	10 
Size:	9.7 KB 
ID:	24146 schematic mounted on it.
    That works fine and is not very difficult to build. For those using the same boxes as Edwin has suggested, a thin perfboard (4 lines of connections) can be mounted on the left-side of the box (sideways) below the main PCB. I will share an image of how I have mounted this later.

    kind regards
    Cor

  3. #728
    Senior Member CorBee's Avatar
    Join Date
    Jun 2018
    Location
    Netherlands
    Posts
    413
    Click image for larger version. 

Name:	Selection_678.png 
Views:	26 
Size:	223.0 KB 
ID:	24147
    This is a (not so sharp) picture of my sideboard inside the housing (green perfboard). The purple and yellow wires are running directly to P17 on the Teensy and the LED pin on the TFT. The sideboard is mounted on plastic distanceholders.

    Cor

  4. #729
    Junior Member
    Join Date
    Feb 2021
    Posts
    16
    Some good news, after some shipping delays and illness, all the parts have arrived and have been put together and it turns on, can be programmed and even has a nice display. Not so good news is the actual bat detection bit does not work! In either spectrum or waterfall mode nothing is displayed. It looks like there is no signal for some reason. Are there any diagnostics I can try? My guesses would be either I have done something wrong with the microphone or the sound board. I can hear a click on the headphones when I power on or off, but no other sound (in any mode Het/TD/TE). I have turned the gain and volume up to the max! Any thoughts what I have done wrong or how best to test it? (I have tried jangling keys and rubbing fingers in front of the mic, but nothing.)

  5. #730
    Junior Member
    Join Date
    Mar 2021
    Posts
    12

    Mein Gerät

    Ich habe noch einen zusätzlichen Antennen und Mikrofonanschluss getestet.
    Die VLF Empfangseigenschaften sind gut.
    Man sieht gut den DCF 60 und 77 Zeitzeichensender.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	SDR.jpg 
Views:	11 
Size:	198.3 KB 
ID:	24184  

  6. #731

  7. #732
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    8,276
    I'll move the next post in German language to the SPAM folder.

  8. #733
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    8,276
    An article about bat dectection with Teensy 4 in the German magazine "Funkamateur":
    Click image for larger version. 

Name:	Image1.jpg 
Views:	21 
Size:	160.2 KB 
ID:	24189

  9. #734
    Senior Member CorBee's Avatar
    Join Date
    Jun 2018
    Location
    Netherlands
    Posts
    413
    Quote Originally Posted by Frank B View Post
    An article about bat dectection with Teensy 4 in the German magazine "Funkamateur":
    Click image for larger version. 

Name:	Image1.jpg 
Views:	21 
Size:	160.2 KB 
ID:	24189
    Where can we find more details ? Using a T4.0 ... interesting

  10. #735
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    8,276
    Not sure... I can try to find the text online.
    The article is by Martin Ossman, who is a forum member. Maybe ask him?

  11. #736
    Senior Member CorBee's Avatar
    Join Date
    Jun 2018
    Location
    Netherlands
    Posts
    413
    I found this https://www.funkamateur.de/downloads-zum-heft.html
    You can see some listings of the sourcecode

    PS. Looks based on reading ADC and probably heterodyne

  12. #737
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    8,276
    I'm pretty sure it would violate the copyright if I'd post the text here...

  13. #738
    Senior Member CorBee's Avatar
    Join Date
    Jun 2018
    Location
    Netherlands
    Posts
    413
    Yes it would be, and anybody interested can download/buy a copy of the magazine. But nobody can stop you to evaluate and review

  14. #739
    Senior Member CorBee's Avatar
    Join Date
    Jun 2018
    Location
    Netherlands
    Posts
    413
    Quote Originally Posted by dwd View Post
    Some good news, after some shipping delays and illness, all the parts have arrived and have been put together and it turns on, can be programmed and even has a nice display. Not so good news is the actual bat detection bit does not work! In either spectrum or waterfall mode nothing is displayed. It looks like there is no signal for some reason. Are there any diagnostics I can try? My guesses would be either I have done something wrong with the microphone or the sound board. I can hear a click on the headphones when I power on or off, but no other sound (in any mode Het/TD/TE). I have turned the gain and volume up to the max! Any thoughts what I have done wrong or how best to test it? (I have tried jangling keys and rubbing fingers in front of the mic, but nothing.)
    Hi,
    Ive asked Edwin to help with diagnosing ...

    regards
    Cor

  15. #740
    Junior Member
    Join Date
    Feb 2021
    Posts
    16
    Thanks CorBee. You asked for software improvement suggestions before, perhaps a [self] test option, if you hold down the right push-button during power-on (like the reset option). Not 100% sure what exactly it would do, but could cycle through everything (encoder up/down/press, push-buttons), but importantly for me, play a tone through the headphones. It could also give details of anything coming in from the mic :-)

  16. #741
    Senior Member CorBee's Avatar
    Join Date
    Jun 2018
    Location
    Netherlands
    Posts
    413
    Hi,

    The problem is that I cannot inject a signal at the microphone itself. Testing most of the functionality can be done by installing an SD_card with a recording of a bat (or anything else) recorded at 192Khz. Those files can be played at the "direct" mode and that will "inject" the audio into the system. But anything before that point (before the audioboard) cannot be tested via software.

    regards
    Cor

  17. #742
    Senior Member CorBee's Avatar
    Join Date
    Jun 2018
    Location
    Netherlands
    Posts
    413
    You can see more overhere https://www.funkamateur.de/aktuelle-ausgabe.html at page 6.
    The schematic shows NO audioboard so my intial guess that its based on pure ADC is true. We probably will hear/see from people that have this magazine
    if something interesting in that design can be spotted.

  18. #743
    Quote Originally Posted by Frank B View Post
    An article about bat dectection with Teensy 4 in the German magazine "Funkamateur":
    Click image for larger version. 

Name:	Image1.jpg 
Views:	21 
Size:	160.2 KB 
ID:	24189
    Looking at the magazine website, it says that four detectors are shown in the article. Sounds interesting.

  19. #744
    Junior Member
    Join Date
    Feb 2021
    Posts
    16
    Quote Originally Posted by CorBee View Post
    Testing most of the functionality can be done by installing an SD_card with a recording of a bat (or anything else) recorded at 192Khz.
    That sounds like a good place for me to start! Do you know where I can find a suitable file? (If you have one you don't mind sharing, you could upload it to your GIT repo, with test instructions.)

    --
    David

  20. #745
    Quote Originally Posted by CorBee View Post
    You can see more overhere https://www.funkamateur.de/aktuelle-ausgabe.html at page 6
    If you have good eyesight

  21. #746
    Senior Member CorBee's Avatar
    Join Date
    Jun 2018
    Location
    Netherlands
    Posts
    413
    Quote Originally Posted by dwd View Post
    That sounds like a good place for me to start! Do you know where I can find a suitable file? (If you have one you don't mind sharing, you could upload it to your GIT repo, with test instructions.)

    --
    David
    Hi David,

    http://www.batcalls.com/ is a good source, unfortunately I dont know what the samplerate of the files is. But if you load (use original) a file in audacity you can check if it is 192k. Otherwise contact me by pm and I will share a simple file with you.
    regards
    Cor

  22. #747
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    8,276
    I'll post some details about the article after takining a nap.. i'm pretty tired and it is friday...
    Short: Sound output is via PWM. Input with a ICS40730 microphone, which is, according to the article, difficult to solder.
    Martin shows 4 variants of converting the ultrasonic sound to the audible range.

  23. #748
    Senior Member
    Join Date
    Nov 2018
    Location
    Netherlands
    Posts
    154
    For audio output test it it quite easy to play a file and hear it in the headphones.

    For the headphones you should use a stereo (3 contacts) jackplug and not a 4 pin headset plug.

    The microphone or amplifier can be ruled out by touching the middle if the 3 pins of the microphone connector.
    This would give enough noise to show up on the display even if the gain is set to 0.

    If the display shows noise the problem is in the microphone.

    You can also touch the AF input of the audio board. Set the gain high and toch it with a metal part so you don't touch GND and AF input at the same time.
    This should be enough to show something on te waterfall.

    If nothing shows there could be something wrong with the audioboard.
    If you see something when touching the AF input there might be something wrong with the amplifier.

    One of the first things to check is 3.3 volts.


    Click image for larger version. 

Name:	audiotest.jpg 
Views:	22 
Size:	71.8 KB 
ID:	24190

  24. #749
    Senior Member
    Join Date
    Nov 2018
    Location
    Netherlands
    Posts
    154
    For some test audio you could use the traingfiles.zip from my google drive.

  25. #750
    Junior Member
    Join Date
    Feb 2021
    Posts
    16
    Thanks for the suggestions, Edwin. The results are:
    • Playing WAV file shows as expected in display (waterfall) and audible in headphones
    • 3.3v good (well, 3.2v but hopefully close enough) both where you indicated and on the mic board
    • Touching the mic (middle) pin produced no display
    • Touching the audio board AF in produced no display (on max gain)

    That suggests to me it must be the audio in part of the audio board (audio out is fine). I'll recheck all the soldering (looked good last time I did). Are there any pins that would only be used by the input circuit (apart from the mic and mic_gnd ones)?

    --
    David

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •