loading

Hello Everyone,

Ever wondered about sharing your thoughts with others who you cross path your path?

The idea came to our mind when we were roaming on busy streets of Delhi. The capital city of India. Millions of people cross paths of each other everyday yet no one exchanges their thoughts or ideas which take place in their minds, quite weird?

We thought how about making "Ideas" (Thought) a part of something we use in our daily life. And we weren't able to find anything better than a "T-shirt."

After iterating a lot and making random prototyping, we came up with "Ambient Apparels", T-shirts that can display your thoughts. All you have to do is a couple of clicks on your smartphone.

Step 1: Prerequisites:

Things to remember before starting this instructable:

  1. You should know how to use Arduino IDE or you can refer from google.
  2. Basic knowledge of C/C++.
  3. A laptop or Personal Computer.

Step 2: Collecting Things:

Things that you need to make this instructable are as follows:

  1. A white T-shirt (Plain).
    You can buy it from any shopping website.
  2. Neopixel LED strip; we are making a LED panel which consists of 64 LEDs, so buy accordingly.
    You can buy it from www.aliexpress.com but check other websites, too.
  3. Wemos D1 mini.
    You can buy it from www.ebay.com
  4. Some thin wires.
  5. Transparent tape.
  6. Soldering Iron.

And some patience and enthusiasm for doing things correctly.
I bought all these stuff from a nearby shop but if you're having a problem in buying, just let me know in comment section.

Step 3: What Is "NEOPIXEL"?

Neopixel or addressable LEDs are those LEDs which can be individually set to a particular color via controller like Arduino, webmos, etc. These are different from standard RGB LEDs as Neopixel can generate much more color than RGB LEDs. Neopixel can be operated on 5V whereas RGB LEDs need a 12V power supply. Neopixel has only three pin GND, VCC, & DIN.

Some examples of addressable LEDs are WS2801, SK6812, LPD8806, HL1606, etc.

Step 4: Making of Neomatrix Panel:

The first thing we need to do is to make a LED matrix or panel of size 8 pixels x 8 pixels.

  1. Cut the strip into 8 parts. Each part contains 8 LEDs and lay them on a piece of a clothing(like a handkerchief). I also put a black tape on the backside of the panel to make the wires disappears.
    Do remember while laying the strips, see the arrows on them. Every strip's arrow should face the same direction as data coming from Din Pin moves forward according to the direction of the arrow. See the image to understand better.

Step 5: Soldering:

In this step, we need to connect all LED strips.

Connect GND and VCC pin of every strip to a wire in series connection and connect DOUT pin of the last LED of the first strip to the DIN pin of first LED of the second strip and continue until all the strips are connected together.

If all goes well then, CONGRATULATIONS you just made your Neopixel panel as this is the most time taking part of this project (for you :P, as writing and checking code is also a tough task).

Step 6: Last Part

Now we have to place the panel on the Tshirt.

  1. Stitch on side of "Velcro" on all four side of the led panel.
  2. Now stitch another side of "Velcro" on the t-shirt making a square box same size as that of the led panel.
  3. Ta-Da you can now simply stick the led panel on your t-shirt.

Step 7: Let Start the Software Part:

Let first understand how this whole project works.

When the user wears the T-shirt, plug on the portable power bank and give the supply to the Wemos D1 mini.

Then a Wi-Fi Hotspot comes up on your mobile phones after connecting to which you need to open your browser and go to the IP address that is specified by you while coding in my case it is 192.168.4.1, a Webpage will load up and you just need to enter your text you want to display on the Neomatrix panel.

But the process inside the hardware occurs when you send the text. It gets stored in the EEPROM of the Wemos D1, and we need to extract that piece of text and save it as string type. Then, we have to print that string on Neomatrix (Panel).

Step 8: Code:

<p>© Rahul Agarwal & Ashtam Singh 2017, All Rights Reserved

This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0

//Including libraries<br>#include <><esp8266wifi.h> #include <esp8266webserver.h> #include <esp8266httpclient.h> #include <spi.h> #include <eeprom.h> #include <wifiudp.h> #include <dnsserver.h> #include <esp8266mdns.h> #include <eeprom.h></eeprom.h></esp8266mdns.h></dnsserver.h></wifiudp.h></eeprom.h></spi.h></esp8266httpclient.h></esp8266webserver.h></esp8266wifi.h></p><p>//Initialization #define USE_SERIAL Serial #include <adafruit_gfx.h> #include <adafruit_neomatrix.h> #include <adafruit_neopixel.h> #ifndef PSTR #define PSTR </adafruit_neopixel.h></adafruit_neomatrix.h></adafruit_gfx.h></p><p>#define PIN 5 //Your matrix pin which is connected to board</p><p>Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(8, 8, PIN, // This is the initialization of matrix that what is the NEO_MATRIX_BOTTOM + NEO_MATRIX_LEFT + // height and width of the panel and from which end the NEO_MATRIX_ROWS + NEO_MATRIX_PROGRESSIVE, // data is coming. NEO_GRB + NEO_KHZ800);</p><p>const uint16_t colors[] = { matrix.Color(255, 0, 0), matrix.Color(0, 255, 0), matrix.Color(0, 0, 255) };</p><p>String wi_deviceId = "";</p><p>byte data[24]; int code_version = 1;</p><p>WiFiClient wifiClient;</p><p>ESP8266WebServer server(80);</p><p>int status = WL_IDLE_STATUS;</p><p>String ssid = ""; String txt = "";</p><p>boolean ap_flag = 0; boolean init_flag = 1; boolean retAp = 0; boolean extra = 0;</p><p>int inpin = 12;</p><p>char MACAddress[12];</p><p>// DNS server const byte DNS_PORT = 53; DNSServer serverDNS; /* Soft Access Point network parameters */ IPAddress apIP(192, 168, 4, 1); IPAddress gateway(192, 168, 1, 0); IPAddress netMsk(255, 255, 255, 0);</p><p>// hostname for mDNS. Try http://logger_one_wire.local const char *myHostname = "wificonfig";</p><p>// cycle time in loop() unsigned long cycleTime = 120000; // ms const unsigned long sec24h = 24 * 3600; // one day in seconds unsigned long convTime = millis(); // conversion time about 1000 ms boolean startSync = false;</p><p>unsigned long timeStart; unsigned long timeRel;</p><p>//Function declaration void initialize_sensors(); void init_wifi(); void initApMode(); void send_Data();</p><p>// from handleHttp.ino /** Handle root or redirect to captive portal */ void handleRoot();</p><p>/** Handle the Text save form and redirect to WLAN config page again */ void handleTextSave();</p><p>/** Redirect to captive portal if we got a request for another domain. Return true in that case so the page handler do not try to handle the request again. */ boolean captivePortal();</p><p>// from tools.ino /** Is this an IP? */ boolean isIp(String str);</p><p>/** IP to String? */ String toStringIp(IPAddress ip);</p><p>//Setup begin void setup() {</p><p> ESP.eraseConfig();</p><p> matrix.begin(); matrix.setTextWrap(false); matrix.setBrightness(50); matrix.setTextColor(colors[0]);</p><p> //USE_SERIAL.begin(115200); Serial.begin(9600); delay(10);</p><p> EEPROM.begin(512);</p><p> uint8_t MAC_array[6];</p><p> WiFi.macAddress(MAC_array); //Accuring MAC id for ESP module for (int i = 0; i < sizeof(MAC_array); ++i) { sprintf(MACAddress, "%s%02x", MACAddress, MAC_array[i]); }</p><p> String address = String(MACAddress); wi_deviceId = "WifiConfig_" + address.substring(7, 12); //Unique device ID</p><p> // Setup MDNS responder if (!MDNS.begin("wificonfig")) { Serial.println("Error setting up MDNS responder!"); } else { Serial.println("mDNS responder started"); // Add service to MDNS-SD MDNS.addService("http", "tcp", 80); }</p><p> // Setup the DNS server redirecting all the domains to the apIP serverDNS.setErrorReplyCode(DNSReplyCode::NoError); serverDNS.start(DNS_PORT, "*", apIP);</p><p>}</p><p>int x = matrix.width(); int pass = 0;</p><p>void loop() {</p><p> if (init_flag) { initialize_sensors(); //Initializing sensors</p><p> timeStart = millis(); timeRel = millis() + cycleTime; // avoid unsigned long rollover after 40 days</p><p> init_flag = 0; }</p><p> boolean val = digitalRead(inpin); //Manually getting into AP mode</p><p> if (val == 0) { extra = 1; init_flag = 1; for (int i = 0; i < 13; ++i) { //192 EEPROM.write(i, 0); } EEPROM.commit(); }</p><p> // DNS serverDNS.processNextRequest(); // HTTP server.handleClient(); txtEEP(); }</p><p>void init_wifi(void) { Serial.println("Init Wifi"); // We start by connecting to a WiFi network WiFi.setAutoConnect(1);</p><p> if (WiFi.status() != WL_CONNECTED) { WiFi.disconnect();</p><p> if (WiFi.getMode() != WIFI_STA) { WiFi.mode(WIFI_STA); }</p><p> unsigned long startTime = millis(); while (WiFi.status() != WL_CONNECTED && millis() - startTime < 10000) { delay(500); Serial.print("."); } Serial.println(""); }</p><p> if (WiFi.status() == WL_CONNECTED) { Serial.println("Wifi Connected"); for (int j = 0 ; j <= 8 ; j++) { // LED colour blinks 8 times --> BLUE ..Indicating successfull connection with wifi delay(300); //Led Color if needed delay(300); }</p><p> } else { ap_flag = 1; init_flag = 1; retAp = 0; //Led Color if needed }</p><p>}</p><p>/********************************/ /* Function EEPROM */ /********************************/ void txtEEP() { String stip; for (int i = 0; i < 13; ++i) { stip += char(EEPROM.read(i)); } Serial.print("EEPROM: "); Serial.println(stip); int len = stip.length(); int pixelPerChar = 6; int maxDisplacement = len * pixelPerChar + matrix.width(); matrix.fillScreen(0); matrix.setCursor(x, 0); matrix.print(stip); if (--x < -maxDisplacement) { x = matrix.width(); if (++pass >= 3) pass = 0; matrix.setTextColor(colors[pass]); } matrix.show(); delay(50); }</p><p>/********************************/ /* Initilize Wi-Fi to AP Mode */ /********************************/ void initApMode() { //Led Color if needed WiFi.disconnect(); server.on("/", handleRoot); server.on("/textsave", handleTextSave); Serial.println(""); Serial.println("WiFi connect failed, try Access Point mode for configuration"); Serial.print("Configuring as access point, SSID: "); Serial.println(wi_deviceId); /* You can remove the password parameter if you want the AP to be open. */ WiFi.mode(WIFI_AP); // Access Point & Station mode delay(10); WiFi.softAPConfig(apIP, gateway, netMsk); WiFi.softAP(wi_deviceId.c_str()); WiFi.begin(); // for test delay(500); // Without delay I've seen the IP address blank Serial.print("AP IP address: "); Serial.println(WiFi.softAPIP()); delay(1000);</p><p> server.begin(); // Web server start</p><p> retAp = 0; delay(1000); }</p><p>/********************************/ /* Initialize Sensors */ /********************************/ void initialize_sensors(void) { Serial.println("Initializing Sensor : "); delay(5000); // Check wifi status to start AP Mode if (!WiFi.isConnected() && retAp == 0) { ap_flag = 1; } else { ap_flag = 0; }</p><p> if (extra) { ap_flag = 1; extra = 0; }</p><p> if (ap_flag == 1) { initApMode(); } else { init_wifi(); }</p><p>}</p><p>/** Handle root or redirect to captive portal */ void handleRoot() { if (captivePortal()) { // If caprive portal redirect instead of displaying the page. return; }</p><p> server.sendContent( "" " " " " " </p><p>" " " "</p><p>"</p> " " "<div relative;="" width:auto\"="">" " <img src="\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAABOCAYAAABog+tZAAAVVUlEQVR4Ae2YCVhV17n+92HQRmUeDgMIiKIZrBm0sWqa/mvyT5MYa7RN0mh7o1bBWZmRgcMMMg8qg4CAggwqoOIgahxwMKIoDuKs15g01d42Nx0C55zvvt969n7uec4DXsXb2+NTD8/vWXvvc1h7r3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i4lYh4q0DHAv2Fx0/PCySLwd+SUu5LU1WnCyXapwUpuFEneIT+SX9g/RCz6XwX5yqkkjqwjEBao3G2TAkUZoQY8ACc4zzErnKwi4A58n4nBX+xDMF4GHQKf4zsuQneiqveAM4dAfBd2DoTi+/Hs55AdwWLxPeXilGdEUxYLD6fmEIQYQ5bPJTsWCi5jMDD54ZOFaC6lCWSdGEiDEEJZOWFwWDwdMqjQj4AvUE91gPMVGjoL3tEsIfPYpeTGQhnnSfTpuCaGHcb3NX2xFGw1S8k+LYRE3qjoXVR2hCuXF7mRNAhJWYPq/qIoKTRY9kAcJP9WbMOUoC7jyn987GIaHL2E1CxMb0UnX9+QSo6rY+SXlGz6YcgzESdY9SPkDIQkBMMAMdCBmBDmZoXSaYTcsZJo+ghFp092ONlh62UAGATXQKiHV+f8Pc/EcK38G9N3Fhz1yA/rhAG6wH0uKCQt1yXQ+8WxNKMgkiyL4sieBcfgXYEbjh/JLbJrcWz6YvUbdhkGaQUGwJ12JRpy4dAS35nA85mUWEAN7NYn0tvlmTR5bQpZr44ide+/fSaWC3iuIpGWluRR4Ooseq4klpzX9llgPnOWA/CtSCXfcpQCyGW8bHJCWCIPPROrN8HsEYoMlwhif6qUxXrmrD7DEciJ/1nOMn2eifVk/BfNgI//7QVs4AAAAABJRU5ErkJggg==\"" position:relative;="" margin-left:="" auto;"="" ="" "margin-right:="" auto;display:="" block;\"="" style="width: 26px;">" "<div id="\"header\"" -webkit-box-shadow:="" 0="" 3px="" 6px="" rgba(0,0,0,0.33);opacity:0.9;="" background-color:="" #16a085;="" height:="" 8%;="" padding-top:="" 0.1%="" \"="">" "<h1 ;text-align:center;="" background-color:="" #16a085;="" font-size:="" 200%="" ;="" \"=""><strong> Text Setup</strong></h1>" ); server.sendContent( "</div> " "<div id="\"content\"">" ); if (server.client().localIP() == apIP) { // server.sendContent(String("<p center;="" font-size:large\"=""> You are connected through soft AP :</p>" // "<div center\"=""><span x-small="">") + wi_deviceId + "</span></div> "); server.sendContent(String(" <p center;="" font-size:="" medium\"=""> You are connected through soft AP: </p><p center;="" font-size:="" large\"="">") + wi_deviceId + "</p><p>"); } else { server.sendContent(String(" </p><p center;="" font-size:large\"=""> You are connected through soft AP:</p>" "<div center\"="">") + ssid + "</div> "); } server.sendContent( "<div>" "<form method="POST" action="textsave">" "<div id="\"list\"" align="\"center\"">" "<h2>Ambient Apparel</h2>" "<div id="\"right\"" align="\"center\"">" "" "<div class="\"row\""><h2> Send Text to: </h2>" "<input name="txt" id="\"show\"" style="\"display:inline-block;vertical-align:top;" padding:4%="" 3%="" 4%="" 3%;\"="" type="\"text\"" placeholder="\"Text\"" required=""><br>" "</div> " "<br>" "<div>" "<input type="\"submit\"style=\"position:relative;" background-color:="" #16a085;="" color:="" white;"="" ="" "="" padding:="" 0.4em="" 1em;="" text-align:center;="" display:="" inline-block;="" cursor:="" pointer;font-size:="" 25px;\"="" value="\"Send\"">" "</div> " "<p>"</p><p> "</p></div><p>" "</p></div></form><p>"</p><p> "</p><p>" "</p><p>" );</p><p> server.client().stop(); // Stop is needed because we sent no content length }</p><p>/** Handle the WLAN save form and redirect to WLAN config page again */ void handleTextSave() { server.sendContent( "" " " " " " </p><p>" " " "</p><p>"</p> " " "<div relative;="" width:auto\"="">" " <img src="\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAABOCAYAAABog+tZAAAVVUlEQVR4Ae2YCVhV17n+92HQRmUeDgMIiKIZrBm0sWqa/mvyT5MYa7RN0mh7o1bBWZmRgcMMMg8qg4CAggwqoOIgahxwMKIoDuKs15g01d42Nx0C55zvvt969n7uec4DXsXb2+NTD8/vWXvvc1h7r3e/37e+taR/2c+zz7PPs8/QoZ795V9PHG/voZKv7zDBsGE+z9zTm0heXkOl937+ljTE2kpycHSUXF1dJQ8PD5Wnp4cZMGfwO2PMgKofLnu6wwxicGsG0Sx8vL0tRozwNZ84caxqwoTXpHHjxjysDxUwE8deTy6aqQtl7u3tZQYkZvBga2n06BekF18cLdnaOvzAD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jMDD54ZOFaC6lCWSdGEiDEEJZOWFwWDwdMqjQj4AvUE91gPMVGjoL3tEsIfPYpeTGQhnnSfTpuCaGHcb3NX2xFGw1S8k+LYRE3qjoXVR2hCuXF7mRNAhJWYPq/qIoKTRY9kAcJP9WbMOUoC7jyn987GIaHL2E1CxMb0UnX9+QSo6rY+SXlGz6YcgzESdY9SPkDIQkBMMAMdCBmBDmZoXSaYTcsZJo+ghFp092ONlh62UAGATXQKiHV+f8Pc/EcK38G9N3Fhz1yA/rhAG6wH0uKCQt1yXQ+8WxNKMgkiyL4sieBcfgXYEbjh/JLbJrcWz6YvUbdhkGaQUGwJ12JRpy4dAS35nA85mUWEAN7NYn0tvlmTR5bQpZr44ide+/fSaWC3iuIpGWluRR4Ooseq4klpzX9llgPnOWA/CtSCXfcpQCyGW8bHJCWCIPPROrN8HsEYoMlwhif6qUxXrmrD7DEciJ/1nOMn2eifVk/BfNgI//7QVs4AAAAABJRU5ErkJggg==\"" position:relative;="" margin-left:="" auto;"="" ="" "margin-right:="" auto;display:="" block;\"="">" "<div id="\"header\"" -webkit-box-shadow:="" 0="" 3px="" 6px="" rgba(0,0,0,0.33);opacity:0.9;="" background-color:="" #16a085;="" height:="" 8%;="" padding-top:="" 0.1%="" \"="">" "<h1 ;text-align:center;="" background-color:="" #16a085;="" font-size:="" 200%="" ;="" \"=""><strong> WiFi Setup</strong></h1>" "<p color:#fff\"=""> Wait for text to get changed... </p>" "</div> " "<br>" "<div margin:0="" auto;="" text-align:="" center;\"="">" "<a href="/" align="\"center\"">" "<button type="\"submit\"" background-color:="" #16a085;="" color:="" white;"="" ="" "padding:="" 0.4em="" 1em;="" text-align:center;="" display:="" inline-block;="" cursor:="" pointer;font-size:="" 25px;\"="" value="">" "Send Text Again" "</button>" "</a>" "</div> " ); txt = server.arg("txt"); Serial.print("txt : "); Serial.println(txt); String stip = txt; if (stip.length() > 0 ) { for (int i = 0; i < 13; ++i) { EEPROM.write(i, 0); //clearing } EEPROM.commit();<p> for (int i = 0; i < 13 ; ++i) { EEPROM.write(i, stip[i]); } EEPROM.commit(); } server.sendHeader("Location", "wifi", true); server.sendHeader("Cache-Control", "no-cache, no-store, must-revalidate"); server.sendHeader("Pragma", "no-cache"); server.sendHeader("Expires", "-1"); delay(5000); server.client().stop(); // Stop is needed because we sent no content length</p><p>}</p><p>/** Redirect to captive portal if we got a request for another domain. Return true in that case so the page handler do not try to handle the request again. */ boolean captivePortal() { if (!isIp(server.hostHeader()) && server.hostHeader() != (String(myHostname) + ".local")) { Serial.println("Request redirected to captive portal"); server.sendHeader("Location", String("http://") + toStringIp(server.client().localIP()), true); server.send ( 302, "text/plain", ""); // Empty content inhibits Content-length header so we have to close the socket ourselves. server.client().stop(); // Stop is needed because we sent no content length return true; } return false; }</p><p>/** Is this an IP? */ boolean isIp(String str) { for (int i = 0; i < str.length(); i++) { int c = str.charAt(i); if (c != '.' && (c < '0' || c > '9')) { return false; } } return true; }</p><p>/** IP to String? */ String toStringIp(IPAddress ip) { String res = ""; for (int i = 0; i < 3; i++) { res += String((ip >> (8 * i)) & 0xFF) + "."; } res += String(((ip >> 8 * 3)) & 0xFF); return res; }</p></div></div></div></div>

Step 9: Conclusion:

Hope through this idea we can unmute these cosmo-metropolitan cities and also, it is well said: "Power is gained by sharing knowledge, not holding it".

Hi! <br><br>I wanted to know where did you buy your neopixel LED strip from. I don't want to buy it online so please let me know some good shops in delhi. <br><br>Thanks in advance!
Hy shivanng,<br>We order them from china and our next consignment is coming. If u want buy contact me at ashtam@artiosys.com

About This Instructable

1,287views

10favorites

License:

More by Ashtam55:Ambient Apparels - Tees Which Love Talking Track-O: a Cost Efficient GPS Tracking Device Using NODE-RED & FREEBOARD 
Add instructable to: