Open .pde files with Arduino IDE in Linux
After I installed the Arduino IDE I found out that I could not run "arduino test.pde" to open an existing sketch. The previous command would just open a blank sketch.
To fix this problem you have to edit the Arduino startup script, which in my case is located at "/usr/share/arduino/arduino". The last line of this file looks like this:
java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base
and it needs to be changed to this:
java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base "$*"
Finally I had to change my "/usr/bin/arduino" from:
/usr/share/arduino/arduino
to
/usr/share/arduino/arduino "$*"
Now you should be able to associate .pde files with the Arduino IDE and have them automatically open.
Arduino Basics 1: LEDs
I am going to start with some very simple programs, but hopefully build and program them in such a way that they can easily be reused in larger programs without too much modification.
LEDs are used in many applications and can be very useful when debugging. Turning on an LED can be compared to writing "Hello World" or some other test statement to the terminal window. LEDs have a positive end (the longer one) and a negative end (shorter). When hooking up a circuit make sure that the LED has the correct orientation.
Arduino
I am now an owner of an Arduino Uno. I also purchased several 'value packs' of various components, LEDs and some basic sensors. I was able to find some buttons and switches and motors laying around and in old electronics.
I have a good theoretical knowledge of circuits, and after two classes on them I can tell you the voltage or current at any point in almost any circuit. I know opamps and transistors like the back of my hand, but designing a circuit from scratch was surprisingly never covered.
After some quick reading and installing the software it seems like the Arduino programming language is heavily based off of C/C++ which is good because I don't have to relearn any syntax.
Hopefully I will start posting some basic accomplishments soon such as turning on LEDs.



