week 5 – tom bolsover

this week i nailed down the code, this was done by much trial and error based around the sensor as well as adding time elements into the code so that the coaster can remind the user to either drink more or light up to show them that they are drinking enough.

 

int fsrPin = 0;
int fsrReading;
int fsrVoltage;
unsigned long fsrResistance;
unsigned long fsrConductance;
long fsrForce;

void setup(void) {
Serial.begin(9600);
}

void loop(void) {
fsrReading = analogRead(fsrPin);
Serial.print(“Analog reading = “);
Serial.println(fsrReading);

fsrVoltage = map(fsrReading, 0, 1023, 0, 5000);
Serial.print(“Voltage reading in mV = “);
Serial.println(fsrVoltage);

if (fsrVoltage == 0) {
Serial.println(“No pressure”);
} else {
// The voltage = Vcc * R / (R + FSR) where R = 10K and Vcc = 5V
// so FSR = ((Vcc – V) * R) / V
fsrResistance = 5000 – fsrVoltage; // fsrVoltage is in millivolts so 5V = 5000mV
fsrResistance *= 5600;
fsrResistance /= fsrVoltage;
Serial.print(“FSR resistance in ohms = “);
Serial.println(fsrResistance);

fsrConductance = 1000000; // we measure in micromhos so
fsrConductance /= fsrResistance;
Serial.print(“Conductance in microMhos: “);
Serial.println(fsrConductance);

// Use the two FSR guide graphs to approximate the force
if (fsrConductance <= 1000) {
fsrForce = fsrConductance / 80;
Serial.print(“Force in Newtons: “);
Serial.println(fsrForce);
} else {
fsrForce = fsrConductance – 1000;
fsrForce /= 30;
Serial.print(“Force in Newtons: “);
Serial.println(fsrForce);
}
}
Serial.println(“DRINK”);
delay(1000);
}

Advertisements

week 4 – tom bolsover

in the 4th week i really focused building the product. as shown in the engineers drawings below. this product can be made without ardunino and thus could be made much smaller. this is show by having smaller electrical components no breadboard and few parts. the coaster can then be powered off a much smaller power supply. and be a much more slender design

Assembly1 2.1

Assembly1 2.2

Assembly1 2.3

 

 

 

 

 

week 3 – tom bolsover

in the third week i bought a force resistance sensor (which came with a free pack of harribo) off the internet. this allowed me to start testing with different weights and drinks. i found that different drinks had different weights such as beer was heavier than water but not as heavy as milk. i also researched how much water the average male and female needed to drink. males need to drink around 3.7 liters of water a day and females 2.7. i also calculated how to convert resistance to weight.20170402_171542

Week 2 – Tom Bolsover

in the second week i started to work on the code as shown in the photo. It will have to weight the the glass and the water. the take a reading and save it. When the glass glass is removed the sensor will not show a reading. then when the glass is replaced and a new reading is taken. This second reading is taken away from the reading and this gives total amount of water drunk by the user. this is then repeated until the glass is empty and refilled. The readings are then that were more than the previous  are not added to the running total. the water drunk then actuates the lights and sound.20170402_171532.jpg

initial idea – tom bolsover

I have taken up the design west hydration coaster, I am planning on using a balance or scale to measure the weight of the drink and measure how much has been drunk. the coaster will then alert you to the fact that you have not drunk enough and how much more you need to drink. this can be used in hospitals, the home and the work place. The coaster should be small to fit on a desk or side table and portable to you can carry it between work and home. the average male should be drinking 3.7 litres of water per day and women should be drinking 2.7 litres per day. the coaster could have a button to change between the two or sell different ones to men and women.

Firefly night light – Tom, Jacob, lewis

This week as a group we decided to come up with concept designs that would suite our “FireFly Night Light” Arduino model for our physical computing brief.

We firstly need to find out how it works on the Arduino kit and build around the Arduino kit so everything fits together nicely and works. We also need to come up with a design that looks desirable and that would actually work as a FireFly Night Light.

We started to do some sketches from inspiration we found online of Fire Flies and night lights and then determined how we want the Night Light to look like. And from there we needed to determine the dimensions of the FireFly Night Light so we could fit the Arduino kit inside the model. And from there we need to figure out how the Arduino kit will fit to the components of the model (in this case the wings made from piano wire, wood and clear plastic) so we have a nicely sized and finished model.

firefly week 3

The main concept of the firefly is down confirmed and we have worked out that the wings will be powered by a pulsing electric motor, this motor will be attached to a differential gear and then attached to two independent cams that will flap the wing which are mounted on pivots and return using gravity. the tail will be lit by a pulsing light that will be activated with the motor via an LDR. the breadboard and kit will be hidden in the base and the wires will be run up through a pipe into the main body of the beast.

https://create.arduino.cc/editor/tommybol/sketch_feb6a/preview?embed

firefly – Tom Bolsover, Tudge, Jacob Avent

This week, as a group, we decided the functionality of the firefly model should be that it flaps its wings (via the motor being on and a mechanical flapping mechanism powered by said motor), and flashes its LED. When a hand is passed over the LDR, the motor and LED both turn off for a set amount of time, say ten seconds, and then resume normal function, mimicking ‘swatting’ at the firefly and stopping it buzzing. We wanted to replicate a firefly, and capture it’s essence as simply as possible, and from watching clips of fireflies on YouTube, decided that flapping wings, and a flashing light were the core components needed. The brief requires the model to make a sound, which ours will do mechanically, via the flapping of its wings, with a cam knocking two posts to top the wings, hopefully replicating the buzzing sound of fireflies that we heard on the YouTube clips.

fireflylights_up

inspiration –

fireflies-tsuneaki-hiramatsu

Kusama Fireflies

Week 1 – Tom Bolsover, Jacob Avent, lewis Tudge

For our Arduino project we are planning to design and build a firefly with a flashing light up tail and flapping wings. This fire fly could be used as an alarm clock, miniature sculpture, or a toy. The Base will be a hollow box that the Arduino kit and the breadboard will fit into and stay hidden, it will also have space for a 9 volt battery. With these parts built into the bottom it should give it enough weight to not fall over. The fire fly will be held up by a hollow tube allowing the wires to travel to the components. The main body of the fire fly will be big enough to hold a small electric motor and a LED. It will be an estimate of 2 – 3 inches long. The fire fly will either be controlled by a button or a LDR.