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 Compatibility Piface Digital2 and other cards/hats
  • 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 Suggested Answer
  • Replies 9 replies
  • Answers 4 answers
  • Subscribers 665 subscribers
  • Views 1243 views
  • Users 0 members are here
  • rasberry_pi_3_b_plus
  • raspberry_pi
Related

Compatibility Piface Digital2 and other cards/hats

pd2
pd2 over 7 years ago

I have a Piface Digital 2 running as part of a home monitoring system and I want to use my second Digital 2 to control a slide projector and digital camera.

Unfortunately the Digital 2 is currently incompatible with my Displayotron. Using the two together stops the Displayotron LCD updates.

Is there a known workaround for this?

 

If there is no workaround is the PiFace Control and Display board compatible with the PiFace Digital 2?

 

Thanks!

  • Sign in to reply
  • Cancel
Parents
  • jomoenginer
    0 jomoenginer over 7 years ago

    JP1 and JP2 on the PiFace Digital 2 control the address to the board so you may have to change the addresses of each PiFace Digial 2 so it does not interfere with your Displaytron. 

    However, how are you connecting all of these devices?  Are they all stacked on top of the Pi?   If so, you maybe running into a power issue.

     

    Link to the PiFace Digital 2 Tech Spec:

     

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

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • pd2
    0 pd2 over 7 years ago in reply to jomoenginer

    Thanks for replying.

    PSU is 2.5amp so I don't think that its the problem.

    Tried rebooting with JP1 and JP2 off and I still have the same result.

     

    The Displayotron board is working because I can get input from the keypad and the LCD backlighting responds ok but sending text to the LCD is ignored when the Piface digital is installed.

     

    So somewhere they are fighting each other. Any other suggestions welcome! image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • pd2
    0 pd2 over 7 years ago in reply to pd2

    Just to clarify I should have said that my second Piface is on a different Raspi.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • pd2
    0 pd2 over 7 years ago in reply to pd2

    Just to clarify I should have said that my second Piface is on a different Raspi.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
  • jomoenginer
    0 jomoenginer over 7 years ago in reply to pd2

    Yeah that helps.   How do you have the Displayotron and the Digital 2 connected to the Pi?

     

    I am not sure what address will result with the jumpers off on the Digital 2 but the default is 0.  You can move the jumpers to change that address..

    http://www.farnell.com/datasheets/1881551.pdf

     

    Is this the device you are connecting?

    https://pinout.xyz/pinout/display_o_tron_hat

     

    RasPi Pinout:

    https://pinout.xyz/

     

    You can compare this with the Pinout of Raspberry Pi and see if the Digital 2 has a conflict with the Displayotron.

     

    I've stacked the Digital 2 with other PiFace devices using the PiFace Rack but not sure how other devices play with it.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • pd2
    0 pd2 over 7 years ago in reply to jomoenginer

    I'm using a Pimoroni PhatStack "backplane" to connect everything.

    It has worked ok with other modules.

    The PiFace2 and the Display--o-tron are the only modules on the backplane.

    I;m going to have to have a look at the Configurator. I guess it will show that the boards are incompatible but I don't yet know how to use it.

     

    In the meantime some more details of what I tried.

    1. System update just in case something important was missing. No change.

    2. Piface is initialised here

              Import pifacedigitalio as pfio

              Pfio.init()

     

    3 Jumper Tests

     

    JP1 pins 1 and 2: JP2 pins 1 and 2

    relay clicks, screen cursor on with relay on command (not desired)

     

    Reboot

     

    JP1 pins 2 and 3: JP2 pins 1 and 2

    Python crash see below

     

    Reboot

     

    JP1 no jumper JP2 pins 1 and 2

    JP1 no jumper: relay clicks, screen cursor on with relay on command (not desired)

     

    Reboot

     

    JP1 no jumper JP2 no jumper

    JP1 no jumper: relay clicks, screen cursor on with relay on command (not desired)

     

    Reboot

     

    JP1 pins 1 and 2: JP 2 pins 2 and 3

    Python crash see below

     

    Reboot

     

    JP1 pins 2 and 3: JP2 pins 2 and 3

    Python crash

    See below

     

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

    Details of Python crash.

     

    Traceback (most recent call last):

      File "/home/pi/Desktop/scanner01.py", line 247, in <module>

        scan_slide ()

      File "/home/pi/Desktop/scanner01.py", line 103, in scan_slide

    pfio.digital_write(proj_relay,1) # on

      File "/usr/lib/python3/dist-packages/pifacedigitalio/core.py", line 233, in digital_write

    _get_pifacedigital(hardware_addr).output_pins[pin_num].value = value

      File "/usr/lib/python3/dist-packages/pifacedigitalio/core.py", line 284, in _get_pifacedigital

    "hardware_addr {}".format(hardware_addr))

    1. pifacedigitalio.core.NoPiFaceDigitalError: There is no PiFace Digital with hardware_addr 0

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

     

    So it seems some kind of address conflict but why can PiFace not find its own module when the address is changed?

     

    I'm now more confused than I was before...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jomoenginer
    0 jomoenginer over 7 years ago in reply to pd2

    By default the PiFace Python code defaults to address 0 which is the default for the Digital 2. Thus, If you change the address, then you need to change the value in the code to match the address on the Digital 2.

     

    Hint:

    pifacedigitalio.core.NoPiFaceDigitalError: There is no PiFace Digital with hardware_addr 0

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • pd2
    0 pd2 over 7 years ago in reply to jomoenginer

    OK that was extremely helpful in one way!

    I had never needed to install multiple PiFace boards so did not know that/search for hardware addressing must also be addressed in the software so thanks VERY much for that help.

    I learnt something important.

     

    So for anyone else who might need help my PiFace write statement for a different hardware address looks like this.

     

    pfio.digital_write(proj_relay, on, pif_addr)

    where pif_addr is the hardware address from the jumpers in the documentation table.

     

    However I have now tried all the possible hardware addresses - with the same results. The display o tron will not update correctly.

     

    So there must be a different address conflict somewhere!!!

    But thanks again for eliminating one possible problem.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jomoenginer
    0 jomoenginer over 7 years ago in reply to pd2

    Yeah, looking at a schematic of a PiFace Digital I/O, which I am assuming is the same as a Digital 2, both the Digital 2 and the Display-O-Tron use the same pin (pin 25/ BCM 8)  for the CE/SS; LCD Chip Select for the Display.  With SPI,  you can Daisy Chain multiple SPI devices as long as each device can pass the command to the next device if it can detect which command is for itself.  With multiple PiFace devices connected I believe this is the case.  However, I am not sure it is the case with the Display-O-Tron.  If the devices do not play nice together, you want a separate pin for the CE/SS otherwise all devices connected to the same CE will get enabled when the pin is asserted.  Also, looking at the PiFace code, it uses an Interrupt signal set to 25 which may mean BCM25 or Pin 22 where the Display-o-tron is using pin 22 for its LCD Register Select.

     

    http://community.mydevices.com/t/piface-2/1625/8

     

     

    From what I can read, the Display-o-Tron has an optional I2C connection so you may try controlling the Display with I2C and the Digital 2 with SPI to avoid the conflict. But, this may not solve the issue considering the uses with pins 22 and 24.

     

    The other option is to take one of the devices and modify the physical connection to it so the CE/SS and other conflicting signals are routed to other pins from the Pi that are not being used.  You would then have to change the code to reflect this so it knows which pin is the new CE for that device.

     

    I do not having a Display-o-Tron myself, so that is all I can come up with.   You may want to contact Pimoroni and see what they say. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • pd2
    0 pd2 over 7 years ago in reply to jomoenginer

    Thanks I have sent them an email and when I get a reply will share it. Really appreciate the help.

    • 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