element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • 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
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • 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 control and display board and DS18B20 thermometer
  • 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 4 replies
  • Subscribers 706 subscribers
  • Views 851 views
  • Users 0 members are here
  • raspberry_pi
Related

control and display board and DS18B20 thermometer

borrit
borrit over 9 years ago

Can I connect a piface control and display board as well as a DS18B20 thermometer to my Pi?  They both seem to need GPIO pin4

  • Sign in to reply
  • Cancel
Parents
  • royleith
    0 royleith over 9 years ago

    I assume you mean GPIO 4 rather than GPIO P1 Header physical pin 4 (which is a second 5V supply).

     

    My documents do not show any alternative functions for GPIO 4 (alternative function examples would be I2C or serial ports).

     

    I checked the piface document,

     

    http://www.piface.org.uk/assets/docs/PiFace-Relay-Plus_getting-started.pdf

     

    and it appears to use I2C to drive expansion ports and the add-on PiFaceTm Relay+ has 4 general purpose input output (GPIO) pins in addition to LEDs and relay drivers all accessed by I2C.

     

    The product allows for several boards to be stacked by using different I2C addresses. This should mean that the GPIO 4 pin is not used by piface and is accessible on the pins provided by piface for stacking additional boards.

     

    If piface blocks access to GPIO4 in some way, change the software for the thermometer to address one of the piface general purpose input output (GPIO) pins.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • borrit
    0 borrit over 9 years ago in reply to royleith

    Thank you for your response.

     

    Yes, I do mean GPIO4, not pin 4

     

    It's the Piface control and display board I am wanting to connect, not the Piface relay board.

     

    I have tried to change the GPIO which the thermometer uses in the config file (dtoverlay=w1-gpio,gpiopin=6) but to date not successfully.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • royleith
    0 royleith over 9 years ago in reply to borrit

    Hi Joe,

     

    I misunderstood the available documentation and assumed that Control and Display was an alternative plug-in module to piface.

     

    The display is almost certainly using I2C. It is a standard display unit and probably driven by an equivalent to one of these I2C interfaces. ,

     

    IIC/I2C/TWI/SPI Serial Interface Board Module for Arduino 1602 LCD Display 5V | eBay

     

    Don't use these with the Raspberry Pi. They are supplied without the components required to boost the 3.3V of the I2C connections to 5v to drive the display.

     

    I suspect that the IR detector, buttons and navigation of the Control and Display use I2C expansion as well, but there is practically no information I can find about the electronics involved and there is no confirmation that only I2C is used to communicate between the Pi and the piface. I notice that Control and Display 2 has two address lines, but there is nothing to say what these are for.

     

    The GPIO pins are not available when the piface unit is installed and the unit is not stackable. Other than soldering wires on to the piface GPIO pads, there is no way to connect the temperature module.

     

    There are lots of devices available for low prices that interface with temperature, humidity, displays, photo detectors, et al and they are all driven from Arduinos. Many can be driven from the Raspberry Pi GPIO, but have reduced performance at 3.3v.

     

    Here's one I found earlier:

     

    1PC DS18B20 Digital Temperature Sensor temperature Module for Arduino BH | eBay

     

    This is a potential solution to your problem that I am looking at for my own use. It makes the full performance of Arduino GPIO connected modules available to the Raspberry Pi without needing Raspberry Pi GPIO connections.

     

    Digispark Kickstarter Micro General USB Development Board For Arduino ATTINY85 W | eBay

     

    This one plugs straight into a full USB port, but others use a USB cable. You can program the ATtiny85 using the program 'arduino' on the Raspberry Pi. Shields (programs) are available to interface with practically anything. Bear in mind that the ATtiny85 has a maximum of six GPIO pins and only four when using the USB port to interface with the Pi. However, those four are enough for I2C devices and 'Dallas one-wire' devices like the DS18B20. The data from the 'tinyArduino' should be accessible from Python within the Raspberry Pi in the same way as with any computer interfacing with Arduino devices. Please bear in mind that these are not standard Arduino boards and that some configuration of the arduino program in the Pi is required. They may require Digispark Python modules for USB communication rather than the standard serial Arduino python modules.

     

    If you want a Swiss Army Knife solution, then this:

     

    MINI USB Nano V3.0 ATmega328P CH340G 5V 16M Micro-controller board Arduino MO | eBay

     

    is easier to program and use because it is a mainstream Arduino device. It has loads of GPIO pins, but is much bulkier (as big as some USB flash drives!). It could be used for multiple detectors, controls and an I2C display. It will work in conjunction with the piface and within the same Python program by loading the required Python library modules.

    DON'T CONNECT ARDUINO GPIO PINS TO RASPBERRY PI GPIO PINS.

    The Arduino usually  uses 5V. The Atmel controller chips in Arduino boards will run at 3.3V rather than 5V, which makes them Raspberry Pi GPIO friendly, but at reduced clock speeds.

    Any Arduino board powered from the USB port will be running at 5V.

    Please don't take the, above, links as recommendations. There are a huge range of manufacturers and suppliers of all of these devices.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • borrit
    0 borrit over 9 years ago in reply to royleith

    Hi Roy

     

    Thanks for your detailed response.  Lots of things to try out image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • borrit
    0 borrit over 9 years ago in reply to royleith

    Hi Roy

     

    Thanks for your detailed response.  Lots of things to try out image

    • 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 © 2026 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.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube