I'm having a bit of difficulty understanding the directory structure the Arduino should have (specifically: where do I put sketches/libraries I download?).
For example, File>Sketchbook>libraries and File>Examples are duplicated in strange ways.
The directory structure is the original installation. What am I doing wrong? Some screenshots to help explain are attached.
There are two places that libraries are located. Your last screenshot shows where the arduino supplied libraries are stored. User contributed librares are stored in a folder named libraries located in the users sketch directory. You have to create that folder and then place contributed folders into it. Once you do that you can find them and include them into your main sketch by using the Sketch/Import library pull down menu on the IDE toolbar. You will see a list of library files sorted in two catogories, the top portion (which are the arduino supplied libraries) and the ones listed under the 'contributed' list (which are the user libraries you down load or write and install).
Here is what my users library contents looks like on my windows XP system:
C:\Documents and Settings\Primary Windows User\My Documents\Arduino\libraries
And all this duplication is normal? It seems very confusing and not very well thought-out...
There is no duplication, any given library is located in only one place. Originally all libraries were keep in just one place in the arduino's core library folder. However every time you upgraded to a new IDE version you have to manual move your 3rd party library filtes to the new versions library location. With this new method of having a users library location, installing a new IDE version does not effect your user libraries nor do you have to do anything to make them avalible for your sketches in the new version.
Ah, yes. My bad...when I cleaned up the directories, the duplication in the menu drop-downs disappeared.
My confusion was from the way the directories are identically named - 2 "Arduino" directories (needs to be one for IDE and another for sketches!) and two "libraries" sub directories.
If it were up to me, I think I'd name them something like "ArduinoIDE" and "IDElibraries", "Sketches" and "Sketcheslibraries" instead, just to make it clear they are different.
If it were up to me, I think I'd name them something like "ArduinoIDE" and "IDElibraries", "Sketches" and "Sketcheslibraries" instead, just to make it clear they are different.
Not a bad idea, perhaps corelibraries and userlibraries?