Control the Pi using java run on a pc.

Hi, I am creating this blog especially for Raspberry Pi users / fans that love to experiment and play with the amazing stuff the Pi can do.

In parallel with creating such blog, I am working on my own project in my free time involving the Raspberry Pi.

Basically I am trying to control a relay which I bought from an online store, using Java language.

On top of that my aim is to use another machine rather than running the Java on the Pi itself.

I have done some research and got some very good links and feedback related to what I want to achieve.

For starters here is an image of the relay I was talking about:

relay

 

The device shown in the image above is called: 2-Channel Relay Module Board 5V and it can be used either on Arduino, Pic, Pi etc.

Another device required to perform this task is called: FT232RL FTDI USB to TTL Serial Converter Adapter Module for Arduino Mini 3.3/5V.

 

FT232RL-font-b-FTDI-b-font-font-b-USB-b-font-to-TTL-Serial-Adapter-Module

Mainly the above information I got it from the following link which was very helpful. So far no testing has been carried out from my end therefore I am still a little bit sceptic on whether this project will be a success or not at the end of the day.

Link: http://eclipsesource.com/blogs/2012/10/17/serial-communication-in-java-with-raspberry-pi-and-rxtx/

Now its time to set up the hardware as well as the software… If anyone could help make this forum highly informative please feel free to leave comments and replies.