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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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 Input Impedance
  • 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
  • State Not Answered
  • Replies 5 replies
  • Subscribers 675 subscribers
  • Views 625 views
  • Users 0 members are here
  • audio
  • cirrus-logic-audio-card
  • mixer
  • raspberry_pi
  • impedance
  • record_from_linein.sh
  • raspeberry_pi_accessories
Related

Input Impedance

Former Member
Former Member over 9 years ago

Hello,

I bought the Cirrus Audio Card for my Raspberry Pi B+. I am using it as follows: Audiomixer --> Line In on the Cirrus --> Icecast Server --> Webstream output. I successfully set up with the provided Image. I put the file "Record_from_LineIn.sh" in rc.local and start my Icecast Client as well. But I have a little issue: My Audiomixer has an integrated VU-Meter. It works quite well connected to a normal Amp. But as soon as I route the Audio Path with the provided Shellscript,all LEDs light up. It doesnt affect the functionality of the system, but still it bugs me. I guess it is related with the input impedance. So I built a little circuit with an OP- Amp (Voltage Amplifier with Factor 1 (Impedanzwandler)). This resolves my LED issue, but produces noisy Output... So i guess there must be some setting in the software, since the Wolfson Chip is quite powerful. Does anyone has a clue where to dig in?

The only information I have from my audiomixer is: output: 775mV (max. 1.5V).

Thanks, Simon

  • Sign in to reply
  • Cancel
  • griphand
    0 griphand over 9 years ago

    Hello,

     

    I think the micbias voltage is always on on line in of the Cirrus Audio. I measured it on scope. When I start recording the voltage at the input jumps to about 2.5V (only the oscilloscope was on the input). This fools the VU-meter of my tape recorder too.

     

    I have Rpi3 and Arch linux (I don't like the debian line).

     

    Does anybody knows how to switch off the micbias?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • hiassoft
    0 hiassoft over 9 years ago in reply to griphand

    Could you test if this helps?

    amixer cset name='Line Input Switch' off

     

    Just checked the mixer settings and noticed this seems to be on by default...

    # amixer cget name='Line Input Switch'
    numid=341,iface=MIXER,name='Line Input Switch'
      ; type=BOOLEAN,access=rw------,values=1
      : values=on

     

    so long,

     

    Hias

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • griphand
    0 griphand over 9 years ago in reply to hiassoft

    Hello!

     

    I tried

    $  amixer -Dhw:sndrpiwsp cset name='Line Input Switch' off

    the result:

    numid=345,iface=MIXER,name='Line Input Switch'

      ; type=BOOLEAN,access=rw------,values=1

      : values=off

     

    $ arecord -Dhw:sndrpiwsp -c 2 -f S16_LE -r 192000 -d 10  float1.wav

     

      arecord: pcm_read:2096: read error: Input/output error

     

    I think this switch off the line in path entirely.

     

     

    $ cat /sys/devices/platform/sound/WM5102/dapm_widget

     

    In idle state: all switches are off.

     

    During recording: (listed only the swithes are on)

    AIF1TX2 Mixer: On

    AIF1TX1 Mixer: On

    LHPF2 Mixer: On

    LHPF1 Mixer: On

    LHPF2: On

    LHPF1: On

    MICBIAS3: On

    IN3R PGA: On

    IN3L PGA: On

    MICVDD: On

    SYSCLK: On

    PM State: On

     

    Can I influence on the behavior of alsa dapm widgets? I'd like to switch off MICBIAS3 and maybe MICVDD.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • hiassoft
    0 hiassoft over 9 years ago in reply to griphand

    Thanks for testing. It looks like micbias has always been enabled on linein in the wolfson/cirrus driver and the "Line Input Switch" amixer setting in Record_from_lineIn_Micbias.sh didn't have any effect at all.

     

    To change the behavior we'd have to modify the dapm routes (search for dapm_routes in rpi-cirrus-sound-pi.c) and add a separate "Line Micbias" switch, probably with a few lines of extra code. I'm not 100% sure yet how a proper setup should look like, DAPM can be tricky.

     

    so long,

     

    Hias

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • griphand
    0 griphand over 9 years ago in reply to hiassoft

    Hello!

     

    I removed the two resistors (R33, R26) that connect the DC to the input from the board. I think this is a design fault. There must be hw jumpers to switch off the DC and the resistors from the input when not used with electret microphones.

     

    If these resistors stay in the curcuit reduce the input impedance or cause crosstalk depending of the state of the MICBIAS pin of the chip.

     

    The input impedance of the chip is 16Kohm said the manual. So the input impedance of the board without bias resistors is: 10Kohm + (12Kohm || 16Kohm) = 16.8Kohm.

    With bias resistors this drops to 1.95Kohm. (+ some annoying DC at present)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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