Skip to content
Snippets Groups Projects
Commit ec1e4df1 authored by esomo22e's avatar esomo22e
Browse files

push week 12 images

parent 75277fb6
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -94,6 +94,13 @@
<div container = "mat_container">
<h2>Materials</h2>
<div class="img_des">
<img src="../img/week_12/20181218_062134.jpg" alt="ankara print 2" class = "print_des">
<figcaption class="cap">Velostat and Conductive Paint Nail Sensor</figcaption>
</div>
<ul>
<li>Acrylic Nails</li>
<li>Nail Polish</li>
......@@ -114,6 +121,12 @@
<div class = "proc_vel">
<h4>Velostat + Fabric Pressure Sensor</h4>
<div class="img_des">
<img src="../img/week_12/20181218_061541.jpg" alt="ankara print 2" class = "print_des">
<figcaption class="cap">Velostat Nail Sensor</figcaption>
</div>
<p>Velostat is conductive and pressure sensitive and it will allow you to make a good pressure sensor nail sticker.</p>
<ol>
<li>I gathered all my materials.</li>
......@@ -126,6 +139,12 @@
</div>
<div class = "proc_paint">
<h4>Conductive Paint + Nail Polish Distance Sensor</h4>
<div class="img_des">
<img src="../img/week_12/20181218_061538.jpg" alt="ankara print 2" class = "print_des">
<figcaption class="cap">Conductive Paint Nail Sensor</figcaption>
</div>
<p>Bare Conductive Paint is a multipurpose electrically conductive material perfect for all of your DIY projects. It allowed
me to be flexible and develop simple designs on nails and still is conductive when covered over nail art. I think if I was
more talented nail artist, I probably could create engaging designs.</p>
......@@ -160,63 +179,74 @@
<p>Here is the code for the distance sensor. It kind of worked but it wasn't always easy.</p>
<pre><code>
#include <CapacitiveSensor.h>
/*
* CapitiveSense Library Demo Sketch
* Paul Badger 2008
* Uses a high value resistor e.g. 10M between send pin and receive pin
* Resistor effects sensitivity, experiment with values, 50K - 50M. Larger resistor values yield larger sensor values.
* Receive pin is the sensor pin - try different amounts of foil/metal on this pin
*/
CapacitiveSensor cs_4_2 = CapacitiveSensor(4,2); // 10M resistor between pins 4 & 2, pin 2 is sensor pin, add a wire and or foil if desired
CapacitiveSensor cs_4_6 = CapacitiveSensor(4,6); // 10M resistor between pins 4 & 6, pin 6 is sensor pin, add a wire and or foil
CapacitiveSensor cs_4_8 = CapacitiveSensor(4,8); // 10M resistor between pins 4 & 8, pin 8 is sensor pin, add a wire and or foil
void setup()
{
cs_4_2.set_CS_AutocaL_Millis(0xFFFFFFFF); // turn off autocalibrate on channel 1 - just as an example
pinMode(13, OUTPUT);
Serial.begin(9600);
}
#include <CapacitiveSensor.h>
/*
* CapitiveSense Library Demo Sketch
* Paul Badger 2008
* Uses a high value resistor e.g. 10M between send pin and receive pin
* Resistor effects sensitivity, experiment with values, 50K - 50M. Larger resistor values yield larger sensor values.
* Receive pin is the sensor pin - try different amounts of foil/metal on this pin
*/
void loop()
{
long start = millis();
long total1 = cs_4_2.capacitiveSensor(10);
long total2 = cs_4_6.capacitiveSensor(10);
long total3 = cs_4_8.capacitiveSensor(10);
Serial.print(millis() - start); // check on performance in milliseconds
Serial.print("\t"); // tab character for debug windown spacing
CapacitiveSensor cs_4_2 = CapacitiveSensor(4,2); // 10M resistor between pins 4 & 2, pin 2 is sensor pin, add a wire and or foil if desired
CapacitiveSensor cs_4_6 = CapacitiveSensor(4,6); // 10M resistor between pins 4 & 6, pin 6 is sensor pin, add a wire and or foil
CapacitiveSensor cs_4_8 = CapacitiveSensor(4,8); // 10M resistor between pins 4 & 8, pin 8 is sensor pin, add a wire and or foil
Serial.print(total1); // print sensor output 1
Serial.print("\t");
Serial.print(total2); // print sensor output 2
Serial.print("\t");
Serial.println(total3); // print sensor output 3
void setup()
{
cs_4_2.set_CS_AutocaL_Millis(0xFFFFFFFF); // turn off autocalibrate on channel 1 - just as an example
pinMode(13, OUTPUT);
Serial.begin(9600);
}
if(total2 > 5){
digitalWrite(13, HIGH);
delay(1000);
void loop()
{
long start = millis();
long total1 = cs_4_2.capacitiveSensor(10);
long total2 = cs_4_6.capacitiveSensor(10);
long total3 = cs_4_8.capacitiveSensor(10);
}
else{
digitalWrite(13, LOW);
delay(1000);
}
Serial.print(millis() - start); // check on performance in milliseconds
Serial.print("\t"); // tab character for debug windown spacing
Serial.print(total1); // print sensor output 1
Serial.print("\t");
Serial.print(total2); // print sensor output 2
Serial.print("\t");
Serial.println(total3); // print sensor output 3
delay(5); // arbitrary delay to limit data to serial port
if(total2 > 5){
digitalWrite(13, HIGH);
delay(1000);
}
else{
digitalWrite(13, LOW);
delay(1000);
}
delay(5); // arbitrary delay to limit data to serial port
}
</code></pre>
</div>
<div class = "test_container">
<p>A lot of testing with paper before I painted the nails.</p>
<div class="img_des">
<img src="../img/week_12/20181218_233107.jpg" alt="ankara print 2" class = "print_des">
<figcaption class="cap">Testing Conductive Paint</figcaption>
</div>
<div class="img_des">
<img src="../img/week_12/serial_mon" alt="ankara print 2" class = "print_des">
<figcaption class="cap">Serial Monitor for the sensors</figcaption>
</div>
</div>
<div class = "result_container">
......
img/week_12/20181216_170713.jpg

1.31 MiB

img/week_12/20181216_233107.jpg

1.48 MiB

img/week_12/20181218_061538.jpg

930 KiB

img/week_12/20181218_061541.jpg

1020 KiB

img/week_12/20181218_062134.jpg

1.01 MiB

img/week_12/serial_mon.PNG

9.82 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment