DIY Sonar Scanner Ep. 2 (STEM, RMT tricks)

  Переглядів 139,674

bitluni

bitluni

День тому

In this part I reversed the working principle of my DIY sonar scanner the phased arrays are now receivers. I show how that works and what electronics I designed to tackle the challenge. You liked STEM and here is another bit of that for you. Please enjoy and share with a friend!
Give my sponsor Aisler a try: aisler.de
They manufacture locally and are still competitive!
Scanner code: github.com/bitluni/SonarScann...
Browser based simulator: www.shadertoy.com/view/NttyW8 (janky and only UHD but ship it!)
Links to parts and tools (affiliate links):
Miniware Hot Plate: aliexpress.bitluni.net/hotPlate
Flux: aliexpress.bitluni.net/flux
Syringe Pusher: aliexpress.bitluni.net/pusher
My camera and lens (4k 60fps): amazon.bitluni.net/gh5
Merch: merch.bitluni.net/
Github Sponsors: github.com/sponsors/bitluni
Patreon: / bitluni
Channel membership: / @bitlunislab
Paypal: paypal.me/bitluni
Twitter: @bitluni
Discord: / discord
0:00 Intro
0:12 Recap & motivation
0:51 Sound simulation
2:34 ADC Design
3:11 Aisler PCB assembly
4:09 BGA montage
4:42 ADC serial interface
5:07 Coding challenge
5:59 RMT tricks
7:03 Final tests
#electronics #maker

КОМЕНТАРІ: 216
@bitlunislab
@bitlunislab Рік тому
re-upload because I misspelled Hertz🤦🏻‍♂...in an educational video about physics. I deserved it if you un-bell me
@TechwithHari
@TechwithHari Рік тому
Haha, but I congratulate your focus on quality !!🔥
@peter.stimpel
@peter.stimpel Рік тому
You asked for Fiber, but you deserve 64k ISDN speed for reupping the video 😇
@JoeldaSilvaVicenteFilho
@JoeldaSilvaVicenteFilho Рік тому
not gonna lie, I didn't even noticed it hahaha
@largepimping
@largepimping Рік тому
Didn't bother me at all... one might even say it was zero hurts for me.
@911canihelpu
@911canihelpu Рік тому
never, infact youtube should double the view count, i blame them
@gwagner3446
@gwagner3446 Рік тому
Is part 3 coming anytime soon? I can’t wait to see how this project developed!
@konserv
@konserv 3 місяці тому
???
@SpencerPaire
@SpencerPaire Рік тому
Geeeeeeezzzz. This is a mind-bogglingly advanced maker project. I can't believe all this is possible without a PhD in ultrasonic and signal theory, and a big lab. Let along possible with an ESP and off-the-shelf hardware! Great work! I can't wait to see how you amplify the output signal without introducing "noise" into the rest of your system.
@bitlunislab
@bitlunislab Рік тому
I also can't wait to see that :-D
@realcygnus
@realcygnus Рік тому
IKR, though the math/physics principles have been pretty known for quite a while as well as some actual existing HW/SW implementations that aren't totally proprietary anyway. But yea its amazing just how far we've come over the decades & how readily available everything required for such a project is, even to a DIY engineer.
@surfcello
@surfcello Рік тому
Using a lock-in amplifier perhaps?
@guillermomarturetfendt9037
@guillermomarturetfendt9037 Рік тому
dude the math is pretty basic bachelor in engineering-level... Programming the microcontroller to work at those speeds is where the complexity of this project comes
@ToIIIko1
@ToIIIko1 6 місяців тому
​@@bitlunislabДальше увеличим количество приёмников и получим ультразвуковой 3D сканер для дополненной реальности?) Будем без включённого света видеть окружение😏😏😏
@asronome
@asronome Рік тому
Always amazed at how far you can push some of these microcontrollers!
@bitlunislab
@bitlunislab Рік тому
This is even a cheap version :-D I bet the RP2040 could do all the stuff in PIO
@trevorthieme5157
@trevorthieme5157 Рік тому
@@bitlunislab Could you use this in maybe a multi level set of arrays to make one of those fish finders?
@piconano
@piconano Рік тому
The US military had the 5 omni-directional microphone version, installed on some humvees that pinpointed the afghan snipers, when they fired. Machine-gun galore after that. Mountain echos and all. Now there's a small version called the "Sniper Detecting Microphone", a part of their TCAPS (Tactical Communications and Protective Systems). Smaller than a pack of cigarettes, the solider sticks to the back of his helmet. I like yours better because it's based on an ESP32.
@xxportalxx.
@xxportalxx. Рік тому
So basically the rl version of the little arrow you see in video games showing you were the shots were fired from, pretty cool
@DrumToTheBassWoop
@DrumToTheBassWoop Рік тому
@@xxportalxx. dam, i never thought that such a device could exist. But it makes sense now, to have a phased array microphone system would work very similar.
@jeremylaughery2555
@jeremylaughery2555 11 місяців тому
I did a university project where I determined the angle of a body respective of a sound source by using digital cross-correlation techniques. Made an A! Now, we can see this kind of math being used in sniper shot detection and ranging.
@jeremylaughery2555
@jeremylaughery2555 11 місяців тому
​​@@DrumToTheBassWoop You get more bang for the buck with beamforming phase-shift arrays. This beamforming technology could augment LiDAR for 3D mapping.
@scottmarquardt8770
@scottmarquardt8770 Рік тому
As a former USN sonarman in the early days of towed arrays, this brings back fond memories. I had learned theory in cylindrical active arrays, but tight passive beamforming and frequency resolution well to the right of the decimal point - even for ridiculously low freqs - was a whole new ballgame. The math still makes my head hurt though. 😏
@LaserFur
@LaserFur Рік тому
I was working on the same kind of plan 14 years ago. one thing I noticed is that it's better to space the receiver array with prime fractions in between each detector. so the detectors are not spaced evenly. This prevents a picket fence type sensing issue. Also there are wider bandwidth ultrasonic detectors, but they operate at higher frequencies and thus increase the difficulty of the electronics.
@lincolnschoolpreservation3574
@lincolnschoolpreservation3574 Рік тому
i graduated from the Army signal corps in 87, everything was analog then, n accuracy was really based on the operators ability to interpret the signal n of course u always had unwanted frequencies n freq drift as equip got hot gumming things up, but i got very good at that n I'm amazed at how small n more accurate the new tech is and this just reminds me most of the old tech but on steroids.
@lauraramsey1415
@lauraramsey1415 Рік тому
What's Prime Fractions? I googled, but only found prime factorisation
@LydellAaron
@LydellAaron Рік тому
Placing at primes is a good idea. It make a significant difference in performance?
@LaserFur
@LaserFur Рік тому
@@LydellAaron so you have a spacing distance between sensors. Then you say do a 7/5 of that distance and a 14/11 of the distance. The waves that line up with the consistent distance now are not lined up with these odd spacing. it helps separate out things.
@LydellAaron
@LydellAaron Рік тому
@@LaserFur I haven't checked your math, but I do see what you mean in spacing the sensors. Question: Could you tune each ultrasonic, to emit a pure prime frequency, keeping the distances the same?
@raymitchell9736
@raymitchell9736 Рік тому
Fantastic! WOW! And you managed to get a PCB with BGA's on them... impressive! Thanks for sharing this... I can't wait to see how you process the data and interpret it.
@bitlunislab
@bitlunislab Рік тому
its only 8 pins which are adjacent to the IC corner. The of all the BGA boards the last ADC didn't work. I used a different type for the tests shown here (code still works the same). I never really found the issue. The solder mask is a bit wide open on one of the pads. The pin pitch also exceeds the specks of the manufacturers fast shipped PCBs. I tried the BGAs because they were the cheapest and support 12bit at 3MSa max. Still would use sot for product because of the reliability.
@raymitchell9736
@raymitchell9736 Рік тому
@@bitlunislab Well, even attempting it was brave! Glad you got a work-around for that last ADC and was able to move the project forward... much respect for you!
@Zi7ar21
@Zi7ar21 Рік тому
THIS IS SO AMAZING! Thank you for documenting all of these cool projects for us.
@Codeaholic1
@Codeaholic1 Рік тому
The animations in this are excellent. Well done!
@1kreature
@1kreature Рік тому
You can use the DMA in the STM's as well. It is very capable at reading data from GPIO pins triggered by a lot of alternative sources.
@StormBurnX
@StormBurnX Рік тому
Absolutely loving this project!
@shkolarac
@shkolarac Рік тому
Great physics, presentation is clear and concise, but also very appealing. Sound background in simulation part of the video is extraordinary 🤗 for the electronics side of the project: 🤯
@LydellAaron
@LydellAaron Рік тому
I love this. Especially the multiple channels at once sampling.
@McTroyd
@McTroyd Рік тому
Braver man than I with those BGAs! This is a really cool series. Great to see a phased array application I could actually build one day. Wonderful exercise of the theory too. 👍
@bardenegri21
@bardenegri21 Рік тому
So much yes! Great project and amaze editing and presentation! Love it
@jojojorisjhjosef
@jojojorisjhjosef Рік тому
Great project laid out in great yet simple detail
@erikpaulson8309
@erikpaulson8309 Рік тому
Wow, this is awesome work. Coincidentally I came across this while planning to do my own project to attempt the same thing. This is great motivation!
@michaelseitz8938
@michaelseitz8938 Рік тому
Fascinating project! I am very curious about the next video ☺ (And, I also think MEMS microphones would be an interesting idea 😁)
@Vicarium
@Vicarium Рік тому
This series is awesome!
@trevader2562
@trevader2562 Рік тому
I would highly recommend programming the ESP-32 using the PlatformIO extension in VScode. Not only is VScode just a generally better IDE, but the default ESP-32 framework (which virtually perfectly mimics the default Arduino framework) is actually built on FreeRTOS, which can leverage both cores of the ESP-32 and allow true concurrent multitasking. This is achieved simply by making calls to the FreeRTOS API with no modifications or extra library imports needed, which is freaking sweet for a 6$ microcontroller.
@MatthewAlbert-zoonotique
@MatthewAlbert-zoonotique 11 місяців тому
I recently used four analog MUXs with the select lines driven by shift registers to read 64 analog hall effect sensors in "real(ish)" time.
@peterrasmussen2793
@peterrasmussen2793 Рік тому
Hi, I was wondering if you are going to continue this series on the phased array sonar?
@jamesmor5305
@jamesmor5305 Рік тому
I will wait for the next part and I love the ESP32 but my surrounding makers hate it, now I can share this video and point out one more time how awesome this controller is.
@guerrillaradio9953
@guerrillaradio9953 11 місяців тому
The STM series also features DMA, which can really improve your GPIO speed dramatically. My mind goes straight for an FPGA with this use case, and I give you massive credit for how much you've been able to get a lowly ESP32 to do!!! Impressive!🤘🤓
@rickpercy87
@rickpercy87 Рік тому
Loving this series, man!
@MohammadHefny_HefnySco
@MohammadHefny_HefnySco Рік тому
Thank you for such precious documentation.
@electronics.unmessed
@electronics.unmessed Рік тому
Great idea and great video! Looking forward to see the next videos.
@BlackPixxelDE
@BlackPixxelDE 5 місяців тому
If you add additional transmitters offset by the size of the 8 receiver array, then you will have a MIMO-array with twice the angular resolution. You would simply record one frame with one transmitter active, then another with the other transmitter active.
@notabagel
@notabagel Рік тому
You could just bandpass the transducers in the rx array and measure the time delay at baseband. No need to actually measure the waveform directly. Great video, look forward to seeing more on the subject.
@edgeeffect
@edgeeffect Рік тому
I love the thumbnail "... this is what AI thinks...." ... and the ambient music + sonar sound effects soundtrack.... nice!
@CaptMikey-vc4ym
@CaptMikey-vc4ym Місяць тому
Dear Bitluni; The sport of soaring cross country involves the glider flying to areas of convective lift to gain or maintain altitude to fly distances. This means it would be nice for the pilot to have some kind of thermal scanner to observe areas of lift in the vicinity of the aircraft. Now the pilot has to guess where these areas are by visual clues and then flying ahead to confirm the lift by instruments of vertical speed. The concept of a "lift scanner" has been a dream of soaring pilots for generations. I am wondering if phased array transmitters and detectors might be a possible solution. I have read that microwave radiation might be used here. You do great stuff!
@keen2461
@keen2461 Рік тому
Excellent video from any point of view.
@anchepavankumar1287
@anchepavankumar1287 Рік тому
Ok....the next video bitluni does a ultrasound image of a baby using esp32
@devrim-oguz
@devrim-oguz Рік тому
That's why submarine radars use a non-repeating melody to scan the environment. That way you can distinguish between the different echos.
@wecksell
@wecksell Рік тому
Nice Project!!consider looking at phase modulated pulses to get higher resolution without sacrificing power out on you pulse!
@databang
@databang Рік тому
Nice echo visualizations, it helps wrap one’s head around the relativity.
@Bastviktech
@Bastviktech Рік тому
TNice tutorials was an amazing tutorial. You are a great teacher
@MkmeOrg
@MkmeOrg Рік тому
Amazing work. Loved it
@PCBWay
@PCBWay Рік тому
caught you there
@bens4446
@bens4446 Рік тому
Just when I thought this project couldn't get more genius, it got more genius.
@imignap
@imignap Рік тому
Nooooo. Where is ep. 3!???? This is really fun to watch!
@norbertdapunt1444
@norbertdapunt1444 23 дні тому
Absolutely awesome.
@mtalhakhalid1679
@mtalhakhalid1679 Рік тому
Very cool project sir impressive.
@HunterHogan
@HunterHogan Рік тому
This is fascinating! Just after I watched both of these videos, I stumbled across a 2003 paper that says the following without including a citation for it's claim. "Since the wavelength of 40 kHz ultrasound is only 8.6 mm, a receiver with dimension larger than the wavelength is not recommended for wavelength measurements." DOI 10.1088/0031-9120/38/5/310 In the first video, I think you showed us that the smaller transducer has a 9.6 mm diameter. If the paper is correct, then would smaller receivers give you more precision?
@superdau
@superdau Рік тому
That's the diameter of the case. The transducer is inside and smaller.
@joansanchez2523
@joansanchez2523 Рік тому
Nice video! Waiting for more!
@TheGreatTimSheridan
@TheGreatTimSheridan 6 місяців тому
I would still like to get your help on designing my "flashlight for the blind" based on a laser range finder. But if you were able to map surfaces with your sonar, maybe that would work too. I found sonar to be too slow for distance measurements. But the tactile feedback for a flashlight for the blind would most likely use tiny electrical pulses on the forearm. Or possibly on the hand and fingers if it were implemented in a glove. Imagine feeling your way down the street with 30 foot long fingers. i'm quite certain that something small and functional could be designed to work on a rechargeable 9 V battery. Or maybe more batteries. Something that would fit in one's pocket certainly. This would be a tremendous benefit to many people. The cane is a very reliable mechanism, but it could certainly expand one's horizon to be able to feel doorways and windows and street signs coming up. To be able to sense people 20 feet away walking toward you. Perhaps
@EngineerNick
@EngineerNick Рік тому
So cool :O Cant wait for the next one
@yassinefaradi9650
@yassinefaradi9650 Рік тому
Thanks for this video
@vinhtran-nu6gk
@vinhtran-nu6gk Рік тому
Everything works at its best!!
@johnadrianaguila5318
@johnadrianaguila5318 Рік тому
a different world. It's the sa laws, but different application. Without your videos, I'm not sure I would be at the level I'm at. I'm not a pro
@tenet-rotas
@tenet-rotas Рік тому
what a BEAUTIFUL video!!
@BRUXXUS
@BRUXXUS Рік тому
This project is SO COOL! I can't wait until you create a fully functional Alien motion detector. 😅
@Cor_Netto
@Cor_Netto Рік тому
Love these videos!
@MoritzMair
@MoritzMair Рік тому
holy crap, this is amazing!
@Alexander-ju8gp
@Alexander-ju8gp 10 місяців тому
Nice content. I think, everyone who works with prototypes hates jumper wires except probably newbies.
@sergeiepatov7683
@sergeiepatov7683 7 місяців тому
I think that RPi Pico, with its programmable and full system clock speed PIO state machines, is far better choice for high-speed ADCs than ESP32. Also take into consideration its great overclockability. I think it will be possible to build even multi-megahertz ADC circuits with it.
@pokojnitozo2360
@pokojnitozo2360 Рік тому
This is awesome!
@lohikarhu734
@lohikarhu734 27 днів тому
I had a look at Aisler... not as cheap as the PRC people, but, having actually run a business doing electronic design and development, their pricing structure makes sense, seems quite transparent. It might be a plan, if you feel ok with it, to give the price for a board that you are building? For me, I guess it would be interesting for a bare board price, on a board that's reasonable to assemble in a hobbyist lab, and a price for a fully built board, including their sourcing and mounting of components. The setup fees stack up a bit, but compared to damage to boards or components, trying to do it "at home" 😁
@StuartCGadgetRev
@StuartCGadgetRev Рік тому
Wow! So cool!
@donaldkormos5529
@donaldkormos5529 Рік тому
Nice job !!!
@rootsofsuccess8148
@rootsofsuccess8148 Рік тому
Incredibly informative. As soone with no background in soft other than so Nice tutorialgh school band, I completely understand everytNice tutorialng
@PCBWay
@PCBWay Рік тому
One more epic, do more uploads plz 👍🤟
@karlharvymarx2650
@karlharvymarx2650 Рік тому
Excellent. I'm a little creeped out because I just started work on this same basic idea this morning and out of the blue UKposts suggested this video in the early afternoon. That wouldn't be remarkable except that I haven't googled yet aside from looking for a schematic for the HC-SR04 board to see if there is anything worth salvaging. I considering trying to figure out if I could use Knowles digital ultrasonic microphones. IIRC the ESP32 maxes out at 2 PDM inputs and that is with interleaving left and right channels that probably doesn't help much. But I do have an old FPGA laying around which is grunty enough to handle converting several PDM streams to PCM. But I wonder if there might be a good algorithm for getting phase and echo times out of the PDM signal? In other words, each microphone has a 1-bit SAR ADC built in. Would it be possible to use the 1-bit stream from each microphone directly instead of first converting to PCM. Each mic's bit stream flows at around 3-5 MHz in ultrasonic mode and it takes somewhat serious number crunching to get that to 16-bit PCM so it might be nice to skip that and go directly to finding echo delay and phase. That might allow the final version to use an inexpensive FPGA dev board. Anyway just an incomplete thought which maybe you know something about.
@wolpumba4099
@wolpumba4099 Рік тому
You could emit a chirp from 0 to 10 kHz and capture this with a slow Adc (20kHz sample rate) of a microcontroller. Then you could emit a chirp from 10kHz until 20kHz. In this way you can cover the full spectrum where your transmitter and receiver are sensitive. One requirement is that you should have no aliasing filter in your receiver path Also the sample and hold circuitry should sample in a sufficiently short time window and the sampling times between transmitter and receiver shall be triggered with low jitter.
@julianbinder2371
@julianbinder2371 Рік тому
based fellow communist electronics enthusiast
@karlharvymarx2650
@karlharvymarx2650 Рік тому
Looks like I had a bad idea if the goal is direction finding. MICROPHONE ARRAY PROCESSING OF PULSE-DENSITY MODULATED BITSTREAMS Conference Paper · January 2018 Ipenza, Sammy Carbajal ; Masiero, Bruno S It still feels to me like there should be a way to avoid the FFT(s) and do some sort of fuzzy statistical comparison of the streams to get time of flight and phase. I need to re-watch this video to see how bitluni did it. I don't remember FFTs here. Interestingly PDM seems to be good input for spiking neural networks--maybe a completely different AI based approach would work.
@odissey2
@odissey2 Рік тому
PDM to PCM conversion is basically done using low pass CIC filter (with decimation), which reduces data rate by some factor (/64). This is followed by a cross-correlation of signals from different microphones. The low pass filter doesn't do much but reduces the data rate and size of the array in memory. So, it should be possible to skip that step, but at the expense of bigger RAM. Personally, i would use 8 of ESP32 boards, one per the PDM microphone, and process acquired data using RPi.
@paulleveque2624
@paulleveque2624 Рік тому
I used aisler tooo ! There awesome !!!
@AlexejBabey
@AlexejBabey Рік тому
Really cool project. I was wondering if it's possible to realize this with Ultrasonic signals instead of microwaves. eagerly waiting for the next video.
@drmosfet
@drmosfet Рік тому
Those PCBs look like they could be very useful in some DIY scientific endeavours.
@first-thoughtgiver-of-will2456
@first-thoughtgiver-of-will2456 Рік тому
I wonder if you could use a 4D lidar camera and a speaker and microphone to train a neural network to map the received audio signal to the scan. You could also use something like the Google cars scanner (idk if they use synthetic aperture lidar but that may make things cheaper) to also regress the audio signal. One upside is it can learn ambient echo patterns too!
@SirRandallDoesStuff
@SirRandallDoesStuff Рік тому
This is awesome
@wolpumba4099
@wolpumba4099 Рік тому
Fascinating. I don't quite understand your argument that you need parallel readout of the sensors. If the scene is static or nothing is moving very fast then the receivers could be read out sequentially. I would like to see the transmitter moved on a linear stage. Then you could create a synthetic aperture.
@sultan7679
@sultan7679 Рік тому
like your videos sir... waiting for part 3... love from pakistan
@raphrath8561
@raphrath8561 Рік тому
super impressive! Your PCBs look like they have a lot of cross talk between the different digital signals which is probably limiting your sampling rate, whats your board stack up and how are the board interconnects carrying ground is what id look at first.
@usefulelectronics
@usefulelectronics Рік тому
This is a next level project :) I wonder why don't you used the native ESP-IDF it is more powerful than ARDUINO IDE
@Sx107music
@Sx107music Рік тому
Stm32f3 series internal ADCs have more than enough speed for you :) f303 has 4 ADCs at 5MSPS each, for example. Straight to memory with DMA.
@kenjinks5465
@kenjinks5465 Рік тому
Well you got the tech for my project that I'd like to do, a phased array microphone. Start with an audio frequency microphone 2D phased array to resolve a 3D volume. Each cell in the volume would be the sum of phased inputs from each microphone processed to show a live FFT to give a colour for spectral content and transparency for amplitude. This would be way better than the sound camera I saw over at @SteveMould with the acoustic camera as it ought to show all sound all the time.
@andymouse
@andymouse Рік тому
Nice one !...cheers.
@paulushdk
@paulushdk Рік тому
BRILLIANT!!!!
@JustHangOutWithMe
@JustHangOutWithMe Рік тому
Great video...Thank you... I was wondering what the app you used for the sound simulation was?
@Bianchi77
@Bianchi77 Рік тому
Nice video, thanks :)
@WestEast3259585
@WestEast3259585 Рік тому
super cool
@realcygnus
@realcygnus Рік тому
Nifty AF !
@Romain.J
@Romain.J 4 місяці тому
I just discovered this channel, is the part 3 coming ? That's really interesting even if I don't understand everything :)
@MecegguemMohamed
@MecegguemMohamed Рік тому
amazing to see people like you
@nanodynamics5203
@nanodynamics5203 Рік тому
Great work and I was following up with your project. My question is how do I calculate the required power to make this scanner works in different media than air such as air?
@fachini104
@fachini104 Рік тому
Wow, amazing project! I'm looking forward to trying it myself. Is there any link to order the pcb?
@salec7592
@salec7592 Рік тому
It just occurred to me (but I didn't calculate the feasibility, so maybe it is a flop) that the sample rate requirement could be loosened by using analog band-pass filter(s) in front end and undersampling/ ADC multiplexing. Since the signal is basically just 40kHz sine, that would work, provided that both the modulated pulse, and distance between receivers is long enough for phase difference to be noticeable with sampling rate you have available. Or, since nothing prevents you from using multiple acquisition periods, you can induce small variable time (phase) shift between emission start and receiver start, so that multiple undersampled readings can be interleaved to construct synthetic high sample "image" with better resolution.
@lidarman2
@lidarman2 Рік тому
very cool
@UAVwaffle
@UAVwaffle Рік тому
This series is absolutely amazing. How much do you think it will cost you to make these in the end?
@dougle03
@dougle03 Рік тому
Cost in parts, very little. Cost in time and knowledge, lots and lots... Not everything can be boiled down to the $ easilly
@yeungkakin
@yeungkakin Рік тому
Great guy! Is it really amazing to see your experiment. Is it possible to make a medical grade ultrasound scanner?
@Ech01378
@Ech01378 Рік тому
You could try to transmit from the same elements and then switch to reception, as radars do, instead of one transmitting element centralized (which can add a phase shift along the array)
@SWRDMaster
@SWRDMaster Рік тому
This is possible but the drawback is called a blocking distance. The transmitter rings for a period of time after excitation had ceased. This time is distance the transmitter won't be able to see. It would be blind close up for the transmitter element.
@Shkvarka
@Shkvarka Рік тому
Awesome project!!! Best regards from Ukraine, Odesa!:)
@danielbachmann5660
@danielbachmann5660 10 місяців тому
Those animations are amazing! How did you do them ?
@charlesspringer4709
@charlesspringer4709 Рік тому
Nyquist says you must sample at GREATER THAN twice the frequency. Sampling at exactly twice takes an infinite number of samples and produces an alternating output. Sample at 4 or 18 timeds the frequnecy or as much as possible. If you know the amplitude you can find phase at 2f, but you don't know amplitude.
@bitlunislab
@bitlunislab Рік тому
good point... might hit exactly the 0 transition and get nothing
@TheEvertw
@TheEvertw Рік тому
Probably you could use the DMA module to read the high-speed samples and dump them to the USB bus, if C can't keep up. With the SPI module, you can create a clock frequency up to 80MHz, and the general purpose Timers should be able to generate high speed clock signals as well. For best result, it would be better to not space the receivers the same distance, but e.g. double the distance between them for each one as they get further from the center. But damn, I want to make my own, 3D, scanner now, by making a cross with the receivers, not all on a line.
@Chris-bg8mk
@Chris-bg8mk Рік тому
Subbed!
@filigenzilab9613
@filigenzilab9613 4 місяці тому
Amazing! Would it be plausible to use lower frequencies of sound that can go through various objects and “see” through walls?
@stevejin9459
@stevejin9459 Рік тому
Excellent idea and implementation. S2 has “8-bit Octal SPI mode” Spi port with dma. Would that simplify the code and timing a little?
@ytxstream
@ytxstream Рік тому
Check out FMCW (frequency modulated continuous wave) instead of single pulses.
@Tomasu82
@Tomasu82 Рік тому
I wonder if the rpi nano's programmable io peripheral would help or hinder here. Seems like itd be an interesting test at any rate.
@WallyAmos-kz7jc
@WallyAmos-kz7jc Рік тому
hi! i'm wanting to design what i hope you're doing for your next video, a 3-channel sonar to take full 3d snapshots from each ping. with a triangular receiver, the phase difference among all 3 will point directly to the reflection's source angle, relative velocity, intensity, and distance. all the information you need is encoded in the audio if you can coax it out with the right math, and of course it's the hard part where i'm stuck. i guess i'll write a little routine to manually search all the sound streams for 38.4khz serial data to never miss it and to get the phase exactly right for calculating angles and precise distances. is there a shortcut i'm missing here? seems like a lot of work just to turn a little blip of sound into a complete map of everything around.
@WallyAmos-kz7jc
@WallyAmos-kz7jc Рік тому
so now after a night of pondering, it seems i need to take the audio data stream and step through it, hopefully only on areas marked by fft as having a carrier of known amplitude. stepped by sliding a window of one ping size (thinking 10 bits) over it, adding/subtracting a sine wave of the target frequency to see if it increases or decreases the total audio noise. then repeat with the calculated sine wave starting at different positions on its cycle and at different amplitudes. best matches are identified by finding where they cancel out most. from here, fine tune the phase and amplitude by tiny stepping until it's perfect, and that is the start time to flag. also at this point try stretching or compressing the sine to find any doppler shift. by knowing the exact time a ping is received on all 3 sensors with their positions tracked by accelerometer and gyroscope, the source can be triangulated directly. at this point, the three (phase aligned and stretched) audio streams can be stacked like a rake receiver for better signal clarity, transform as needed and feed it into the morse code reader or uart to receive the keyed data contents sent from other boats. so that's my best guess on how to go about this. anyone have any ideas on easier ways to do any of this? fml. at least from here ai can take over and do voice like recognition on the serial blips because it has accurate feedback to train it, and get better reception in noisy environments. but i mainly want automatic course correction on my rc speedboat to avoid collisions with swimmers or pier posts and that needs 3d sonar mapping so here i am.
@Flamenawer
@Flamenawer Рік тому
Cool
DIY sonar scanner (practical experiments)
14:30
bitluni
Переглядів 1 млн
The Cheapest CNC Milling Machine
17:55
bitluni
Переглядів 2,2 млн
Turning Sound Into a Laser
3:08
CodeParade
Переглядів 742 тис.
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
GreatScott!
Переглядів 470 тис.
I made a VGA card that blew my mind
15:44
bitluni
Переглядів 415 тис.
Cheap Risc-V Supercluster for $2 (DIY, CH32V003)
9:02
bitluni
Переглядів 238 тис.
The Last Thing You Hear
10:19
MR SLAV
Переглядів 6 млн
From blink to DIY Mini Game - Charlieplexing explained
15:12
bitluni
Переглядів 118 тис.
The Future of Phased Array Ultrasonic Testing: FMC / TFM
15:19
DIY Scanning Laser Microscope
22:05
Breaking Taps
Переглядів 420 тис.
Build Your Own Drone Tracking Radar:  Part 1
20:08
Jon Kraft
Переглядів 422 тис.