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
  • 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 Is it possible to read digital temperature sensors with a PiFace?
  • 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
  • Replies 19 replies
  • Subscribers 679 subscribers
  • Views 2288 views
  • Users 0 members are here
  • pi-face
  • helpme
  • raspberry_pi
  • learning
  • prototyping
  • raspberrypi
  • adafruit
  • piface
Related

Is it possible to read digital temperature sensors with a PiFace?

Former Member
Former Member over 12 years ago

Hello there, would the TSL2561 (http://adafruit.com/products/439) and the DHT11 (http://adafruit.com/products/386) work with the Raspberry Pi + PiFace connected to a breadboard? I have a first small project where I want to sense temperature and light and control a heater, fan and lights according to those sensors measurements. Is this at all possible? It seems once you connect the PiFace, the GPIO is completely occupied so I cannot connect i2c devices with the PiFace connected to the Raspberry Pi. I've tested some python code within the PiFace emulator and I can get the LEDs and relays working. If I cannot connect the two sensors listed above, is there another way to utilize them on the same Raspberry Pi that has the PiFace connected?

  • Sign in to reply
  • Cancel
  • Former Member
    Former Member over 12 years ago

    Well if you're happy wielding a soldering iron, you can always add some extra connections.

     

    Be aware though, that DHT11 doesn't appear to be I2C device, so you'll need some dedicated GPIO's for it. A quick search didn't turn up any schematics for the pi-face, so no idea if there's any free.

     

    It will normally be ok to share i2c among multiple devices as long as they all run at the same voltage and don't have conflicting addresses (and level shifters are available for any 5v devices).

     

    There's also some equivalent i2c humidity/temperature sensors available such as the Sensiron SHT21 and Honeywell Humidicon HIH6130 that you could use in place of the DHT11, although these will likely cost more.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to Former Member

    It's a bit frustrating that PiFace doesn't provide schematics for the board in a convenient and accessible place. As far as I can tell, PiFace uses the SPI bus only and leaves most of the other GPIOs untouched but without a schematic, it's hard to be sure.

     

    PiFace needs to fix this IMHO.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to Former Member

    I did think it was a bit odd for something produced for education by an educational institution to be lacking schematics. Most everyone else has realised that you need them for anything even remotely useful.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to Former Member

    Hi there, are there any updates on this? I'd like like to know if there are any others solutions or workarounds.

     

    In my case I'd need two sensors connected and what I have a PiFace board connected to my raspberry pi board.

     

    Looking forward,

    Alex

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to Former Member

    Well as the PiFace only uses the SPI pins, you're free to use any of the rest. You just need to sort yourself some method to connect to them.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to Former Member

    selsinork: Have you managed to connect at least one temperature sensor? I'm not sure if I can connect two of them. Thanks!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • mcb1
    mcb1 over 12 years ago in reply to Former Member

    Piface Digital schematic is available here

    http://pifacedigital.wordpress.com/2012/05/02/kernel-driver-delays-and-new-interface-board/

     

    Unforunately, you'll need to be handy with a soldering iron to add connections onto the GPIO connections, as the PiFace socket doesn't extend through.

    You can either remove the existing one and replace with one that has the longer pins or,

     

    I used two single strips soldered carefully onto the top of the GPIO connector.

    Solder the one closest to the relays first, and then when you're happy with that, solder the other on.

     

     

    There is a link for reading a DS18B20 using GPIO #4

    http://www.element14.com/community/groups/raspberry-pi/blog/2012/07/26/is-it-done-yet-temperature-sensing-with-the-raspberry-pi#comment-16221

     

    Adafruit has one at

    http://learn.adafruit.com/adafruits-raspberry-pi-lesson-11-ds18b20-temperature-sensing

     

    This link shows the functions etc of the GPIO and is less confusing than some others.(imo)

    http://elinux.org/RPi_Low-level_peripherals#General_Purpose_Input.2FOutput_.28GPIO.29

     

     

    Cheers

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to Former Member

    Alex Szilagyi wrote:

     

    selsinork: Have you managed to connect at least one temperature sensor? I'm not sure if I can connect two of them. Thanks!

    I'm not using a PiFace myself, just directly connecting to the GPIO header.

     

    I have three mcp9803 temperature sensors, a humidity sensor and a barometric pressure sensor all connected to the I2C bus, you just need to follow the stuff in the link Mark posted and configure all of your I2C devices with different addresses. The mcp9803's I'm using have three address lines, so you can connect up to eight of them. Although it does depend slightly on what other things you connect as it's always possible to have an address conflict due to the limited number of addresses available.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to Former Member

    I'd be interested to know if you have suggestions on how to use the sensor as part of a trigger for a solenoid? For example, at 500m (altitude) I'd like to activate a solenoid. Yes, I am an amateur...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to Former Member

    Shouldn't be too hard, there are formula to convert pressure into altitude. So read the sensor, evaluate the formula and if the result has passed 500m you set a GPIO to activate the solenoid.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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 © 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.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube