Electronics / Arduino

Arduino Super-Ultra-Hyper-Mega


BULLSEYE! by Cris & Brian

Shoot a laser into the photo resister and make the ball spin out of the cup.
int ledPin = 9;
int val;
int THRESHOLD = 30;
int PHOTO = 0;
void setup () {
Serial.begin(9600);
pinMode(ledPin, OUTPUT);
}
void loop() {
val = analogRead(PHOTO);
Serial.println(val);
if (val < THRESHOLD) {
digitalWrite(ledPin, LOW);
}
else {
digitalWrite(ledPin, HIGH);
}
}

Thursday (Tomorrow): All Electronics field trip-meet at the store at 1:00pm!

We are meeting at 1:00pm at All Electronics - its about 15 mins from UCLA - we will then head back to class at about 2:00 pm
We want to move ahead fast beyond LEDs and Buttons to the fun kinetic electromechanical stuff (Motors, Solenoids, Fans, servos) - so do the Homework exercises !

Address:
14928 Oxnard Street
Van [...]

Electronic Components for AI - Use for drawing circuit diagrams and reference

Illustrator symbols:
http://www.tigoe.net/pcomp/code/category/circuits/134
these will show up in your symbols tab
here is a refrence for many many electroni component symbols:
http://library.thinkquest.org/10784/circuit_symbols.html

More help with Arduino: Lady Ada’s Arduino Tutorial

If you’re having some trouble getting the concepts with electronics I would highly recommend Lady Ada’s Arduino Tutorial:
http://www.ladyada.net/learn/arduino/
“So, I get two or three emails a day, all basically asking the same thing: “Where can I learn about electronics?” In general, most of these people have seen some of my projects and want to be able [...]

Binary Counter

Here is a picture of the circuit on a breadboard and a picture of the schematic:

Here is a video:
 
Here’s some links to learn more on this topic:
http://arduino.cc/en/Reference/Byte
http://arduino.cc/en/Reference/ByteCast
http://arduino.cc/en/Reference/Bitshift
http://www.arduino.cc/en/Reference/BitwiseAnd
http://www.arduino.cc/en/Tutorial/BitMask
http://www.arduino.cc/en/Tutorial/Debounce
 
Here’s the code to get it working:
http://classes.design.ucla.edu/Winter09/157A/wp-content/uploads/2009/02/binarycounter.zip
 

/*

How do you make 4 LED's count by 1 up to 15? Use Binary!

 first LED = 1

second LED = 2

 third [...]

Turn Indicator Circuit + Code

Circuit Diagram

This is a turn indicator gadget for a 4 player game:
To build a breadboard version of this gadget in class you will need:

Arduino + power + cable
Breadboard + jumper wire
4 LEDS
1 Buzzer
1 three position switch
4 pushbuttons
6 pullup resistors

To build a mounted version of this you will need:

22 [...]

Timer Circuit + Code

Program code Zip file can downloaded here
This is a simple beeping timer with a warning pattern and a timer done pattern
To make this you will need these parts:

Arduino + power + USB cable
Breadboard + jumper wire
2 LEDS
1 Buzzer
1 pushbutton
1 pullup resistor
the code found below

Code:
/*
* Buzzing Timer
* eddo3ddo - w09 157A
* Simple [...]