#279

Поділитися
Вставка
  • Опубліковано 4 жов 2024
  • In his last video, GreatScott was not successful in building a Walkie Talkie project and suggested that we use his schematic to find out the problem.
    Because I like his work, and I love all sorts of wireless gadgets, I decided to give it a try. Debugging anyway is an essential skill of a Maker because errors help us to learn. And to make it clear: GreatScott did not make an obvious nor a dumb mistake as he suggested.
    Links:
    GreatScott's video: • Make your own very cru...
    NRF24L01: s.click.aliexpr...
    Arduino Pro Mini 3.3V: s.click.aliexpr...
    or: bit.ly/2KbPqTN
    or: B01JA58DHM
    Max1458: s.click.aliexpr...
    3.3/5V FTDI adapter: s.click.aliexpr...
    or: bit.ly/2j36crg
    Microphones: s.click.aliexpr...
    Video about aliasing: • Sampling, Aliasing & N...
    Supporting Material and Blog Page: www.sensorsiot.org
    Github: www.github.com...
    My Patreon Page: / andreasspiess
    My Bitcoin address: 19FSmqbBzb5zsYB1d8Bq4KbxVmezToDNTV
    If you want to support the channel, please use the links below to start your shopping. No additional charges for you, but I get a commission (of your purchases the next 24 hours) to buy new stuff for the channel
    For Banggood bit.ly/2jAQEf4
    For AliExpress: bit.ly/2B0yTLL
    For ebay.com: ebay.to/2DuYXBp
    www.facebook.c...
    / spiessa
    www.instructab...
    Please do not try to Email me or invite me on LinkedIn. These communication channels are reserved for my primary job

КОМЕНТАРІ • 711

  • @greatscottlab
    @greatscottlab 5 років тому +1879

    Very nice video. I am glad that fixing the circuit only takes 1 resistor. Easy fix :-) Thanks again for you help. Your video is now linked underneath my Walkie-talkie video.

    • @swagiyo9801
      @swagiyo9801 5 років тому +11

      I don't know if im missing something, but. i think the major problem is that you're in essence are using a 1bit DAC and ADC. from my experience it won't sound any better then in this video.

    • @hatschmolo2923
      @hatschmolo2923 5 років тому +27

      @@swagiyo9801 No thats wrong. 1 bit is called "direct current" 🤷🏼‍♂️.
      Great Scott uses 10bit ADC from Arduino and generates Analog Audio through PWM coupled with a capacitor.
      This video is proof that he just did forget about headroom. So he created an overdrive Effect 🤘🏼

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +166

      @GreatScott: You are welcome. And as I said, maybe we will have the chance for a test on a bike ride ;-)

    • @asagk
      @asagk 5 років тому +12

      @@swagiyo9801 The quality of output in the video is mainly depending on the noise created by pwm from the receiving side. But to get rid of that, one could choose to have a r2r-dac, instead of pwm, as well as having a "low pass RC-filter" at least between the arduino(328p) and the speaker/headphone, that integrates the high frequency pwm output above 4.5kHz. --- By the way, 1 bit ADC/DAC can create a very high quality output, depending on the internal resolution of digits and sample speed. Good CD-players have high quality 1 Bit DAC!
      [edit] about 1 bit conversion you might want to read this e.g. en.wikipedia.org/wiki/Delta-sigma_modulation#Variations

    • @Margarinetaylorgrease
      @Margarinetaylorgrease 5 років тому +8

      @@swagiyo9801 Some of the best DACs and ADCs in the world are 1bit
      en.wikipedia.org/wiki/Delta-sigma_modulation

  • @TheJay6621
    @TheJay6621 5 років тому +735

    Great Scott : My walkie talkie project is not working
    .
    .
    Andreas Spiess : Hold my Swiss Knife.

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +53

      :-)

    • @UtkarshAmitabhSrivastava
      @UtkarshAmitabhSrivastava 5 років тому +6

      More like : let me grab my Swiss knife.

    • @EvenTheDogAgrees
      @EvenTheDogAgrees 5 років тому +6

      You call that a knife/screwdriver/sewing needle/ballpoint pen/file/pair of scissors/fork/spoon/set of pliers/tape recorder/pair of shoelaces/USB stick/hairdryer/jet ski/pet rock/pagan temple/...?
      Yeah, I'm starting to see why they made Crocodile Dundee an Australian. If he were a Swiss, the movie would be over before they finished making that joke... ;)

    • @khashmeshab
      @khashmeshab 5 років тому +8

      - My walkie talkie project doesn't work.
      - It will work when it hears my Swiss accent.

  • @jeroenjeroen
    @jeroenjeroen 5 років тому +120

    Excellent debugging example from your previous video. And nice cooperation with one of my other popular channels GreatScott! Thanks.

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +23

      Actually, it was no cooperation. I just was interested if it is possible. And I thought we can learn how to debug...

  • @DanielLopez-kt1xt
    @DanielLopez-kt1xt 5 років тому +47

    It is allways nice to see DIYers to help eachother, good for you to improove your skills, and perfect for us to learn along with you.

  • @zerog2000
    @zerog2000 5 років тому +151

    Great video, but beware NSFH (not safe for headphones ;)

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +17

      Do not forget: I am biker with a quite loud Harley. So my ears are no more the best ;-)

    • @suteerthtripathi
      @suteerthtripathi 5 років тому +8

      I wish I had seen your comment earlier.

    • @TravisFabel
      @TravisFabel 5 років тому +1

      To be perfectly honest my TV sound bar did not like this one bit... or 10 bits depending upon how you want to look at it. Lol

    • @robertkielty5094
      @robertkielty5094 5 років тому

      Thank you! Have headphones off ears now.

  • @DIYTECHBROS
    @DIYTECHBROS 5 років тому +69

    Very funny to see this this kind of “response” video Andreas! Great job!

  • @birnodin
    @birnodin 5 років тому +134

    RULE #0 : If your project / code does not work let another guy have a look on it!
    You can be 1000% sure that this line of code works, and so you will never see the error. Another person may say: "But.. in line 99 that..."
    "Oh my God, thats right!"

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +9

      Here it was not the code ;-) But in general, you are right.

    • @LimbaZero
      @LimbaZero 5 років тому +8

      Easiest way is to tell you friend about program and tell how it's working. you usually find that bug also at thins point. some people use rubber duck for this "rubber duck debugging". It's also sad that current arduino ide don't support most powerfull debugging (ICD) where you can use breakpoint and read + change values when run is paused.

    • @mahudson3547
      @mahudson3547 5 років тому +3

      Welcome to open source...

    • @EvenTheDogAgrees
      @EvenTheDogAgrees 5 років тому

      Ain't that true? Just the other day I was working on some Node-Red project with a friend. I'm the hardware/coding guy, so while he was dragging his flow together I had nothing to do and was entirely distracted trying to catch up with my emails. After 10-15 minutes of him banging his head against the wall, stuck on some issue, I glanced up from my mails and spotted the error immediately.
      Zero Node-Red experience. The only reason I caught the error immediately was because I hadn't been staring at it for 15 minutes straight. Had I been paying attention while he was building the thing, I'd probably missed it too and would be scratching my head alongside him. ;)

    • @ArchonLicht
      @ArchonLicht 5 років тому

      XP pair programming.
      Also I agree about Arduino IDE - Eclipse is a way better IDE for Arduino development IMO.

  • @asagk
    @asagk 5 років тому +135

    A simple RC low pass filter might solve the problem with overtones and the quantization noise. Perhaps add some of this at least in the output to the speaker? Supressing all above 4.5kHz will not distort sound, since main components of human voice is up to 3.5 kHz for males and up to 4.5 kHz for females. Agood choice might be to also filter the input from the microphone, to get rid of unwanted noise above human frequencies right before sampling with the arduino. Noise not being transmitted will do good for the transmission as well, since less artifacts in the samples for the receiver will prevent to reconstruct a wave form that is distorted by high frequency components.

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +36

      You are right. I could have shown the FFT where you see the overtones. But I thought this was too much for one video.

    • @liewts1049
      @liewts1049 5 років тому +1

      Really good observation & suggestion

    • @danosdotnl
      @danosdotnl 4 роки тому

      i have passive filters on my mic input and speaker output, still ALOT of noise. Added larger smoothing caps on the arduino and rf module power rails, that worked better and tweaked sample and data rate in software to get rid of the last bit of noise

  • @LordHog
    @LordHog 5 років тому +32

    Simple response, fantastic analysis and debugging tutorial!!

  • @sreeprakashneelakantan5051
    @sreeprakashneelakantan5051 5 років тому +17

    Good, this synergy between UA-camrs is interesting. 🙏

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +2

      GreatScott did not know that I do this video. I never met him so far

  • @D4no00
    @D4no00 5 років тому +4

    what is interesting is that a lot of people think that debugging is not an essential skill, however I could say that this is one of the most important skills to have, you cannot be a good specialist without it. I just started learning electronics about a year ago, but I can say that I could debug that also without any problems (of course by having the appropriate equipment). The most important step in this is choosing the right strategy for debugging the project.

    • @mahudson3547
      @mahudson3547 5 років тому +2

      It is part of being a good engineer and it’s called experience

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +1

      @D4no00: This was the intention of this video.

  • @philipwpartain
    @philipwpartain 5 років тому

    As a hobbyist, the way you walked us through your troubleshooting/debugging process was incredibly helpful. Thank you!

  • @AB-pb8oo
    @AB-pb8oo 5 років тому +26

    I googled the price tag for "Keysight MSOX3054T" and "Siglent SDG1050". Well, I am impressed - nice hobbyist tools... 😂

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +7

      I got a special price for the oscilloscope :-)

    • @andidotro
      @andidotro 3 роки тому

      @@AndreasSpiess how special from the list price of $12000? :)))))

  • @stefanholtker3944
    @stefanholtker3944 5 років тому +140

    Nice debug, my ears are bleeding now :')

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +23

      Sorry about that. I always thought, you young guys are used to loud music ;-)

    • @kilrahvp
      @kilrahvp 5 років тому +4

      This really needs some better digital-analog conversion, at least filter the PWM!

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +7

      A filter for sure would be a nice feature, I agree.

    • @tunahankaratay1523
      @tunahankaratay1523 5 років тому

      Good enough for a walkie-talkie.

  • @loteknomad5032
    @loteknomad5032 5 років тому

    Home-made walkie talkies seem like such a cool project for new enthusiasts and veteran engineers alike. Always enjoy seeing people tackle this particular build. :)

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +1

      This is probably why I did this video. I also liked the idea...

  • @pjosephlthewonder5082
    @pjosephlthewonder5082 5 років тому +1

    I have been working in the electronics field for years, and realized from your video here that I have been using these same rules, with minor exception with out realizing this is what I was doing. Thank You for the lesson on what I do and need to relearn to insure I am doing it right the first time. Great Video! Peace

    • @AndreasSpiess
      @AndreasSpiess  5 років тому

      Thank you! I tried to do some "abstraction" and I thought it will help beginners to get your experience faster.

  • @ghanrajsingh7347
    @ghanrajsingh7347 5 років тому +17

    You both guys are my favorite ❤️ love you work and I always learn something new

  • @cfeigel
    @cfeigel 5 років тому +7

    Wow! The walkie-talkie is a nice project. The debugging lesson is a great extra. Good to see you guys collaborating!

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +1

      We actually did not collaborate. Unfortunately, I never met GreatScott so far.

  • @gnom69
    @gnom69 5 років тому +25

    Small Tip: When testing microphones, instead of speaking try to whistle. It's pretty easy to hit ~1kHz to create a perfect sine. A sinewave is easy to check on the scope.

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +7

      You are right!

    • @recjack2816
      @recjack2816 5 років тому

      There is also the 3.3 kHz when whistling

    • @mrjohhhnnnyyy5797
      @mrjohhhnnnyyy5797 5 років тому

      Humming works as well, not as clean, but still :) Try to replicate the hum of the 50/60Hz transformer.

    • @TheRainHarvester
      @TheRainHarvester 5 років тому +4

      Also, there is an app for tones. Keeps me from passing out on long debug sessions! :-)

  • @dave-in-nj9393
    @dave-in-nj9393 5 років тому +4

    Excellent. it shows what additional information you can get when you have a scope.
    knowing what you are doing and going about it systematically should be part of our basic tool kit

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +1

      Debugging without a scope or a logic analyzer is hard, I think.

    • @TheRainHarvester
      @TheRainHarvester 5 років тому

      Sure beats potentiometer, and unplugging / plugging in capacitors to iterate to a solution !

  • @iceberg789
    @iceberg789 5 років тому +4

    thanks for debugging greatscott walkie talkie, i also suggested last week in his post that the input audio signal was clipping at the scope screen, but it's weird to see till date that little comment of mine did not even get a single like ! 🥺

    • @AndreasSpiess
      @AndreasSpiess  5 років тому

      He gets many comments, so maybe nobody saw it :-(

    • @iceberg789
      @iceberg789 5 років тому +1

      @@AndreasSpiess so it seems. anyways, if you build this for actual usage, may be you may want to consider a 2nd order lc low pass @5-6KHz, to see if any of those irritating sharp noise gets reduced or not.
      otherwise, cellphone companies already made voice calls free, so cellphones ftw.
      i wish you enjoy the actual build, thanks. :-)

    • @AndreasSpiess
      @AndreasSpiess  5 років тому

      I ride a Harley. So having communication is anyway not possible because of loud pipes ;-)

  • @hoggif
    @hoggif 5 років тому +1

    Great vid.
    I use a different rule set: 1. divide in two logical sections by educated guess or halving. Test in the middle if everything is ok. 2. If front part did not work, divide front in half and contunue with rule 1. If later part did not work, half later part and continue with rule 1. 3. if you make any changes due to testing, make sure to remove all of them before moving to next section. 4. Make sure you have objective measured results, avoid assuming too much based on measured data, separate assumed from the fact! 5. Simplify input if possible, like you used a signal generator in the start instead of voice, simpler input makes measuring simpler.

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +1

      Good set. For this project, I did not want to cut in the middle, as I explained.

  • @EnUsUserScreenname
    @EnUsUserScreenname 5 років тому +7

    The crossover nobody asked for but everyone wanted.

  • @brenta1905
    @brenta1905 5 років тому

    Excellent logical reduction in the approach to troubleshoot. Furthermore, cooperation in helping another great designer rather than condemning and trash talking is highly commendable. Cheers to you both and "magic-smoke" to the trolls!

  • @maycodes
    @maycodes 4 роки тому

    We are so lucky to have you guys.

  • @martinsauerteig4882
    @martinsauerteig4882 5 років тому +1

    Thank you for another great video and the lesson you have given to all makers and tinkerer. I suspect that you, as OM, heard immediately that there could only be two sources of error. Open Source is a great movement and I love the videos from GreatScott because he mostly does very well researched and competent videos.
    But at the end of the day it shows again that nothing can be replaced by background knowledge and a lot of experience.

    • @AndreasSpiess
      @AndreasSpiess  5 років тому

      I was not sure if the "Arduino part" worked or had issues. This is why I checked this part first. I am sure it was not easy to write the lib because the NRF transfers max 32 bytes at a time. And I assume it needed some buffering (I did not look into the details)

  • @wreckless_-jl6uu
    @wreckless_-jl6uu 5 років тому

    I would’ve thought adding a cap or resistor somewhere would’ve solved it, but with out a scope no one would’ve known.. good job man!!!

    • @zerog2000
      @zerog2000 5 років тому

      Illustrates the point that oscilloscope, even an inexpensive one, is invaluable troubleshooting tool for anyone messing with this stuff

    • @AndreasSpiess
      @AndreasSpiess  5 років тому

      You are right. As I pointed out in my video about important tools: An oscilloscope and a cheap logic analyzer are indispensable.

  • @Palmit_
    @Palmit_ 4 роки тому

    The mini-hand to help describe. Genius.

    • @AndreasSpiess
      @AndreasSpiess  4 роки тому +1

      Welcome aboard the channel!

    • @Palmit_
      @Palmit_ 4 роки тому

      @@AndreasSpiess my pleasure! :) and thank you.

  • @Beeblzaphod
    @Beeblzaphod 5 років тому

    Dear Andreas, thanks for this video. This is a pure pleasure watching the engineer's approach to solve technical problem. Excellent job, you made my day :-)

  • @centexrails
    @centexrails 5 років тому +2

    Congrats on an excellent job and the step by step trip through a debugging operation.

  • @agentpx
    @agentpx 5 років тому +2

    I love GreatSCott and Andres Spiess, love both of your work :D

  • @sonovoxx
    @sonovoxx 5 років тому +15

    8:55 Sine wave now works. Just got to troubleshoot my hearing now... 🤯

  • @skewedmaker
    @skewedmaker 5 років тому +2

    Thanks for this video, very helpful to see debugging circuits in practice.

  • @shubhamnayak9369
    @shubhamnayak9369 2 роки тому

    It was very fun video to watch. This debugging videos along with the explanation is very interesting. Keep on making such videos.

  • @kenseastrand7428
    @kenseastrand7428 5 років тому

    Hey great job! to both you guys, I enjoy, and learn a lot from people like you and Great Scott, Dave Jones, Ave and others, it is good to see people interact like this, with out being snobs.

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +1

      Thank you! Concerning being polite: In this respect, my idol is Roger Federer.

  • @colinjohnson5515
    @colinjohnson5515 5 років тому +6

    Andreas Spiess and Great Scott! Biker/Maker road trip sounds like the best thing ever... I hope this happens

  • @bobvincent5921
    @bobvincent5921 5 років тому

    Thanks so much for this lesson so that if you divide and isolate different functions and test them individually you will arrive at a total solution.

  • @mvadu
    @mvadu 5 років тому

    Next on Great Scott.. "Walkie Talkie mkII" which works like a charm!! The fact that you showed he can even gets to keep the same design and in turn same PCB he made is great!! All he had to change really is two resisters. Awesome!!

  • @ShakilAhmed-oc7mf
    @ShakilAhmed-oc7mf 4 роки тому

    its great!! not only walky talky but also effort. I really impressed.

  • @819jt
    @819jt 4 роки тому

    A helpful video about a helpful video? Faith in humanity restored

  • @Chris-ZL
    @Chris-ZL 5 років тому +13

    Well Done Andreas. It need more low pass filtering or a higher sample rate or both. Also Squelch (in firmware)

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +2

      You are right. But here I wanted to focus on debugging

    • @Chris-ZL
      @Chris-ZL 5 років тому +4

      @@AndreasSpiess Absolutely. Excellent Debug video, I'm not saying you should do it :-)
      but what it really needs is a better design from the start using maybe ESP32s for their DACs and radios.

  • @dtesta
    @dtesta 5 років тому

    We now know who the king of electronics is :) I salute you Herr Spiess!

  • @DougHanchard
    @DougHanchard 5 років тому +1

    Thoroughly enjoyed this episode.

  • @marcedi2029
    @marcedi2029 5 років тому

    Excellent! I like this kind of teamwork of youtubers. Keep on both of you.

    • @AndreasSpiess
      @AndreasSpiess  5 років тому

      Actually, it was no real teamwork. I never met GreatScott :-(

  • @RobertShippey
    @RobertShippey 5 років тому

    Great video demonstrating how to debug ☺️ A vital skill for so many things!

  • @tonyweil2473
    @tonyweil2473 5 років тому

    Please make more debugging AND behind the scenes videos like "#111 Labrep: How I work behind the scenes" in addition to the regular videos. Here is why. The regular, relatively short and high production value videos have just enough information for a moderately skilled person to quickly understand the technology and successfully complete the project. This is fantastic.
    Yes, the behind the scenes video was long and somewhat tedious, but I learned so much from watching you work through the problem including your choice and usage of test equipment. The videos show that there is not magic behind how easily you seem complete projects in the regular videos. You show how to carefully analyze options, make hypothesis and then try to prove or disprove them, sometimes end up down blind alleys, but you keep persevering. These are essential skills for advancement.
    The debugging video inspired me to purchase a waveform generator and follow along step by step. This helped me learn the value and usage of the waveform generator. The "#111 Labrep: How I work behind the scenes" showed me the value and usage of a Logic Analyzer that I did not fully understand. I would have used my oscilloscope and rudimentary protocol decoder, but now I will borrow my friends Logic Analyzer and learn more about it. What model do you own and what would you suggest for a hobbyist?

    • @AndreasSpiess
      @AndreasSpiess  5 років тому

      Thank you for your feedback, it is valuable. It depends a little on my mood how the video is in the end. Short or long ;-)
      Concerning logic analyzers: They are all more or less the same. You get them in two classes: Cheaper and a little more expensive. Both have the same functionality, just more pins, and more speed.

  • @moclan582
    @moclan582 5 років тому +1

    I love how you both can speak German and correct each other speaking English.
    (I'm also German btw)

    • @AndreasSpiess
      @AndreasSpiess  5 років тому

      I did not hear any correction. Just debugging of a circuit. In the language of electronics

    • @moclan582
      @moclan582 5 років тому

      @@AndreasSpiess I just love the fact that both of you are actually native Germans and do Videos in english

    • @AndreasSpiess
      @AndreasSpiess  5 років тому

      German for me is a foreign language (that is why I understand it, but not speak it properly, only with a heavy accent) ;-)
      If we would do our videos in German we would not have many viewers.

  • @athanasiosstefanopoulos5211
    @athanasiosstefanopoulos5211 5 років тому

    Excellent video and collaborative task with another great maker! You have an awesome engineering mind Andreas. Thank you for sharing such a great content with the makers community. :)

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +1

      You are welcome! This is just a normal engineer's behavior ;-)

  • @rupertprice5508
    @rupertprice5508 4 роки тому

    I really enjoyed both videos . thanks guys .

  • @erygion
    @erygion 5 років тому +2

    Great video Mr. Spiess. I need to watch that video. (troubleshooting rules) I know you guys live in different countries but a collaboration would break the internet. (at least for us electronic enthusiasts) If even a shared video to avoid traveling.

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +1

      Thank you! He is the big guy and he has to decide ;-)

    • @erygion
      @erygion 5 років тому

      @@AndreasSpiess I'll go bug him lol ;)

  • @santanumukherjee1548
    @santanumukherjee1548 5 років тому

    Thanks for your amazing explanation. You and great Scott are really good. I never ever heard this type of explanation except electro boom. Electro boom is also good but he discussed about physic and electrical. (Sorry for bad English)

    • @AndreasSpiess
      @AndreasSpiess  5 років тому

      Everybody has its specialty. And you as a viewer has the choice :-)

  • @GnuReligion
    @GnuReligion 5 років тому +3

    Great video! The selection of MPU for the project makes me cringe. I have experimented with digitizing and delivering audio with AVRs. While possible, the quality is poor. These chips are wonderful for a great many things, but slow, with only 8 bit ADC at high speeds, and lack hardware DACs / i2s. ESPs and STM32s are only a couple of dollars and have Arduino IDE support. I have a sly suspicion you recognized the problem with the LM358 at first glance, Andreas, due to experience ;) My go-to op-amp these days is a TL082 for its high slew rate, and behavior close to the rails when using a single voltage source.

    • @AndreasSpiess
      @AndreasSpiess  5 років тому

      First I suspected the problem in the software because I did not believe it was possible to use the NRF24L01 for that purpose ;-)

  • @johanso
    @johanso 5 років тому +27

    Headphone Users: Beware at 8:55

    • @carlimp
      @carlimp 5 років тому +5

      Too late

    • @rohitsen2046
      @rohitsen2046 5 років тому

      @@carlimp 🤣🤣😅😅

    • @Cheese_1337
      @Cheese_1337 5 років тому

      Thank you.

    • @dummypg6129
      @dummypg6129 5 років тому

      Sometimes reading comments ahead is good.

  • @rGunti
    @rGunti 5 років тому +1

    The same rules also apply in Software Engineering. If something doesn't work, start making the system smaller and test I/O. Great video :D
    Und grüezi aus dem Ruhrpott von einem Auswanderer o/

    • @AndreasSpiess
      @AndreasSpiess  5 років тому

      You are right. My video about errors should have been quite universal. Grüezi aus der verregneten Schweiz!

  • @sidyajv
    @sidyajv 5 років тому

    Thank you for this video Andreas, there was plenty of information and knowledge gained through it.

  • @ahaveland
    @ahaveland 5 років тому

    Good illustration of Nyquist's theorem - need a sharp low pass filter cutting off around 2/5ths of the sample rate, and there's a lot of jitter. Even 10ns jitter on the sample timing adds a lot of noise. It could be that the code is not sampling using a precisely timed interrupt, or is running in a main loop with unnecessary interrupts still running.
    Also, it's really important to use a sample and hold circuit to fix the voltage as it is being sampled, though this may be already built into the Arduino's ADC. Integrating PWM with an RC circuit is pretty crude, but a proper DAC chip and LPF would also help to improve the sound quality.
    If there's enough processing power available, the sound could be encoded in real time as AAC or MP3, transmitted with a lower RF bandwidth instead of using uncompressed PCM then decoded by the receiver.

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +1

      If somebody wanted to build a real walkie-talkie this is not the recommended way. I liked the project because it uses our standard parts and still works. But adding a filter would for sure be a small, but useful addition.

  • @MD4564
    @MD4564 5 років тому

    Great cross over video guys, more needed :)

  • @leifclaesson2470
    @leifclaesson2470 5 років тому

    I learned a really nice detail from this video just in passing, it was never explained or even mentioned. Notice how at 9:14 it shows the NRF24L01 with antenna wires soldered on? I never knew that was a thing! I tried the same on an ESP8266 module and literally improved signal strength by 10dB. This solves the signal strength issue I've been having in some places. Thanks for another great video!

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +1

      These two NRF24L01 were in my drawer from old experiments...

  • @domen6005
    @domen6005 5 років тому +1

    "Because of this shitty little loudspeaker"
    hahahah made my day!
    I have never heard you use this word before soi it's very comical.

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +1

      It is as it is ;-). But it was also cheap...

  • @XerotoLabs
    @XerotoLabs 5 років тому

    great stuff . I also love the distorted voice on teh radio , has that old equipment sound .

    • @AndreasSpiess
      @AndreasSpiess  5 років тому

      Many of the young viewers complained about this sound. Times change...

  • @kleinerfighter-ka6677
    @kleinerfighter-ka6677 5 років тому

    Pretty well explained and this is a really nice example why an audio design fixing guy needs an Oszi :)

    • @AndreasSpiess
      @AndreasSpiess  5 років тому

      You are right. An oscilloscope is always handy. I use it a lot...

  • @typxxilps
    @typxxilps 5 років тому

    Great work and hands on explanation - every sunday ... Thanks

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +1

      You are welcome. I try to be precise like a Swiss watch ;-)

  • @daveys
    @daveys 4 роки тому

    This is a superb video and walkthrough, many thanks! BTW, love the little pointy finger thing. You got a new subscriber :-)

  • @BensWorkshop
    @BensWorkshop 5 років тому

    Interesting that adjusting the gain at the start fixed so many issues though I suspect a low pass filter on the output would help make the sound quality a little easier on the ear.

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +1

      A filter definitively would help!

    • @BensWorkshop
      @BensWorkshop 5 років тому

      @@AndreasSpiess I would be very interested to see what an add on low pass filter would do.

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +1

      Why not try it yourself. For a video, this would probably not be very interesting :-(

    • @BensWorkshop
      @BensWorkshop 5 років тому

      @@AndreasSpiess My workshop is currently being built... and isn't set up for electronics yet.

  • @DocMicha
    @DocMicha 5 років тому

    Very good. A nice tutorial for younger engineers to work more systematically. I know this too good, because I was once boss of 45 engineers.

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +1

      That was my intention. I thought this is a good example to show it in practical use

    • @DocMicha
      @DocMicha 5 років тому

      @@AndreasSpiess Yes, pratice is the best way to learn the theory!

  • @BillySugger1965
    @BillySugger1965 5 років тому

    Excellent debugging process. Well done!

  • @svenpetersen1965
    @svenpetersen1965 5 років тому +2

    Sehr cool. Gut gemacht.

  • @samreciter
    @samreciter 5 років тому +1

    Cool - love both of your channels!!

  • @jontech9978
    @jontech9978 5 років тому

    That was awesome. Your knowledge is always helpful

  • @mr.b.1589
    @mr.b.1589 5 років тому +7

    [funmode on]Baaam in you face GreatScott - this is maker-bashing, I hope you have an answer on this video.[funmode off] - Just kidding. I really like the way how normal people interact with and help each other. AND everyone learned something. Thank you!

  • @dantosrock43
    @dantosrock43 4 роки тому

    wow..love it.. love u all greatscoot and adreas spiess

  • @raagamparmar179
    @raagamparmar179 4 роки тому

    Appreciate, you responded and liked to almost ALL comments! Subbed! :-)

  • @vlad4281
    @vlad4281 5 років тому

    Hi Andreas,
    Greetings from Australia,
    I recently came across your channel and absolutely love your approach and clarity of explanation .
    Thank you for kindly sharing your knowledge and systematic approach - well done :-)
    P.s. If you ever find yourself looking for new project ideas I would love to see something on diy night vision and the technology
    Behind it.
    Have a wonderful day !!

    • @AndreasSpiess
      @AndreasSpiess  5 років тому

      I did something on IR lately. Bur for the moment I have no plans for night vision. But you never know. It is an interesting topic.

  • @pranjalbhagat667
    @pranjalbhagat667 5 років тому +5

    Great job with great Scott!!!!

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +2

      Thank you. But he does not know anything of it ;-)

    • @McTroyd
      @McTroyd 5 років тому +3

      @@AndreasSpiess ...yet. I'm sure the overlap in viewership will circle it back to him eventually.

  • @theovannieuwenhuizen5756
    @theovannieuwenhuizen5756 5 років тому +2

    You nailed it Andreas!
    Kind of you to fix Scott's design flaws.

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +1

      I am happy it works now :-)

    • @theovannieuwenhuizen5756
      @theovannieuwenhuizen5756 5 років тому +1

      @@AndreasSpiess I really appreciate the way you took on the challenge. Very respectful towards Scott, and educational to many viewers like me.
      Still didn't take the leap to ESP 32, to me it seems much more complex than the ATmega 328. Maybe someday....

    • @oscargr_
      @oscargr_ 5 років тому

      @@theovannieuwenhuizen5756 If you use the Arduino IDE, it really isn't that much of a leap.
      You should definitely try it. The ESP's are such fun to work with. Faster, more code space. And think about all the things you can do with the build in WiFi.
      ESP 8266 has tons of libraries in Arduino.

  • @AndrewJones-tj6et
    @AndrewJones-tj6et 5 років тому

    Nicely done to both you and Great Scott. Now to add VOX to only transmit when talking as we do not like to hog the airwaves and make it work in both directions so a conversation is possible.

    • @AndreasSpiess
      @AndreasSpiess  5 років тому

      It has a Push to Talk button. VOX on my Harley would always be on ;-)

  • @salamelvisual6270
    @salamelvisual6270 5 років тому +1

    just found your chanel, realy great explanation, now i want to make more stuff :)

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +1

      Welcome aboard the channel. I hope you will find "food for thought" or for projects.

  • @santopino2546
    @santopino2546 5 років тому

    Great video, I was interested to find out the problem, but I'm just to lazy and don't have much time, but I enjoy your work going through the research.

  • @TheDefpom
    @TheDefpom 5 років тому

    I suggest adding a low pass filter to cut off the digital noise high frequencies, to improve the audio quality, you could cut off above 4KHz pretty safely.

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +2

      You are right. I did not want to change a lot. And as a HAM operator I am used to some sort of noise ;-)

  • @workethicrecords5901
    @workethicrecords5901 5 років тому

    2 questions:
    -When is it most appropriate to use the ISP or Jtag Debugger on your micro controller? Do you normally do that after all other options for electronic failures have been evaluated?
    -would throwing a lowpass RC filter on the end of your output get rid of the high pitched noise in the signal? Or maybe a bandpass with a wide high band?

    • @AndreasSpiess
      @AndreasSpiess  5 років тому

      Maybe you watch my video about debugging and then decide if you need it or not.

  • @Pablososki14
    @Pablososki14 4 роки тому

    I found it really odd when I saw that he connected the PWM output directly to the speaker without having the signal go through a RC Low pass filter. Nice Job!

  • @ericoudammerveld424
    @ericoudammerveld424 5 років тому

    Awesome tutorial, Andreas!
    Thank you for this.

  • @uwepolifka4583
    @uwepolifka4583 4 роки тому

    You could use a steep bandpass filter from 300Hz - 2,7 KHz to reduce some of the noise (anti aliasing) before digitalising and a 2,7kHz lowpass before the audioamp.

    • @AndreasSpiess
      @AndreasSpiess  4 роки тому

      The goal was to fix it, not to improve it. You are right, a filter could help.

  • @bur1t0
    @bur1t0 5 років тому

    Hmm, I haven't quite levelled up enough for this channel, but I certainly did learn something. I'm thinking that this could have been tested with a simple multimeter, where the capped sinewave would have produced an average signal that was not at the specified middle voltage. I mean, yeah a scope would be easier, but I don't yet have scope money :-)

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +1

      A multimeter is a good start. The rest will come one day, I am convinced.

  • @avejst
    @avejst 5 років тому +1

    Informative as always
    Thanks for sharing👍😀

  • @emgab
    @emgab 4 роки тому

    very well done, informative, structured and well thought out - as always - being one your first 20 fans i#m impressed how you developed your channel - chapeau !
    one proposal though to improve the design of this interesting walkie-talkie would be a low pass on the opamp below 8KHz to get rid of the noise - maybe worth considering a thought - cheers, Mike

    • @AndreasSpiess
      @AndreasSpiess  4 роки тому

      I planed this video more as a "debugging" video, not one to enhance GreatScotts work. But you are right.
      And thank you for staying with the channel for such a long time!

  • @yomboprime
    @yomboprime 5 років тому

    I knew the bug was in the amplifier. As I commented on GreatScott's video, using the Vref pin on the Arduino with two resistors to tune the ADC input voltage amplitude eliminates the need for the LM.

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +2

      I do not think this would be sufficient. The LM358 amplifies the very small signal with a factor of 100

  • @klausbrinck2137
    @klausbrinck2137 5 років тому +2

    Marvel: Avengers is biggest crossover in history!!!
    Andreas Spiess: Hold my Swiss Knife...

  • @ats89117
    @ats89117 5 років тому +1

    The folding effect occurs every Fs/2 Hz. The aliased bands repeat every Fs Hz because it is Fs/2 Hz up and Fs/2 Hz back down again...

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +2

      You are right. I thought that is what the picture shows?

    • @NiHaoMike64
      @NiHaoMike64 5 років тому +1

      Replacing the Arduino with a STM32 will give you a much better (faster) ADC and quite a bit of processing power to do DSP with.

  • @stubaby49
    @stubaby49 5 років тому

    A most informative and enjoyable video. Thanks.

  • @sirmiro2
    @sirmiro2 5 років тому

    Wow. That small thing changes so much.
    That shows I'll keep to ledlights. 😉

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +1

      Also there small things can change a lot ;-)

  • @jmaguilarr
    @jmaguilarr 4 роки тому

    You two are the best !!

  • @darksam1212
    @darksam1212 5 років тому

    Sounds like a low pass filter set at the highest freq allowed by voice between the arduin and amp or amp and speaker may help the quality a little

  • @eriklaken1025
    @eriklaken1025 5 років тому

    Wauw, nice done... Fun for the winter-time,... *** Yes We Can *** In Holland (Europe) the grid is our battery, we put SolarEnergy on it and take it back when it is winter or no Sun. Our house does only have A++ electric machines and we are very little use them.... Yes it can and our energy supplier pay,s us money back, for the energy we not use in a year. Abouth 1000$

  • @matheuscardoso1
    @matheuscardoso1 5 років тому

    AMAZING!!! SO GLAD U POSTED IT

  • @lollandster
    @lollandster 5 років тому +5

    You might want to point out that the Great Scott Gadget that makes HackRF is not the same as the UA-camr GreatScotts.

    • @AndreasSpiess
      @AndreasSpiess  5 років тому +1

      You are right. I think most of his viewers know that.

    • @linuxuser2858
      @linuxuser2858 5 років тому

      Everyone know that

  • @murrij
    @murrij 5 років тому

    This made my brain smile.

  • @brucenik9168
    @brucenik9168 4 роки тому

    Another option is to use Wifi AP and client mode (1100-1300 meters range between two ESP8266 NodeMCU) to stream over TCP/IP.

  • @CrankyCoder
    @CrankyCoder 5 років тому

    fantastic!!! Great troubleshooting video!

  • @LaserHeNe
    @LaserHeNe 5 років тому +1

    I have already built that walkie talkie and seems to be work😀

    • @AndreasSpiess
      @AndreasSpiess  5 років тому

      Congratulations!

    • @jadobdatta5028
      @jadobdatta5028 4 роки тому

      Can you give the name of the components you used and the schematic? Please🙁

    • @AndreasSpiess
      @AndreasSpiess  4 роки тому

      I used the same as greatscott

    • @jadobdatta5028
      @jadobdatta5028 4 роки тому

      But which one? First or the last one?

    • @jadobdatta5028
      @jadobdatta5028 4 роки тому

      With arduino nano or atmega328p?