Adding Audio Output To The Raspberry Pi Zero - Tinkernut Workbench

Sdílet
Vložit
  • čas přidán 24. 07. 2024
  • The Raspberry Pi Zero W is an amazing miniature computer piece of technology. I want to turn it into an epic portable Spotify radio that displays visuals such as Album Art. So in this new series called "Tinkernut Workbench", I show you step by step what it takes to build a product from the ground up.
    __________________________
    =#=#=#= Important Links =#=#=#=
    FOLLOW THIS PROJECT - tinkernut.com/dvYN6
    Pi Zero W - amzn.to/2p4hMHn
    Adafruit PWM Audio Out - learn.adafruit.com/adding-bas...
    _____________________________
    =#=#=#= Become a Patron =#=#=#=
    / tinkernut
    _____________________________
    =#=#=#= Submit your ideas =#=#=#=
    www.tinkernut.com/ideas
    _____________________________
    =#=#=#= Support the show =#=#=#=
    www.tinkernut.com/donate
    _____________________________
    =#=#=#= Follow =#=#=#=
    redd.it/5o3tp8
    / tinkernut
    / tinkernut
  • Věda a technologie

Komentáře • 189

  • @raspberrypi
    @raspberrypi Před 7 lety +132

    MORE MORE MORE!

    • @matieke6
      @matieke6 Před 7 lety +10

      Didn't expect you here :D

    • @ibrahimmalcolm5406
      @ibrahimmalcolm5406 Před 2 lety

      sorry to be off topic but does anyone know of a way to get back into an Instagram account??
      I somehow forgot my password. I would love any tricks you can give me.

    • @mariojagger7975
      @mariojagger7975 Před 2 lety

      @Ibrahim Malcolm instablaster ;)

    • @ibrahimmalcolm5406
      @ibrahimmalcolm5406 Před 2 lety

      @Mario Jagger I really appreciate your reply. I got to the site on google and Im trying it out now.
      I see it takes quite some time so I will get back to you later when my account password hopefully is recovered.

    • @ibrahimmalcolm5406
      @ibrahimmalcolm5406 Před 2 lety

      @Mario Jagger It worked and I finally got access to my account again. I'm so happy:D
      Thanks so much you saved my ass !

  • @Exterminat0r123
    @Exterminat0r123 Před 7 lety +15

    Just want to say that I really liked the style and the layout of this video... Keep up the good work!

  • @Ed.E
    @Ed.E Před 7 lety +54

    I like the new style, it is easier to follow

  • @deadWu
    @deadWu Před 7 lety +1

    As a non native english speaker, it was really informative and easy to follow. Thanks for sharing!

  • @sortsvane
    @sortsvane Před 7 lety

    I am a long-time subscriber of yours. An I can tell you surely that this is THE BEST format of your videos. Much much better than all of your previous styles.
    (I love MR. Robot Too😁)
    GREAT WORK !

  • @tetrahed
    @tetrahed Před 7 lety +1

    Thank you, I've just added this to my retropie and sounds great, i used ceramic capacitors instead of polyester ones, that's all what they had a the local tech shop. Next thing is to build my picade

  • @RapiBurrito
    @RapiBurrito Před 7 lety +34

    It's a shame the workings of the circuit you made were not explained.. I remember long hours studying the concepts related to filters and all the math that comes with it. Guess math isn't interesting enough for popular videos =(. Ayways the TL;DR: he forced the raspberry pi to output the left and right audio signals through the GPIO pins as a PWM waveform, but you cannot use that to drive a speaker because of the high frequency content and the DC component so you need to use a low pass filter and a DC blocking capacitor for each channel to end up with a passable audio output, possible improvements could be: adding another pole to the filter or having another filtering stage, using larger blocking capacitance to improve low frequency response, adding transistors or op-amps to avoid drawing large currents directly from the GPIO pins and prevent any input loading and finally match the impedance of all stages to improve frequency response.

    • @someone2437
      @someone2437 Před 5 lety +8

      I'm not sure he completely understands the schematics because he did get the schematics from adafruit he didn't make them himself

  • @AsbjornOlling
    @AsbjornOlling Před 7 lety +4

    The Mr. Robot font works really well as a title card - not so well as labels and lists on-screen. It gets confusing to look at when there's a complex background, or multiple lines of text.
    Just a minor note - the project is super cool!

  • @rrni2343
    @rrni2343 Před 7 lety

    The new style is awesome!

  • @zaneyoumans2923
    @zaneyoumans2923 Před 7 lety +1

    Really liked this style!

  • @krzysztofczarnecki8238

    Big thanks for this, I didn't know that there already is a dt module for remapping pwm and I tried to get my own to work rather fruitlessly, then I have found this and it works. Still the audio is really lousy compared to pi 2 b, but it is at all.

  • @earlallgood1616
    @earlallgood1616 Před 5 lety +1

    i have a question. is it possible to just connect an audio amplifier to the correct pins on the pi and it work fine? or do you have to make the circuit?

  • @PimDoos
    @PimDoos Před 7 lety +1

    Normally I would complain about how you changed styles again, but hey I actually quite like this style!

  • @vatomais
    @vatomais Před 7 lety

    love the new style

  • @shubhamadtp
    @shubhamadtp Před 7 lety +1

    wow you just took a simple project and make it awesome
    i like your this
    can we use it for nano ai system
    mine does not work properly

  • @Efariasr
    @Efariasr Před 7 lety

    Awesome! thanks to share your knowledge...

  • @explodingcamera
    @explodingcamera Před 7 lety +4

    On Windows 10 you can also use bash on Ubuntu on Windows for ssh

  • @MOBAudioUSA
    @MOBAudioUSA Před 4 lety

    Hello, I would like to use a small screen to play movies loaded on the SD card and have the Zero output Bluetooth audio so it can be played with a Bluetooth speaker is this possible?

  • @Mebzy
    @Mebzy Před 7 lety +1

    Awesome video!

  • @NoferTadros
    @NoferTadros Před 7 lety

    Nice new style!

  • @AzVidsPro
    @AzVidsPro Před 7 lety

    good quality videos. Keep it up. I will buy a pi soon

  • @Grumpycat95
    @Grumpycat95 Před 7 lety +25

    Thinkernut is that kind of guy who's bored of breaking into pentagon's servers.

  • @raqbit
    @raqbit Před 7 lety +1

    Just so you know, you can place an empty file called 'ssh' on the /boot directory of the sd card, to automagically startup ssh! Same goes for wifi, you just have to put a 'wpa_supplicant.conf' file with credentials in the /boot directory. When the pi starts up it will copy the wpa_supplicant file to the right place, and the pi will detect the ssh file and enable ssh. That boot directory, by the way, is accessible when you've flashed your sd card, as a partition in windows/macos/linux! This way you can easily enable those things without connecting a monitor and keyboard to your pi zero. I'm currently getting a lot out of my pi zero w, without even having touched a dongle!
    (As for the keyboard layout, this is configurable via the raspi-config utility, over ssh.)

  • @TheOldBlackCrow
    @TheOldBlackCrow Před 4 lety

    This is great! Question though...
    How loud is it without the amplification? I just want to use it for some sound effects for the Picorder I'm building.
    Thanks!

  • @HundredsScope
    @HundredsScope Před 7 lety

    hey cant wait for more!!
    Could you show us how to make a usb hub? I just need a simple one for mouse and keyboard :)

  • @luise.ardila9200
    @luise.ardila9200 Před 5 lety

    Would it be possible to have more than one channel being instantiated and play different files in each of the channels ?

  • @richardsun2143
    @richardsun2143 Před 2 lety

    What is that audio output board you were showing sand where can I buy one

  • @SverdIndustries
    @SverdIndustries Před 7 lety +3

    Does it really have to be a polyester film capacitor though? I thought the capacitive value was the only thing that mattered, but I'm happy to be proven wrong!

  • @federicokrum
    @federicokrum Před rokem

    I need to add a super small 8 ohms, 0.25W speaker to my project. Do you know a simple way to implement this?
    Thanks

  • @RahulPandit-fm9bg
    @RahulPandit-fm9bg Před 3 lety +2

    sir I am not getting headphone option in audio option in ras pi zero only getting HDMI option please help me

  • @vettorazi
    @vettorazi Před 6 lety

    hey tinkernut! can you share the fritzing scheme? i wanna make a custom pcb for this

  • @morenop.141
    @morenop.141 Před 6 lety

    Very good... A question...
    On the Audio Jack is necessary connect the GND? Because I see only two wires... Audio is mono or stereo?
    Thanks a lot!
    Moreno (Italy)

  • @TheImgoodman
    @TheImgoodman Před 7 lety

    Thank you for this video

  • @MrDrake101010
    @MrDrake101010 Před 7 lety

    Can you revisit the iPod touch and convert the 30 pin charger into the Lightning charger?

  • @derekdowns6275
    @derekdowns6275 Před 2 lety

    Had you considered audio over Bluetooth or HDMI? Perhaps grabbing the audio from an HDMI to VGA adapter?

  • @silicongraphics
    @silicongraphics Před 7 lety

    when you said that the pi zero has no audio, did you mean no audio at all, or no analog audio? I always thought it just sent audio through HDMI

  • @sreeprakashneelakantan5051

    Good one, thanks

  • @chewbaccasaurusrex692
    @chewbaccasaurusrex692 Před 6 lety

    where did you buy the labeled resistors and caps at ?

  • @buttersquids
    @buttersquids Před 7 lety

    So is it possible to add an audio jack to an iphone 7?

  • @Chris12115
    @Chris12115 Před 7 lety

    You can also use bash in Windows 10 which includes ssh. Not saying it's better than putty but it's nice to have a fully working terminal. :)

  • @UranusProductions1
    @UranusProductions1 Před 7 lety

    Dont know if you already figured this out but you can install something called "Shairport" which turns the Pi a server for audio airplay. You can wirelessly stream music to it with iTunes, a Mac computer or iOS devices (with Spotify App). Not sure if it works on other devices.

    • @Tinkernut
      @Tinkernut  Před 7 lety

      That's a good tip! I'm wanting this to be a standalone player, though.

  • @rabbitdrink
    @rabbitdrink Před 7 lety +1

    But what happened to the cardboard? And those magical windows that made sounds when you opened and closed them?

  • @just1647
    @just1647 Před 6 lety +1

    What can i buy for audio

  • @paveltuz8403
    @paveltuz8403 Před 5 lety

    Are you hear some noising sounds when loading and during the games ? (use headphones)

  • @Xyolyp
    @Xyolyp Před 7 lety +4

    If you are using Windows 10 you could enable the Linux subsystem to SSH to the Pi

    • @PhocusJoe
      @PhocusJoe Před 3 lety

      You can or just install putty. Putty for windows will allow you to ssh to a linux system.

  • @powerguidissimo1
    @powerguidissimo1 Před 5 lety +1

    What is the voltage of the electrolytic capacitor? You only passed the capacitance.

  • @Sakiifyable
    @Sakiifyable Před 7 lety

    How does raspi-config know which pins to use? Is it hard-coded?

  • @AlesKrapez
    @AlesKrapez Před 5 lety

    Wonderful. but ...
    Each speaker has a plus and a minus. At the exit are just left and right plus? What happened to the minus?

  • @yorgle
    @yorgle Před 6 lety

    How much of a performance hit does using GPIO take on the CPU compared to using a USB Audio output device?

  • @klb161
    @klb161 Před 7 lety

    what keyboard is that with the trackpad?

  • @karthikgh5970
    @karthikgh5970 Před 4 lety

    Thankyou it worked

  • @brianv9242
    @brianv9242 Před 4 lety

    What kind of audio jack did you use?

  • @tomplatner
    @tomplatner Před 4 měsíci +1

    On a brand new raspberry pi zero 2 W , I had to use the following commands to get audio output... this only outputs audio on GPIO18 which the readme.txt file says is the only output valid on all models...
    dtparam=audio=on
    dtoverlay=audremap,enable_jack
    dtoverlay=pwm-2chan,pin=18,func=2

  • @musicmaker7889
    @musicmaker7889 Před 7 lety

    What did you study/major in? Did you study something like electrical engineering or is all your knowledge based on experience?

  • @harmonic5107
    @harmonic5107 Před 7 lety

    It would be cool to see a "smartphone" build. Use an old smartphone screen (plus driver) and make a case with a rechargeable battery. I don't know if it's possible, but it would be cool if it was.

  • @Whatsthegeek
    @Whatsthegeek Před 7 lety +1

    So, you're basicly making a DAC... Do you think there's any way of making it work with a 12bit i²c ADC ?

  • @zigafide
    @zigafide Před 7 lety +5

    Happy Easter tinkernut!

  • @Amirt1999
    @Amirt1999 Před 7 lety

    Hello.
    Can you make a video about how to make 'amazon alexa ' from raspberry pi zero , I really your need help .

  • @davidroberts5090
    @davidroberts5090 Před 5 lety

    I realise this video is old but the links to (and on) your website for this project are broken...

  • @supremeicecreme1658
    @supremeicecreme1658 Před 7 lety

    Oi what is the song you use in the backgrounds i want it. The videos of people re-creating it are rubbsh.

  • @gursimransinghk
    @gursimransinghk Před 7 lety

    is it possible to make it with esp8266 board?

  • @15KHz
    @15KHz Před 4 měsíci

    Superb content...I'm lucky that you use just 3 pins of the pin header to have audio. In the meanwhile I'm looking for which GPIO pins can I use to have the so called VGA666 output. In the case I nail configuring VGA666 then I'm in the dark (somehow) because *I know that for full fledged PCs with a Linux Distro* I just edit */etc/X11/xorg.conf* and fiddle with it to have 15Khz resolutions but with Raspberry Pi Zero might not be the case.
    What I don't know if the raspeberry Pi Zero has some sort of "video driver", for instance in linux distros there's "nvidia" (propietary driver) , "radeon" (i think this is opensource), "nouveau" (nvidia opensource driver). I don't know if I can modify the video output resolutions with the same stuff I touch in Linux Distros (xorg.conf I mean)
    I hope you can enlighten me on at least how to get the VGA666 pins with the correct GPIO pins and some advice for how to fiddle with custom resolutions (15 Khz I mean, like 384x224 for Capcom CPS1 games, 256x224 for *lots* of Arcade games and the SNES and so on.
    Hugs from Chile, South America . It's almost March 2024 here and summer soon's gonna be over (I hate winter since I always get a cold in that season).
    🤗

  • @tobiasbrohl5958
    @tobiasbrohl5958 Před 6 lety

    How to do that for mono sound?

  • @AshtonSnapp
    @AshtonSnapp Před 7 lety

    There is another SSH client available for Windows. It's called SSH Cryptonaut and it is from SSH Communications Security.

  • @subhamhati6770
    @subhamhati6770 Před 4 lety

    How to record audio using RPi zero w?

  • @manazibmahmooth_official

    Thank u

  • @jewb469
    @jewb469 Před 3 lety +1

    Could you tell me What is the voltage of the electrolytic capacitor? I really need to know

    • @shalow2
      @shalow2 Před 2 lety

      I googled this a bit and as far as I can tell, it seems to not be too important, it seems to mostly be a case of the upper voltage limit (where it releases the magic blue smoke)

  • @anuanand358
    @anuanand358 Před 7 lety

    please make a video on making a portable wireless speaker from scratch

  • @raghvendrasingh5610
    @raghvendrasingh5610 Před 5 lety

    You can make one for adding audio input

  • @mgstj9gh
    @mgstj9gh Před 7 lety

    By any chance, do u use /g/?

  • @BaileyBrownie
    @BaileyBrownie Před 7 lety +1

    nice

  • @npc_tom
    @npc_tom Před 7 lety

    Notification Squad coming right up!

  • @Veso266
    @Veso266 Před 7 lety

    nice background you have on rpi 0 can you share it?
    PS: can you make a video how to add an line input to raspberry Pi?
    PPS: what software are you using when you are working with breadboard?

    • @Tinkernut
      @Tinkernut  Před 7 lety

      it's the default bg in the newest version of raspbian

  • @doodleswithnon9031
    @doodleswithnon9031 Před 4 lety

    Plz tell how to put a audio input

  • @JoshSmith-db2of
    @JoshSmith-db2of Před 7 lety

    Hmm... so the Spotify Linux client requires PulseAudio. I wonder if that's going to mess anything up.

  • @Najvalsa
    @Najvalsa Před 7 lety +3

    I'm sure Tinkernut knows, but for anyone that doesn't, you can use VNC to connect to your Pi's desktop remotely, instead of just the command prompt with Putty: www.raspberrypi.org/documentation/remote-access/vnc/

    • @ZubAirT
      @ZubAirT Před 7 lety +1

      ya but command line is just more powerful.

    • @Najvalsa
      @Najvalsa Před 7 lety +1

      You can access the command line from the Pi's desktop.

    • @ZubAirT
      @ZubAirT Před 7 lety

      well you know, it depends on the job. Each one has his own way of doing things. I've used both for different kind of task.

    • @Najvalsa
      @Najvalsa Před 7 lety +1

      I agree, but I'm just making people aware of it.

  • @user-th7ef5fg5y
    @user-th7ef5fg5y Před 7 lety +1

    Please make an airhorn! :D

  • @OneCheapEric
    @OneCheapEric Před 7 lety +1

    lol, I bought the rasp pi zero w myself and I still don't know what to do with it. cool project brohem

  • @HayatSherHaqdad
    @HayatSherHaqdad Před 6 lety

    what is yr goal to achieve that that i my help u

  • @adamboy7777
    @adamboy7777 Před 7 lety

    I 110% support making something over buying one pre built, or doing it the hard way for the sake of learning, but you do know that the Zero W has bluetooth, right? Bluetooth speakers are nice.

  • @nathanleeks8554
    @nathanleeks8554 Před 7 lety

    Heyyyyy I like the mr robot font

  • @imperiosheriff
    @imperiosheriff Před 5 lety

    i not can modify the config.txt
    $config.txt: Read-only file system ][ Error writing /boot/config.txt: Read-
    SO=Recalbox

    • @imperiosheriff
      @imperiosheriff Před 5 lety

      ok i find it..
      for recalbox: Connect with SSH
      Remount partition on read-write
      Command: mount -o remount, rw /boot
      Use nano to edit the file located at /boot/config.txt
      Command: nano /boot/config.txt
      Now close and save the file with "STRG + X" and reboot your Raspberry Pi

  • @herogaca
    @herogaca Před 5 lety

    is this stereo or mono?

  • @Faibs93
    @Faibs93 Před 3 lety

    Do you actually need all those resistors? Can't you just plug the raspiaudio firmly on top of all the GPIO pins?

  • @saiyadnauman
    @saiyadnauman Před 7 lety

    cool project. this layout of video was easier.

  • @wedontgiveasht
    @wedontgiveasht Před 7 lety

    Audio input now?

  • @geoff650r
    @geoff650r Před 4 lety

    Windows 10 has an SSH client built into it nowadays. Use PowerShell for easy copy/pasting.

  • @Ed.E
    @Ed.E Před 7 lety +2

    when your favourite CZcamsr doesn't upload for 3 weeks😞

  • @jjws600
    @jjws600 Před 7 lety

    I know Pi Zeros are cheap in america and england, but here in australia they are like 30$ which i bought a mac for the other day, so they arent as cheap as i want ahah.

  • @kulgan96
    @kulgan96 Před 7 lety

    wait you live in uk

  • @ReindeerNavy
    @ReindeerNavy Před 7 lety +1

    Win32diskimager is pretty good, though I prefer Rufus. If anyone wants an alternative.

  • @LawrenceHortonRocksAllTheSocks

    Make your own PCB with SMD

  • @minecrafter9099
    @minecrafter9099 Před 7 lety

    It seems like you soldered the header pins the wrong way arround :/

  • @RaymondC45
    @RaymondC45 Před 7 lety +1

    What is your end goal?

  • @dimitrisarch8014
    @dimitrisarch8014 Před 5 lety

    Ηρωας!!

  • @fys4287
    @fys4287 Před 7 lety +46

    Please never say "you eff" when referring to μF again. It's triggering.

    • @mircoheitmann
      @mircoheitmann Před 7 lety +6

      Exactly my thoughts xD

    • @joeystrandnes2214
      @joeystrandnes2214 Před 7 lety +5

      Yeah I was going Tinker-Nuts over his pronunciation of "micro farad"

    • @MeanHacker
      @MeanHacker Před 7 lety +3

      yeah instead of saying "you eff", you could at least say "mew eff" 😁 proper way, of course, would be "micro farad" awesome project 👍

    • @Tinkernut
      @Tinkernut  Před 7 lety +11

      The phonetic pronunciation of μF is "mew eff", and since there is no letter μ in English, it has been replaced with "u". So that was just a phonetic pronunciation of the abbreviation.

    • @syntaxerror9994
      @syntaxerror9994 Před 7 lety +1

      fys terms like 'triggering' is 'triggering'.

  • @linuxstreamer8910
    @linuxstreamer8910 Před 4 lety

    for burning a image of a SD card i personally like etcher more looks better and on my Linux PC it work and win32 disk imager does not

  • @RestoreTechnique
    @RestoreTechnique Před 3 lety

    Ok i think I'll just buy one, this is way too hard for me

  • @TECHEONICS
    @TECHEONICS Před 4 lety

    webpage is not working

  • @AndriusKamarauskas
    @AndriusKamarauskas Před 7 lety +1

    in real life when answering teachers question you ask for like/share and subscribe there is a point where you wached youtube too much:D