in Electronics

\(\)

I wanted to document my intro into electronics and hardware. And as I’ve yet to put anything useful on this domain this seems like an appropriate place to document such a journey. As the primary interest of the coming posts is not education but documentation, the posts might and will likely contain many errors and amateur design decisions. At the same time I do hope someone might find interesting and/or useful information in my attempts to learn about the subject.

The first project I’ve decided to undertake is the development of a sonar video camera. Using sound to generate graphical representations of objects seems cool. The basic idea is creating a single frequency sound wave and using a microphone to listen for the echos of that sound. Since sound travels at a constant speed we can use the echo to find the distance to objects in the environment. Using a single microphone will only give us distance information so there needs to be at least another microphone to get the orientation of that object with respect to the sound source. The echos will hit one of the microphones first which we can use to get the angle of those echos.

Diagram showing the way the system should work

Diagram showing the way the system should work

To generate the images from the echos, we’ll convert the distance/angle data to a single 3 dimensional position vector. We can then take those position vectors and translate them to a 2d image, using a method called the projection matrix.

As I come from a software background, the last part is where I’ll begin. It will also make things easier to debug. In some sense the hardware part is putting two microphones and single-frequency generator in a nice looking small box and a board that can make those calculations fast enough.

Of course that impression might and probably is naivety. One issue I did run into when it comes to generating a single-frequency sound is that if this sonar-camera is to ever be useful it shouldn’t create an annoying sound when it’s used. Human hearing range is between 31 to 19K hertz. A simple solution is to use a higher or lower frequency sound than that range. The issue stems from common house pets like cats and bats that do live in urban environments, and some of which are sensitive to sounds that are up to 200K hertz. I’ve looked into sub 10 hertz frequencies, as they are the bottom limit for all animals, but they require bigger equipment that will probably not fit within a small case. For now I’ve decided to concentrate on higher frequencies probably above 80k hertz. Hopefully there are appropriate microphones that are sensitive to those frequencies. One helpful aspect of this dilemma is that at least in the first stages of development the frequency doesn’t matter as much and most of the other parts of the system are agnostic as to the frequency used.

Animal Hearing Range Table

Animal Hearing Range Table

In the beginning I want to implement the software using python. It will be composed of three systems:

1. A debug framework that will take a 3d image and convert it into distance/angle data. The opposite of what the entire system is supposed to do. This will allow for effective testing of the system.

2. A system that simulates hardware events coming from the microphones, and converting them into distance/angle data and then to the position vectors.

3. An image generator that is fed the position vectors to generate the final image

One aspect that I wanted to keep for a later date, but I think might be useful now is that of “loop”. The system works by generating a single sound, and waiting for the multiple echos coming from the environment, and converting them to position vectors. Since different objects are at different distances they will take different amount of time to echo from. One issue is that we might detect echos from a previous signal. To prevent that scenario we need to choose a window of time that is dedicated for a single “run” of the signal→detection loop. The length of the loop is limited by frames-per-second of the video we want to create. If we wait half a second in the loop, we can only create two video frames. To get a more realistic wait time for the loop, we need to choose the maximum distance the camera should be able to detect. The formula is: 

$$loop\ time = {\frac{distance}{speed\ of\ sound}}$$

For 10 meters for instance it comes out as:

$$loop\ time = {\frac{10m}{340.29{\frac{m}{s}}}} = 0.029s$$

if we divide 1 with the loop time we get the FPS which in this case comes out as 34.

Sonar Camera Distance Vs FPS Graph

Distance Vs FPS graph

 

This was a general overview of the project. In the interest of keeping this series somewhat self contained I’ll delve deeper into the different aspect of the project in more details. The first order of business is explaining some general properties of sound waves and computer sound to be better positioned to understand how they are useful for this task.

 

Write a Comment

Comment

Webmentions

  • pay someone to write a paper

    help writing paper https://studentpaperhelp.com/

  • pay someone to write a paper for me

    best online paper writers https://ypaywallpapers.com/

  • paper writing service

    need help with paper https://premiumpapershelp.com/

  • custom papers review

    help writing a paper https://papercranewritingservices.com/

  • help writing college papers

    write my paper online https://essaybuypaper.com/

  • college paper writer

    pay for paper https://writemypaperquick.com/

  • where can you buy resume paper

    finished custom writing paper https://mypaperwritinghelp.com/

  • order paper online

    college papers writing service https://buyessaypaperz.com/

  • buy writing paper

    english paper help https://writingpaperservice.net/

  • college paper writers

    write my english paper https://cheapcustompaper.org/

  • write my paper apa style

    buying papers online https://researchpaperswriting.org/

  • best paper writing services

    paper writers for college https://top100custompapernapkins.com/

  • best paper writing service

    pay to write papers https://doyourpapersonline.com/

  • write my papers

    paying someone to write a paper https://write-my-paper-for-me.org/

  • college paper writing help

    best college paper writing service https://writepapersformoney.com/

  • write my paper reviews

    pay someone to write a paper for me https://paperwritinghq.com/

  • help paper

    help writing college papers https://uktermpaperwriters.com/

  • custom paper

    buying papers for college https://sociologypapershelp.com/

  • pay someone to do my paper

    buying college papers online https://term-paper-help.org/

  • free gay chat by zip code 53214

    chat gay vegas https://gaymanchatrooms.com/

  • chat gay joven

    free cam to cam gay chat https://gayinteracialchat.com/

  • gay annonymous chat

    free gay chat room https://free-gay-sex-chat.com/

  • gay chat rooms mason city ia

    zoom chat gay https://gaymusclechatrooms.com/

  • gay roleplay chat

    gay chat randon https://gaychatnorules.com/

  • fcn free gay chat free chat network

    freer gay chat rooms https://gayphillychat.com/

  • gay sex chat no registration

    wed chat gay free https://chatcongays.com/

  • gay video chat sites

    boy self sucking chat room gay chum’s brother calhoun couldn’t stop https://gay-live-chat.net/

  • amature gay video chat

    gay chat recorded https://gaychatspots.com/

  • gay advise chat

    free gay phone chat line https://gaychatcams.net/

  • gay chat rooms free in illinois

    gay chat rooms black https://newgaychat.com/

  • chumba casino online mobile

    no deposit sign up bonus online casino https://casinosonlinex.com/

  • online casino game real money

    foxwood online casino https://online2casino.com/

  • online sweepstakes casino real money

    casanova casino online https://onlinecasinos4me.com/

  • aduilt dating

    sites online dating https://onlinedatingservicesecrets.com/

  • best free online meeting sites

    senior dating site https://zonlinedating.com/

  • dating online

    beste dating site https://virtual-online-dating-service.com/

  • meet european singles in usa

    best free online dating websites https://freeadultdatingpasses.com/

  • free dating chatting online

    free online dating sites reviews https://lavaonlinedating.com/

  • internet dating sites

    find single women https://wowdatingsites.com/

  • adult chat free

    meet women at zushi beach https://datingpersonalsonline.com/

  • free dating sites for single men and women

    connect singles https://speedatingwebsites.com/

  • dating best sites

    free se4x https://online-internet-dating.net/

  • mature nl lesbian

    plentyoffish https://adult-classifieds-online-dating.com/

  • local free dating sites

    meet men online https://adult-singles-online-dating.com/

  • senior bi log in

    free online dating chat https://onlinedatingbabes.com/

  • best online dating sites

    single site web https://freephotodating.com/

  • turns to gay sex dating

    gay sex dating https://datinggayservices.com/

  • gay dating sims

    dating sim game gay https://gayedating.com/

  • gay dating show youtube

    curious gay dating https://gay-singles-dating.com/

  • buy vpn with perfect money

    best vpn for home network https://rsvpnorthvalley.com/

  • vpn buy online

    buy vpn account https://free-vpn-proxy.com/

  • buy a vpn server

    free vpn usa https://superfreevpn.net/

  • free vpn extension

    vpn chrome extension free https://imfreevpn.net/

  • best firestick vpn

    best free vpn windows https://ippowervpn.net/

  • vpn unlimited review

    sonicwall vpn client https://freehostingvpn.com/

  • open vpn free

    sonicwall vpn client https://shiva-vpn.com/

  • best ios vpn

    best free vpn for roobet https://freevpnconnection.com/

  • online casino slots

    casino online free https://casino8online.com/

  • sugarhouse online casino

    zone online casino msn games https://all-online-casino-games.com/

  • online casino websites

    online casino echeck https://ownonlinecasino.com/

  • online casino california

    gun lake online casino https://onlineplayerscasino.com/

  • online casino no verification withdrawal usa

    casino online michigan https://casino-online-jackpot.com/

  • real casino online for real money

    wv online casino https://casino-online-roulette.com/

  • online casino bookie franchise reviews

    u s online casino https://vrgamescasino.com/

  • mgm online casino nj

    online casino us https://1freeslotscasino.com/

  • online casino that accepts echeck

    harrahs online casino pa https://cybertimeonlinecasino.com/

  • online cash casino

    online casino calculator https://internet-casinos-online.net/

  • online casino with free sign up bonus

    caesars online casino michigan https://free-online-casinos.net/

  • best online casino fast payout

    resorts world casino online https://9lineslotscasino.com/

  • virginia online casino

    gila river casino online https://onlinecasinosdirectory.org/

  • fastest withdrawal online casino

    best michigan online casino https://trust-online-casino.com/

  • real online casino games

    colorado online casino https://newlasvegascasinos.com/

  • casino online best payout

    online casino florida https://onlinecasinofortunes.com/

  • casino online free play

    best free online casino slot games https://firstonlinecasino.org/

  • free bonus without deposit online casino

    riversweeps online casino app https://download-casino-slots.com/

  • buy dissertations online

    buy dissertations https://customthesiswritingservices.com/

  • writing dissertations

    example of dissertation https://dissertationhelperhub.com/

  • tips for writing dissertation

    writing help https://dissertationhelpspecialist.com/

  • online dissertation help veroffentlichen

    example of dissertation https://writingadissertationproposal.com/

  • undergraduate dissertation

    writing a masters dissertation https://customdissertationwritinghelp.com/

  • writing your dissertation in

    dissertation database https://businessdissertationhelp.com/

  • help dissertation thesis advice

    service writing https://bestdissertationwritingservice.net/

  • what is dissertation

    dissertation help methodology https://writing-a-dissertation.net/

  • writing dissertations

    buy dissertations https://examplesofdissertation.com/

  • dissertation writing tips

    writing acknowledgement dissertation https://accountingdissertationhelp.com/

  • writing dissertation proposal

    dissertation proposal https://dissertationhelpexpert.com/

  • dissertation plan

    dissertation defense https://dissertationwritingcenter.com/

  • dissertation thesis writing

    rutgers dissertation proposal help https://helpwithdissertationwritinglondon.com/

  • dissertation writing support

    premium dissertation writing service https://professionaldissertationwriting.com/

  • dissertation proposal methodology example archived

    writing dissertation https://professionaldissertationwriting.org/

  • 2calculus

    1malachi

  • 2relation

    1education

  • education dissertation topics

    data analysis dissertation help https://helpon-doctoral-dissertations.net/

  • dissertation timelines

    dissertation writing advice https://dissertations-writing.org/

  • how to write a draft dissertation help

    dissertation memes https://mydissertationwritinghelp.com/

  • apa cite dissertation

    dissertation defense powerpoint template https://help-with-dissertations.com/

  • doctoral dissertation help 6th

    help with dissertation writing paper https://dissertationwriting-service.com/

  • what is a dissertation defense like

    dissertation writing tutor https://buydissertationhelp.com/

  • free slots casino games

    free casino slots online https://slotmachinegameinfo.com/

  • high-roller-slots

    mr cashman slots music https://www-slotmachines.com/

  • best us online slots

    clip art gambling slots https://411slotmachine.com/

  • my vegas slots free chips

    vegas free slots games https://download-slot-machines.com/

  • ceaser slots

    vegas online slots https://beat-slot-machines.com/

  • dgn free slots

    feather slots, function https://slot-machine-sale.com/

  • casino slots free

    river slots app https://slotmachinesforum.net/

  • quick hits slots

    ruby slots casino login https://slotmachinesworld.com/

  • 888 free slots machine

    lenovo y700 nvme slots https://pennyslotmachines.org/

  • ceaser slots

    simslots free slots https://candylandslotmachine.com/

  • aristocrat slots

    caesars slots free https://freeonlneslotmachine.com/

  • dragon slots

    penny slots https://2-free-slots.com/

  • gay dating long term relationship oriented guys into spanish

    free dating apps that aren’t gay https://speedgaydate.com/

  • utah gay bi chat

    gay live chat rochester https://gay-buddies.com/

  • gay chat city

    first gay chat https://gaytgpost.com/

  • gay dating stockdale texas

    gay dating site s bareback https://gaypridee.com/

  • gay chat pittsburgh

    nh gay chat https://bjsgaychatroom.info/

  • best gay dating

    gay dating hookup bay area https://gaysugardaddydatingsites.com

  • gay men dating in ga

    palm springs ca mature gay bisexual dating https://gayfade.com

  • gay executive dating

    gay conservative dating app https://speedgaydate.com

  • women veteran dating sites gay

    translate ” gay dating long term relationship oriented guys into spanish https://gayprideusa.com

  • gay dating free

    what are the names of gay dating sites https://gay-buddies.com

  • dating guys wen 18 gay

    gay dating a macho https://gaypridee.com

  • 1sustainability

    3venison