JArduino icon indicating copy to clipboard operation
JArduino copied to clipboard

Always PIN 13 is set to High

Open kavsik opened this issue 11 years ago • 2 comments

Hi,

I have a peculiar problem in using JArduino to blink an LED. Below is the detailed description.

I downloaded the JArduino-0.1.7 distribution, copied the JArduino folder (located in the distribution in jarduino.samples/arduino) into /libraries/ folder of the Arduino IDE 0023

Opened Arduino IDE 0023 - >File -> Examples -> JArduino -> JArduino firmware and uploaded to the board using the normal Arduino procedure.(

Opened the sample programs in Eclipse IDE and ran Blink.java in org.sintef.jarduino.examples.basic package (i changed the DigitalPin.PIN_13 to DigitalPin.PIN_12 at all the places)

Program started and it asked to select the serial port to which Arduino was connected. It was COM7 and i selected it. The output printed in console was as below :+1: Load RxTx Stable Library

Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7

BUT THE RESULT at ARDUINO END IS: (HERE IS WHERE THE PROBLEM) Now the RX LED started blinking and the LED connected to PIN 13 was set to ON continuously and the LED connected to PIN 12 doesn't burn.

Note : My OS is windows 7 Home Premium 32 bit and i have the 32 bit rxtxSerial.dll in the bin folder of jre and RXTXcomm.jar in lib folder of jre Arduino Board - Mega 2560

When im loading the arduino blink program to Arduino board with some modifications to to accept the serial input from Java thru the COM7 port, validate it and then blink, the LED connected to PIN 12 is blinking / burning properly.

Can you help to check out this?

kavsik avatar Jun 07 '13 12:06 kavsik

Hi, sorry for the delay. I think it has been some changes in the way Arduino manages serial communication. It should work with Arduino IDE version 022. Have you tried with this version? or a newer version?

brice-morin avatar Oct 17 '13 09:10 brice-morin

Hi, Thanks for the reply . I tried with the version 0023. Will try with 022 and get back with the results..

kavsik avatar Oct 17 '13 16:10 kavsik