Link to this comparison view

Both sides previous revision Previous revision
fabricademy2017:students:luis.dulanto:week12 [2018/02/16 01:18]
luis_dulanto
fabricademy2017:students:luis.dulanto:week12 [2018/04/25 21:50]
ayseesindurmaz
Line 1: Line 1:
-<​grid>​ +<​grid>​ <col sm="​1">​ </​col>​ <col sm="​10">​
-<col sm="​1">​ </​col>​ +
-<col sm="​10">​+
  
 ===== Skin Electronics ===== ===== Skin Electronics =====
 +
 **Assignment** **Assignment**
-  * <text type="​success">​(Done)</​text>​ Use one of the project’s option (carnival masks or tech nails).+ 
 +   * <text type="​success">​(Done)</​text>​ Use one of the project’s option (carnival masks or tech nails).
   * <text type="​success">​(Done)</​text>​ Personalize it with your project: change/add electronics (LEDs, acceremoter,​ etc).   * <text type="​success">​(Done)</​text>​ Personalize it with your project: change/add electronics (LEDs, acceremoter,​ etc).
   * <text type="​success">​(Done)</​text>​ Improve the design: change the colors, add some crystals or other 3D elements.   * <text type="​success">​(Done)</​text>​ Improve the design: change the colors, add some crystals or other 3D elements.
Line 14: Line 14:
 All the files created for this assignment can be downloaded by clicking on the link bellow: All the files created for this assignment can be downloaded by clicking on the link bellow:
  
-<well size="​sm"><​TEXT align="​center"><​btn type="​link"​ size="​lg">​========>{{: fabricademy2017:​students:​luis.dulanto:​week12.zip|DOWNLOAD}}<​========</​btn></​TEXT></​well>​+<well size="​sm"><​TEXT align="​center"><​btn type="​link"​ size="​lg">​ 
 + 
 +====== ​>< ​====== 
 + 
 +{{:​fabricademy2017:​students:​luis.dulanto:​week12.zip|DOWNLOAD}} </​btn></​TEXT></​well>​
  
 ===== General Idea ===== ===== General Idea =====
-The idea I had was to use the tech nails for playing musical notes on an speaker and thinking that people that hear me won't know what notes I am playing I added some leds to show which musical note was played. ​+ 
 +The idea I had was to use the tech nails for playing musical notes on an speaker and thinking that people that hear me won't know what notes I am playing I added some leds to show which musical note was played.
  
 ===== Working with RFID ===== ===== Working with RFID =====
-I worked with the PN532 breakout board and three RFID tags. The board came without pins soldered, so I had to soldered them. So once I soldered them, I made some connection for communicating the board with an arduino uno. 
-<​grid>​ 
-<col sm="​1">​ </​col>​ 
-<col sm="​11">​ 
-{{:​fabricademy2017:​students:​luis.dulanto:​w12m1.jpg?​300 }} 
-{{:​fabricademy2017:​students:​luis.dulanto:​w12m2.jpg?​300 }} 
-{{:​fabricademy2017:​students:​luis.dulanto:​w12m3.jpg?​300 }} 
-{{:​fabricademy2017:​students:​luis.dulanto:​w12m4.jpg?​300 }} 
-{{:​fabricademy2017:​students:​luis.dulanto:​w12m5.jpg?​300 }} 
-{{:​fabricademy2017:​students:​luis.dulanto:​w12m6.jpg?​300}} 
-</​col>​ 
-</​grid>​ 
  
 +I worked with the PN532 breakout board and three RFID tags. The board came without pins soldered, so I had to soldered them. So once I soldered them, I made some connection for communicating the board with an arduino uno. <​grid>​ <col sm="​1">​ </​col>​ <col sm="​11">​ {{:​fabricademy2017:​students:​luis.dulanto:​w12m1.jpg?​300 ​ |w12m1.jpg}}{{:​fabricademy2017:​students:​luis.dulanto:​w12m2.jpg?​300 ​ |w12m2.jpg}}{{:​fabricademy2017:​students:​luis.dulanto:​w12m3.jpg?​300 ​ |w12m3.jpg}}{{:​fabricademy2017:​students:​luis.dulanto:​w12m4.jpg?​300 ​ |w12m4.jpg}}{{:​fabricademy2017:​students:​luis.dulanto:​w12m5.jpg?​300 ​ |w12m5.jpg}}{{:​fabricademy2017:​students:​luis.dulanto:​w12m6.jpg?​300|w12m6.jpg}}</​col>​ </​grid>​
  
-The communication on the board is specified on its chip selectors SEL0 and SEL1 and since I planned to use the SPI protocol for communication,​ I needed to to put a jumper in ON position on SEL1 and another jumper in OFF position on SEL0. +The communication on the board is specified on its chip selectors SEL0 and SEL1 and since I planned to use the SPI protocol for communication,​ I needed to to put a jumper in ON position on SEL1 and another jumper in OFF position on SEL0.
  
-{{ :​fabricademy2017:​students:​luis.dulanto:​w12m8.jpg?​300 }}+{{  :​fabricademy2017:​students:​luis.dulanto:​w12m8.jpg?​300 ​ ​|w12m8.jpg}}
  
 +Since the Arduino works with 5 volts and the PN532 board with 3.3v, I had to connect a buffer that lowered the voltage of the arduino to 3.3v, so that it did not burn the PN532 board. The buffer I used was the IC4050.
  
-Since the Arduino works with 5 volts and the PN532 board with 3.3v, I had to connect a buffer that lowered the voltage of the arduino to 3.3v, so that it did not burn the PN532 board. The buffer I used was the IC4050.  +<​grid>​ <col sm="​3">​ </​col>​ <col sm="​9">​ {{:​fabricademy2017:​students:​luis.dulanto:​w12m7.jpg?​300|w12m7.jpg}}{{:​fabricademy2017:​students:​luis.dulanto:​w12m9.jpg?​300 ​ }}</​col>​ </​grid>​
- +
-<​grid>​ +
-<col sm="​3">​ </​col>​ +
-<col sm="​9">​ +
-{{:​fabricademy2017:​students:​luis.dulanto:​w12m7.jpg?​300}} +
-{{:​fabricademy2017:​students:​luis.dulanto:​w12m9.jpg?​300 }} +
-</​col>​ +
-</​grid>​+
  
 ===== Making an Interactive Circuit ===== ===== Making an Interactive Circuit =====
-For making the circuit I wanted, I had to add three leds to the outputs of the arduino and an speaker. So, I had to solder some cables to the speaker and then added it to the output of the arduino. 
-Both the speaker and the leds can not be directly connected to the arduino sice they have very low resistance and that means a high current can pass through them which could burn the arduino pins. So for limiting the amount of current at the output of each led and the speaker I added a resistance in series to the speaker and since only one of the leds was going to be on when a note was played I added only one resistance in series for the three leds. 
  
-<​grid>​ +For making the circuit I wanted, I had to add three leds to the outputs of the arduino and an speaker. So, I had to solder some cables to the speaker and then added it to the output of the arduino. Both the speaker and the leds can not be directly connected to the arduino sice they have very low resistance and that means a high current can pass through them which could burn the arduino pins. So for limiting the amount of current at the output of each led and the speaker I added a resistance in series to the speaker and since only one of the leds was going to be on when a note was played I added only one resistance in series for the three leds. 
-<col sm="​1">​ </​col>​ + 
-<col sm="​11">​ +<​grid>​ <col sm="​1">​ </​col>​ <col sm="​11">​ {{:​fabricademy2017:​students:​luis.dulanto:​w12m10.jpg?​300 ​ ​|w12m10.jpg}}{{:​fabricademy2017:​students:​luis.dulanto:​w12m11.jpg?​300 ​ ​|w12m11.jpg}}{{:​fabricademy2017:​students:​luis.dulanto:​w12m12.jpg?​300}}</​col>​ </​grid>​ 
-{{:​fabricademy2017:​students:​luis.dulanto:​w12m10.jpg?​300 }} + 
-{{:​fabricademy2017:​students:​luis.dulanto:​w12m11.jpg?​300 }} +===== Hiding the RFID Tags Inside the Fake Nails =====
-{{:​fabricademy2017:​students:​luis.dulanto:​w12m12.jpg?​300}} +
-</​col>​ +
-</​grid>​+
  
-===== Hiding the RFID Tags Inside the Fake Nails===== 
 For hiding the RFID tags in the faik nails I did the following: For hiding the RFID tags in the faik nails I did the following:
 +
   - I took one of the faik nails and added a layer of base coat to the inner side of the nail and waited until it dried (this was done to better the adhesion of the RFID to the nail).   - I took one of the faik nails and added a layer of base coat to the inner side of the nail and waited until it dried (this was done to better the adhesion of the RFID to the nail).
   - Then, I putted the RFID tag over the dried layer of base coat.   - Then, I putted the RFID tag over the dried layer of base coat.
Line 70: Line 52:
   - I did the steps 1 to 4 for the other two nails.   - I did the steps 1 to 4 for the other two nails.
  
-<​grid>​ +<​grid>​ <col sm="​1">​ </​col>​ <col sm="​11">​ {{:​fabricademy2017:​students:​luis.dulanto:​w12m13.jpg?​300 ​ ​|w12m13.jpg}}{{:​fabricademy2017:​students:​luis.dulanto:​w12m14.jpg?​300 ​ ​|w12m14.jpg}}{{:​fabricademy2017:​students:​luis.dulanto:​w12m15.jpg?​300 ​ ​|w12m15.jpg}}{{:​fabricademy2017:​students:​luis.dulanto:​w12m16.jpg?​300 ​ ​|w12m16.jpg}}{{:​fabricademy2017:​students:​luis.dulanto:​w12m17.jpg?​300 ​ ​|w12m17.jpg}}{{:​fabricademy2017:​students:​luis.dulanto:​w12m18.jpg?​300 ​ ​|w12m18.jpg}}{{:​fabricademy2017:​students:​luis.dulanto:​w12m19.jpg?​300 ​ ​|w12m19.jpg}}{{:​fabricademy2017:​students:​luis.dulanto:​w12m20.jpg?​300 ​ ​|w12m20.jpg}}{{:​fabricademy2017:​students:​luis.dulanto:​w12m21.jpg?​300 ​ ​|w12m21.jpg}}{{:​fabricademy2017:​students:​luis.dulanto:​w12m22.jpg?​300|w12m22.jpg}} 
-<col sm="​1">​ </​col>​ + 
-<col sm="​11">​ +</​col>​ </​grid>​ 
-{{:​fabricademy2017:​students:​luis.dulanto:​w12m13.jpg?​300 }} + 
-{{:​fabricademy2017:​students:​luis.dulanto:​w12m14.jpg?​300 }} +====== Programming the Arduino ======
-{{:​fabricademy2017:​students:​luis.dulanto:​w12m15.jpg?​300 }} +
-{{:​fabricademy2017:​students:​luis.dulanto:​w12m16.jpg?​300 }} +
-{{:​fabricademy2017:​students:​luis.dulanto:​w12m17.jpg?​300 }} +
-{{:​fabricademy2017:​students:​luis.dulanto:​w12m18.jpg?​300 }} +
-{{:​fabricademy2017:​students:​luis.dulanto:​w12m19.jpg?​300 }} +
-{{:​fabricademy2017:​students:​luis.dulanto:​w12m20.jpg?​300 }} +
-{{:​fabricademy2017:​students:​luis.dulanto:​w12m21.jpg?​300 }} +
-{{:​fabricademy2017:​students:​luis.dulanto:​w12m22.jpg?​300}}+
  
-</​col>​ +For working with the Pn532 board, I downloaded a library provided by ardafruit, which can be downloaded from [[https://​github.com/​adafruit/​Adafruit-PN532|here]]. Since I have never worked RFID, I opened the example "read Mifare"​ provided on the library and started to work from there. I realized that for what i wanted to do I just needed to read the UID of the RFID tags, so I erased almost all the code of the example and kept just the parts that were necessary for reading the UID. {{  :​fabricademy2017:​students:​luis.dulanto:​w12p1.png ​ }}
-</​grid>​ +
-====== Programming the Arduino======  +
-For working with the Pn532 board, I downloaded a library provided by ardafruit, which can be downloaded from [[ https://​github.com/​adafruit/​Adafruit-PN532|here]]. ​ +
-Since I have never worked RFID, I opened the example "read Mifare"​ provided on the library and started to work from there. I realized that for what i wanted to do I just needed to read the UID of the RFID tags, so I erased almost all the code of the example and kept just the parts that were necessary for reading the UID.  +
-{{ :​fabricademy2017:​students:​luis.dulanto:​w12p1.png }}+
  
-Once, I did that I started to modify the code so that it did what I wanted. First I initialized the serial communication to 115200 bits per second and defined the outputs of the arduino, this were the three leds and the speaker. +Once, I did that I started to modify the code so that it did what I wanted. First I initialized the serial communication to 115200 bits per second and defined the outputs of the arduino, this were the three leds and the speaker. {{  :​fabricademy2017:​students:​luis.dulanto:​w12p2.png ​ }}
-{{ :​fabricademy2017:​students:​luis.dulanto:​w12p2.png }}+
  
-Then, I run the code and got the UID of each RFID tag by printing it on the serial monitor. Once I got them, I saved them as arrays on my code and then modified the code so that it always compared the UID readen with the ones I have stored. +Then, I run the code and got the UID of each RFID tag by printing it on the serial monitor. Once I got them, I saved them as arrays on my code and then modified the code so that it always compared the UID readen with the ones I have stored. {{  :​fabricademy2017:​students:​luis.dulanto:​w12p3.png ​ }}
-{{ :​fabricademy2017:​students:​luis.dulanto:​w12p3.png }}+
  
-I did this by comparing each block of the UID and summing the number of succesful comparison for each UID; if the number of successful comparisons was equal to the number of blocks on the UID, it meaned that all the blocks were correct and thus that a stored UID was detected. +I did this by comparing each block of the UID and summing the number of succesful comparison for each UID; if the number of successful comparisons was equal to the number of blocks on the UID, it meaned that all the blocks were correct and thus that a stored UID was detected. {{  :​fabricademy2017:​students:​luis.dulanto:​w12p4.png ​ }}
-{{ :​fabricademy2017:​students:​luis.dulanto:​w12p4.png }}+
  
-knowing that the last values modified on the code came from the if block of the UID detected, I assigned inside each if block the frequency of the musical note to be played and the number of the pin on the arduino to be set to high for turning on the led. After storing the values ​ I emitted a tone with the frequency stored and set to high the pin specified for turnuning the led on+knowing that the last values modified on the code came from the if block of the UID detected, I assigned inside each if block the frequency of the musical note to be played and the number of the pin on the arduino to be set to high for turning on the led. After storing the values I emitted a tone with the frequency stored and set to high the pin specified for turnuning the led on
  
-{{ :​fabricademy2017:​students:​luis.dulanto:​w12p5.png }}+{{  :​fabricademy2017:​students:​luis.dulanto:​w12p5.png ​ }}
  
 Just to mention, the musical note for the second UID was DO and for the third one was SI. Just to mention, the musical note for the second UID was DO and for the third one was SI.
Line 108: Line 74:
 The final result can be seen on the next video: The final result can be seen on the next video:
  
- {{ youtube>​o0For7F_p0k?​large }}+{{ youtube>​o0For7F_p0k?​large }}
  
-</​col>​ +</​col>​ </​grid>​
-</​grid>​+