Veronika Volkova, Yue Liu, & Timothy Vance: Skill Review


For our skill review, we decided to make a project centered on public health with a smaller connection to plants.  We wanted to design a circuit that would be able to sense moisture in order to change the environment and structure.  If the moisture sensor found little water the structure would be open and be at normal temperature.  If a lot of water was found the structure would close in order to stop water from coming in and a heating pad underneath would activate.  A servo would control the structure but be were unable to calibrate the motor in order to do so.






Video Here

Timothy & Ryan’s Water Level Sensor


For our sensor and display project, we made a circuit that uses the moisture sensor as a means to determine the water level of a sample of dirt.  While out of the water, the display would say that the water level is low due to the lack of water as well as have a green LED blink.  When in the water the LCD would out print a number based on how much water was present and state the water level was high once past a certain threshold.


// Portion of code borrowed from
// Portion of code borrowed from

#include <SoftwareSerial.h>

SoftwareSerial lcd = SoftwareSerial(2,3);

//moisture sensor ints
int sensorPin = A0;
int led = 13;
int thresholdUp = 400;
int thresholdDown = 250;

void setup() {
//LCD startup

//clearing screen

lcd.write((uint8_t)0); //red
lcd.write((uint8_t)0); //green
lcd.write((uint8_t)255); //blue
delay(10); //time to adjust the backlight

//Moisture Sensor
pinMode(led, OUTPUT);


void loop() {

int sensorValue;

sensorValue = analogRead(sensorPin);

//clear screen

if (sensorValue <= thresholdDown){
//clearing screen

lcd.println(“Low Water”);
lcd.print(” Moisture”);

digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW

} else if (sensorValue >= thresholdUp){
//clearing screen

lcd.println(“High Water”);
lcd.print(” Moisture”);
delay(1000); //wait for a second, easier to read



Timothy Vance’s ThermoMail


For this project, I wanted to use the thermochromatic cloth in some way.  So I decided to make a design of an email on the back of the cloth.  This way went the cloth would heat up the design would become visible.  Though when I put this into to testing the heating pad never would become hot enough to show the design.






Timothy Vance’s Soft Switch



Turns on and off a light emitting diode(LED) connected to digital
pin 13, when pressing a pushbutton attached to pin 2.

The circuit:
* LED attached from pin 13 to ground
* pushbutton attached to pin 2 from +5V
* 10K resistor attached to pin 2 from ground

* Note: on most Arduinos there is already an LED on the board
attached to pin 13.

created 2005
by DojoDave <;
modified 30 Aug 2011
by Tom Igoe

This example code is in the public domain.

// constants won’t change. They’re used here to
// set pin numbers:
const int buttonPin = 2; // the number of the pushbutton pin
const int ledPin = 13; // the number of the LED pin
const int ledPin2 = 12;
// Pin 13: Arduino has an LED connected on pin 13
// Pin 11: Teensy 2.0 has the LED on pin 11
// Pin 6: Teensy++ 2.0 has the LED on pin 6
// Pin 13: Teensy 3.0 has the LED on pin 13

// variables will change:
int buttonState = 0; // variable for reading the pushbutton status

void setup() {
// initialize the LED pin as an output:
pinMode(ledPin, OUTPUT);
// initialize the pushbutton pin as an input:
pinMode(buttonPin, INPUT);

void loop(){
// read the state of the pushbutton value:
buttonState = digitalRead(buttonPin);

// check if the pushbutton is pressed.
// if it is, the buttonState is HIGH:
if (buttonState == HIGH) {
// turn LED on:
digitalWrite(ledPin, HIGH);
digitalWrite(ledPin2, LOW);
else {
// turn LED off:
digitalWrite(ledPin, LOW);
digitalWrite(ledPin2, HIGH);


My soft switch works off of a small cardboard structure that works similarly to that of a plug when the pieces are apart the light on the left is on.


When the two cardboard pieces are together the light of the right activates.