3

I am absolutely new to Raspberry Pi. But I want to use it for one of my project requirements.

I have developed a Java Swing GUI with NetBeans (using third party libraries RxTx, jFreeChart, Dynamic Reports). The GUI connects to serial port via USB (UART), to my microcontroller device which controls a Motor and takes sensor readings. Hence the user can control the motor and take sensor readings via this GUI interface. Then the user clicks 'Plot' button on the GUI which fetches the sensor readings to laptop and plots the sensor reading on jPanel of the GUI as jLineChart. There is another button 'Generate Report' which exports this sensor reading plot to a report.pdf file storing it at particular location creating a new directory for that day. The PDF report generation uses DynamicReports library. This application works fine and is my first stage of development.

Now in second stage of development I want to remove the use of laptop where the GUI runs, rather I want to use standalone device which can run the application just like a laptop. Here I want to use Raspberry Pi where a 7-inch touch screen LCD will show the GUI and perform all the tasks (it used to perform on my laptop) i.e. fetching the readings, plotting and generating and storing report.pdf on my Raspberry Pi device.

Want to know from you experts, Is this porting of application and interfacing with touch screen LCD feasible with Raspberry Pi? Also I would like to mail the report over Wi-Fi or Ethernet internet.

If yes, could you please let me know which LCD touchscreen I can use for my purpose? And some reference materials to port my java GUI application to Raspberry Pi and also for Wi-Fi.

  • 1
    chalk-elec.com/?page_id=1280#!/~/category/… This is a product that has been designed for the Pi. There have been projects where people have turned these into a 'tablet' like device, powered from a 5v battery. If portability is required, it's always an option. – Impulss Mar 16 '13 at 1:34
  • Gaurav, hava you run your java app with the touch screen? Which product finally? thanks. – user10166 Oct 22 '13 at 14:53
4

WRT "porting" the java stuff, you shouldn't have to do much beyond, of course, installing java. There are, I think, openJDK 7 packages in raspbian, and there's a preview release of oracle 8 made with hard float for arm which works on the pi. I have not tried swing stuff with it but I would presume that it is there.

The foundation of the linux GUI is the Xorg server. By default raspbian includes a light weight simple "desktop environment" (LXDE) on top of Xorg; you can run your app from there or you can run it stand-alone (ie, it would be the only application and there would be nothing else to the desktop).

  • "There are, I think, openJDK 7 packages in raspbian" There are, but may want to use regular debian, as the Oracle JDK does not run on armhf, only on armel. – James Bennet Mar 16 '13 at 16:40
1

i'm in thesis project to develop raspberry and microcontroller serial communication, can you give me sample your program. i have trouble to access microcontroller to raspberry pi. i want to make dc motors run using serial communication from raspberry and microcontroler,

please give me sample and send to my mail yulian.dana.yd@gmail.com

  • This is not an answer to the question. a comment would be more appropriate. – Tevo D Jun 23 '13 at 18:57
  • 1
    @Tevo I think he cannot comment because he has only 1 rep. – M.Sameer Jun 24 '13 at 0:22
  • 1
    Thanks, wasn't paying attention to that. I was gifted 100 coming over from another stackexchange site. – Tevo D Jun 24 '13 at 0:28
  • Use rxtx library with java swing application ... Codes are easily available on wiki tutorials ... This will establish serial communication between your laptop and micro controller .. Next port that java application to rasbian OS .... – Gaurav K Jun 24 '13 at 17:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.