Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 17
61  Using Arduino / Installation & Troubleshooting / Re: Arduino 1.0.1 Stuck in Windows 7 on: June 18, 2012, 12:50:30 pm
If you mean to write at the Command Line (cmd):
arduino.exe --14j-debug
that gives me this:
arduino.exe is not recognised as an internal or external command operable program or batch file
As far as the creation of text file called: arduino.ino is concerned, I don't get it. You mean opening notepad and save an empty file with the name previously mentioned?

Arduino.exe is not on your PATH, so you will have to go into the directory where Arduino is installed, find the executable, and run it from there, at the command line. With the --l4j-debug option.

For example, assuming Arduino is installed in "C:\Program Files\Arduino" (you will have to figure this out):

The launcher will look for and use an "Arduino.ini" file if it finds it. Open up a text editor (notepad will work) and create (again, assuming Arduino is installed in C:\Program Files\Arduino) "C:\Program Files\Arduino\Arduino.ini" with a single line in it:


Then, open up a command shell and type these two lines:

cd "C:\Program Files\Arduino"
Arduino --l4j-debug

(Note that the option begins with a small-l [as in launch].)

This should create a file called launch4j.log in the same directory, or somewhere in the Arduino install area.
62  Using Arduino / Installation & Troubleshooting / Re: Arduino 1.0.1 Stuck in Windows 7 on: June 18, 2012, 10:15:02 am
The link above was really helpful and I managed to install JAVA successfully using the 2nd method described. Suprisingly, though, Arduino 1.0.1 won't start. The same thing happens again. It seems that the problem is not JAVA... Does anybody know what's wrong? Do you think that the fact that the Arduino Board isn't connected to my PC causes this frustration?

The IDE will start and run fine without a board connected.

You can try running the Arduino executable from the command-line with the "--l4j-debug" option. This will create a launch4j.log file that might tell us more.

If you create a text file called "Arduino.ini" and place this file in the same directory as Arduino.exe, you might get more information, too.

The file should contain a single line:


63  Using Arduino / Installation & Troubleshooting / Re: Arduino 1.0.1 Stuck in Windows 7 on: June 17, 2012, 08:57:52 pm
OK! I get a window saying that Windows have detected a problem in this file---> jre1.7.0_05-c.msi. It also says that the file was blocked because it does not have a valid digital signature. The only thing I can do is just click OK and then.... nothing!
64  Using Arduino / Installation & Troubleshooting / Re: Arduino IDE does not start on: June 17, 2012, 07:43:55 pm
I attached the launch4j.log file. Doesn't tell me much. I'll search the exit code in Google and see if it comes upt with anything.

Well, you can try this yourself at the command line:

> cd C:\Program Files\arduino-1.0.1\
> C:\Program Files\arduino-1.0.1\java\bin\java.exe -Xms128m -Xmx128m -classpath "lib;C:\Program Files\arduino-1.0.1\java\lib\tools.jar;lib\pde.jar;lib\core.jar;lib\jna.jar;lib\ecj.jar;lib\RXTXcomm.jar"
65  Using Arduino / Installation & Troubleshooting / Re: Arduino IDE does not start on: June 17, 2012, 01:25:33 pm
Thanks for helping me out.

See attached file for the results I get when I run java.exe from the Arduino java\bin folder in a command prompt.  I ran java.exe - verbose and I ran java.exe - version. Both commands run fine and it doesn't spawn any errors in the Application Log.
I also tried to run Arduino as Administrator and I get the same result, with the same error in the Application Log as running it normally.

One additional note: I'm running another program that requires Java just fine - APC Powerchute.

Right, but it's likely not running /this/ JVM, but its own, or a system-wide VM.

The launch4j ref given earlier might be your best bet, actually. You just need to find the launch4j.log (or is it Arduino.log?) file it creates.

Given the VM can at least startup, it is probably failing when loading some of the native libs it needs, which other apps and simple tests will never reference.
66  Using Arduino / Programming Questions / Re: Having trouble concatenating a char* on: June 17, 2012, 12:50:08 pm
So I am trying to print some array values out to my LCD:
  string = "";
  string = Chord[navigator];
strcat(string, " : ");
strcat(string, Camelot[navigator]);
 do {
 } while( u8g.nextPage() );
This is being done on a button interupt. It works to an extent, each time the button is pressed it updates the lcd, however it seems to concatenate forever as far as I can tell based on whats coming out on the lcd.
The first time I would get what I expect, but the second time I get another ':' and the value stored in the next Camelot[navigator]
I thought that
string = "";
was going to clear the string for the next update of the lcd, however it doesnt by the looks of things??

What is "string"? If it a char* as you suggest in the subject, then use memset() or set the first byte of the pointer to "\0"
67  Using Arduino / Installation & Troubleshooting / Re: Serial was not declared in scope. Really... on: June 17, 2012, 08:07:40 am
cpu_tester:14: error: 'pinMode' was not declared in this scope
cpu_tester:16: error: 'digitalWrite' was not declared in this scope
cpu_tester:18: error: 'delayMicroseconds' was not declared in this scope
cpu_tester.cpp: In function 'void loop()':
cpu_tester:24: error: expected primary-expression before 'int'
cpu_tester:24: error: 'bitRead' was not declared in this scope
cpu_tester:24: error: 'digitalWrite' was not declared in this scope
cpu_tester:25: error: 'val' was not declared in this scope
cpu_tester:30: error: 'delay' was not declared in this scope

Suuureeee... I really have no clue what could have gone wrong :S

Install and run as Administrator if you are on a recent Windows release.
68  Using Arduino / General Electronics / Re: Placement of resistors. on: June 16, 2012, 10:14:26 pm

Don't be lazy and cheap.

Its not about laziness or cost, I have limited space on my board.

You can get a whole whack of resistors in various DIP package sizes. So, if you have room for one or two more ICs, you have room for all the resistors.
69  Using Arduino / General Electronics / Re: What's wrong with my Multimeter? on: June 16, 2012, 10:10:36 pm
First thing I did. Didn't help though

I hate to say it, but cheaper meters are pretty much intended to be disposable. Like cheap digital watches and calculators, these are commodity items made by the millions to meet a price-point. Something just has to give.

Open up the meter and look for the obvious signs of magic smoke escape. Beyond that, just get a new meter.
70  Using Arduino / Installation & Troubleshooting / Re: Arduino IDE does not start on: June 16, 2012, 10:01:00 pm
Thanks for your response. I tried that command. Where does it print the exception? The application event log doesn't seem to log anything different.

You aren't going to see much from the JVM -- the native part of the VM is failing with an access violation (it has tried to access memory that it doesn't own). So there are no Java traces or exceptions to show. The runtime library is failing completely.

I'd start with the basics. Can you run the VM at all? Run javaw.exe directly from the command line using an absolute path, passing it the -verbose option.  Does it run at all? Does java.exe run?

I suspect this is a permissions problem running jvm.dll or one of its dependencies. What happens if you run Arduino as Administrator?
71  Using Arduino / Project Guidance / Re: Building a Simple Desktop application to inferface on: June 15, 2012, 07:03:54 pm
I am trying to build a simple desktop application that will comunicate with Arduino. What language and framework would be the simplest to code this in? It just needs to have one view, with some radio buttons and a list view of a database which can be searched.

If you like the Arduino way, you can look at Processing. If it has to be a desktop app (as opposed to a web app) the "easiest" might be more about the platform(s) you are targeting, and what programming paradigms you are most familiar with.
72  Using Arduino / Installation & Troubleshooting / Re: Max Amperage Input? on: June 15, 2012, 06:50:07 pm
If you are providing power thru the barrel jack, that current goes thru the reverse polarity protection diode, which I believe is only rated for 1 amp.

Which means that if the Arduino starts drawing close to 1A, we might see this part (or the regulator) fail first. But you can still hook up a power supply rated for more than 1A. Similarly, if you have a 400mA power supply and the Arduino starts to draw 800mA, the magic smoke in the power supply's protection circuits might escape.
73  Using Arduino / Programming Questions / Re: Good source of random numbers? on: June 14, 2012, 01:40:46 pm
The legality of that method seems rather questionable to me..
Can't think of a good reason why it should be, unless dismantling a smoke detector is in some way illegal.

Am-241 is exempt from most laws regarding the safety and handling of radioactive materiel. It depends on your locality, of course, and some locales have laws that say this with the caveat that you can possess it as long as it remains in the smoke detector sold to you untampered.

But in a great number of localities you can even dispose of these smoke detectors in regular household trash. You can eat the pellet w/o really causing yourself significant damage (though, of course, no one is suggesting it is a /good/ idea to do so -- prudence and intelligent behaviour is still the rule.)

The fact is that some types of collectable Fiestaware are more radioactive than the small amount of Am-241 in modern detectors.

But, it is all a matter of degree. If you are going to be a Radioactive Boy Scout, it doesn't matter how legal playing with Am-241 is. A superfund site is a still a superfund site!
74  Using Arduino / Programming Questions / Re: Change the output directory of the compiled HEX file on: June 14, 2012, 10:45:55 am
Is it possible to modify the output directory of the compiled HEX file? I don't like compiling in verbose mode (so I can see the tmp output directory)... I compile several sketches and save the HEX file for later to upload manually using avrdude, so I would like to compile a sketch and have the hex file saved in a known location.

Find where it is putting it now, and create a softlink to some know location for avrdude. (Even if you are on Windows it can be done, but oddly.)
75  Using Arduino / Project Guidance / Re: Temperature Controlled fan. on: June 11, 2012, 07:28:12 pm
Could you explain to me what a shield is?

Many Arduinos are built using the same form factor for a reason -- those pinouts can be stacked to add lots of functionality.

Pages: 1 ... 3 4 [5] 6 7 ... 17