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
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Downloading software for the Piface Digital problems
  • 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 Verified Answer
  • Replies 26 replies
  • Subscribers 668 subscribers
  • Views 3467 views
  • Users 0 members are here
  • raspberry_pi
Related

Downloading software for the Piface Digital problems

ake09
ake09 over 11 years ago

Hi,

I bougth a Raspberry Pi board and played a little with it. I then bougth a PiFace Digital. It sits nice on top of the Pi board,but I need some software drivers in order to use the PiFace Digital board. How do I get the necesserary software into the SD?  I have not got a network connection to it. I guess that I have to add a software module to the SD by downloading it with my PC.

But what is  this module called and where can I find it?

 

Regards,

 

Åke

  • Sign in to reply
  • Cancel
Parents
  • fvan
    0 fvan over 11 years ago

    Hi,

     

    there is a link to a prepared OS image containing the necessary software in the PiFace "Getting Started Guide". It's on page 1.

    Might be the easiest solution if you do not have any networking capabilities on your pi.

     

    Frederick

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

     

    Hi,

     

    I downloaded http:/pi.cs.man.acuk/download, and it turned out to be 2 files.

     

    2012-10-28-wheezy-raspbian-PiFaced.img , 1,9 Gb, and

     

    2012-10-28-wheezy-raspbian-PiFaced.sha1, 1 Kb

     

    I tried first to replace the original Raspberry NOOBS files with those two, but that did not work at all.

     

    I then tried to program a SD card with the Raspberry NOOBS files and then copy the PiFace files on top of them

     

    Then  I tried the Raspberry Pi and it seemed OK. I then tried to write a small program, and compiled it. I took the program in "Simple Python example" and compiled it. The error code was "No module named pifio.pface"

     

     

    Thanks for your reply!

     

    Ake

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • latki8
    0 latki8 over 11 years ago in reply to ake09

    I bought my piface when it first came out and the original software was one module.  It has since been released with the functions spread over several modules.  I'm not sure which you have got.

     

    My Python programs use this line to include the piface code:

         import piface.pfio as pfio

    and then refer to it as (eg):

         pfio.digital_write(7, 1)     # turn on led 7

     

    To find where the module is installed you can enter this from the command line or Terminal window:

         python

         import piface, os

         print os.path.dirname(piface.__file__)

     

    In my case the result was:

         /usr/local/lib/python2.7/dist-packages/piface

     

    You wrote "pifio.pface" in your problem description - was that a mistake in the text or is that what is in your program?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ake09
    0 ake09 over 11 years ago in reply to latki8

    Hi there again,

    The Raspberry Pi board is made in the UK. I dowloaded the latest software, so it cannot be that old.

    But I believe that this Pi software does not have the software tools to run the PiFace Digital board.

     

    If I try your code,

    import piface, os

    I get

    ImportError: no module named piface

     

    So I believe that there has to be a file that is linked in some way to the Pi software to make the piface run.

     

    I have to rush of for a party, so I cannot try your examples in detail.

     

    Thanks for your interest!

     

    Åke

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

    The standard NOOBS or other images will most likely not support the PiFace by default.

     

    As stated in the documentation linked earlier, there are two ways of getting th ePiFace to work:
    * use a prepared image which you can write to your SD card (using "dd" in Linux/Mac or "Win 32 disk imager" in Windows). See http://www.raspberrypi.org/wp-content/uploads/2012/04/quick-start-guide-v2_1.pdf on how to prepare your SD card.
    * using network connectivity of the pi, download the necessary packages by following the steps in the "piface get started guide": http://www.element14.com/community/docs/DOC-53057/l/piface-get-started-guide

     

    Frederick

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

    Hi,

    I have exactly the same problem as Ake, I downloaded the software both digitalio and emulator. The emulator works for a while and then freezes. when I try to write a small test script and started off with "import piface.pfio" i get an error message "no module named piface.pfio"

    Where is it stored and why dont your instructions work? I only managed to get the emulator to load by making it python3 although I am using version 2.7.3. If I try  using "python_digital_emulator it says " no module"

    I have to say that this is the worst documented accessory for pi I have come across and even the picture of the emulator isn't up to date!!

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

    Hi,

    I have exactly the same problem as Ake, I downloaded the software both digitalio and emulator. The emulator works for a while and then freezes. when I try to write a small test script and started off with "import piface.pfio" i get an error message "no module named piface.pfio"

    Where is it stored and why dont your instructions work? I only managed to get the emulator to load by making it python3 although I am using version 2.7.3. If I try  using "python_digital_emulator it says " no module"

    I have to say that this is the worst documented accessory for pi I have come across and even the picture of the emulator isn't up to date!!

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