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 Comment installer PiFace Digital 2 sur Pi 3B
  • 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 Not Answered
  • Replies 12 replies
  • Subscribers 664 subscribers
  • Views 1560 views
  • Users 0 members are here
  • raspberry_pi
Related

Comment installer PiFace Digital 2 sur Pi 3B

davinha
davinha over 5 years ago

Bonjour à tous ,

J'ai fait l'acquisition d'un module PiFace Digital 2 afin de l'installer sur mon Pi 3B !

J'ai déjà passé des heures avec les versions "2020-02-13-raspbian-buster" en full et avec BerryBoot v2.0 + Raspbian Full aussi sans succès !

J'ai tenté de télécharger une image sur http://pi.cs.man.ac.uk/download/  mais ce site n'existe plus et essayer d'autres !

S'il vous plait , quelqu'un pourrait-il me donner une procédure avec des liens qui fonctionnent afin que je puisse l'utiliser ce module ?

En vous remerciant par avance , je compte vraiment sur vous de "element14" vu que c'est ce qui est inscrit sur la plaque OiFace Digial 2 ,

Antonio.

  • Sign in to reply
  • Cancel
Parents
  • cstanton
    0 cstanton over 5 years ago

    Try http://web.archive.org/web/20180222130452/http://pi.cs.man.ac.uk/download/

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • davinha
    0 davinha over 5 years ago in reply to cstanton

    Hello Christopher,

     

    Sorry but I tried multiple O.S. but always problems like with "Jessie" following this "PiFace Digital 2 - setup and use" procedure on "https://www.element14.com/community/message/133136/l/piface-digital-2-setup-and-use#133136" but the mainly problem is that some links are invalid :

    -------------------------------------------------------

    wget http://pi.cs.man.ac.uk/download/install.txt | bash

    ==> pi@raspberrypi:~ $ wget http://pi.cs.man.ac.uk/download/install.txt | bash

    --2020-04-02 01:58:23--  http://pi.cs.man.ac.uk/download/install.txt

    Résolution de pi.cs.man.ac.uk (pi.cs.man.ac.uk)… 130.88.192.249

    Connexion à pi.cs.man.ac.uk (pi.cs.man.ac.uk)|130.88.192.249|:80… échec : Connexion terminée par expiration du délai d'attente.

    Nouvel essai.

    --2020-04-02 02:00:39--  (essai :  2)  http://pi.cs.man.ac.uk/download/install.txt

    Connexion à pi.cs.man.ac.uk (pi.cs.man.ac.uk)|130.88.192.249|:80…

    -------------------------------------------------------

     

    Thank you for your answer but this does not allow me to move forward !

    Please could you send to me these information ?

    - The recommended O.S. , distrib and version like "2017-07-05-raspbian-jessie" , "2020-02-13-raspbian-buster" , "2018-04-18-raspbian-stretch" , and so on.

    - Which procedure must I use ? Like "http://piface.github.io/pifacedigitalio/installation.html" but I found some problems with "pifacedigitalio" unreachable.

    - Which type of µSD Card ? Like "SAMSUNG EVO 32 GB HC1 A1" , "SanDisk Ultra 64 GB XC1" , "SanDisk Extreme PRO 64 GB XC1 V30 A2" , and so on.

     

    This link works well : "http://web.archive.org/web/20180222130452/http://pi.cs.man.ac.uk/download/"

     

    But the result of its links are the folowing :

    -------------------------------------------------------

    ***University of Manchester School of Computer Science Pi Downloads*** :

    * For "Raspberry Pi Project at Manchester ":

    ...

    Many of our activites use a PiFace interface, an easy to use way for the Raspberry Pi to sense and control the world.

    ...

    Internet Archive's Wayback Machine

    Loading...

    http://piface.openlx.org.uk/ |

    18:42:54 March 16, 2018

    Got an HTTP 301 response at crawl time

    Redirecting to...

    http://www.piface.org.uk/

     

    * For "Raspberry_Pi_Education_Manual.pdf" : ==> it is a bit old as the "Raspberry_Pi_Education_Manual.pdf" is a Version 1.0 December 2012.

     

    ***SD card images*** :

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

     

    * For "Raspberry Pi SDCard image (4GB SanDisk) as used in our workshops" : Dowloaded file is 4,00 KB (4 096 bytes) in place of 4 GB !?!?!

     

    * For "Latest: (approx 580Mb download) 2012-10-28-wheezy (development version) Raspberry Pi SDCard image" :

    http://pi.cs.man.ac.uk/download/2012-10-28-wheezy-raspbian-PiFaced.zip

    Hrm.

    The Wayback Machine has not archived that URL.

    This page is not available on the web because of server error

    Click here to search for all archived pages under http://pi.cs.man.ac.uk/download/.

    http://pi.cs.man.ac.uk/download/ ==> This site is inaccessible pi.cs.man.ac.uk took too long to respond.

     

    ***Raspberry Pi code and utils*** :

     

    * For "pi.cs.man.ac.uk Info about Pi-Face and competition" ==> Some information.

     

    * For "kernel.img" : ==> Dowloaded file is 4,00 KB (4 096 bytes)

     

    * For "bcm2835_spi_Initial.patch" : ==> texte vue

     

    * For "switchPinCtrl - binary to enable alt pin functions so SPI works" : ==> coded text

     

    * For "switchPinCtrl.c - source" : ==> ... #define BCM2708_PERI_BASE        0x20000000 ... ==> mine is BCM2835

     

    * For "initial starting version of pinctrl.tar.gz" ==> http://pi.cs.man.ac.uk/download/pinctrl.tar.gz

    Hrm.

    The Wayback Machine has not archived that URL.

    This page is not available on the web because of server error

    -------------------------------------------------------

     

    Thanks in advance for your answers and have a nice day ,

    Antonio.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • cstanton
    0 cstanton over 5 years ago in reply to davinha

    davinha, before I go down a rabbit hole of finding these files from the internet archives, I'll ask internally to see what the support status of this hardware is.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • davinha
    0 davinha over 5 years ago in reply to cstanton

    Thank you very much Christopher , for your help !

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • davinha
    0 davinha over 5 years ago in reply to cstanton

    Hi Christopher ,

     

    Please have you some more information ?

    Here you have the information about my system software :

         pi@raspberrypi:~ $ lsb_release -a

         No LSB modules are available.

         Distributor ID: Raspbian

         Description: Raspbian GNU/Linux 10 (buster)

         Release: 10

         Codename: buster

     

    I use Domoticz :

         Version: 2020.1

         Build Hash: 63fa969e4

         Compile Date: 2020-03-22 15:16:16

         dzVents Version: 3.0.1

         Python Version: 3.7.3 (default, Dec 20 2019, 18:57:59) [GCC 8.3.0]

     

    And I want to use also PiFaceTm Digital 2 but I can't install this :

         sudo apt-get install python3-pifacedigitalio

     

     

    I have always the following message :

         pi@raspberrypi:~ $ sudo apt-get install python3-pifacedigitalio

         Lecture des listes de paquets... Fait

         Construction de l'arbre des dépendances      

         Lecture des informations d'état... Fait

         E: Impossible de trouver le paquet python3-pifacedigitalio

     

    How can I do to use "python3-pifacedigitalio" ?

    May be by adding some download source reference ?!

     

    Thank you in advance for your help !

    Antonio.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • cstanton
    0 cstanton over 5 years ago in reply to davinha

    Try

    pip3 install pifacedigitalio

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • davinha
    0 davinha over 5 years ago in reply to cstanton

    Hi Christopher ,

     

    Thank you for this information , it was installed successfully , but I still can't use PiFaceTm Digital 2 yet !

     

    As you could see "Successfully installed pifacedigitalio-3.0.5" but when I try to use it I have always this message " ModuleNotFoundError: No module named 'pifacecommon' " , pleas see below :

     

    ==================== Install ====================

    pi@raspberrypi:~ $ pip3 install pifacedigitalio

    Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple

    Collecting pifacedigitalio

      Downloading https://www.piwheels.org/simple/pifacedigitalio/pifacedigitalio-3.0.5-py3-none-any.whl

    Installing collected packages: pifacedigitalio

    Successfully installed pifacedigitalio-3.0.5

     

    ======== Try using Piface Digital 2 =============

    pi@raspberrypi:~ $ python3

    Python 3.7.3 (default, Dec 20 2019, 18:57:59)

    [GCC 8.3.0] on linux

    Type "help", "copyright", "credits" or "license" for more information.

     

    OK !

     

    >>> import pifacedigitalio as pfio

    Traceback (most recent call last):

      File "<stdin>", line 1, in <module>

      File "/home/pi/.local/lib/python3.7/site-packages/pifacedigitalio/__init__.py", line 18, in <module>

        from pifacecommon.interrupts import (

    ModuleNotFoundError: No module named 'pifacecommon'

     

    NG !

     

    >>> pfio.init()

    Traceback (most recent call last):

      File "<stdin>", line 1, in <module>

    NameError: name 'pfio' is not defined

     

    NG !

     

    >>> import pifacedigitalio

    Traceback (most recent call last):

      File "<stdin>", line 1, in <module>

      File "/home/pi/.local/lib/python3.7/site-packages/pifacedigitalio/__init__.py", line 18, in <module>

        from pifacecommon.interrupts import (

    ModuleNotFoundError: No module named 'pifacecommon'

     

    NG !

     

    >>> pifacedigitalio.init()

    Traceback (most recent call last):

      File "<stdin>", line 1, in <module>

    NameError: name 'pifacedigitalio' is not defined

     

    NG !

     

    >>> pifacedigitalio.digital_read(1)

    Traceback (most recent call last):

      File "<stdin>", line 1, in <module>

    NameError: name 'pifacedigitalio' is not defined

     

    NG !

     

    >>> pfio.init()

    Traceback (most recent call last):

      File "<stdin>", line 1, in <module>

    NameError: name 'pfio' is not defined

    >>>

    KeyboardInterrupt

    >>>

     

    NG !

     

    >>>

    =================================================

     

    By the way , I tried to install also " pip3 install python3-pifacedigital-emulator " and

    " pip3 install python3-pifacedigital-scratch-handler " but  I'm faced to these errors :

     

    Could not install packages due to an EnvironmentError: 404 Client Error: Not Found for url: https://pypi.org/simple/python3-pifacedigital-emulator/

     

    Could not install packages due to an EnvironmentError: 404 Client Error: Not Found for url: https://pypi.org/simple/python3-pifacedigital-scratch-handler/

     

    So , thank you in advance for your help and if you can send to me these information and I hope that I'll have a chance to see working this PiFaceTm Digital 2 module what I baught it in November 2019 !

    Antonio.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • cstanton
    0 cstanton over 5 years ago in reply to davinha

    pip3 install pifacecommon

     

    Here are the other modules: https://pypi.org/search/?q=piface

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • davinha
    0 davinha over 5 years ago in reply to cstanton

    Hi Christopher ,

     

    Thank you very much for this information , it was installed successfully with this command " pip3 install pifacecommon " !

    Now I can use "python software " to read or write the all ports !

    Very good !

    Please , just one last thing , is it possible to have also the necessary to install and use the " Piface Digital-emulator " as explained in the pages 11-12 of " 1881551.pdf " , found on http://mchobby.be/data-files/RASP-PIFACE-DIGITAL2/Operating-Instruction.pdf ?

     

      I tried to install also " pip3 install python3-pifacedigital-emulator " and

     

    " pip3 install python3-pifacedigital-scratch-handler " but  I'm faced to these errors :

     

    Could not install packages due to an EnvironmentError: 404 Client Error: Not Found for url: https://pypi.org/simple/python3-pifacedigital-emulator/

     

    Could not install packages due to an EnvironmentError: 404 Client Error: Not Found for url: https://pypi.org/simple/python3-pifacedigital-scratch-handler/

     

    Many thanks for you answer and if you have the right information for the " python3-pifacedigital-emulator  " i'll appreciate !

    Thank you very much again ,

    Antonio.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • cstanton
    0 cstanton over 5 years ago in reply to davinha

    As you will have seen at https://pypi.org/search/?q=piface  the emulator and scratch handler are not pip packages.

    image

    There's nothing I can do about this.

     

    You can try building/setting it up from the github repository https://github.com/piface/pifacedigital-emulator / https://github.com/piface/pifacedigital-scratch-handler

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • davinha
    0 davinha over 5 years ago in reply to cstanton

    Hi Christopher ,

     

    As you could see , I tried following the README.md from " https://github.com/piface/pifacedigital-emulator "

     

    Instructions for pifacedigital-emulator :

         An emulator for the PiFace Digital I/O board.

     

         Install :

         Make sure you are using the lastest version of Raspbian :

     

         $ sudo apt-get update

         $ sudo apt-get upgrade

     

         Install pifacedigital-emulator (for Python 3) with the following command :

     

         $ sudo apt-get install python3-pifacedigital-emulator

    Result :

    pi@raspberrypi:~ $ sudo apt-get install python3-pifacedigital-emulator

    Lecture des listes de paquets... Fait

    Construction de l'arbre des dépendances      

    Lecture des informations d'état... Fait

    E: Impossible de trouver le paquet python3-pifacedigital-emulator

    pi@raspberrypi:~ $

     

    The result is the same as for " sudo apt-get install python3-pifacedigitalio " , initial problem = " E: Unable to find the python3-pifacedigital-emulator package " !

     

    So , have you another way or maybe changing or add some information in " sudo nano /etc/apt/sources.list " ?

     

    Thank you very much in advance for your informations ,

    Antonio.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • cstanton
    0 cstanton over 5 years ago in reply to davinha

    davinha , you have to ignore the readme and merely download the github repo. the github repo has all of the files.

     

    image

     

    You'll notice this repository has 'setup.py' which you should probably investigate, similar for the other github link.

     

    https://github.com/piface/pifacedigital-emulator/issues/9#issuecomment-592191287

     

    It's unfortunately evident that using 'apt' or 'apt-get' to install the packages is never going to work until yourself or someone else maintains and sets up a new package for Raspbian for the files contained in the github repository.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • cstanton
    0 cstanton over 5 years ago in reply to davinha

    davinha , you have to ignore the readme and merely download the github repo. the github repo has all of the files.

     

    image

     

    You'll notice this repository has 'setup.py' which you should probably investigate, similar for the other github link.

     

    https://github.com/piface/pifacedigital-emulator/issues/9#issuecomment-592191287

     

    It's unfortunately evident that using 'apt' or 'apt-get' to install the packages is never going to work until yourself or someone else maintains and sets up a new package for Raspbian for the files contained in the github repository.

    • 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