Sunday, January 15, 2017

Getting Started with robo4j-hw-rpi

This blog will provide a step-by-step instruction for how to quickly get started with the robo4j-hw-rpi module. We will use the Adafruit LCD as an example, but any of the supported hardware would be used in pretty much the same way. Also, if you wish support for certain 1 wire protocol sensors, like the Dallas DS18B20 temperature sensors, or the AM2302/DHT11/DHT22 temperature and humidity sensors, you can find a library for them in my private blog (for now).

Installing the Software

First of all the software required must be installed on the Raspberry Pi:
  1. Install PI4J.
    curl -s get.pi4j.com | sudo bash
  2. Set up the Raspberry for i2c communication.
  3. Install the Oracle JDK (if not already installed).
    sudo apt-get install oracle-java8-jdk
  4. Ensure that the Oracle JDK is the one in use (use java –version to verify).
    If not change so that it is. There can be a massive performance difference
  5. Clone the robo4j repo.
    git clone https://github.com/Robo4J/robo4j.git
  6. Run gradlew build in the robo4j root directory.
  7. Install Eclipse (optional, but good if you want to play around with the examples a bit).
    apt-get install eclipse

Setting up Eclipse (Optional)

For an easy way to play around with the examples, we can set up Eclipse on our Raspberry Pi.
  1. Install Egit.
    Inside of Eclipse, go to Help | Install New Software…
    Add a new update site with the following URL:
    http://download.eclipse.org/egit/updates-3.7.1/
  2. Install the Gradle plug-in.
    http://download.eclipse.org/buildship/updates/e42/releases/2.x/
  3. Go to Robo4J on GitHub and clone the repo using Egit from within Eclipse.
  4. Import the projects into Eclipse.
Note that the Eclipse version currently installed by Raspbian will be a rather old version - Eclipse 3.8.0. This unfortunately means that it will not support JDK 8. This does not matter, as the robo4j-hw-rpi and robo4j-math projects only require Java SE 1.7.
Normally you would probably like to develop in a more modern version of Eclipse (or some other IDE) and just use the command line to build robo4j.

Running the Demos

There are two ways of running the demos. One through building the robo4j.jar file with Gradle, and one through Eclipse.
Here is how you would, for example, run the LCD demo using the robo4j.jar built by gradle:
sudo java –classpath robo4j-hw-rpi/build/libs/robo4j-hw-rpi-alpha-0.2.jar:/opt/pi4j/lib/* com.robo4j.hw.rpi.i2c.adafruitlcd.Demo
If you are playing around with the code in Eclipse, do the following:
  1. With Eclipse started, open a command line and change directory to the robo4j/robo4j-hw-rpi/bin folder.
  2. Search for the demo/example corresponding to the hardware set up you want to test in the examples folder in the eclipse project.
    For example, if you have an Adafruit LCD shield, you would use the com.robo4j.hw.rpi.i2c.adafruitlcd.Demo class.
  3. Run the demo from the command line.
    Do not forget to add the PI4J classes to the classpath, for example:
    sudo java –classpath .:/opt/pi4j/lib/* com.robo4j.hw.rpi.i2c.adafruitlcd.Demo
Running the LCD shield demo would show you something similar to this:

Have fun!

54 comments:

  1. Really very informative blog..Keep in blogging regularly to update these kinds of informatives.. Wish to learn Java, enroll you in Java Training in Velachery to learn more....

    ReplyDelete
  2. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Java developer learn from Java Training in Chennai. or learn thru Java Online Training India . Nowadays Java has tons of job opportunities on various vertical industry.

    ReplyDelete
  3. Such an informational blog, your blog will provide step-by-step instructions for how to quickly get started with the robo4j-hw-rpi module. We have wide range of wireless humidity sensors and wireless temperature sensors which are used 1 wire protocol.

    ReplyDelete

  4. Kavita Sharma VIP female calls girls Escort service without condom French full Sexx yearly Sexx sucking and screwing in delight service independent escort service private girls 100% safe and secure 24 hours available!!!!!
    Surat Escorts
    Call Girls in Surat

    ReplyDelete
  5. Delhi Call Girls Agency, we are one among the various escort organization providing food young ladies for sexual administrations in Delhi and NCR. Our administrations are expanded all over Delhi and edges. We keep up unmistakable class of young ladies at all the majority of noticeable districts of the Delhi to guarantee our customers immediate and wanted administrations. Our Call Girls in Delhi are best class of young ladies giving extreme joy and furthermore moving message to not to surrender except if you achieve your point. Our Escort Service in Delhi attempt to change viewpoint towards life however yes they show the procedures to appreciate life and grin against the odd of life. Likewise become familiar with the procedures to make meeting more acceptable and interesting with escort young ladies.

    ReplyDelete
  6. We are related with qualified, taught proficient and elegant escort young ladies so you can invest a decent energy with these Call Girls in Mahipalpur. Our youngsters can offer their organizations at five-star lodgings, four-star motels or three-star hotels too yet in case you moreover need organization at your home they can even come there as well, they can come and visit you seven evenings each week holding up the early hours of the sunrise generally advantageous and real administrations. So Guys view our best choice of world Escort Service in Mahipalpur benefits, and connect with our telephone chief and request the best young lady chose by you from our image display. We are even accessible in a wide zone of Delhi-NCR for our administrations.

    ReplyDelete
  7. This is the best escort services in Connaught Place may be gainful for you on the off chance that you are looking for a mindful female partner. We give prominent call girls in Connaught place for your happiness and ravishment. In the event that you're remaining in any lavish lodging close to Connaught Place, selecting an escort young lady may upgrade your delight. We have an incredible assortment which includes a scope of alternatives so you can pick what sort of young lady makes your day. These Escort Service in Connaught place have assumed control over the holy messengers and appear to be an impression of prostitutes. There is a ton organized your delight, for example, extravagance bars and clubs where you can meet with complex females of the town. Indeed, you would happy to realize that a large number of the esteemed women of metropolitan zones of Delhi are our regarded bunch individuals. You can get one of them by calling @ 9654120218.

    ReplyDelete
  8. Call Girls in Paharganj: - We are the unparalleled rumored accompanies administration in Paharganj from most recent couple of years. We have the Call girls in Paharganj from any remaining areas. Our Call young ladies in Paharganj are sought after for the voyagers, outsiders and many businessmen's. You can get easygoing gatherings with hot young ladies whenever they are likewise the craving to meet you. In the event that you are feeling desolate and searching for a delightful partner who can give all your necessities, at that point you are continuing immediately. We can orchestrate a calm sentimental date for you with our Paharganj Escorts the help is open all day, every day for you. We have a huge assortment of young ladies to settle on your longing and decisions complete. Our escorts organization currently turns into a top decision for everybody and this on account of our quality help to customers. Escorts Service in Paharganj is consistently accessible at your support of offer you the best Escorts joy in Paharganj.

    ReplyDelete
  9. The only organization that provides CBSE, NCERT, and State wise board solutions for free, that too online.
    So you can get an online test series of NEET and JEE 2020 for free.
    CBSE solved paper
    Free Resource Centre

    NEET previous year solved paper
    JEE previous year solved paper
    JEE
    SSC Resource centre
    JEE previous year solved paper

    NEET

    ReplyDelete
  10. Are you looking for a young and hot Escort near you then contact me as soon as possible.
    Escorts Service
    Call Girls

    ReplyDelete
  11. This is Riya a young and hot Gurgaon Escort. I am 24 hours available to make your day wonderful and enjoyable. You will enjoy a lot with me.
    Gurgaon Call Girl
    Gurgaon Escorts
    Delhi Escorts

    ReplyDelete
  12. This is Soniya a young and hot Escort in Gurgaon. I am always ready to give you all types of fun and enjoyment at any places.
    Escorts Service in Gurgaon
    Call Girls in Gurgaon
    Escorts in Huda City Center
    Aerocity Escorts
    Mahipalpur Escorts

    ReplyDelete
  13. I always treat my customers well and naturally, without haste and in a delicious way. I'm what you're looking for in a woman, a mix of silage, madness and pleasure. I'll make you super at ease and you'll have a delicious orgasm with your legs trembling.
    Delhi Escorts
    Delhi Call Girls
    Escorts in Saket
    Gurgaon Call Girls
    Mumbai Escorts
    Call Girl in Jaipur
    Mumbai Call Girls

    ReplyDelete
  14. You will see that I am very passionate and that I give myself completely to leave you very satisfied. My services are super tasty with a lot of skill and a lot of sensuality making your fire alight.
    Escorts in Gurgaon
    Kolkata Escorts
    Escorts in Jaipur
    Hyderabad Escorts
    Bangalore Escorts
    Escorts in Goa

    ReplyDelete
  15. Connect Dubai Fun Club for premium Dubai Escorts and entertainment services. You can easily find the best call girls in Dubai on our website.

    ReplyDelete
  16. “Interesting  information, thanks for making these contributions.
    Great  information Glad to find your article.!This blog is really very informative.
    Thanks for sharing it with us
    bangalore escorts 
     bangalore call girls 
    bangalore russian escorts 
    bangalore cheap escorts 
    bangalore escorts service 

    ReplyDelete
  17. You are looking at a highly seductive lover who knows how to please a man. I will put a smile on your face in no time. I'm going to show you all my skills, and we're going to get along very well between four walls.

    https://priyaescortt.minnie88.com/mumbai-escorts-gallery.html

    ReplyDelete
  18. You are looking at a highly seductive lover who knows how to please a man. I will put a smile on your face in no time. I'm going to show you all my skills, and we're going to get along very well between four walls.

    Mumbai Call Girls
    Mumbai Escort
    Thane Escort
    Nariman Point Escort
    Colaba Escort
    Khar Escort
    SantaCruz Escort
    Bandra Escort

    ReplyDelete
  19. I'm here to satisfy your wishes, and my main goal is to give a lot of pleasure to the client. I'll take care of you the way you deserve it and I'll give you the best deal and the hottest sex you'll ever try.

    Mumbai Escort
    Jaipur Escort
    Delhi Escort
    Gurgaon Escort
    Gurgaon Escort
    Delhi Escort
    Bangalore Escort
    Hyderabad Escort
    Kolkata Escort

    ReplyDelete
  20. My service is very tasty, with a lot of will and without any hesitation, I guarantee that you will not regret it. I am super sensual and I will involve you from start to finish in our meeting.
    Delhi Escort Girl
    Delhi Call Girl

    ReplyDelete
  21. Hey sweetie, my name is Sneha and I'm a newly independent 24-year-old call girl. With me, you will have a pleasant time, full of passion and a lot of satisfaction that will always be etched in your memory.
    Escorts Service
    Escorts Service

    ReplyDelete
  22. You will spend an unforgettable encounter full of lust and sensuality, you will see that I am full of pleasure and seduction. I'm crazy to be your naughty little girlfriend so don't wait long to come and see me.

    Escorts Service
    Delhi Escorts Service
    Mumbai Escorts Service
    Gurgaon Escorts Service
    Bangalore Escorts Service
    Jaipur Escorts Service
    Hyderabad Escorts Service
    Thane Escorts Service

    ReplyDelete
  23. I love a naughty and neat sex session, as I'm going to make you forget about the world while you're with me. I will be waiting for you eager to meet you and give you the best sexual adventure of your life.
    Escorts Service
    Call Girls

    ReplyDelete
  24. Connect Apex Erotica for beautiful and hot girls entertaining services
    Dubai Escorts
    call girls in Dubai

    ReplyDelete
  25. Have you ever heard that an escort organization is allowing its girls and ladies to go to the client's home whenever they call? No, right. But at the Bangalore escort, even this service is also possible. There are times when clients feel tired to even walk to the escort and have fun. That's why the Bangalore escort agency has started this service. In this service whenever you call your favorite girl in Bangalore to your home, flat, restaurants, hotels, bars or pubs, they will come properly dressed up as you desire to have fun with you. And there you can do anything with them.

    This is another reason why the escort in Bangalore is famous. They want their client satisfaction and for that, they can do anything. The girls will be sent to your place by your desired time and then it's your responsibility of sending them back to the agency. You can have full fun sex, intercourse, and various other sexual moments with the girls. By the time they are with you, they are solely your property and the escort agency can't tell anything to you regarding the girls



    bangalore escort 
     bangalore call girls 
    bangalore russian escorts 
    bangalore cheap escorts 
    bangalore escorts 


    bangalore escorts 

    ReplyDelete
  26. We provide sexual with full safety and security to have intimacy. Our Nanital Sexy Call Girls is fully trained to create an enjoyable environment to make the mood of their full of romance. Fans after the erotic talks create the world's precious feeling that you been ever realized.

    ReplyDelete
  27. Come and enjoy the best sexual experience of your life with me, I will totally satisfy you. I'm willing to give you all the pleasure and attention you deserve, in bed I love fiery sex.
    Call Girls in Mumbai
    Mumbai Call Girls

    ReplyDelete
  28. I am experienced in the art of seduction and I am sure you will be fully satisfied by my side. Beside me, you will have that sex that makes you forget everything for a while.

    Call Girls in Delhi
    Delhi Call Girls

    ReplyDelete
  29. Are you guys exploring modern, impressive Delhi Escort Service in Delhi? We questioned this because we are suitable for conducting premium class and pretty Delhi Call Girls for your satisfaction. If you've got been lonely for an extended time, so some time has begun. We are here to supply the foremost essential services in Delhi to you. Yes, we are talking escort services in Delhi, which has imperialism of the cutest girls within the city. We penetrate the intensity of your heart to watch your wants, and this is often what keeps us better to the remainder of others. it's difficult to be alone during this exotic city of the state .
    Call Girls in Delhi could be a far better choice for a few space for spending class time and enjoying romantic dates. the foremost satisfying part is that these expert love-makers are accessible at rock bottom rates. If you're looking for entertainment here, so what might be better than selecting an escort girl in Delhi?
    https://delhiescortsnearme.blogspot.com/2021/04/cheap-rate-escort-service-in-delhi-any.html
    https://sites.google.com/view/escortdelhi/home

    ReplyDelete
  30. Welcome to the destination of life describing it's never complete without a partner. every one should have some needfulness of a partner in their life. a number of the lads are lucky they need more friends and that they are proud of their needfulness. But there are many that have the aim to still found their final destination. Welcome to the planet of the incredible lifetime of Call Girls in Mahipalpur. You’ll have your true companion for any event you've got within the world. Our Mahipalpur Escorts provides an entrancing choice for a high-quality time during a city of sovereign people.
    Escort Service in Mahipalpur were making real-time opportunities to supply a magical companionship for the critical phase of the meeting. Now, brooding about the premium escorts service, enjoy the creamy Mahipalpur Escorts Service with our female escorts. you'll feel the important joy of companionship which may offer you perfect happiness and privacy. We are covering each and each aspect to gratify your needs.
    https://mahipalpurescortaerocity.blogspot.com/2021/04/Charming-escort-services-in-mahipalpur.html
    https://sites.google.com/view/escortconnaughtplace/home

    ReplyDelete
  31. After browsing a true tedious work schedule on day to day , men would have the natural wants for a few kind of relaxation and happiness. it's very obvious that the women having the glamorous appearance and desirability would be ranking within the higher position compared to the standard individuals within the list. Such is that the case with the women performing at our agency and therefore the time spend under their guidance is actually fascinating enough to quench the lusty matters of men. Independent call girls in Connaught place is understood to be the foremost intriguing experts being the perfect choice for in call also as outcall mode of services.
    It would be very easy and cozy to possess these enchanting hotdog babes in your arms as they're highly cooperative in nature and behavior. There would be few loss incurred by the purchasers to possess these ladies involved in Escort Service in Connaught place as their intimate partners who have the capabilities of providing the utmost level of erotic entertainment.
    https://escortconnaughtplace.blogspot.com/2021/04/Call-girls-in-Connaught-Place.html
    https://sites.google.com/view/call-girls-in-connaught-place/home

    ReplyDelete
  32. The girls are entertaining and sparking they skills to charge your body. They like to entertain new peoples who are affected by a stressful life. all of them wish to provide you with the pleasure of a high level. we offer you together with your choice and desirable Escorts in Paharganj for the acute sex. Our agency has many Call girls in Paharganj who are from a special community. a number of the women are a university student, busty ramp models and therefore the hot housewives who are trying to find hardcore sex.
    The girl will satisfy your sexual needs and take you the peak of utmost pleasure. all of them girls love, to be frank, or close with strangers, they not want to waste time with an uneventful life and she or he loves the thrills of the sexual comrade. Our Escorts Service in Paharganj are highly qualified and well mannered, you'll also get her for the occasions and therefore the parties.
    Click here > > paharganj escort

    https://escortspaharganj.blogspot.com/2021/04/Escorts-Service-in-Paharganj%20.html
    https://sites.google.com/view/call-girl-in-paharganj/home

    ReplyDelete
  33. Independent Escorts in Dubai is the right decision. the top Dubai Escorts at your one Click. Log on to us for entertainment

    ReplyDelete
  34. I love having hot sex and I will behave just the way you want and you'll get lost in my infectious curves.
    Escorts Service
    Call Girls

    ReplyDelete
  35. You will get full enjoyment of Sarakaur.com. Search Delhi Escorts and you can find a good partner by going to sarakaur.com. Delhi Escorts is providing you the cheapest service. The subhadha you will find in Delhi Escorts will not be found anywhere else. Search for this sarakaur.com and book a good companion to spend some time.

    Delhi Escorts Service | Escorts Service in Delhi

    ReplyDelete
  36. iam priyatakur bangalore living iam happy to serve my service to all my customers i know how to satisfy them
    do you need my bangalore escorts service contact here
    Bangalore escorts agency *****
    Russian escorts Bangalore *****
    Bangalore escorts ****
    Bangalore escorts

    ReplyDelete
  37. assignment help in Malaysia can assist students in writing top-notch quality content within the shortest period of time to get impressive marks. Our assignment help experts know how to curate content with relevant information and the right tone. Since we understand the fact that writing a good quality assignment is incredibly important for students in Malaysia, we assign the most experienced and skilled professionals in the business to write and read the assignments that we provide to students. Besides that, it is our motive to deliver the assistance at a reasonable cost!

    ReplyDelete
  38. Jaipur Escorts Service Enjoy for your entertainment for use only personal Jaipur all our girls are high profile Jaipur sexy provides latest new sexy All Our call girls in Jaipur models are looking to meet sexy call girls in Jaipur Aarushi personal dating then right choice independent Jaipur Call Girls.
    Jaipur Escort
    Jaipur Escorts
    Escorts In Jaipur
    Jaipur Call Girls
    Jaipur Escorts Service

    ReplyDelete
  39. Having the correct methodology is the most ideal approach to manage any project, particularly when you are pursuing MA psychology course from Ignou University. In this case, you have Ignou synopsis for your Ignou MAPC project work and its solved assignments. Our writers always finish the task before the due date promised by our team. Get Ignou MAPC solved assignments 2020 21 and project work from us.

    ReplyDelete
  40. It’s never too easy to write an assignment like most of the time the confusion lies in the basics and to find a way that figures it all out and works for all requires
    expert Assignment Helper writing services which provide not only proper info but also focuses on the basics.
    Experts at Assignment Achievers know the basics and hence provide the best Assignment Help service
    that helps you make your assignment writing experience flawless.

    Homework Help

    Essay writer

    Programming assignment help

    Myob assignment help

    Perdisco assignment help

    Assignment help Canada

    ReplyDelete
  41. Make sure you look for valid coupon codes whenever you make an online purchase. You can often find Coupon Bhai for things such as Amazon purchases, free shipping and even free items as well. SEO Agency in Delhi

    ReplyDelete
  42. fatehgarh-sahib may be a locale of Punjab found inside the western parts of the state. Interior it stays one of the various tube stations around the extend of fazilka-escorts. This infers that getting to more specific places inside the locale is made outstandingly basic by this plentiful choice of transport joins. firozpur-escorts can be an magnificent run to visit for all sorts of different reasons, and the locale consolidates a one-of-a-kind discuss that has be that as it may to be effectively copied by any other locale inside gurdaspur-escorts the city.

    ReplyDelete
  43. Sexy Call girls always avilable 24*7
    When you find the opportunity to meet up with our beautiful escorts, your life will probably differ for eternity. We have numerous options such as school-girls, housewife,IT call girls out of Mumbai, celebrity Escorts sexiest youthful ladies, Top Most Escorts Mumbai working experts, and also even more. For why Ankita Escort service bureau would be the finest in Mumbai? Best Escorts Service Agency together with This Escorts will be headquartered in Mumbai. The best escorts in Mumbai offer support.We have the off ice of Backrub and Gender along side the most useful girls.
    https://mareenaescortinmumbai.com/escorts-in-mumbai.html

    ReplyDelete
  44. She can make you calm and crazy anytime whenever you wish! Call her anytime and she will be ready to offer you unconditional love, care, and pleasure which people can’t forget! Make yourself relaxed if you are hanging right now! Escort service or call girl service
    Bangalore escorts ****
    Bangalore escorts agency *****
    Russian escorts Bangalore *****
    KR Puram escorts *********
    majestic escorts ****
    Bellandur Escorts ****
    jp nagar escorts ****
    yeshwantpur escorts ***

    ReplyDelete
  45. Economics is a very popular field, but to earn a a lucrative job, mere degree is not enough; you need to have scored well throughout your academic years. As a student of Economics you certainly have to handle and complete multiple tasks at the same time and that too efficiently. One big task is that of an assignment and it can be so much stress to complete it on time all the while adhering to the instructions of professor. Get in touch with the experts of Help in Homework and receive customized and affordable Economics Assignment Help and be one of the top scorers of your class. Our expert will complete your assignment on time and ensure that it is free from plagiarism and accurate.

    ReplyDelete
  46. Get live news on readerscook
    Breaking news coverage on politics, current affairs, business, sports,technology,lifestyles education, and entertainment.

    ReplyDelete