Skip to content

Commit 6342cdb

Browse files
author
Federico Fissore
committed
Examples: adding description, layout and schematics
1 parent c94cce2 commit 6342cdb

File tree

147 files changed

+62
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+62
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Read a potentiometer, print its state out to the Arduino Serial Monitor.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The bare minimum of code needed to start an Arduino sketch.

examples/01.Basics/Blink/Blink.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Turn an LED on and off.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Read a switch, print the state out to the Arduino Serial Monitor.
40.2 KB

examples/01.Basics/Fade/Fade.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Demonstrates the use of analog output to fade an LED.

examples/01.Basics/Fade/layout.png

37 KB

examples/01.Basics/Fade/schematic.png

30.8 KB
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Reads an analog input and prints the voltage to the serial monitor.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Blinking an LED without using the delay() function.
51.1 KB

examples/02.Digital/Button/Button.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Use a pushbutton to control an LED.

examples/02.Digital/Button/layout.png

40.2 KB
25.7 KB
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Read a pushbutton, filtering noise.
40.2 KB
34.3 KB
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Demonstrates the use of INPUT_PULLUP with pinMode().
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Counting the number of button pushes.
82.6 KB
49.7 KB
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
A three-key musical keyboard using force sensors and a piezo speaker.
36.9 KB
34.8 KB
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Play a melody with a Piezo speaker.
57.6 KB
41.3 KB
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Play tones on multiple speakers sequentially using the tone() command.
72.1 KB
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Play a pitch on a piezo speaker depending on an analog input.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Read an analog input pin, map the result, and then use that data to dim or brighten an LED.
31.8 KB
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Use a potentiometer to control the blinking of an LED.
41.3 KB
32.5 KB
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fade 12 LEDs on and off, one by one, using an Arduino Mega board.
84.6 KB
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Define a maximum and minimum for expected analog sensor values.
97.3 KB
41.4 KB

examples/03.Analog/Fading/Fading.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Use an analog output (PWM pin) to fade an LED.

examples/03.Analog/Fading/layout.png

41.2 KB
33.4 KB
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Smooth multiple readings of an analog input.
41.3 KB
32.5 KB
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Demonstrates Arduino's advanced serial output functions.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Move the mouse to change the brightness of an LED.
41.2 KB
30.8 KB
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Send data to the computer and graph it in Processing.
41.3 KB
32.5 KB
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Send MIDI note messages serially.
40.6 KB
26.5 KB
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Use two of the serial ports available on the Arduino Mega.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Turn a LED on and off by sending data to your Arduino from Processing or Max/MSP.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Parse a comma-separated string of ints to fade an LED.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Send multiple variables using a call-and-response (handshaking) method.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Send multiple variables using a call-and-response (handshaking) method, and ASCII-encode the values before sending.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Demonstrates the use of SerialEvent().
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Send multiple variables from Arduino to your computer and read them in Processing or Max/MSP.

examples/05.Control/Arrays/Arrays.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
A variation on the For Loop example that demonstrates how to use an array.

examples/05.Control/Arrays/layout.png

90.3 KB
49.1 KB
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Controlling multiple LEDs with a for loop and.
90.3 KB
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
How to use an if statement to change output conditions based on changing input conditions.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
How to use a while loop to calibrate a sensor while a button is being read.
69 KB
35.3 KB
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
How to choose between a discrete number of values.
79.3 KB
49.1 KB
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
A second switch-case example, showing how to take different actions based in characters received in the serial port.
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Read an ADXL3xx accelerometer.
25.5 KB
37.5 KB

examples/06.Sensors/Knock/Knock.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Detect knocks with a piezo element.

examples/06.Sensors/Knock/layout.png

48.9 KB
101 KB
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Two-axis acceleromoter.
179 KB
95.8 KB

examples/06.Sensors/Ping/Ping.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Detecting objects with an ultrasonic range finder.

examples/06.Sensors/Ping/layout.png

35.3 KB
43.3 KB
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
How to control an 8x8 matrix of LEDs.
76.8 KB
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
How to make an LED bar graph.
150 KB
68.6 KB
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add strings together in a variety of ways.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Change the case of a string.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Get/set the value of a specific character in a string.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Compare strings alphabetically.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
How to initialize string objects.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Look for the first/last instance of a character in a string.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Get and trim the length of a string.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Get and trim the length of a string.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Replace individual characters in a string.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Check which characters/substrings a given string starts or ends with.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Look for "phrases" within a given string.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Logs out the current user with key commands.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Sends a text string when a button is pressed.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Opens a new window in the Arduino IDE and reprograms the Leonardo with a simple blink program.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Reads a byte from the serial port, and sends back a keystroke.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Demonstrates the Mouse and Keyboard commands in one program.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Control cursor movement with 5 pushbuttons.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Controls a computer's cursor movement with a Joystick when a button is pressed.

0 commit comments

Comments
 (0)