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 3458 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
  • 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 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
Reply
  • 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
Children
  • ake09
    0 ake09 over 11 years ago in reply to wymand

    Dear Doug,

    Thanks for your excellent letter! I came almost thru it, when the Pi complained that I must have the SPI enabled to be able to get the PiFace running.

    Can you tell me how to do it?

    I have seen it somewere, but it is easier to ask someone, than to do it yourself.

     

    Regards,

    Åke

     

    (I'm 62 years old myself)

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

    using the command line:

      • type "sudo raspi-config" and press enter

      • Select option 8: "Advanced options"
      • Select option A5: "SPI"
      • Select "Yes"
      • Select "Finish" to exit
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ake09
    0 ake09 over 11 years ago in reply to fvan

    Thanks everyone who has been involved in helping me to get a piece of code to show a blinking LED on the PiFace Digital board.

    And a special thanks to Doug and Frederick.image

    I am really grateful!

     

    Thanks again!

     

    Åke

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

    Thanks everyone for looking at my perhaps rather severe comments, but I have spent over a week trying to get Piface working but still can't import the module. The download of digitalis seemed to go ok as did the emulator. The emulator works for about 30 seconds and then does uncontrollable odd things and the processor activity is 100%.

    I have to use Ctrl/Alt/Delete to stop it and it still remains on screen!

    However when I try to "import Piface-digital", it still says "no module"

    Help please.

     

    TTFN

    Alan

    • 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 wymand

    Thanks everyone for looking at my perhaps rather severe comments, but I have spent over a week trying to get Piface working but still can't import the module. The download of digitalis seemed to go ok as did the emulator. The emulator works for about 30 seconds and then does uncontrollable odd things and the processor activity is 100%.

    I have to use Ctrl/Alt/Delete to stop it and it still remains on screen!

    However when I try to "import Pifacedigitalio", it still says "no module"

    Help please.

     

    TTFN

    Alan

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

    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
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ake09
    0 ake09 over 11 years ago in reply to wymand

    Thanks everybody for helping me.

    I believe that this subject is now closed.

    I'll input a new question if I get into trouble! image

     

    Have a nice day,

    Åke

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