element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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
Rocking Raspberry Pi
  • Challenges & Projects
  • Design Challenges
  • Rocking Raspberry Pi
  • More
  • Cancel
Rocking Raspberry Pi
Forum Access to 5 GPIO pins with Wolfson Sound Card
  • Blog
  • Forum
  • Documents
  • Files
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 8 replies
  • Subscribers 4 subscribers
  • Views 1644 views
  • Users 0 members are here
  • wolfson
  • gpio
  • raspberry-pi
  • rocking_pi
Related

Access to 5 GPIO pins with Wolfson Sound Card

Former Member
Former Member over 11 years ago

Raspberry Pi provides GPIO on P1 and P5 connectors. Both these connectors are occupied by Wolfson Sound card.. Two on these GPIO are available on Wolfson card.  In our project we need 5 GPIO. Hence the two questions:

 

1. Of the GPIOs on P1 and P5 which ones are NOT used by the Wolfson sound card?

2. What is the best way to phyiscally accesses these GPIO.

 

We would not be able to use the Wolfson sound card if we do not get access to in total 5 GPIO pins. Please assist.

  • Sign in to reply
  • Cancel
  • Former Member
    Former Member over 11 years ago

    I think your options are:

     

    1. Wire an I2C interfaced GPIO expander to the Pi I2C pins in parallel with the Wolfson card. Maybe PCF8575, or MCP23017.

    2. Use a microcontroller on Pi I2C or serial port to handle your I/O. Serial port is accessible at pins on the WAC.

    3. Use a USB I/O device

    4. Use a different audio device that doesn't monopolise the GPIO.

     

    Useful links:

    MCP23017-E/SP - MICROCHIP - IC, IO EXPANDER, 16BIT, I2C, 28DIP | Farnell UK

    Raspberry Pi MCP23017 Port Expander Board Kit | RPI-PORTEXP | HobbyTronics

     

    It's a shame Wolfson didn't use something like this to implement the board control functions, leaving the standard GPIO free.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • fvan
    fvan over 11 years ago

    What is it exactly you need to do with the 5 GPIO ?

     

    As pigraham suggested, there are different ways of getting around the Wolfson occupying all GPIO.

     

    In a project I'm working on, I'm doing the following:

    * Use the Serial Tx/Rx pins which are made available on the Wolfson card for serial communication with an ATtiny

    * Use an Arduino Micro/Leonardo connected via USB as Keyboard emulator in order to pass buttons being pressed to the Pi

     

    Hope this helps image

     

    Frederick

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 11 years ago in reply to fvan

    Thanks for your reply. Here are use of 5 GPIO pins:

     

    1. Panic Buttion  GPI

    2. Buzzer  GPO

    3. Fan control GPO

    4. Shutdown - GPI

    5. Shutdown complete - GPO

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 11 years ago in reply to Former Member

    I suggest you use a i2c port expander or USB I/O device.

     

    I have a real-time clock module connected to header pins I have soldered onto the Wolfson to connect the i2c. It works and seems to cause no problems with audio.

     

    By soldering two full rows of header pins to the top of the Wolfson you get a stacking connection to support a standard Pi expansion board. As long as any board you add doesn't use GPIO other than the i2c, and doesn't conflict with an i2c address on the Wolfson, it should work.

    IMPORTANT check carefully that any card you attach does not use other GPIO lines or you may damage something.

     

    Insert the pin headers into the female connector of your daughter card to maintain proper alignment. Position the pins over the pins on the Wolfson and carefully solder the pins at each end of each header strip. Solder the pins along the edge then remove the daughter card to access the pins on the inner strip. Be careful not to short the pins solder. Be careful when plugging or removing a daughter card.

     

    You could use the HobyTronics expander in this scheme.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 11 years ago

    I am also interested in using some of the GPIO while using the Wolfson audio card. I have the card working, streaming audio from a server share over the network and it sounds very good. There is an "expansion header" shown on the photograph of the Wolfson audio card in the user documentation. However, there is no pin out for the "expansion header". There is, in the annexe, a table titled "e. Feature header signal assignment" that details the pin out for a 16 pin header. By a process of elimination (There is only one 16 pin header on the board!) I think the "Expansion header" and "Feature Header" are the same thing. If this is right, you have access to two GPIO connections and a range of audio connectors on this header. Just a shame the documentation is not more consistent.

     

    Anyone from Element 14 or Wolfson like to confirm that the Feature and expansion headers are the same thing and that he pin out is correct?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 11 years ago in reply to Former Member

    Only two GPIO are available on header pins on the Wolfson card - UART0_TXD (GPIO14) and UART0_RXD (GPIO15).

     

    The Pi I2C does not route to the expansion header on the Wolfson card. If you want to connect a port expander I suggest soldering a 2 x 3 pin header to the top of the wolfson board at the Pin 1 end to make the I2C pins available to expansion boards and jumpers.

     

    I have soldered such a header and attached a RTC module to it. You could attach a gpio expander by jumper wires. Here is a photo showing the soldered header pins and RTC module. The flying leads from the RTC board connect to a GPIO expander.

     

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Marki555
    Marki555 over 11 years ago in reply to Former Member

    Also GPIO3 on expansion header is available (connected to GPIO3 of WM5102 and to P1 pin 22 of RPi). I guess it can be used, else they wouldn't expose it on the expansion header.

    The P1 i2c is used to control the WM8804 SPDIF chip, but I see no issue in connecting another devices to the bus as suggested.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    I am trying to add an RTC to my Pi/Wolfson Audio card combo and was wondering whether your solution is working well? Also, do you have any more photos/instructions on what you did exactly. I am a newbie to the Pi and electronics in general but am looking to get my pi/wolfson unit to record sound to a particular schedule - hence my needing an RTC. My unit won't have access to wifi so I need to add a clock to it. I might end up using a B+ and the Cirrus Logic Audio Card but I think the problem will be similar as I think that card also takes up all of the GPIO pins.

    • Cancel
    • Vote Up 0 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