Difference between revisions of "Arduino"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 33: | Line 33: | ||
* [[Arduino: Read Analog Voltage]] | * [[Arduino: Read Analog Voltage]] | ||
* [[Arduino: Fade]] | * [[Arduino: Fade]] | ||
+ | |||
+ | |||
+ | |||
+ | 2. Digital | ||
+ | |||
+ | Blink Without Delay: Blink an LED without using the delay() function. | ||
+ | Button: Use a pushbutton to control an LED. | ||
+ | Debounce: Read a pushbutton, filtering noise. | ||
+ | Digital Input Pullup: Demonstrates the use of INPUT_PULLUP with pinMode(). | ||
+ | State Change Detection: Count the number of button pushes. | ||
+ | Tone Keyboard: A three-key musical keyboard using force sensors and a piezo speaker. | ||
+ | Tone Melody: Play a melody with a Piezo speaker. | ||
+ | Tone Multiple: Play tones on multiple speakers sequentially using the tone() command. | ||
+ | Tone Pitch Follower: Play a pitch on a piezo speaker depending on an analog input. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | 3. Analog | ||
+ | |||
+ | Analog In Out Serial: Read an analog input pin, map the result, and then use that data to dim or brighten an LED. | ||
+ | Analog Input: Use a potentiometer to control the blinking of an LED. | ||
+ | Analog Write Mega: Fade 12 LEDs on and off, one by one, using an Arduino Mega board. | ||
+ | Calibration: Define a maximum and minimum for expected analog sensor values. | ||
+ | Fading: Use an analog output (PWM pin) to fade an LED. | ||
+ | Smoothing: Smooth multiple readings of an analog input. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | 4. Communication | ||
+ | These examples include code that allows the Arduino to talk to Processing sketches running on the computer. For more information or to download Processing, see processing.org. There are also Max/MSP patches that can communicate with each Arduino sketch as well. For more on Max/MSP see Cycling 74. | ||
+ | |||
+ | ASCIITable: Demonstrates Arduino's advanced serial output functions. | ||
+ | Dimmer: Move the mouse to change the brightness of an LED. | ||
+ | Graph: Send data to the computer and graph it in Processing. | ||
+ | Midi: Send MIDI note messages serially. | ||
+ | Multi Serial Mega: Use two of the serial ports available on the Arduino Mega. | ||
+ | Physical Pixel: Turn a LED on and off by sending data to your Arduino from Processing or Max/MSP. | ||
+ | Read ASCII String: Parse a comma-separated string of integers to fade an LED. | ||
+ | Serial Call Response: Send multiple variables using a call-and-response (handshaking) method. | ||
+ | Serial Call Response ASCII: Send multiple variables using a call-and-response (handshaking) method, and ASCII-encode the values before sending. | ||
+ | Serial Event: Demonstrates the use of SerialEvent(). | ||
+ | Virtual Color Mixer: Send multiple variables from Arduino to your computer and read them in Processing or Max/MSP. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | 5. Control Structures | ||
+ | |||
+ | Arrays: A variation on the For Loop example that demonstrates how to use an array. | ||
+ | For Loop Iteration: Control multiple LEDs with a for loop and. | ||
+ | If Statement Conditional: Use an ‘if statement’ to change the output conditions based on changing the input conditions. | ||
+ | Switch Case: How to choose between a discrete number of values. | ||
+ | Switch Case 2: A second switch-case example, showing how to take different actions based on the characters received in the serial port. | ||
+ | While Statement Conditional: How to use a while loop to calibrate a sensor while a button is being read. |
Revision as of 08:48, 17 November 2015
Arduino adalah platform open-source elektronik berdasarkan hardware yang mudah digunakan dan perangkat lunak. Ini ditujukan untuk siapa pun yang membuat proyek interaktif.
Referensi
Tutorial
- https://www.arduino.cc/en/Tutorial/HomePage
- http://lucidtronix.com/tutorials
- http://www.ladyada.net/learn/arduino/lesson1.html
Pranala Menarik
- Arduino: Power Supply
- Arduino: Cek sambungan USB ke laptop
- Arduino: Instalasi di Ubuntu
- Arduino: Cara Upload Software
Tutorial
BASIC
- Arduino: Bare Minimum
- Arduino: Blink
- Arduino: Analog Read Serial
- Arduino: Digital Read Serial
- Arduino: Read Analog Voltage
- Arduino: Fade
2. Digital
Blink Without Delay: Blink an LED without using the delay() function. Button: Use a pushbutton to control an LED. Debounce: Read a pushbutton, filtering noise. Digital Input Pullup: Demonstrates the use of INPUT_PULLUP with pinMode(). State Change Detection: Count the number of button pushes. Tone Keyboard: A three-key musical keyboard using force sensors and a piezo speaker. Tone Melody: Play a melody with a Piezo speaker. Tone Multiple: Play tones on multiple speakers sequentially using the tone() command. Tone Pitch Follower: Play a pitch on a piezo speaker depending on an analog input.
3. Analog
Analog In Out Serial: Read an analog input pin, map the result, and then use that data to dim or brighten an LED. Analog Input: Use a potentiometer to control the blinking of an LED. Analog Write Mega: Fade 12 LEDs on and off, one by one, using an Arduino Mega board. Calibration: Define a maximum and minimum for expected analog sensor values. Fading: Use an analog output (PWM pin) to fade an LED. Smoothing: Smooth multiple readings of an analog input.
4. Communication
These examples include code that allows the Arduino to talk to Processing sketches running on the computer. For more information or to download Processing, see processing.org. There are also Max/MSP patches that can communicate with each Arduino sketch as well. For more on Max/MSP see Cycling 74.
ASCIITable: Demonstrates Arduino's advanced serial output functions. Dimmer: Move the mouse to change the brightness of an LED. Graph: Send data to the computer and graph it in Processing. Midi: Send MIDI note messages serially. Multi Serial Mega: Use two of the serial ports available on the Arduino Mega. Physical Pixel: Turn a LED on and off by sending data to your Arduino from Processing or Max/MSP. Read ASCII String: Parse a comma-separated string of integers to fade an LED. Serial Call Response: Send multiple variables using a call-and-response (handshaking) method. Serial Call Response ASCII: Send multiple variables using a call-and-response (handshaking) method, and ASCII-encode the values before sending. Serial Event: Demonstrates the use of SerialEvent(). Virtual Color Mixer: Send multiple variables from Arduino to your computer and read them in Processing or Max/MSP.
5. Control Structures
Arrays: A variation on the For Loop example that demonstrates how to use an array. For Loop Iteration: Control multiple LEDs with a for loop and. If Statement Conditional: Use an ‘if statement’ to change the output conditions based on changing the input conditions. Switch Case: How to choose between a discrete number of values. Switch Case 2: A second switch-case example, showing how to take different actions based on the characters received in the serial port. While Statement Conditional: How to use a while loop to calibrate a sensor while a button is being read.