element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Rsspi 4B Speaker codec
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 4 replies
  • Subscribers 657 subscribers
  • Views 633 views
  • Users 0 members are here
  • audio out
  • startup
  • codec
  • alsactr
  • raspberry pi 4 b
Related

Rsspi 4B Speaker codec

fskrzycki
fskrzycki over 1 year ago

Oh my goodness, why is this so difficult. I have been dredging through forums looking for the right way to get sound out of a IqaudiO Zero Codec Hat. I using a mono speaker connected to the terminals.

Is it ok the speaker specs are below the Recommendation? Iqaudio zero states 8ohms at 1.2w. I connected a 8ohm 0.5w. 

Alsactr restore - f never works. GitHub installs Pi-Codec in the /home directory. I think I am supposed to move that file to /Etc/alsa/asound.  that has not worked.

i have gone into Raspi-config and changed the IS2 audio option. I am confused why it shows 2 options but when I run Aplay - l i get 3 cards found. 

I have #Dtoverlay audio on. 

I'm beginning to think I should just buy a bigger codec card or more one that is currently supported. . what would you recommend?

I know I want the speaker to be loud enough for my kid to clearly hear the audio files. I want him to have 2 different buttons to push that are connected to the same program that will play 1 random audio file from a list

 A third button will be dedicated to playing the same audio file but also be connected to some LEDs. 

I am still learning, I have no previous experience with PCBs or writing Code. this has been alot of fun. I look forward to reading your comments

  • Sign in to reply
  • Cancel
  • Christopher678
    Christopher678 over 1 year ago

    Awesome

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • anniel747
    anniel747 over 1 year ago

    Voice coil will probably burn. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 1 year ago

    Regarding "I'm beginning to think I should just buy a bigger codec card"

    This is not really needed. Even a cheap card will work for the application, for instance this one:

    image

    It will directly wire to the Pi's I2S connections. The info to use it is here:

    https://learn.adafruit.com/adafruit-max98357-i2s-class-d-mono-amp/raspberry-pi-wiring

    The config steps are here:

    https://learn.adafruit.com/adafruit-max98357-i2s-class-d-mono-amp/raspberry-pi-usage

    The quality will be far higher than discernible from a little mono speaker.

    The board you're using is complicated enough that it may need configuration of a driver, plus it will be underused for the application, for the cost. The simpler I2C boards are easier to get going as can be seen at that web link.

    The more expensive audio cards are more for music applications (where hi-fi quality is desired, although it's debatable if they are that good) or if you need mic or line inputs too.

    Alternatively, the Pi 4 has a built-in audio output (3.5 mm socket), so any analog audio amplifier will work (and cost just a couple of $ max).

    The 3.5mm output plus amplifier will have a high quality output will work very well with a typical small mono speaker, as will the I2S board shown above (it is a very popular, common board).

    If it were me, I'd go for the cheap MAX98357 board, or, if I didn't have that, then a simple amplifier connected to the 3.5 mm socket. 

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • fskrzycki
    fskrzycki over 1 year ago in reply to shabaz

    Got It.. image

    after writing to a customer driver file, deactivating other audio cards and them making my Hat the Default device... soo much fun.. I got my MOSFETs in the mail. Let it Rip... 

    Thanks Shabaz for the suggestion to write a new driver. 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube