Workshop Material

Course material from MzTEK workshops:


RFID and LilyPad Workshop by Sara
The project circuit diagram can be down loaded HERE


SOLARBOTS workshop by Varvara Guljajeva
Workshop pdf can be downloaded HERE


Electronics for Absolute Beginners by Iain Sharp
The workshop pdf can be downloaded HERE


Laser Cutting workshop by Toby Borland
The workshop materials can be downloaded HERE


sketchPatch by Sophie McDonald
The workshop slides can be downloaded HERE


DIY PACMAN by Eunjoo Shin
The workshop pdf can be downloaded HERE


MzTEK Guide to Programming by Becky Stewart
Workshop material can be downloaded in three parts
Download Part 1 pdf HERE
Download Part 2 pdf HERE
Download Part 3 pdf HERE


Shiver My Teacups! by Katrin Baumgarten
The Workshop pdf can be downloaded HERE

There were two elements to this workshop, using a temperature sensor and using a proximity sensor. The code for both can be found below…

// temprature sensor triggers small motor

const int motor_vibration_pin = 2;
const int temperature_pin = 3;

const int trigger_temp = 39; // temperature at which we want to activate the vibrator
const int vibration_duration = 60; // seconds

boolean activated = false;

void setup()
{
pinMode(motor_vibration_pin, OUTPUT);
digitalWrite(motor_vibration_pin, LOW);
Serial.begin(9600); // start serial communication

}

void loop()
{
int current_temp = ( 5.0 * analogRead(temperature_pin) * 100.0) / 1024.0;

Serial.print(“Current temperature: “);

Serial.print(current_temp,DEC);
Serial.println(” Celsius”);

if (activated == false)
{
if (current_temp > trigger_temp + 2)
{
activated = true;
Serial.println(“5 Degrees above trigger temperature, starting to pay attention!”);

}
}
else
{
if (current_temp < trigger_temp)
{
Serial.println(“Temperature falling below trigger temperature! Activate the MOTORRRRR!”);

digitalWrite(motor_vibration_pin, HIGH);
delay(vibration_duration * 1000); // in milliseconds, 10000ms = 10 seconds
digitalWrite(motor_vibration_pin, LOW);
activated = false;
Serial.println(“Done. Waiting for higher temperature again.”);
}
}
delay(1000);
}

// Distance triggered saucer vibrator

const int motor_vibration_pin = 2;
const int distance_pin = 3;

const int trigger_dist = 400; // distance at which we want to activate the vibrator

void setup()
{
pinMode(motor_vibration_pin, OUTPUT);
digitalWrite(motor_vibration_pin, LOW);
Serial.begin(9600); // start serial communication

}

void loop()
{
int current_dist = analogRead(distance_pin);
Serial.print(“Current dist: “);
Serial.println(current_dist);

if (current_dist > trigger_dist)
{
Serial.println(“Distance falling below trigger distance! Activate the MOTORRRRR!”);
digitalWrite(motor_vibration_pin, HIGH);
}
else
{
Serial.println(“Distance above trigger distance! Switching off the MOTORRRRR!”);
digitalWrite(motor_vibration_pin, LOW);
}
delay(100);
}