Changes between Version 1 and Version 2 of ControlSystems/Electrical/Training/Arduino/Lesson1


Ignore:
Timestamp:
Sep 24, 2015, 12:01:53 PM (10 years ago)
Author:
David Albert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/Electrical/Training/Arduino/Lesson1

    v1 v2  
    1818If you followed the instructions above, you have already seen and run an Arduino program: blinky (if you haven't, please do so now).  Arduino developers refer to programs as "sketches".  Sketches are written in C and C++ which are the most popular languages for programming embedded computers (computers without screens and keyboards).  Java is derived from C/C++ and is extremely similar; if you know Java, you will have no problem with C/C++.  A good introduction to Arduino programming and the blinky example program is [http://www.ladyada.net/learn/arduino/lesson2.html here] (please follow the link and read the introduction).
    1919
    20 You should now be familiar with the basic structure of an Arduino sketch including the setup() and loop() functions and you should be able to compile a sketch and load it onto your Arduino Uno.
     20== Activities ==
     21You should now be familiar with the basic structure of an Arduino sketch including the setup() and loop() functions and you should be able to compile a sketch and load it onto your Arduino Uno.  Try the following:
     22* vary the speed of the blinking LED by changing the delays
     23* vary the brightness of the LED (by using a variable duty cycle)
    2124
    2225== Other Stuff ==