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 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
      •  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
Blog Show messages on 16x2 LCD | Pi4J | JAVA | Raspberry Pi
  • 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
GPIO Pinout
Raspberry Pi Wishlist
Comparison Chart
Quiz
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: oksbwn
  • Date Created: 23 Jan 2017 9:56 AM Date Created
  • Views 1616 views
  • Likes 0 likes
  • Comments 4 comments
Related
Recommended
  • tutorial
  • lcd on p
  • pi4j
  • pi
  • 16x2
  • raspberry pi
  • howto

Show messages on 16x2 LCD | Pi4J | JAVA | Raspberry Pi

oksbwn
oksbwn
23 Jan 2017

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

Showing messages on 16X2 LCD display by interfacing with Raspberry Pi using JAVA and Pi4J library.

Intro visual Source: http://pi4j.com

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

Links :

Java Application on Pi Playlist: http://bit.ly/2eB1O2K

Schematic : http://bit.ly/2kiVhvW

Pi4J GPIO Numbering : http://bit.ly/2ja20av

Download Pi4J Library : http://bit.ly/2j32blF

Code : http://bit.ly/2jPIoZs

********************************************************************

Subscribe YouTube : https://goo.gl/FhfdL7

 

 

Guys Subscribe to my channel for latest contents into your inbox.

Support me to keep going.

___________________________________________

 

Website : http://www.weargenius.in

Twitter : https://twitter.com/geekybikash

YouTube : https://www.youtube.com/weargenius

Instagram : https://www.instagram.com/weargenius/

GIT : https://github.com/oksbwn

Facebook: http://www.facebook.com/geekybikash

  • Sign in to reply

Top Comments

  • Former Member
    Former Member over 8 years ago +1
    Great post! Its nice to see some Raspberry Pi projects using Java
  • narraccino
    narraccino over 8 years ago in reply to oksbwn

    Hi Bikash,

    first thank you for your answer: you're gentle.

     

    I rebooted the Pi but the error is still here. You can check the code here and i followed the video on the top.

    As you can see the program uses gpio.shutdown

     

    CODE:

    https://github.com/oksbwn/16X2-LCD-Raspberry-Pi_Pi4J/blob/master/main.java

     

    ERROR:

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • oksbwn
    oksbwn over 8 years ago in reply to narraccino

    the Eclipse error is as usual and nothing to worry about it as you are compiling a program meant for Raspberry pi gpio on other system . so it's ok. now export the executable jar file and it should work. regarding the first one it looks like you are redeclairing the same gpio object. try to reboot the pi. and in the program you can use gpio.shutdown when you quit the application. you can achieve that by using shutdown hook.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • narraccino
    narraccino over 8 years ago

    Hi, i followed the guide but there is this error when i execute the JAR file

    image

     

    this is the OUTPUT of Eclipse

     

    image

     

    What is the problem? i can't use the LCD with this error

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

    Great post! Its nice to see some Raspberry Pi projects using Java image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • 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