April 2010
1 post
test
test
January 2010
3 posts
December 2009
4 posts
Wireless Lab
November 2009
6 posts
Lab-Serial(2)
After uploading the following code to Processing, we can see the graph changing by turning the potentiometer.
Created 20 April 2005 Updated 5 August 2008 by Tom Igoe Updated 2 November 2009 by Rob Faludi */
import processing.serial.*;
Serial myPort; // The serial port int graphXPos = 1; // the horizontal position of the graph:
void setup () { size(400, 300); ...
Lab-Motors(2)
After adding a Switch and an H-bridge, we can control the direction of motor’s spin.
// On this part, we add a switch and an H-bridge to the circuit. the H-bridge allows the changing of current flow. In the end, we can controll the direction of motor's spin.
]]]][CDATA[>
// ]]]]>]]>
Lab-Motors(1)
For this lab, we add a motor to a circuit. After building the circuit and uploading codes to the Arduino board , we can use a potentiometer to control the motor.
Lab-Motors(2)
October 2009
6 posts
Lab-Analog Output(3)
Create Something Unique
Lab-Analog Output(1)
Servo and Potentiometer
Add a servo and potentiometer to the circuit, and upload following code to the board.
#include <Servo.h>
Servo myservo; // create servo object to control a servo
int potpin = 0; // analog pin used to connect the potentiometer int val; // variable to read the value from the analog pin
void setup() { myservo.attach(9); //...
September 2009
10 posts
Lab2-Electronics
Varying Voltage