Show Posts
Pages: [1] 2 3 ... 17
1  Using Arduino / Installation & Troubleshooting / Re: Arduino 1.0.1 very weird UI glitching on: October 22, 2012, 07:22:46 pm
I'm running Windows 7 64-bit and have my video drivers updated.

Resizing the window fixes it until I move my mouse back into the window.
I've also tried redownloading it from the Arduino website, no luck :/

Check one of my other replies regarding Java2D. There are a few typical debugging options you can try, in order:

sun.java2d.d3d=false
sun.java2d. ddoffscreen=false
sun.java2d. noddraw=true

I forget where to set properties on the Arduino VM on Windows. You can probably hack the Launch4J config.xml in the Arduino installation directory.
2  Using Arduino / Installation & Troubleshooting / Re: Arduino 1.0.1 very weird UI glitching on: October 20, 2012, 08:00:52 pm
Platform details?

If on Windows, this might be a problem with the 2D drivers.
3  Using Arduino / Installation & Troubleshooting / Re: Arduino IDE interface broken on: October 17, 2012, 08:12:31 pm
My video drivers are updated.

For Wiring, I tried creating a wiring.vmoptions file containing

-Dsun.java2d.opengl=true
-Dsun.java2d.d3d=false
-Dsun.java2d.noddraw=true

as stated here and here. I cannot find anything more on the subject so I do not know if this information is entirely correct and applicable...
It did not solve my problem.

Actually sun.java2d.noddraw is Windows only (as is sun.java2d.d3d). What platform are you running things on? Oh, and I wouldn't enable OpenGL while trying to solve this.

Another likely Windows tweak is:

sun.java2d.ddoffscreen=false
4  Using Arduino / Installation & Troubleshooting / Re: Arduino IDE interface broken on: October 12, 2012, 01:22:13 pm
Hello,
I recently purchased an Arduino Uno to play around with, did some small things yet, but the interface is broken most of the time, so I'm not able to code anything.
When I'm moving my mouse trough the menu strange things start to happen to the interface. Elements begin overlapping like this:

The screenshot is from the Wiring IDE, however the exact same thing happens in Arduino IDE.

Looks like 2D corruption.  Try setting

sun.java2d.noddraw=true

on the VM that launches the IDE. I forget how exactly to do this on Windows, sorry! But you need to add "-Dsun.java2d.noddraw=true" to the list of VM options and restart.
5  Using Arduino / Installation & Troubleshooting / Re: Strange 1.0.1 IDE problem on: August 16, 2012, 10:42:19 pm
Sounds like a video driver or abstraction layer issue. The app is having trouble "repainting" for some reason. There are a few properties one can tweak on the VM to control how it uses DirectDraw and other 2D and 3D drawing APIs. First, you should make sure your video driver is sound, and DirectDraw is current.
This started when I upgraded to Win7. It was not seen before! Firefox, Openoffice, Notepad++ and Arduino 0.22 all work correctly with Win7.

Different OS means different 2D and 3D driver abstractions that Java depends on. OpenOffice might use different 2D/3D settings, or a completely different set of widgets. Notepad++ is a native app, so this data point isn't really relevant.

Did you check DirectDraw, etc.?
6  Using Arduino / Project Guidance / Re: Which is better for a limited range of 10 inces on: August 16, 2012, 01:54:43 pm
I am looking for a wireless solution that comes with a limited range (for pairing) of 10 inches

From what I understand:

NFC: 4 inches
Bluetooth: 30 feet

Can I lower the BT's power consumption to meet my exact needs of 10 inches? Does another solution exist?

Sovrac

BT has low power modes, even for active paired connections. I suppose it depends on the hardware you intend to use and whether it supports those modes?
7  Using Arduino / Installation & Troubleshooting / Re: Strange 1.0.1 IDE problem on: August 15, 2012, 08:55:33 pm
I just upgraded my computer from XP to Win7. In the IDE when I bring up a menu ie. File->Sketchbook, chose an option the IDE doesn't completely clean off the menu. I end up with orphan partial windows on the screen. Does 1.0.1 have an issue with Win7? Also how do you remove extra tabs you have inserted from your project?

Sounds like a video driver or abstraction layer issue. The app is having trouble "repainting" for some reason. There are a few properties one can tweak on the VM to control how it uses DirectDraw and other 2D and 3D drawing APIs. First, you should make sure your video driver is sound, and DirectDraw is current.
8  Using Arduino / Programming Questions / Re: Arduino speedometer not working for an unknown reason on: August 14, 2012, 08:54:18 pm
I use a reed switch wich is connected to A0 but I use it as digital input 14 because that my  two 7 segments displays use all the digital outputs from 0 to 13.

This doesn't apply to your actual problem, but you can look at multiplexing options for driving displays from far fewer pins.

You should also mention the Arduino hardware you are using (and make sure you use the "#" button to format your source code for easier reading -- see the FAQ.)

Also, you might need to explain exactly that "doesn't work" means in this case.
9  Using Arduino / Project Guidance / Re: URGENT HELP!!! HOW TO READ DATA FROM ARDUINO TO VB2010.NET on: August 09, 2012, 07:42:55 pm
The other 5% are late doing their college coursework.

And the remaining 1% are failing math.
10  Using Arduino / Installation & Troubleshooting / Re: Mac OS X 10.8 Mountain Lion - are you upgrading? on: July 28, 2012, 01:42:19 pm
I wasn't certain in which forum to post this, but found one other Mountain Lion post during my search, so will post here. Mods please move if it would be more appropriate elsewhere.

I'm wondering if any other Mac users are reluctant to upgrade for fear of incompatibilities with software such as avrdude? I suspect the Arduino IDE will run fine in OS X 10.8, but don't know for sure.

To anyone who has made the upgrade, is it working out OK with your AVR software?

Thanks,
Jake


The first time you start the IDE the OS will tell you that you need to install a JRE. It will go off and do that and then start up the app.

But the FTDI drivers and so on seem to be 64-bit clean, so the installer leaves them alone.
11  Using Arduino / Programming Questions / Re: Is it possible to run a .Lua file, or a .Jar file? on: July 28, 2012, 10:31:01 am
I've tried gobetwino, doesn't work with windows 7..

Also, I saw a tutorial on youtube by Jeremy Blum about serial communication, and he did it using the language processor, and he said that you can interact with your computer from arduino using any programming language... Now, that being said it should be possible with Lua, so how can this be done with Lua?

The way that quote is written, you put the Lua code on the PC and have it communicate with your Arduino program. If you have any doubt, ask him.

Or you write a maybe-limited Lua interpreter for the Arduino which may or may not not be possible and still what will you code the PC end in?



There is an embedded Lua project, but it needs way more horsepower than any Arduino can provide.
12  Using Arduino / Programming Questions / Re: Rounding a variable to the nearest quarter on: July 27, 2012, 09:08:28 pm
So I'm working on a project that includes reading out a distance from a Ping))) sensor to a 16x2 lcd.  I have the prototype done on my board and the code works brilliantly... a little too brilliantly.  Using the double variable the lcd is displaying the inches rounded to the nearest 100th, however I want the lcd to display to the nearest quarter inch instead.  For example; if ping.inches() returns 3.81 inches, I want it to display 4 inches instead by rounding up to the nearest .25.

Getting it to round to the nearest whole number is easy (replace "double" with "int"), but that's not accurate enough...

Any guidance on how this can be accomplished would be much appreciated!

I think this is what you are looking for: http://en.wikipedia.org/wiki/Rounding#Rounding_to_a_specified_increment
13  Using Arduino / Programming Questions / Re: Is it possible to run a .Lua file, or a .Jar file? on: July 27, 2012, 08:34:53 pm
>.<.
Let's say there is a .Lua file, named open.lua, with the following code:
os.execute([[start "" "C:\\Users\\User\\Documents\\Song.mp3"]])
When that code is ran, a .mp3 file, named "Song" will play.

Sure, just write some Lua that talks to the Arduino over a serial port. When it gets a message it likes, it invokes this command. Of course, this is really a round-about way of starting your OS and install specific handler for the .mp3 filetype. You could just as easily have a Perl script do this; or a .bat file; or a C program.

Lua can do this just as easily as any other language.

Quote
And this is why I was asking if it was possible to RUN A .LUA FILE from ARDUINO, not make a .Lua file detect when I want code to run (which would be super hacky, and it being Lua, I don't even think this would be possible (what above suggested)) Which is why "Write a Lua app that listens on a connection. When it gets something, it gets that something, parses it in some manner and then acts on the stuff it parses out." is more easily said than done.

Nonsense. Lua is complete language that has all sorts of libraries and OS specific hooks for all sorts of purposes like this. And if it can't do it, it can call a chunk of C code to do it.

However, to reinforce the same answer everyone else has given you: no, you cannot run a Lua app "from" the Arduino. Mostly because the question doesn't really apply. But you /can/ have the Arduino talk to an agent on any computer you like, and that agent can pretty much do anything you can dream up, including running a Lua script. The agent can even be written in Lua.

The Arduino can be coded to transmit over a variety of connections, from the built-in USB serial port to more complicated ethernet, Wi-Fi or other wireless options if you buy the hardware.

But the fundamentals are the same: you write an app that sends (or receives -- the concept is the same) over the connection of your choice. Assuming you want to use the USB port, there are easy libraries and examples showing how to do this on arduino.cc. Just get it working with the built-in serial monitor available in the Arduino IDE first.

Then you can work on writing an app that listens (or alternately listens and talks) on the other end of that connection. Based on the messages it receives on that connection, it plays a song or whatever. A "message" is whatever you want it to be. A string you reconstruct. A byte pattern you apply masks to that encode all sorts of state. The actual steps for doing this is left as an exercise for the reader. My advice is to solve the problem in discrete steps.

Synchronous serial communication is not hard, but the devil is in the details. And there are countless examples out there.
14  Using Arduino / Programming Questions / Re: Is it possible to run a .Lua file, or a .Jar file? on: July 25, 2012, 10:48:46 pm
I've tried gobetwino, doesn't work with windows 7..

Also, I saw a tutorial on youtube by Jeremy Blum about serial communication, and he did it using the language processor, and he said that you can interact with your computer from arduino using any programming language... Now, that being said it should be possible with Lua, so how can this be done with Lua?

Many different ways. This is the whole reason for "Processing". If you want to do a mini Processing in Lua, start writing code. Write a Lua app that listens on a connection. When it gets something, it gets that something, parses it in some manner and then acts on the stuff it parses out.

Your question is infinitely general. You will get better results trying stuff out.  Get the Arduino logging to a Java or Lua app that simply reports changes when you hit a button or something. Then build on that.
15  Using Arduino / Project Guidance / Re: Arduino prank ideas - please post your ideas! on: July 25, 2012, 10:42:36 pm
Something similar to this:

[...]

Maybe a spring instead of an airbag (for safety), but this would definitely be funny to see.

He asked for prank ideas, not ways to maim or cripple your friends for a cheap laugh. There is a difference.

The moment I saw they were using an airbag system I went immediately to "prolapsed colon" and "emergency room" and I wasn't too far off from the look of things.
Pages: [1] 2 3 ... 17