Using the ESP32 DAC - Voltages, Waveforms & Sounds

Поділитися
Вставка
  • Опубліковано 2 січ 2025

КОМЕНТАРІ • 107

  • @Dronebotworkshop
    @Dronebotworkshop  11 місяців тому +4

    Hi everyone - It's come to my attention that there has been someone masquerading as myself, responding to some comments here with a link to a Telegram chat to win a prize from me. THIS IS A SCAM, I am not holding a contest, nor do I have a Telegram account. PLEASE DO NOT RESPOND TO THESE MESSAGES!!
    It's happening on a lot of my videos, I'm taking steps to remove them manually, but as I have 162 videos, it will take some time. If you do run across a suspicious comment, I would appreciate you letting me know at info@dronebotworkshop.com.
    Thanks!
    Bill (The real one!)

    • @SpeccyMan
      @SpeccyMan 5 місяців тому

      That would be "someone masquerading as me".

    • @kirkmessinger3464
      @kirkmessinger3464 4 місяці тому

      @@SpeccyMan Thank you! I hate appearing as a pedant, especially as it relates to such a talented and intelligent man as Bill, so you saved me from revealing my true self!
      Don't take us seriously, Bill!

  • @collinb5524
    @collinb5524 2 роки тому +40

    Its always a good day when Bill releases a new video. Hey Bill! Hope you're doing well sir

  • @sobertillnoon
    @sobertillnoon 2 роки тому +2

    The miscommunication line was the funniest thing I had heard all day. Granted my day is less than 2 hours old.

    • @yasirrakhurrafat1142
      @yasirrakhurrafat1142 19 днів тому

      You have a condition that keeps you from staying awake for long?

  • @TrendingDeals24by7
    @TrendingDeals24by7 4 дні тому +1

    00:05 - ESP32 DAC allows for creating DC voltages, waveforms, and sounds
    02:33 - ESP32 DAC supports three different methods of analog output
    07:24 - Experimenting with DAC voltages on ESP32
    09:31 - ESP32 DAC output voltages are consistent but may not be precise.
    13:46 - Generating complex waveforms using the table method
    15:50 - Using the Sadac ESP32 library makes it easier to output waveforms like cosine waves.
    19:59 - Creating oscilloscope art with ESP32 DAC
    21:53 - Connecting probes and making art with ESP32
    25:46 - Connecting sensors and touch switches to create music using ESP32 DAC
    27:50 - Setting up Musical Fruit code using ESP32 DAC
    31:38 - You can make music with this fruit
    33:27 - Playing Mozart using ESP32 DAC

  • @gepetotube
    @gepetotube 2 роки тому +6

    I'm still amazed by the quality of these videos. As usual, excellent work.

  • @stefano.a
    @stefano.a 2 роки тому +4

    Excellent video. A little note: the speaker (before the use of potentiometer) is always in saturaton, so the emitted sound is that of a sinusoid clipped

  • @sreekumarss
    @sreekumarss Рік тому

    @32:07 Informative and joyful at the same time.. keep going Bill.. your videos are amazingly good.. 👏👍😍

  • @gpTeacher
    @gpTeacher 2 роки тому +10

    Terrific tutorial! Thanks for the insights to the DAC! Best wishes!

  • @rjinnh3933
    @rjinnh3933 2 роки тому +1

    As always, an excellent presentation of hi-value info.
    The Applesauce comment had me chuckling for several seconds.

  • @colormaker5070
    @colormaker5070 Рік тому

    I found your channel and from the few videos I have viewed on ESP32 I am impressed with the easy to follow. I manufacture wireless radio controlled LED fixtures. My goto processor is the PIC and its a great platform but I want to share our technology with the DIY community and the ESP32 looks like a better fit for most DIY. my products use radios, sd card, flash, ram and OLED display all of which I will have to learn to use with the ESP32. Thank you

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

    We’re on the same wavelength today! I’m welcome in your workshop!
    Just about to fire mine up and play along at home.

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

    I hope you had a great "holiday season" and that the new year is being good to you so far. Stay happy and healthy!
    Look forward to seeing more this year.

  • @sandrocavali9810
    @sandrocavali9810 10 місяців тому +1

    amazing channel, here working on music and uCs

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

    That oscilloscope art makes me creazy. Looking at it, it sometimes turns left and a blink later, it turns right. It makes me crazy!!! :)

  • @Tony770jr
    @Tony770jr 2 роки тому +1

    Great esp32 dac video!

  • @kylereed3577
    @kylereed3577 2 роки тому +1

    Thanks Bill, another great video

  • @catchulater7483
    @catchulater7483 2 роки тому +1

    Hope you had a good holiday Bill. Thanks for the new video- very useful.

  • @Aadi4533vk
    @Aadi4533vk 2 роки тому +1

    Superb video 😍

  • @anurasenarathna1703
    @anurasenarathna1703 2 роки тому +2

    As always, an excellent tutorial video. Thank you very much.

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

    What a lucky day, I have been waiting for a new vide,plus I'm interested in the esp32 more than anything these days and I have been looking for a use of it's DAC , so this is by definition the perfect video for me

  • @리트고DIY
    @리트고DIY Рік тому +1

    Good ideas 💡

  • @t1d100
    @t1d100 2 роки тому +2

    Good information = thank you.

  • @TheUnofficialMaker
    @TheUnofficialMaker Рік тому

    very good, love the fruit piano!

  • @warrenking1815
    @warrenking1815 Рік тому

    Very good video , as usual.

  • @paulblock1367
    @paulblock1367 Рік тому +1

    Just one thing, the art forms or patterns on the oscilloscope are called Lisajou Patterns. Look them up online. They were also used for teletype mark/space alignment.

    • @TheOleHermit
      @TheOleHermit Місяць тому

      Yes, but when I was a Laserium laserist, during the '70-90's we called the more complex Lissajous images 'cycloids'.
      Have to disagree with Bill's "stretching of the term, art comment." We performed a cycloid waltz of The Blue Danube, with nothing more than a phase shifting circle and figure 8. Audiences loved it for over a decade, inside Planetarium domes throughout the world..

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

    Today I got "shocked" by the electricity bill - but the same day another Bill video! Thanks!

  • @electronics.unmessed
    @electronics.unmessed 2 роки тому

    Thanks you very much for another great tutorial! Happy 2023 to you and your followers!

  • @coricorgi2801
    @coricorgi2801 Рік тому

    At 9:13 into the video, you mention not using an external reference. I was hoping the esp32 would allow that but the datasheet says the reference can only be the power supply voltage. That is regrettable. I was hoping you were right since I need an 8 volt reference. Nice video nonetheless. You put a lot effort into it. It is appreciated!

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

    Excellent video on the not well exploited DAC feature, thanks!

  • @benbil100
    @benbil100 Рік тому

    Great, really very helpful videos, thank's

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

    thanks for putting all the hard work into your presentation.

  • @1_HighDuke
    @1_HighDuke 2 роки тому

    Hi Bill, hope you had an excellent holiday season! Thank you for this in depth look at the ESP32 DACs

  • @jaroslawpiotrowski210
    @jaroslawpiotrowski210 2 роки тому +1

    Nice project!

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

    Great video about the esp32 thanks for the information

  • @tommieedwardberry
    @tommieedwardberry Рік тому

    Very well done

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

    Very good one. Informative, educational and entertaining.

  • @Yuēhàn24
    @Yuēhàn24 Рік тому

    Great video. Can you do a video of how to control the DAC voltage output with a rotary encoder.

  • @tubeDude48
    @tubeDude48 2 роки тому +6

    Bill, how about doing a video on the various ESP32's, since it's so confusing on which one to purchase!

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

      Do you mean the chips now that there's different flavours, or do you mean the different types of development boards?

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

      @@tin2001 - Which chip does what?

  • @Javad.Abasalizadeh
    @Javad.Abasalizadeh 2 роки тому +1

    Sir, I have been waiting for you ❤

  • @brianchen1163
    @brianchen1163 Рік тому

    Fantastic video! Can you do one demonstrating TDM?

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

    New vid! I have some of those boards but have not delved into them yet.

  • @oldarchillies163
    @oldarchillies163 2 роки тому +1

    Good fun, thanks! Now I love fruity music. :)

  • @OcenaSoft
    @OcenaSoft 2 роки тому +3

    Wow, this is a great video Bill, thanks for the time and energy you put into teaching. The ESP32 is an amazing little board and I love it. Q) have you ever done any work with the maple board? I purchased 20 of them some years back and not much luck with them and my Linux home! Thanks again ❤

  • @vincentsteinmetz3726
    @vincentsteinmetz3726 Рік тому

    very nice présentation ! very well done and cover every aspect.

  • @TheOleHermit
    @TheOleHermit Місяць тому

    Have to respectfully disagree with Bill's "stretching of the term, 'art'" comment. Laserium laserists (official job title) during the '1972-80s performed a cycloid waltz of The Blue Danube, with nothing more than 4 phase shifting circles and figure 8s. Laserium audiences inside Planetarium domes throughout the world loved those shows for over 4 decades. Many of us still do.
    I've just finished developing a PCB for a MIDI/DAW controlled Teensy Laser Synth, with a 6in ADC/8 out DAC I2 CODEC + op amps to relive the pleasure of playing abstract 'visual music' in my living room. It has grown from your basic lissajous images to 30 waveform oscillators, 8 amplitude modulators, 3 RGB color/intensity modulators, & 2 * 3D vector graphics generators, with XYZ axes rotations.

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

    Due to a miscommunication the McIntosh were cut from the video LOL!
    I have a lot of evil musician ideas now! Another great video!!

  • @venkatyalamati3285
    @venkatyalamati3285 Рік тому

    Great work as always.... I wish you need to make videos without having even a little amount of tension in your face... Be happy and confident about yourself... Don't try to be 100% perfect... That makes you to be more tensed 😊

  • @tin2001
    @tin2001 2 роки тому +3

    The DAC on the ESP32 might not be high end audio quality, but I used it just over a year ago to create a little device as a joke for my new electric car....
    I stuck the ESP32 inside an old set of USB powered (but analog input) computer speakers, and had it play the old clip from The Simpsons where they saw the electric cars or tomorrow... "Hello. I'm an electric car. I can't go very fast, or very far. And if you drive me, people will think you're gayyyy".
    Shoved the speakers into the glovebox, ran the USB power cable out to a standard USB phone charger cigarette lighter socket adaptor, and it would play the clip when you start the car up....
    Several hours of fiddling with electronics and libraries and stuff for a 20 second joke for when my brother visited for Christmas 🤣

  • @bertbrecht7540
    @bertbrecht7540 Рік тому

    Excellent tutorial on what the ESP32 DAC can do, however, I have been looking everywhere for a way to build a high quality music player without I2S (your I2S video was awesome) considering the ESP32 is the only hobbyist microcontroller with I2S support. They have been building great sounding CD players, for example, since the early 80s and since modern microcontrollers are so much better than what they had available then, there must be a way to do this.

    • @mc.the_machine
      @mc.the_machine Рік тому +1

      The RP2040 also has I2S support with PIO, RE: hobbyist microcontrollers. In fact, you could even do a bunch of channels on one if you wanted to.

  • @paulpomme2502
    @paulpomme2502 5 місяців тому

    Thank you very much for this excellent tutorial. The format and execution are outstanding. I'll watch the other videos and visit your website. I've just bought my first oscilloscope and started having fun with the ESP32's DAC. In your opinion, what is the achievable frequency for a sine wave with the ESP ? I haven't tried your scripts yet, but I can't seem to get a signal above 1 kHz. Thanks in advance. ;)

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

    If you ever want to see a mechanical version of a DAC just find a video on how a IBM Selectric Typewriter works, it's the DAC that rotate and tilt's the ball with the letters on it.

  • @jlucasound
    @jlucasound 2 роки тому +1

    I'll never see my Candy Apple Red Gibson Guitar the same! I'll have to be careful when I am plucking the strings with my teeth! 🤣 🍏🎸 At the end I had my lighter lit and in the air and I was swaying back and forth! Bravo! 🍎🟠 🤘😂

  • @ปาริชาติแซ่ย่าง-ค4ฝ

    Like this from Kenya

  • @jeremyjedynak
    @jeremyjedynak Рік тому

    Great video!
    You mentioned that a DAC can be used as a digital potentiometer. Where can one find more details on how to do that?

  • @esmink32
    @esmink32 Рік тому

    Again an amazing video, I will probably try to make this fruity keyboard myself in the future 😀

  • @geethabharathi2019
    @geethabharathi2019 Рік тому

    hey bill very nice .... god bless u..

  • @shakuntalaharnale8110
    @shakuntalaharnale8110 7 місяців тому

    At 12:13 What is the logic behind the int value of 128 + 64*sin(deg*(pi/180)). I mean what is the significance of 128 and 64? Is 128 the base value of sine wave and 128+64 the max value. So 64 is the amplitude. If that is the case can we not start at 0?

  • @buddhimaamarasinghe9997
    @buddhimaamarasinghe9997 Рік тому

    Excellent video sir.Thanks you very much for another great tutorial.If possible, make a video on how to make an MPPT solar charger using ESP32. Thanks.

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

    Commenting for the algorithm, cheers!

  • @dot_dot_pwn2650
    @dot_dot_pwn2650 Рік тому

    could you use a microphone as an adc input ,record the outputs from the microphone, and replay it thru the speakers via dac?

  • @mhavock
    @mhavock Рік тому +2

    Orange you glad you watched this video? He took a byte out of his project! That was a real Apple computer! 🤣🤣🤣

  • @gamingdevils216
    @gamingdevils216 Рік тому

    Sir please release video on remote sensing using aurduino....means how we can drive motor through remote.......Your videos are very informative sir. LOVE FROM INDIA

  • @taham6757
    @taham6757 2 роки тому +1

    so is the fruit project can be done with the development board version of the esp 32 cause i m confused

  • @thang19o9
    @thang19o9 Рік тому

    I have a question. Does the Musical Fruits also need an oscilloscope? Thanks!

  • @summerfun6114
    @summerfun6114 Рік тому

    good job! my compiling for ESP32 S3 got ERROR: undefined reference to `dacWrite' , how can fix that? thanks.

  • @tpobrienjr
    @tpobrienjr 2 роки тому +1

    Enjoyed the applesauce

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

    we missed you Bill

  • @NLGeebee
    @NLGeebee 2 роки тому +1

    Ironically, no Adafruit libraries were used in the DroneBot Workshop Orchestra project ;)

  • @omnianti0
    @omnianti0 Рік тому

    is possible the dac was destroyed or something interfere because i canot more get variable output using dacwrite(17,150);
    strangely it randomly vary from 3.4v to 4v instead of 3.3v
    i tryed to get a 1.450V for adc potentiometer as recommanded for best accuracy

  • @gunaseelamanikandanv2319
    @gunaseelamanikandanv2319 Рік тому

    HI SIR WE NEED TO HAVE OUTPUT OF 2 DAC OUTPUT TO ACTIVATE 25 &26 PIN OF ESP32 TO PLAY THE TWO DIFF AUDIO SIGNALS PLEASE HELP ME IN THIS SEGANEL

  • @fnot804
    @fnot804 2 роки тому +1

    Funny, I was just thinking about using esp32 for vinyl player repairs.

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

    Interesting how when you play the sinusoidal waves through the speaker in the first experiments, it still sounds sawtoothy. Is that a limitation of the speaker, the amp, or the signal generated from the ESP32?

    • @TheOleHermit
      @TheOleHermit 2 роки тому +1

      Yes. Sounds to me as though it is clipping.

    • @michaels3003
      @michaels3003 2 місяці тому

      This was audio distortion (lots of it).

  • @Pippo.Langstrumpf
    @Pippo.Langstrumpf 2 роки тому +1

    Haven't heard from Music by Moose-Art before.

  • @lokergames7058
    @lokergames7058 Рік тому

    cool one question( Now) background music i hear so many in youtube. i notice different. with your voice. NOw now now XD software? where come from.

    • @lokergames7058
      @lokergames7058 Рік тому

      Gpo pin how work over 20 to 30 . which object can swap in apple? bio cell and electron mate sensor or fiber can touch?

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

    Where's DB1? We miss her :(

  • @dvhx
    @dvhx Рік тому

    DAC doesn't work when wifi is on (at least on my esp32-cam)

  • @deveshshevde-cp8xq
    @deveshshevde-cp8xq 2 роки тому

    SIR PLS MAKE A VIDEO ON AS5600 MAGNETIC ENCODER WITHOUT USING THE LIBRARY

  • @AJB2K3
    @AJB2K3 10 місяців тому

    Musical fruit and no baked beans!

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

    13:00 at 86hz it sounds like a trimmer 🤣. If anyone wants to simulate trimmer sound just play a sine wave at 86 hz.

  • @chitlitlah
    @chitlitlah 2 роки тому +1

    I stopped playing piano because I always get hungry after a session. Now I know I just need to trade in the Yamaha for a Granny Smith.

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

    Probably could have used beans for the "Musical Fruit" segment 🤭

    • @SpeccyMan
      @SpeccyMan 5 місяців тому

      Except beans are legumes, not fruit!

  • @JosSSMr
    @JosSSMr 2 роки тому +1

    …and eat at last, hahaha

  • @mikejones-vd3fg
    @mikejones-vd3fg Рік тому

    mmm edible instrument

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

    Third 🥉

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

    First 😀

  • @kellydon2294
    @kellydon2294 Рік тому

    I see you removed part of my comment so I removed the entire thing and unsubscribed.... all the info I need is on the website I linked to so I won't be needing the help of your haphazard videos after all.

  • @d.athegreat3947
    @d.athegreat3947 2 роки тому

    Second

  • @1st_ProCactus
    @1st_ProCactus 2 роки тому

    Omg, still using that embarrassing music

  • @chrisw1462
    @chrisw1462 2 роки тому +2

    Synchronous. Sin-kron-us. There is no 'i' or 'i' sound in there.