5. E-textiles¶
Adventronics Calendar¶
Josep had the beautiful idea to create a coding christmas calendar with little challenges for the Barduino 4 family boards, which are designed by Fablab Barcelona. You can check it ot here. As I would love to improve my coding skills, I decided to participate.
First things first - set up the barduino board!
Therefore I followed the instructions on the Barduino website
INPUT - PINS * GPIO00 - Tactile touch button (1,2,4,5,6 usable) * GPIO03 - Phtotransistor * GPIO08 and GPIO09 - Temperature Sensor
OUTPUT - PINS * GPIO48 - Barduino LED * GPIO14 - Buzzer * GPIO38 - Neopixel
Day 1: LED blink¶
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(48, OUTPUT); //the LED of the Barduino is connected to pin 48
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(48, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(48, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
upload result
light up the NanoPixel in rainbow colours
Helpfull link how to start working with NanoPixel
#include <Adafruit_NeoPixel.h>
#define PIN 38 // Which pin on the Arduino is connected to the NeoPixels?
#define NUMPIXELS 1 // How many NeoPixels are attached to the Arduino?
Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
// Argument 1 = Number of pixels in NeoPixel strip
// Argument 2 = Arduino pin number (most are valid)
// Argument 3 = Pixel type flags, add together as needed:
// NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
// NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers)
// NEO_GRB Pixels are wired for GRB bitstream (most NeoPixel products)
// NEO_RGB Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2)
// NEO_RGBW Pixels are wired for RGBW bitstream (NeoPixel RGBW products)
// the setup function runs once when you press reset or power the board
void setup() {
pixels.begin();
pixels.show(); // Initialize all pixels to 'off'
pixels.setPixelColor(0, 255, 255, 255);// white
// defines colour of Neopixel
// Argument 1 - pixel number across the stripe, first one (closest to arduino) always refered to as 0
// Argument 2 - red
// Argument 3 - green
// Argument 4 - blue
}
// the loop function runs over and over again forever
void loop() {
pixels.show();
delay(3000); //wait for 1 second
pixels.setPixelColor(0, 255, 100, 0); // yellow
pixels.show();
pixels.show();
delay(1000); //wait for 1 second
pixels.setPixelColor(0, 255, 255, 0); // yellow green
pixels.show();
pixels.show();
delay(1000); //wait for 1 second
pixels.setPixelColor(0, 0, 255, 0); // green
pixels.show();
pixels.show();
delay(1000); //wait for 1 second
pixels.setPixelColor(0, 0, 255, 100); // turkis
pixels.show();
pixels.show();
delay(1000); //wait for 1 second
pixels.setPixelColor(0, 0, 255, 255); // deep turkis
pixels.show();
pixels.show();
delay(1000); //wait for 1 second
pixels.setPixelColor(0, 0, 100, 255); // light blue
pixels.show();
pixels.show();
delay(1000); //wait for 1 second
pixels.setPixelColor(0, 0, 0, 255); // blue
pixels.show();
pixels.show();
delay(1000); //wait for 1 second
pixels.setPixelColor(0, 100, 0, 255); // light purple
pixels.show();
pixels.show();
delay(1000); //wait for 1 second
pixels.setPixelColor(0, 255, 0, 255); // purple
pixels.show();
pixels.show();
delay(1000); //wait for 1 second
pixels.setPixelColor(0, 255, 0, 100); // light red
pixels.show();
pixels.show();
delay(1000); //wait for 1 second
pixels.setPixelColor(0, 255, 0, 0); // red
pixels.show();
pixels.show();
delay(1000); //wait for 1 second
}
Research¶
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
weekly assignment
Check out the weekly assignment here or login to your NuEval progress and evaluation page.
about your images..delete the tip!!
-
Remember to credit/reference all your images to their authors. Open source helps us create change faster together, but we all deserve recognition for what we make, design, think, develop.
-
remember to resize and optimize all your images. You will run out of space and the more data, the more servers, the more cooling systems and energy wasted :) make a choice at every image :)
This image is optimised in size with resolution 72 and passed through tinypng for final optimisation. Remove tips when you don't need them anymore!
get inspired!
Check out and research alumni pages to betetr understand how to document and get inspired
- Alice Sowa
- Ieva Maria Dautartaite
- Loes Bogers TextileLab Amsterdam 2019-20_
- Sara Alvarez TextileLab Amsterdam 2020-21_
- Kate Reed
- Diane Wakim
- Vicky Luan
Add your fav alumni's pages as references
References & Inspiration¶
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
- Two images side-by-side
- Image reference
- Download reference
Links to reference files, PDF, booklets,
about your images..
-
Remember to credit/reference all your images to their authors. Open source helps us create change faster together, but we all deserve recognition for what we make, design, think, develop.
-
remember to resize and optimize all your images. You will run out of space and the more data, the more servers, the more cooling systems and energy wasted :) make a choice at every image :) This image is optimised in size with resolution 72 and passed through tinypng for final optimisation.
Tools¶
Process and workflow¶
My sketches are ...
This schematic 1 was obtained by..
This tutorial 2 was created using..
footnote fabrication files
Fabrication files are a necessary element for evaluation. You can add the fabrication files at the bottom of the page and simply link them as a footnote. This was your work stays organised and files will be all together at the bottom of the page. Footnotes are created using [ ^ 1 ] (without spaces, and referenced as you see at the last chapter of this page) You can reference the fabrication files to multiple places on your page as you see for footnote nr. 2 also present in the Gallery.
Code Example¶
Use the three backticks to separate code.
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Results¶
Video¶
From Vimeo¶
Sound Waves from George Gally (Radarboy) on Vimeo.