Skip to content
Snippets Groups Projects
Commit bb7c3513 authored by Loes's avatar Loes
Browse files

week 10_pics_code

parent 3c6eaf0f
No related branches found
No related tags found
No related merge requests found
Pipeline #
Showing
with 181 additions and 24 deletions
......@@ -18,7 +18,7 @@
![](../images/wk09_whitediamonds.jpg)*Alum Crystals on velveteen, felt and loosely woven cheesecloth, Loes Bogers, 2019*
![](../images/wk09_cast1.JPG)*Single sheet silk chiffon bioresin composite, first try, Loes Bogers, 2019*
![](../images/wk09_finalresult.jpg)*Leather molding on a 1.5 piece mold, Loes Bogers, 2019*
##Growing crystals using yarn and textile
......@@ -367,6 +367,8 @@ I tried two different vacuum bags and vacuumed them about 20 times but they kept
![](../images/wk09_woodmold.jpg)*My improvised mold-addons, Loes Bogers, 2019*
![](../images/wk09_finalresult.jpg)*Yes! Look at that definition on the edges, gorgeous. Loes Bogers, 2019*
**Glossary**
......
......@@ -21,24 +21,37 @@ The volume will be louder the closer the magnet is to the center of the coil.
**Making a jack connector and soldering the amp board**
See tutorial Liza mentioned. Added some shrink tube. I soldered the amp board together and turned the volume knob on the board up to max with a tiny screwdriver.
See tutorial Liza mentioned. Added some shrink tube. I soldered the amp board together and turned the volume knob on the board up to max with a tiny screwdriver. The board used is an Adafruit Mono 2.5W Class D audio amplifier and Liza describes how to make this jack connector [here](http://thesoftcircuiteer.net/custom-mono-amp-for-textile-speakers/).
![](../images/wk10_jackattack.jpg)*Jack plug soldered to a Mono Amp, Loes Bogers, 2019*
**Designing & Fabricating coils**
*Needlepointing (Liza's instructions)*
Draw a coil on your fabric or paper. It can be any shape you like. Thread your needle with one strand of conductive thread. You can run wax over the end to get it through the hole. Tie a knot 5-6 inches from the end. Come up through the center of the piece of fabric. Stitch around the coil, making sure the conductive thread lines do not touch each other. Make sure the extra 5-6 inches of thread does not get sewn into the coil! We need to keep them separate.
**Lasercutting and heat'n bond**
* Rhino: Spiral
* Illustrator: offset, add extra lines.
I designed lines of the spiral to be 3mm thick so I could still handle them. Too thin would be crazy. Cut off a few windings because I couldn't get them on neatly. So it's a relatively small and weak coil. But it works! You have to get close but you can clearly hear the music with a stack of 5-10 batteries.
I designed lines of the spiral to be 3mm thick so I could still handle them. Too thin would be crazy. Then I tried to figure out how to work with conductive textile (I missed the first e-textiles week). [This tutorial](https://www.instructables.com/id/How-to-Work-With-Conductive-Fabric/#step6) and [Bela](https://class.textile-academy.org/2020/bela.rofe/assignments/week05/) and [Bea's](https://class.textile-academy.org/2020/beatriz.sandini/assignments/week05/) documentation helped a lot!
<iframe width="560" height="315" src="https://www.youtube.com/embed/D469eZatY8Y?controls=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
![](../images/wk10_heatnbond.jpg)*Preparing the conductive textile by ironing on heat 'n bond, Loes Bogers, 2019*
I cut the same spiral shape but without the offset. Instead I just cut the line with a dotted pattern that I can follow with a conductive thread. This coil has a lot more windings so I'm pretty hopeful about these.
Iron heat 'n bond to the conductive fabric before laser cutting (I put a little piece of cotton canvas over it to prevent the plastic melting to the iron. I kept the backing paper during the lasercutting. Cut with laser cutter at Speed 100/Power 20. I had to tape it down a few times to keep it from burning. Carefully ironed the coil to the textile, added a soldering braid from the back by making a little cut in the center so I could connect to both sides.
**Fabricating coils**
![](../images/wk10_cutting.jpg)*Trying to prevent the coil from going everywhere, Loes Bogers, 2019*
Iron heat 'n bond to the conductive fabric before laser cutting (I put a little piece of cotton canvas over it to prevent the plastic melting to the iron. I kept the backing paper during the lasercutting. Cut with laser cutter at Speed 100/Power 20. I had to tape it down a few times to keep it from burning. Carefully ironed the coil to the textile, added a soldering braid from the back by making a little cut in the center so I could connect to both sides.
Cut off a few windings because I couldn't get them on neatly. So it's a relatively small and weak coil. But it works! You have to get close but you can clearly hear the music with a stack of 5-10 magnets.
<iframe width="560" height="315" src="https://www.youtube.com/embed/D469eZatY8Y?controls=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
**Lasercutting and needlepointing**
I cut the same spiral shape but without the offset. Instead I just cut the line with a dotted pattern that I can follow with a conductive thread. This coil has a lot more windings so I'm pretty hopeful about these.
**Troubleshooting the coil**
......@@ -48,41 +61,98 @@ What I did do was turn the volume on the mono amp all the way up. Added a few mo
I soldered these connections to ensure a good flow of the current. Below a video of the technique. I heat the lycra a little by holding the iron *just above* the fabric, and then for a split second I touch the solder and conductive fabric, enough to flow. Super quick though or the lycra burns.
##SOLDERING VIDEO
<iframe width="560" height="315" src="https://www.youtube.com/embed/ma1goF2PCI4?rel=0&amp;controls=0&amp;showinfo=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
I checked again with the multimeter, now I could get a stable reading of 17.7 ohm across. Which I will use for the Thermochromic circuit in which this coil will feature as a heating pad. I embroidered the number on for reference.
I had to solder all the coils because threads broke etcetera etcetera. Lots of soldering-on-textiles practice involved this week.
![](../images/wk10_coils.jpg)*Four coils this week: clockwise from top left: laser cut conductive textile on lycra (17.7 ohm, 8 windings), conductive thread on cotton canvas (16.6 ohm, 19 windings, conductive thread on fake leather (17.2 ohm, 19 windings), crocheted copper wire laced with wool (5.5 ohm), Loes Bogers, 2019*
**Testing the different coils-as-speaker**
1. The hand-threaded black cotton canvas coil swatch - winner of the week! Nice audible sound even when your ear is not on the pad
1. The hand-threaded red fake leather coil swatch - also pretty good!
1. The lasercut lycra coil - very low sound but audible with a cup or by getting very close
1. The crochet copper wire - it basically has not membrane to help make the air particles move! So I tried a weaving technique to integrate a bit of wool to help the coil move air and make audible sounds. I broke a lead in the process, will fix later.
![](../images/wk10_membranes.jpg)*The crochet copper wire coil/heating pad (left), with added wool yarn to act as membrane (right), Loes Bogers, 2019*
**Controlling a soft speaker with an ATtiny85**
The code I wrote for the headpad controlled by Attiny (see below) works unchanged for the speaker as well. The mono-jack connector is connected to a device playing music, and only when pin 3 writes HIGH, the amp gets 5V and the speaker will work.
```
const int buttonPin = 2; // the number of the pushbutton pin
const int ledPin = 0; // the number of the LED pin
const int speakerPin = 3; // pin 3 connected to 5V of mono amp
int buttonState = 0; // variable for reading the pushbutton status
void setup() {
pinMode(ledPin, OUTPUT);
pinMode(buttonPin, INPUT);
pinMode(speakerPin, OUTPUT);
}
void loop() {
buttonState = digitalRead(buttonPin);
if (buttonState == HIGH) {
digitalWrite(ledPin, HIGH);
digitalWrite(speakerPin, HIGH);
} else {
digitalWrite(ledPin, LOW);
digitalWrite(speakerPin, LOW);
}
}
```
*Code for heatpad OR speaker circuit with ATtiny85, Loes Bogers, 2019*
![](../images/wk10_speaker_schematic_attiny.jpg)*Schematic for speaker circuit with ATtiny and mono amp, Loes Bogers, 2019*
**Controlling a soft speaker with a DFPlayer Mini**
This board with a mini SD card holder that can work standalone or with an Arduino (not with the ATtiny though). You could make a full soft MP3 player with this chip! This is the [DFplayer Wiki](https://wiki.dfrobot.com/DFPlayer_Mini_SKU_DFR0299) and here's [Liza's code](https://github.com/lizastark/Projects/tree/master/Sonic_Quilt/dfMini_tutorial) to start with.
## Thermochromic pigment + heating pad
>The DFPlayer Mini MP3 Player For Arduino is a small and low price MP3 module with an simplified output directly to the speaker. The module can be used as a stand alone module with attached battery, speaker and push buttons or used in combination with an Arduino UNO or any other with RX/TX capabilities. – DF Player Wiki
**Making a transistor circuit**
![](../images/wk10_miniplayer_pin_map.png)*DFPlayer Mini Pinout, source: [DFPlayer wiki](https://wiki.dfrobot.com/DFPlayer_Mini_SKU_DFR0299)*
We have a box of transistors here but I found out it's a mix of Voltage Regulators and Mosfets, they don't exactly do the same thing so I had to look at a lot of tiny numbers to find an N-channel MOSFET. I have a IRF530 here, that can control 100V-14A and the pinouts are the same as the example. Gate, Drain, Source from left to right when viewing it from the top.
[](../images/wk10_pin_map_desc_en.png)*DFPlayer Mini Pinout, source: [DFPlayer wiki](https://wiki.dfrobot.com/DFPlayer_Mini_SKU_DFR0299)*
I added a 1N4007 diode (1000V-1A) for safety in case I want to use it with motors etc at a later stage. Never hurts to protect a circuit. I used this one because it's what I had in my box of stuff, but didn't have the 1N4001 (50V - 1A) Liza suggested. Emma wasn't sure why Liza would put a diode in series to one of the leads, instead of in parallel across the leads. We asked Liza and she said [...]
<iframe width="560" height="315" src="https://www.youtube.com/embed/IrJuISsyTz4?rel=0&amp;controls=0&amp;showinfo=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
**Calculations to use the coil as heating pad**
*And here's the proof ;) playing when button pressed, silent otherwise, Loes Bogers, 2019*
Since I had a coil that I could use as a heating pad as well, I decided to use it for this experiment as well, at least until I have another coil swatch which I'm working on.
Important note for audio files. Careful read notes below will save you a lot of precious time!
My coil from lead to lead measures 17.7 Ohm, and I want to run 500mA-1A across the coil so it dissipates a little heat. I opted for the lower end of the range and aimed at 500mA. Ohm's law tells me:
* DFPlayer Mini read both MP3 and WAV files.
* All audio files must be placed under /mp3 folder.
* Audio file must be named 0001.mp3, 0002.mp3.....0255.mp3 (4 letters not 2 or 3 letters)
* Audio file names can have any characters after 4 digits, such as 0001_Bruno_Mars_Count_On Me.mp3
* Tested few under 1 second WAV files and they did not work
* If one of the audio file is removed from SD cared, DFPlayer still can find it and play it! Weird! In the end, I formatted the SD card to make DFPlayer to play the music I specified.
* Delay(seconds); You have to specify number of seconds delay for the audio file to play completely or the next audio file might be started before current audio is over!
* mp3_play (74); means play audio file 0074.mp3
* I = 0.5
* R = 17.7
* and V = I*R = 0.5\*17.7 = 8.85V
Source: https://www.dfrobot.com/blog-277.html
So the Voltage should be 8.85V. I could power this circuit with a 9V battery as well, since I'm at the lower end of the range. For a smaller battery, I'd need to design a less resistive coil. To use a 5V battery for example, I'd need to reduce the resistance to 10Ohm by making the coil shorter or remaking it with a more conductive material.
I tested it with the Lab Power Supply and YES! The pad was getting nice and warm but not hot. Lovely.
## Thermochromic pigment + heating pad
**Experimenting with thermochromic pigment**
We managed to get our hands on two kinds of thermochromic pigment: black that turns grayish/white and green that turns white. I looked up [Kobakant's suggestions for thermochromic ink](https://www.kobakant.at/DIY/?p=3183) and understood that any dye/pigment/ink you might use for textile, you can use as a binder by just mixing in the pigment.
The only thing to think about is that a pigmented binder might outshine the thermochromic pigment. Using the pale army green with a bright turquoise will just annihilate the effect. If it creates a third color when you mix them, it will probably work. E.g.
The only thing to think about is that a pigmented binder might outshine the thermochromic pigment. Using the pale army green with a bright turquoise will just annihilate the effect. If it creates a third color when you mix them, it will probably work.
![](../images/wk10_pigment.jpg)
The black pigment was very dried out, but I could easily dissolve it in a little bit of hot water, and crushing it gently until pasty and then dilute some more
......@@ -92,14 +162,99 @@ The black pigment was very dried out, but I could easily dissolve it in a little
* black pigment + pearl cream color = grayish pearl > cream pearl
* black pigment + well almost anything lighter than black works really nicely actually! Have a look at Bea's swatches, gorgeous.
###VIDEO HERE
<iframe width="560" height="315" src="https://www.youtube.com/embed/eJ3HvC1XJwo?rel=0&amp;controls=0&amp;showinfo=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
I also experimented a bit with stenciling and stamping patterns onto the textile. The acrylic is a bit thick so allows for this quite well on a tightly woven fabric. When just using water, or using acrylic paint that is diluted a little bit more, its nice to paint by making paint strokes with a brush. The creases of the cling film also left interesting marks on the swatch I painted with heavily diluted yellow acrylic paint.
It could be nice to do these measurements a bit more precisely, but for now this will have to do....Still have many circuits to make this week.
It could be nice to do these measurements a bit more precisely, but for now this will have to do....Still have many circuits to make this week.
When all of these dried, it turned out that only the black pigment adhered to the textile fibre well. I'd need a different binder to make the green one work. The all disintegrated and could be brushed off when dry. Cecilia suggested I try the binder that came with the other pigment, or even to try wood glue.
![](../images/wk10_lostpigment.jpg)*The green pigment that was lost with these swatches, and another binder I could try, Loes Bogers, 2019*
**Making a transistor circuit**
We have a box of transistors here but I found out it's a mix of Voltage Regulators and Mosfets, they don't exactly do the same thing so I had to look at a lot of tiny numbers to find an N-channel MOSFET. I have a IRF530 here, that can control 100V-14A and the pinouts are the same as the example. Gate, Drain, Source from left to right when viewing it from the top.
I added a 1N4007 diode (1000V-1A) for safety in case I want to use it with motors etc at a later stage. Never hurts to protect a circuit. I used this one because it's what I had in my box of stuff, but didn't have the 1N4001 (50V - 1A) Liza suggested. Emma wasn't sure why Liza would put a diode in series to one of the leads, instead of in parallel across the leads. We asked Liza and she said [...]
![](../images/wk10_mosfetsandnotfets.jpg)*Mosfets and notfets, Loes Bogers, 2019*
**Calculations to use the coil as heating pad**
Since I had a coil that I could use as a heating pad as well, I decided to use it for this experiment as well, at least until I have another coil swatch which I'm working on.
My lasercut coil from lead to lead measures 17.7 Ohm, and I want to run 500mA-1A across the coil so it dissipates a little heat. If I'd aim for 0.5A, Ohm's law will tell me:
* I = 0.5
* R = 17.7
* and V = I\*R = 0.5\*17.7 = 8.85V
So the Voltage should be 8.85V. I could power this circuit with a 9V battery as well, since I'm at the lower end of the range. For a smaller battery, I'd need to design a less resistive coil. To use a 5V battery for example, I'd need to reduce the resistance to 10Ohm by making the coil shorter or remaking it with a more conductive material.
I tested it with the Lab Power Supply and YES! The pad was getting nice and warm but not hot. Lovely. So now that I got these basics, I calculated Ohm's law for all coil swatches aiming for a 0.5-1A current to give myself options. Some thermochromic swatches are thicker (e.g. the felt one), others are very thin (e.g cotton cheesecloth), so varying in amps might come in handy.
COIL SWATCH | RESISTANCE (R) | CURRENT (I) | VOLTAGE (V)
------|--------|--------|-------
Lasercut coil | 17.7 ohm | 0.5 - 1A | 8.85- 17.7V
Thread on cotton | 16.6 ohm | 0.5 - 1A | 8.3 - 16.6V
Thread on fleather | 17.2 ohm | 0.5 - 1A | 8.6 - 17.2V
Crochet copper wire | 5.5 ohm | 0.5 - 1A | 2.75 - 5.5V
<iframe width="560" height="315" src="https://www.youtube.com/embed/BK-G8rF-AcY?rel=0&amp;controls=0&amp;showinfo=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<iframe width="560" height="315" src="https://www.youtube.com/embed/0VVqC2DPv0o?rel=0&amp;controls=0&amp;showinfo=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<iframe width="560" height="315" src="https://www.youtube.com/embed/Q4QmqZ9X3vQ?rel=0&amp;controls=0&amp;showinfo=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<iframe width="560" height="315" src="https://www.youtube.com/embed/wtk_tipmwsQ?rel=0&amp;controls=0&amp;showinfo=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
**Powering a coil with the ATtiny85 and transistor swatch**
I first made a simple circuit with only a button and an LED for debugging. I burned the bootloader of the ATtiny85, and puts some code together using the examples in the IDE. The LED goes on when you press the button.
When that worked, I attached the gate of the MOSFET to pin 3 on the ATtiny, and added it as output in the code. I also added a line of code to say write HIGH to pin 3 (the gate), when button is pressed (and when the LED is also on), and LOW when it isn't. So when you press the button, the heating pad is powered with the 9V battery, and the LED is the indicator that it is heating.
![](../images/wk10_fritzing_heatpad.jpg)*Fritzing my heatpad circuit, Loes Bogers, 2019*
![](../images/wk10_heatpad_schematic.jpg)*Heatpad circuit schematic, Loes Bogers, 2019*
```
const int buttonPin = 2; // the number of the pushbutton pin
const int ledPin = 0; // the number of the LED pin
const int mosfetPin = 3; // number of MOSFET gate pin
int buttonState = 0; // variable for reading the pushbutton status
void setup() {
pinMode(ledPin, OUTPUT);
pinMode(buttonPin, INPUT);
pinMode(mosfetPin, OUTPUT);
}
void loop() {
buttonState = digitalRead(buttonPin);
if (buttonState == HIGH) {
digitalWrite(ledPin, HIGH);
digitalWrite(mosfetPin, HIGH);
} else {
digitalWrite(ledPin, LOW);
digitalWrite(mosfetPin, LOW);
}
}
```
*Code for heatpad OR speaker circuit with ATtiny85*
####PICS HERE
![](../images/wk10_heatpad1.jpg)*Lookit! My heating pad powered with a 9V battery, transistor controlled by an ATtiny, Loes Bogers, 2019*
<iframe width="560" height="315" src="https://www.youtube.com/embed/SYdpLaHttuY" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
##Emma's tutorial on motion & sound actuators
......
docs/images/Screen-Shot-2019-11-26-at-09.31.08.jpg

174 KiB

docs/images/Untitled-1.jpg

115 KiB

docs/images/wk09_finalresult.jpg

96.2 KiB

docs/images/wk10_coils.jpg

274 KiB

docs/images/wk10_cutting.jpg

107 KiB

docs/images/wk10_fritzing_heatpad.jpg

154 KiB

docs/images/wk10_heatnbond.jpg

151 KiB

docs/images/wk10_heatpad1.jpg

193 KiB

docs/images/wk10_heatpad_schematic.jpg

115 KiB

docs/images/wk10_jackattack.jpg

129 KiB

docs/images/wk10_lostpigment.jpg

113 KiB

docs/images/wk10_membranes.jpg

129 KiB

docs/images/wk10_miniplayer_pin_map.png

43.6 KiB

docs/images/wk10_mosfetsandnotfets.jpg

109 KiB

docs/images/wk10_pigment.jpg

102 KiB

docs/images/wk10_pin_map_desc_en.png

73.4 KiB

docs/images/wk10_resistancelasercut.jpg

149 KiB

docs/images/wk10_speaker_schematic_attiny.jpg

151 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