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 Wolfson could have given us GPIO access
  • 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 9 replies
  • Subscribers 676 subscribers
  • Views 1597 views
  • Users 0 members are here
  • raspberry_pi
  • raspeberry_pi_accessories
Related

Wolfson could have given us GPIO access

gramuk
gramuk over 11 years ago

Wolfson card arrived. Ok so I saw the pictures that the GPIO pins are not accessible with the card fitted - so why did they do this then?

I've now got to risk de-soldering and replacing the connector on this so far unpowered board. I see no reason why they couldn't put a connector on there to give access to the GPOI - I mean - due to the design now space is not an issue and a few extra pennies to the cost would I'm sure not be an issue. Ok so now to butcher my new board. Bin at the ready.

  • Sign in to reply
  • Cancel
  • davenwr
    davenwr over 11 years ago

    Because they use most of the GPIO pins to control they card.  Look at the schematic.  The ones they don't use are brought out to the 3 pin header, normally used as a serial port.

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

    Thanks for reply - Yes I've just looked at that right now. Ah well. One day maybe I'll look into using the board but for now another expansion board for the bits and pieces drawer. I really only ordered this from Farnell to bump up the order cost (minimum order price) since I needed a few parts for an audio application I'm putting together for an Arduino. Never mind.

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

    as mentioned in the GPIO pins thread, the serial pins can be remapped for IO. Runs fine with my app. Of course it only provides 2 IO pins and it is only an option if you don't require the serial port.

     

    There are two GPIO labelled pins on the wolfson audio card extension header. Availability as GPIO and driver support is currently unclear. A response by Wolfson would be welcome...

     

    Additional GPIO ports might also be added by i2c based extensions, but this will require to somehow get access to the required i2c pins.

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

    Yes those I2C pins are the ones I need access to. Maybe I'll get round to changing out that main connector sometime. If I get some time tomorrow I'll try out the card to see how it runs and then then try to add a couple of I2C devices later on. I should have researched the board before just buying it but it was a spur of the moment purchase.

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

    Where is The gpio thread to be found ? I only need one relais to shift.

    i Tried using gpio4 but iT didnt work

    if you have a link I can use would-be perfect !

    • 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 was referring to the GPIO thread here in the forum, but the thread does not contain details.

     

    Here is a description of the setup I use on a current Raspbian image:

     

    The Raspberry Pi serial port is available on the Wolfson audio card at J8, with pins marked RX and TX on the board. The unmarked pin is ground.
    The wiring can be found in the schematic diagram available on this site on page 8.

     

    The mapping to the Raspberry Pi connector and signals is as follows:

     

        Wolfson_Card_J8-1:RPI_TX  ->  RPi: P1-08 - TXD0 (ALT0) - GPIO14
        Wolfson_Card_J8-2:RPI_RX  ->  RPi: P1-10 - RXD0 (ALT0) - GPIO15
        Wolfson_Card_J8-3:GND

     

    Details on the Raspberry Pi GPIO connector (called P1) can be found e.g. here:
        http://elinux.org/RPi_BCM2835_GPIOs

     

    I use the serial ports TX signal pin as an output and the RX signal pin as input.

     

    I configure it on startup in /etc/rc.local:

     

     

    # setup GPIO 
     #
     # enabling pin 15 as input:
     # exports GPIO pin 15 for use, sets the direction to "in"
     #
     echo "15" >/sys/class/gpio/export
     echo "in" >/sys/class/gpio/gpio15/direction
     #
     # set to active low if required (invert the value)
     # echo 1 >/sys/class/gpio/gpio15/active_low
     #
     # input value can be checked by command below
     # cat /sys/class/gpio/gpio15/value
     # 
     ###
     # enabling pin 14 as output:
     # export GPIO pin 14 for use, sets the direction to output
     echo "14" >/sys/class/gpio/export
     echo "out" >/sys/class/gpio/gpio14/direction
     #
     # set to active low if required (invert the value)
     echo 1 > /sys/class/gpio/gpio14/active_low
     #
     # Switch signal to desired value
     echo 0 > /sys/class/gpio/gpio14/value
     # or 
     # echo 1 > /sys/class/gpio/gpio14/value

     

     

    Fortunately, enabling the GPIO pins remaps them back to GPIO from the ALT0 serial port default.

     

    In my case the commands in rc.local are only there for initial setup of the pins. They are later controlled by an application. But the rc.local commands contain everything that's needed to use the pins from a shell script.

     

    Hope this helps.

    • 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'm very much a newbie at Raspberry Pi, but I've succeeded in using the Wolfson DAC's J8 header to hook up a pushbutton switch to execute a system shutdown.

    What's J7 (the 2 x 8 pin header labelled Ex_Connection for? It seems to have GPIO3, GPIO4 and two GND pins labelled on the schematic.

     

    I'm using the Wolfson DAC with a Raspberry Pi as a Squeezebox headphone music player. Oh, and to learn some Raspberry Pi skills.

     

    Robert

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

    It's a shame the designers didn't use i2c, used anyway and shareable to add controls lines, rather than monopolising the GPIO.

    Losing SPI_CE0 to a reset function does us no favours. One example application, on this web site, is to add audio to the PiCam. It would be nice to have the option to use an SPI-connected TFT with the WAC in that application. A small graphic display has lots of uses with audio, even for audio servers, where it could show album art. Maybe it can be hacked to use SPI 0 for that.

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

    Just commenting to show that I'm also interested in using GPIO alongside the Wolfson card - any explanation of how to access the Ex_Connection would be much appreciated.

    • 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