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 Projects
  • Products
  • Raspberry Pi
  • Raspberry Pi Projects
  • More
  • Cancel
Raspberry Pi Projects
Blog PiFace Control & Display - The Ultimate Raspberry Pi Bundle
  • Blog
  • Documents
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi Projects to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: mazzmn
  • Date Created: 1 Feb 2014 4:12 AM Date Created
  • Views 719 views
  • Likes 0 likes
  • Comments 0 comments
  • lcd
  • rpiintermediate
  • rpibeginner
  • ssh
  • startup
  • vnc
  • vncserver
  • winscp
  • raspberry-pi
  • init.d
  • road_test
  • raspberry_pi_projects
  • vncviewer
  • adafruit
  • piface
Related
Recommended

PiFace Control & Display - The Ultimate Raspberry Pi Bundle

mazzmn
mazzmn
1 Feb 2014

I've been blogging about my experiences in Road Test reviewing the Ultimate Raspberry Pi Bundle. As a part of this Road Test I'm creating a Fridge/Freezer Temperature Alarm system for our local food shelf. You can see where this Road Test started for me here

 

My next step is to add an LCD display connection

I have two choices with the The Ultimate Raspberry Pi Bundle

  • Adafruit RGB Positive 16X2 LCD & Keypad Kit
  • PiFace Control & Display

 

I'm going to start with the PiFace Control & Display because it doesn't need to be soldered together and it features an interesting Remote Control interface. I'm glad that both items include the option of control buttons (should be handy for adjusting the temperature sensor and for use as a "snooze alarm" button for my Temperature Alarm System.

 

The PiFaceimage Control & Display is a plug and play device that allows you to use and control your Raspberry Pi without a keyboard, mouse and monitor. It saves space and power yet still provides a simple and functional user interface.

 

Getting Started

A perfect place to get started is with the PiFace Quick Start Guide  and it's setup instructions

This document walked me through the simple process of

  • aligning the CAD shield and connecting it to the Pi
  • Enable the SPI bu by running: sudo raspi-config, option 5
  • the installation of Control and Display software by running
    sudo apt-get install python3-pifacecad
  • Testing the device with the handy sysinfo.py command
    python3 /usr/share/doc/python3-pifacecad/examples/sysinfo.py
    Note: the sysinfo.py example command shows the IP address and temperature of the Raspberry Pi. Having the IP address is handy for times when I want to use SSH to start vncserver and then vncviewer to connect to the system

 

image

 

I put the Pi away and when I came back to try it again the next day. To my surprise, sysinfo.py made the screen flicker but display nothing. The troubleshooting section in Quick Start Guide mentioned :

If your LCD has nothing appearing on it or its character spaces are all

black, try adjusting the contrast screw with a small star head screwdriver.

But it doesn't exactly say where that is...look for the screwdriver in the lower right hand corner of the picture...that's where the adjustment screw is:

image

 

 

One question I have is with the CAD in place, how can I easily access the other ports available, ...looks like they are available on top??

 

Wake Up with Sysinfo!

As I mentioned in my last post I like connecting to my Pi using vnc and in the interest of learning something new, I decided to have the sysinfo program run at startup for my Pi. This way no matter where I plug it...it will display the IP address it has been assigned and then I can easily SSH to it (and optionally run vncserver)

In order to make sysinfo.py run at startup, I had to:

  • Copy the sysinfo.py program to sysinfo1Time.py and modify it so that it no longer loops forever.
  • register the sysinfo1Time.py program so it runs at startup

 

To modify sysinfo.py script so it no longer loops forever, you simply need to:

  • comment out line 48, the while True statement in the show_sysinfo() routine.
  • comment out line 57, the while Sleep statement in the show_sysinfo() routine.
  • change the indentation on the show sysinfo() routine


To Run the sysinfo1Time.py at startup, you simply need to:

  • create a file in /etc/init.d that calls the new sysinfo1Time.py script (I've called it SysInfostart and attached it to this blog post)
  • chmod +x /etc/init.d/SysInfostart
  • test running the script so it won't hang or error out at reboot
  • register the command to run at startup by running the command:
    sudo update-rc.d SysInfostart defaults
  • Should you want to stop having this program run at startup run the following command:
    sudo update-rc.d -f SysInfostart remove

 

Now reboot the Raspberry Pi and you'll see "Waiting for IP...." and then the IP Address of your Pi will appear

 

To use VNC to connect to the Pi you simply need to:

  • run ssh or putty from your windows machine to the ip address. An easy way to do this is to install Winscp and use it

image

Once you log on to the Pi with WinScp, click on the ,Open Terminal icon and you can run commands on the system...in this case we want to run the vncserver command

image

And finally you'll be able to connect using vncviewer.

Vncviewer gives you a full gui environment running on the Pi

image

 

 

Next steps for me on the Ultimate Raspberry Pi Bundle review........create something useful with the  PiFace Control & Display....it's called the Automatic One-Liner Machine

 

Also ...things to look into...I found if I want to try to debug the problem with my XBMC SD card, I should take a look at this page R-Pi Troubleshooting - eLinux.org

Attachments:
SysInfostart.zip
TheQuoteMachine.py.zip
6560.SysInfostart.zip
  • Sign in to reply
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