User Tools

Site Tools


workshops:arduino_for_the_curious:stage_1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
workshops:arduino_for_the_curious:stage_1 [2017-04-09 21:51] Simonworkshops:arduino_for_the_curious:stage_1 [2017-04-09 21:52] (current) Simon
Line 87: Line 87:
 Here's your first challenge! Try to complete both tasks. This will help you understand the code. Here's your first challenge! Try to complete both tasks. This will help you understand the code.
  
-| {{workshops:challenge_yourself.jpg?200x0}}| **Easier****(1)** The LED should be flashing once per 2 seconds. Can you make it flash 5 times per second?**(2)** Can you make the LED flash once for 1 second, then once for 0.2 seconds, then again for 1 second and so on in a dot-dash-dot-dash way? |+| {{workshops:challenge_yourself.jpg?200x0}}| **Easier** \\ **(1)** The LED should be flashing once per 2 seconds. Can you make it flash 5 times per second? \\ **(2)** Can you make the LED flash once for 1 second, then once for 0.2 seconds, then again for 1 second and so on in a dot-dash-dot-dash way? |
  
  
Line 96: Line 96:
 You might already be thinking. How do I know what my program is doing if all the feedback I have is a blinking LED? Well there is a solution in the form of serial communication which allows your Arduino to send messages to a computer. These messages can then be shown on your screen by clicking the button at the top right of the Arduino software. You might already be thinking. How do I know what my program is doing if all the feedback I have is a blinking LED? Well there is a solution in the form of serial communication which allows your Arduino to send messages to a computer. These messages can then be shown on your screen by clicking the button at the top right of the Arduino software.
  
-Note: when handling textual information in the Arduino programming language you need to use double quote marks. In this programming language "digitalWrite" represents text (d followed by an i, followed by a g, and so on, spelling the word digitalWrite), whereas digitalWrite (without the double quotes) is a reference to a feature of the programming language which allows you to control the voltage on various pins.+Note: when handling textual information in the Arduino programming language you need to use double quote marks. In this programming language ''"digitalWrite"'' represents text (d followed by an i, followed by a g, and so on, spelling the word digitalWrite), whereas ''digitalWrite'' (without the double quotes) is a reference to a feature of the programming language which allows you to control the voltage on various pins.
  
 <code> <code>
workshops/arduino_for_the_curious/stage_1.1491774665.txt.gz · Last modified: 2017-04-09 21:51 by Simon

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki