SEARCH
RESULTS
ALL PROJECTS by Adam Kumpf

MAKE THIS!
2 votes
DIFFICULTY
This is an 8-bit beat-happy light-based theremin!

Place your hand over the light sensor to change the tone.

Knob 1 controls the relative pitch shift between the two speakers.
Knob 2 controls the note shortness (staccato).
On/Off Swith turn it on and off - it's fun, but it can get annoying if you haven't mastered it yet :)

Rock on!
MAKE THIS!
DIFFICULTY
Ever want to intvert the value you get from a sensor? Wish the light sensor value went up in the dark instead of down? Or a button normally had a value of 1000 and became 0 when pressed? Here's how.

Just use a variable and subtract the value from 1000.

Var_1 = 1000 - In_1;

Then use Var_1 in your project where it's convenient.

Out_B = Var_1;
MAKE THIS!
DIFFICULTY
Here's the basic structure for creating a For loop using Teagueduino. This lets you perform an action an exact number of times.

For example, maybe you'd like to blink a light 5 times.

The For loop in C look would look something like this:

for(int i=0; i<5; i++){
// turn light on
// delay for .2 seconds
// turn the light off
// delay for .2 second
}

In Teagueduino, we can use variables to accomplish the same thing like this:

Var_1 = 0 + 0;
while(Var_1 < 5){
Out_A = 1000 as PWM;
delay(200);
Out_A = 0 as PWM
delay(200);
Var_1 = Var_1 + 1;
}
MAKE THIS!
DIFFICULTY
Here's a quick tutorial to show 5 different ways to blink LEDs!

One (Out_A):
The easist way! Just set an output as a Tone between 1 and 30.

Two (Out_B):
Turn the light on. Delay. Turn it off. Delay.

Three (Out_C):
Use a variable (Var_1) to invert whatever it was set to last time. If it was on, turn it off. If it was off, turn it on.

Four (Out_D):
Use a variable (Var_2) to smoothly ramp the brightness up an down.

Five (Out_E):
Set the brightness of the LED using the random() function.
MAKE THIS!
DIFFICULTY
This is for the first board of a 2-board project.

This project handles some simple automated lighting when a train (with a magnet taped to it) passes by a magnetic sensor taped to the track.

The three LED outputs are staged in time so that they turn on and blink accordinly.

See the second part of this project for more info!
MAKE THIS!
DIFFICULTY
This is the second part of a 2-board project.

This program waits for the user to lift a mug of hot cocoa off of a button (In_1), and then controls 4 servos and an LED to open up a shoebox theater, make two talking heads come to life, blink a red LED on a shirt, and finally raise a flag behind the shoebox.

mmm, hot cocoa... happy holidays!
MAKE THIS!
1 vote
DIFFICULTY
Here's a little project that uses sequenced lighting to mimic the car from Knight Rider (remember the early 80s?).

The output LEDs smoothly run back and forth at the push of a button (on In_1).

The code is essentially made in two section.
1. If the button is pressed, sequenct and fade the lights
2. If the button is not pressed, slowly fade out the lights from whatever they were.
MAKE THIS!
DIFFICULTY
Fun with randomness!
...and a great way to annoy your friends.

When the user presses a button, each piezo speaker randomly plays a random tone.

Var_1 determines how frequently the tones change. Higher numbers make change less likely.
NEXT