Arduino: Day Two, after a long delay

What can I say? The self-made online shopping cart  and numerous classes had kept my pretty busy.

So, for the second time that I work on my Arduino project:

  • Did my first blinky program!
  • In Arduino, it uses void setup() for the initial run of code. Afterward, one may add a loop by using void loop().
  • The LED light on the Ardunio is connected to digital pin 13. Why 13, I have no idea, but to turn on the LED,  the program have to ask for an electrical signal to output to pin, which is pinMode(13, OUTPUT). Afterward, the program can use digitalWrite(pin#, voltage level) to control the voltage output from the pin, with voltage level HIGH turning the LED on and LOW to turn it off.
  • Clicking on the Verify button compiles the code. Clicking on Upload sends the code to the Arduino board.
  • I got an error of “avrdude: ser_open(): can’t open device “COM1”: No such file or directory“. Turns out my port is not connected. I went to Tool -> Port. There are 4 options. First is Serial Port, which doesn’t seem to do anything when I click on it. Two says Bluetooth, so I know that’s not it. I click on the last one, “am01r0r3”, then clicked on the Upload button. The FTDI Friend started to blink, so I know I got the right port.
  • My Arduino LED is blinking!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.