Questions tagged [java]

Java (not to be confused with JavaScript) is a general-purpose object-oriented programming language designed to be used in conjunction with the Java Virtual Machine (JVM). "Java platform" is the name for a computing system that has installed tools for developing and running Java programs. Use this tag for questions referring to Java programming language or Java platform tools.

Filter by
Sorted by
Tagged with
2
votes
2answers
6k views

Sending data from Arduino to laptop via bluetooth using java

I intend to establish communication between my laptop and Arduino via Bluetooth. I'm using BlueCove Java API. I'm unable to understand how to send data to Arduino using this. There are no clear ...
2
votes
2answers
216 views

Problem sending colors from an audio visualizer to Arduino

Sorry in advance for the length of my question; I want to provide proper context. I wrote an audio visualization program in Java that (in addition to making "pretty pictures" based off of the ...
1
vote
2answers
1k views

How do I turn off the blinking cursor/caret in the Arduino IDE?

I just purchased a RedBoard, knowing that it would work on Linux, and knowing that it could allow me to easily interface with some electronics project. I am aware of the ino command line tool but I ...
1
vote
1answer
108 views

Integrating Java program with arduino mega is it possible?

I have just written a java algorithm to get a chess move when a chess move is inputted in SAN notation the algorithm used : Monte Carlo. Is it possible to integrate this program with an Arduino mega ...
1
vote
2answers
103 views

Arduino IDE not compile .S program to board

After answering my previous question correctly I'm getting all sorts of errors when trying to compile the following program: I'm completely new to both assembly and the arduino IDE so I apologise in ...
1
vote
1answer
760 views

ESP2866 and java ServerSocket

So I have an application that runs on the Arduino that passes info over serial. I'm using a ESP2866 to make it wireless. Arduino->Serial->Esp2866->SocketConn->JavaSocket->Console I ...
1
vote
1answer
170 views

Time Stamping data on an Arduino and reading it on a Java IDE

Does anyone have an idea on the best way to time stamp an arduino sketch that contains a data packet which is to be read out using a java IDE (IntelliJ) for graphic visualization of the packet. I ...
1
vote
1answer
513 views

I want to run jvm on arduino.What minimum configuration do I need?

If Arduino IDE itself is built on Java can I run JVM on the Arduino? If yes how should I do it?
1
vote
2answers
3k views

Java + JSSC + Arduino + Windows

I want to know the basics of Arduino serial communications and connection with a Java application in Windows. Can anybody provide me with a sample Java program that upon running just makes an Arduino ...
1
vote
0answers
402 views

I can't receive data from Arduino through Bluetooth

I am developing an app that controls an Arduino robot. For that I need to communicate through Bluetooth. That means sending and receiving data. Why receiving? Because I also have sensors on the robot. ...
1
vote
2answers
512 views

How to send multiple data from PC to arduino

I have a project in arduino that i interface with java. The arduino is connected to the computer via usb cable , I use the serial communication. I have two variables: //Code in arduino int ADelay = ...
1
vote
0answers
201 views

Connection between Matlab and Arduino

I'm trying to connect Maltab and Arduino by this code: arduino=serial('COM7','BaudRate',9600); fopen(arduino); But I get this message: Open failed: Port: COM7 is not available. No ports are ...
1
vote
0answers
39 views

Flexiforce to Uno to Keyboard. Working but not as inteded

I have a Flexiforce 25 pound pressure sensors connected to my Arduino Uno which connects to my laptop. My requirement is to be able to play video games using taps on pressure sensors. I am ...
0
votes
1answer
5k views

Serial communication between Arduino and Java NetBeans

I am new to this serial communication between Arduino and Java NetBeans. I am doing some small project and I need to get data from external EEPROM 24LC256 which is connected to Arduino UNO and pass it ...
0
votes
1answer
3k views

Sending data over TCP connection in one piece

I'm trying to send short strings via Java client to Arduino server and vice versa. Sending data to client goes fine, but when I try to send data to arduino it cuts the string into bytes and then sends ...
0
votes
2answers
2k views

Sending and receiving custom messages with Ardulink

I am sending custom code to Arduino with this ardulink command: { ArduinoControl.link.sendCustomMessage("oled"); } Code from standard Ardulink sketch CustomMessagesChipKit.ino: { if (...
0
votes
1answer
84 views

Serial Connection

I was trying to communicate with my arduino uno over the serial connection from the USB. Connecting to it is usually not a problem, but what buggs me is the first transaction of the data... No matter ...
0
votes
1answer
260 views

Read serial 8 bytes from Arduino buffer [closed]

I am fairly new to Java, but with a rather complicated question. We are looking at reading some bytes coming in from an Arduino. The Arduino sends bytes in the form: Serial.print(Voltage1); Serial....
0
votes
1answer
356 views

Serial communication doesn't work right after upload

I'm trying to communicate between a program on the Arduino Uno and a program on the PC via USB. I got it more or less working. Only problem is that it doesn't work when I run my PC program the first ...
0
votes
2answers
17k views

connecting ESP8266 to mega 2056

im trying to connect wifi module to my MEGA 2560 board. i set up the board as the picture bellow and my program is as follows #include <SoftwareSerial.h> #define DEBUG true SoftwareSerial ...
0
votes
0answers
432 views

Problem with receiving data from Arduino via HC05 sent by Java

I want to both send some sensor data via Bluetooth (HC05) and Arduino to Java and I also want to send some command data via the same Bluetooth and serial port to Arduino. I've managed to do the first ...
0
votes
1answer
300 views

Setting Up a JavaEE app on an Arduino Yun Board

I'm looking for some reference material to start on a project I'd like to do. I have an Open House at my school. My group project has been to create a little timesheet app using JavaEE. I just ...
-1
votes
2answers
133 views

How to run Arduino codes in Java netbeans? [closed]

Having a hard time searching the net on how to run arduino codes on java. Can somebody please help me. Thank you.
-1
votes
2answers
452 views

What would be the code for using Arduino UNO to alert by sound or LED when it detects a certain position through GPS?

I am in grade 6. I have a very nice pet dog in my house but it often enters Mom's kitchen to spoil all the foods. So I am thinking of a device to attach with him which can locate its position. But I ...
-1
votes
1answer
633 views

How to change the variable value on arduino program using java? [closed]

I am new to arduino and I want to interface it using java . I want to know is there a way to change the variable or set the variable using the input from java :D Thanks For reading Hope you can answer ...
-1
votes
1answer
2k views

Java NetBeans sending value and receiving value from Arduino

This is my Java code to send a value to Arduino and a receiving value from Arduino. Can anyone tell where I made a mistake? I am able to send the value but can't receive a value from Arduino. package ...
-3
votes
2answers
346 views

Simulating a real time clock module with software [closed]

I am building a clock with an Arduino. Most clocks have a RTC module or some kind of RTC chip in order to get the time. I do not. How do i replace this chip with software? Is there a C/C++ library ...