Loading...
History: e-Textile basics
View page
Source of version: 26
(current)
__分壓電路 Voltage divider__ Arduino的類比輸入腳位(analog in)讀取的是電壓,而不是電阻。 當您要使用電阻式感應器時(像我們課堂上的碳煙壓力感測),您需要進行電阻式改變來控制從感應器進入Arduino類比輸入腳位的電壓。為了這個目的,我們可以製作一個分壓電路。 您可以使用2個電阻「分壓」。如第一個圖表所示,比如說您有2個完全相同的電阻,則電壓會被分為一半一半。 隨著兩個電阻之間的比例,您獲得的電壓比例也會相應變化。 可以這樣計算 電源電壓(5v)x電阻A /(電阻A +電阻B)= 分壓 Here's the translation of the description about voltage divider on Kobakant: ''Arduino‘s analog pins are reading the voltage that comes in, not the resistance over the two points. When you want to use a resistive sensor (i.e. neoprene bend sensor), you need to manipulate the voltage that goes into the analog pins with the resistive change the sensor makes. For this, we can make a voltage divider circuit. You can divide the voltage by using 2 resisters. If you have 2 exactly same resistors, the voltage gets half in the middle, like the first diagram. As the ratio between two resisters changes, the voltage you get in the middle (between the resisters) changes accordingly. One can calculate this by Supply voltage (5v) x resistanceA / (resistanceA + resistanceB) = divided voltage'' {img fileId="489, 490, 491" thumb="box"} explanation of voltage divider __simple pressure sensor__ {img fileId="492" thumb="box"}{img fileId="494" thumb="box"}{img fileId="495" thumb="box"} 1. first soldering! we soldered a karl grim thread, a Dupont DIP pin and 2 square of EMI tape sheet together. 2. cut off a velostat sheet with the same size (but a little bit bigger than the EMI) and sandwitch it in middle of the two EMI sheets, your simple pressure sensor is done! 3. connect the pressure sensor to voltage divider and upload the arduino code. in this case we use the pressure value as the blinking gap of the LED. __pressure sensor matrix__ We followed the tutorial of Hannah's pressure sensor matrix (check the reference), turning the one node pressure sensor to matrix. Here was our version: {img fileId="496" thumb="box"} firstly solder the 28 DIP pins for every pinouts of teency lc. (14 pins each side) {img fileId="497" thumb="box"}{img fileId="498" thumb="box"}{img fileId="499" thumb="box"} cut 7 stripes of EMI tape and then stick it to two pieces of non-conductive fabric sheet. We soldered 14 enameled wires to 14 EMI tapes. Finally we sand witch it with the velostat sheet like the pressure sensor we made before. {youtube movie="https://youtu.be/scqnP5R18ts"} controlling max patch with pressure matrix textile download the pressure sensor matrix code here: [https://gitlab.com/greenhouseinfo/teensy-max-touch-pad/-/blob/master/teensy%20max%20touchpad.maxpat|max patch and arduino patch] {img fileId="500, 501" thumb="box" desc="embroidered version by Yiyu Chen"} On the 5th day we made an embroidery patch by converting the voltage divider circuits to embroidery pattern. materials: teensy lc arduino uno resistors 22k x 2 resistors 10k x 2 [https://www.digikey.tw/product-detail/zh/laird-technologies-emi/46X7501920.NN00/903-1549-ND/4477264?utm_adgroup=RF%2FIF%20%26%20RFID&utm_source=google&utm_medium=cpc&utm_campaign=Smart%20Shopping%20_Product_RF%2FIF%20%26%20RFID&utm_term=&productid=4477264&gclid=Cj0KCQjwoJX8BRCZARIsAEWBFMJask-lj2QBGopDCoySgIjEhCaeCARgckCwl0tH4qusF_2N31SqW-QaAo2MEALw_wcB|EMI tape] none conductive fabric reference [https://www.kobakant.at/DIY/?p=6102|voltage divider from kobakant] [https://www.kobakant.at/DIY/?p=7443|2d touchpad with velostat]
Log In
Username:
Password:
I forgot my password
CapsLock is on.
Log in
Register
Menu
Home
Contact Us
Calendar
Wiki
Wiki Home
Last Changes
List Pages
Structures
Forums
List Forums
Rankings
File Galleries
List Galleries
Calendar
Today
D
W
M
September 2024
SU
MO
TU
WE
TH
FR
SA
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
01
02
03
04
05