Questions tagged [java]

Java is a programming language designed to be platform independent, running in a virtual machine.

30 questions
11
votes
11 answers

Microcontroller with Java API

My hardware team is planning to use an Atmel AVR 8-bit microcontroller for a future project. So far as I know, it must be programmed in C. I have found a JVM for AVR, though it is more limited than the native C libraries from Atmel. Can you suggest…
sterz
  • 233
  • 1
  • 3
  • 7
5
votes
1 answer

Issue on Serial Port Communication (in JAVA)

I've written a Java program to read my Arduino's outputs through Serial port (using RXTX Library). There's a small issue I'm facing. Arduino continuously writes to serial. But every time, after running the Java program I have to reset the Arduino to…
Anubis
  • 1,490
  • 3
  • 20
  • 32
4
votes
4 answers

How to get fundamental frequency of a signal using autocorrelation?

I am trying to get the fundamental frequency of a signal that only has a single pitch. I coded out the autocorrelation function using FFT and already got the autocorrelation result. Unfortunately, I don't know how to get the fundamental frequency…
Sakura
  • 41
  • 1
  • 1
  • 3
4
votes
1 answer

Java and Serial Port

I am able to control the speed and direction of 2 DC motors using an AVR-based microcontroller board (see here for details) currently through hyperterminal (Flash Magic). Is it possible to do the same through a Java-based GUI program instead? I…
ABES
  • 41
  • 1
3
votes
5 answers

Micro-Controller Operating System with GUI

I'm looking for embedded OS for w micro-controller, it's not clear until now for me what'll be the controller type, but my first priority is to found an OS with GUI can be written in C# or any .NET family or JAVA. I found some good operating system…
3
votes
4 answers

howto link an Arduino Light Sensor to a keyboard button

I have an Arduino Uno and a light sensor. I would like the light sensor to activate the [H] button on my keyboard. If the light sensor is in the dark (1024 I can see in the monitor) it should have the same effect as holding the [H] button until…
2
votes
1 answer

How to control PcDuino pins from Java?

When I had Raspberry Pi I used to control the GPIO (pins) from a Java application using the Pi4J library. Is there any library to control the GPIO (pins) on the PcDuino using the Java language?
Mahmoud Zalt
  • 123
  • 3
2
votes
1 answer

Double Integration with the BNO055 for position data

I am trying to get position data(x, y, z) from the BNO055 IMU from adafruit. I have been given a library in java, so I can communicate with the IMU. I have been able to get heading, yaw, pitch to +/- 0.1 degrees and so I think I can do the same with…
2
votes
1 answer

Weird problem with ADXL345, Buzzer and Arduino

I've set up a Serial port via a Bluetooth module (HC05). I'm using a JavaFX app that I wrote to read the serial port, plot the acceleration values (via ADXL345) and write back to the serial port an alarm bit (1 for ON and 0 for OFF) whenever a…
2
votes
1 answer

Looking for TINI SDK

I've to do some work on TINIS400 & TINIM400 evaluation kit From Dallas Semiconductor. These boards are now obsolete and the TINI SDK is therfore no longer available on the Dallas Semiconductor website. Any idea where I might be able to download…
Canacourse
  • 121
  • 2
1
vote
0 answers

How to get correct response from UPS HID

I have a UPS HID device and I'm trying to use LibUSB to get data from it. The response expected is in the format below: (Input_Volt ^ Fault_Volt ^ Output_Volt ^ Input_Curr ^ Freq ^ Batt_Volt (MMM.M ^ NNN.N ^ PPP.P ^ QQQ ^ RR.R ^ SS.S or S.SS ^ Temp…
Athus Vieira
  • 206
  • 1
  • 6
1
vote
1 answer

How to Plot X/Y in Java Circuit Simulator

Does anyone know how to select the Y variable when doing an X/Y Plot in Java Circuit Simulator? I tried many things and none have worked.
Takide
  • 505
  • 1
  • 6
  • 19
1
vote
3 answers

RS232 which pin i can connect together to receive a input signal in my Java application listening on ttyUSB0 or ttyS0?

I am trying to make a very simple BUTTON (simple wire RED/YELLOW only). Now if the Button is pressed (RED touch YELLOW) i want to receive input signal in my Java application (that button was pressed). In which ports of RS233(DB9) i should patch the…
YumYumYum
  • 139
  • 1
  • 10
1
vote
2 answers

Java/Arduino Controlled 120VAC Power Outlet

I'm working on a project with an end goal of controlling a power outlet with a Java program. Currently, I have the relay wired to outlets, a 3 prong 120 VAC plug, and my Arduino. Everything works as intended: my Java program can trigger the…
1
vote
2 answers

Ethernet Port Listener Throughput Maximisation

We have a distributed sensor network (12 nodes), using Ethernet as the backend protocol. These are networked at 100Mb/s to a single 1Gb/s link using a 16-port switch. I've previously seen Java and C code to listen to a port. However our aim is to…
user2286899
  • 33
  • 1
  • 3
1
2