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 3448 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
  • wymand
    0 wymand over 11 years ago

    I am using python and the "import pifacedigitalio" statement and it makes it very easy

    to control the Pi Face board.

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

    I am using python and the "import pifacedigitalio" statement and it makes it very easy

    to control the Pi Face board.

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

    Hi again,

    Last night I tried to download the PiFace code from University of Manchester School of Computer Science Pi Downloads. There are two versions. The first, "Raspberry Pi SDCard immage (4 Gb SanDisck.........."  took 4 hours to compleat. It failed at the end so I tried the other one, the "Latest: (approx 580 Mb download) .."

    PiFaced." and the "2012-10-28-wheezy-raspbian-PiFaced.sha1" fle.

    I burned the SD with both of them and tried it. It did not work. Nothing happened. Only the red LED turned on.

     

    Am I doing the right things?

    Should the .sha1 file be added?

     

    The original Raspberry NOOBS files looked very much different than those files.

     

    Question: Are the PiFace files meant for a 4 Gb SD card? I am using an 8 Gb SD card?

     

    Should the .sha1 file be added? What is it?

     

    Is it possible to use the standard NOOBS program, and be able to program the PiFace by adding the line "import pifacedigitalio" to the source code?

     

    Regards,

    Å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

    What exactly do you do when you say "burn the SD" ?

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

    I mean that I insert the SD into a slot in my PC. The SD appears as a disc in Windows. I then take the file that i wish to program and copy it to the SD. The copying takes some time, 10 - 20 seconds.

     

    Regards

    Å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

    That's not going to work. Please see reply number 5 in this thread, it contains a link to instructions on how to write to an SD card.

     

    You need a special application in Windows (e.g. Win32 Disk Imager) to properly write the *.img file to the SD card.

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

    Hi Doug,

    Do you mean that you can compile Piface programs with the original NOOBS software?

    In other words, you don't have to bother about those .img files?

     

    Thanks in advance,

    Åke

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

    Dear Frederick,

    I looked in the internet to find a suttable " Win32 Disk Imager" and found at least a dosen. There was one that was intended for the Raspberry Pi. It did not say which version, PC, MAC etc it was intended for.

    Can you help me?

     

    Thanks in advance!

    Åke

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

    I got another question.

    The files that I have downloaded from pi.cs.man.ac.uk have all been compiled for the 4 Gb Raspberry Pi boards.

    I have got 8 Gb on my board. Can an 4 Gb program execute in a 8 Gb memory?

    If that is no, then is there an 8 Gb version available?

     

    Regards,

    Åke

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

    Hi Ake; Can I ask why you appear to be downloading obsolete files from a site which says:

     

    These images are not updated any longer -- use the latest version of Raspbian and follow the steps here


    I followed the link and got to PiFace – Install PiFace Digital Software – Installing PiFace Digital modules which said:


    To install the PiFace Digital software run the command:

    sudo apt-get install python3-pifacedigital-emulator

    Enter Y when prompted.

    Then reboot

    I just did it on my 4Gb card, took me under 2 minutes including reboot. At what stage is this recommended method failing for you?


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

    Well I read the PiFace documents and under "Quick Start Guide" it said:

     

    image

    I believed it, so there is why I have spent several hours trying to get it to work.

    I will try your recommendation as quick as possible. Unfortunatly I will be out of my home for some days, but I will tell you if it is a success or not.

     

    Until then,

    Thanks and bye-bye

     

    Åke

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

    Åke Webjörn I know I never loaded any .img file to get the pifacedigitalio library. 

    Now mind you I am 72 so my memory isn't the greatest but I think it came with the

    latest rasbian wheezy card.  I did not load NOOBS because I wanted only the Rasbian OS.

    I am sure you can find it here https://github.com/piface/pifacedigitalio/


    EDIT::: I found the instructions


    Install

    Make sure you are using the lastest version of Raspbian:

    $ sudo apt-get update $ sudo apt-get upgrade 

    Install pifacedigitalio (for Python 3 and 2) with the following command:

    $ sudo apt-get install python{,3}-pifacedigitalio 

    Test by running the blink.py program:

    $ python3 /usr/share/doc/python3-pifacedigitalio/examples/blink.py


    I have used it to control the lights using a PIR sensor on the input and a 5V LED lamp on the

    output.


    Here is the code:

    import pifacedigitalio

    from time import sleep

    pfd = pifacedigitalio.PiFaceDigital()

    lampon = 0

    while True:

        tmpval = pfd.input_pins[7].value

        if tmpval == 1:

            if lampon == 1:

                pfd.leds[7].turn_off()

                lampon = 0

            sleep(.5)

        if tmpval == 0:

            if lampon == 0:

                pfd.leds[7].turn_on()

                lampon = 1

                sleep(30)



    • 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