Postby vputz » February 07 2009, 6:21 AM
OK, Ron, something new to try REAL QUICK (don't take much time on this!).
Here are new zip files for library and sketches. I'm a little new at distributing Arduino software, so I'm trying a slightly different approach here (only including source files for sketches, but including the precompiled library, which is I think how I got it). But first:
[quote]My SpaceOrb files are at “c:\program files\Arduino-0012\hardware\libraries\SpaceOrb”. I ran a search on my system (XP Pro) and it didn’t find a c:\bin? I extracted the Arduino files in c:\program files. Did I extract the files in the wrong Place? I was surprised that the files didn’t have an executable to install the files. I am VERY concerned about this!![/quote]
No, that should be fine! The Arduino folks have a bit of a Linux-ish background where writing an installer is extra fuff they don't want to deal with (if I read 'em right). And it runs on different platforms. So there's no installer at all; you just unzip wherever. I created c:\bin because in unix/Linux, the "/bin" directory is where executables go; you can put it anywhere. So that should not be a problem! If anything, I've put it in a weird place, not you.
I'm a little confused that it didn't have "SpaceOrb" as a library under "Sketch, Import library", because it works that way for me. But even so I'm surprised that it compiled if it didn't see the library.
Anyway, here's what I want you to try:
[list]
[*]remove your old hardware/libraries/SpaceOrb directory and unzip the "libraries.zip" file into "hardware/libraries"--so you should have a new hardware/libraries/SpaceOrb).
[*]Go to where the Arduino sketches are, and delete the old ones (HidSporb and orb1). Unzip "sketches.zip" in its place (so for me, this is "My Documents\Arduino\BasicOrb" and "My Documents\Arduino\OrbShieldSerialTest1").
[*]Open the Arduino software and load the "OrbShieldSerialTest1" sketch (File->Sketchbook->OrbShieldSerialTest1)
[*]Make sure both dip switches are off, and the SpaceOrb360 is plugged into the shield, then plug in the Arduino via the programming port
[*]Make sure your board is selected (Tools->Board; if you bought it recently you probably have a Diecemila or a Duemilanove--you probably already did this)
[*]Make sure the right com port is selected (Tools->Serial Port; you almost certainly did this already if you've uploaded something!)
[*]Upload the sketch (control-U or "File->Upload to I/O board"). After a pause, the window should say
[code]Binary sketch size: 4510 bytes (of a 14336 byte maximum)[/code]
If it doesn't and there's an error, let me know (or try to troubleshoot). I didn't include the compiled versions of things, so this may force the issue of whether it can see the SpaceOrb library. Also let me know if it does seem to work but the size is different!
[*]Click the "Serial Monitor" button. After a while, the window should say
[code]This sketch simply takes input from the OrbShield's serial port
and sends it out the serial port. DIP switches should be set with
switch 1 (nearest to the serial port) ON, switch 2 OFF
Serial dump follows:
[/code]
[*]Click dip switch 1 ON, leaving switch 2 OFF. You should almost immediately see lines like
[code]K(75)
ä(228)
?(128)
?(128)
¯(175)
(13)
K(75)
ä(228)
?(128)
?(128)
¯(175)
(13)
[/code]
[/list]
Post results here. If you don't see anything after clicking switch 1 on (leave switch 2 off) then we are zeroing in on the problem and the issue has to do with getting the serial signal to the Arduino (whether it's the connections, the Max233, or what is still up in the air, but it's a start).
If you DO see those messages after clicking the switch on, the news is even better and at least it's talking, so try uploading the "BasicOrb" sketch (with switches off), then put switch 1 on, unplug the arduino side, plug in the SpaceOrb side, and see if you have a controller.
Either way, don't spend too much time on it--just try those and see what you get!
Vic
-
Attachments
-
- libraries.zip
- (121.83 KiB) Downloaded 2443 times
-
- sketches.zip
- (1.34 KiB) Downloaded 2465 times