-1

I am creating a hardware based human computer interaction air mouse device for the physically disabled people using the Arduino, voice recognition module , accelerometer and gyroscope sensors for which I need to make a JavaFX application to externally run the Arduino program . How can I implement this external call.

I've tried searching different websites. But I couldn't find anything that best suits my needs.

  • 1
    Did you try entering the first nine words of your title into a search engine? – VGR Jul 21 '19 at 14:01
  • @VGR I googled . But couldn't find anything how I can use external calling to actually upload the code onto the arduino and execute it. I only found things such as external calls to run ".exe" files. But not uploading or executing ".ino" files onto the arduino board. – Nahian Rifaat Jul 21 '19 at 15:11
  • What you have looked at that did not suit your needs? I was curious myself and just did some quick googling.. Have you had a look at Arduino Serial? "Serial is used for communication between the Arduino board and a computer or other devices." [Arduino.cc](https://www.arduino.cc/en/pmwiki.php?n=Reference/Serial) – Robert Jul 21 '19 at 17:40
  • Possible duplicate of [Make a USB Device, Control It In Java](https://stackoverflow.com/questions/2159253/make-a-usb-device-control-it-in-java) – fuggerjaki61 Jul 22 '19 at 11:59

1 Answers1

1

The Arduino IDE can compile & upload sketches via specific Command Line Arguments. Call the IDE using ProcessBuilder, passing the correct arguments. Make sure to check the return code for errors and display the standard output/error streams.

You can use one of several Libraries or JavaComm to access the serial port to exchange data.

Erlkoenig
  • 2,664
  • 1
  • 9
  • 18