LogoLogo
  • Documentation Pages
  • About Minor Makers Lab
  • Documentation templates
    • Recipe template
    • Label templates
    • Ingredient template
  • Projects
    • Project overview
      • Gelance Cushion - Andrei Motian
      • Landscapes for Warhammer - Dusanka Prvulovic
      • Bioplastic Filters: An Analogue Photoshop - DaniĆ«l van Kesteren
      • Hyperdisposables - Anoush Mazloumian
      • Project Stop Touching - Summer Danoe
      • Foam For Material Activists - Laura Velgersdijk
      • DateKleed - Duncan van Norden
      • One Size Hurts All - Kaz Bison
      • Biodegradable Packaging Bags - Kim Sinke
      • DIY Faceguards - Thijs Uffen
      • Bioplastics on a Rainbow Spectrum - Desiree van Dam
      • Beyond Humanity - Britt de Heer
  • Coursework
    • Britt
      • research zine text
      • Week 11
      • Week 12 / 13
      • Week 14
      • 1 ) Kick-Off
        • Grafische Werkplaats Amsterdam
        • Safetyzine
      • 2 ) Electronics: Connecting Materials
      • 4 ) Cutting Supersurfaces
        • Zine: Art Approach
        • Furry Sample Book
      • 5 ) Additive Manufacturing
      • 6 ) Untoolkit: Electronic Inputs
      • 7 ) Transforming: Moulding and Casting with Bioplastics
      • 8 ) Untoolkit: Electronic Outputs
    • Andrei
      • Week 1
        • GWA
        • Textielmuseum
        • Safetyzine
      • Week 2
        • Ohm's Law & circuits
        • Speaker on denim
      • Week 4
        • Inflatables 2D to 3D
        • Smooth to sharp with polypropylene
      • Week 5
        • Making a switch for the laser cutter in Fusion360
        • Designing and 3D printing molds
      • Week 6
        • Wearable switch for sound
        • Analog Sensor
      • Week 7
        • Home materials
        • Making bioplastics
        • Material properties
      • Week 8
        • Virtual Swatch
        • Processing
        • RGB LED
      • Project weeks 11 - ?
        • Week 11: Kick-off
          • Brainstorm Session
          • 5 min pitch
          • Trail of Evidence
          • Proposal
        • Week 12: Experimenting
          • Research workout materials
          • First Experiment
          • Trail of Evidence
        • Week 13: Project Work
          • Insights
          • Reframing session with Laura
          • Trail of Evidence
        • Week 14: Reframing
          • Reflective design method
          • Going bigger
          • Trail of Evidence
        • Week 15
          • Highlights photo's
          • Reframing, research & insights
          • Trail of Evidence
        • Week 16
          • Going even bigger
          • Trail of Evidence
        • Week 17
          • Trail of Evidence
        • Project
    • Anoush
      • Week 11-19
        • Week 11 | project kick-off
        • Week 14 | First experiments
        • Week 15 | Progress presentation
        • Last reframing session
        • Trail of Evidence
      • Week 1-8
        • Overall Reflection
        • Week 8 | Untoolkit - Electronic Outputs
        • Week 7 | Transforming bioplastics
        • Week 6 | Untoolkit - Electronic inputs
        • Week 5 | Additive Manufacturing
        • Week 4 | Cutting Supersurfaces
        • Week 3 | Reading Week
        • Week 2 | Electronics: Connecting Materials
        • Week 1 | Kick-off
    • DaniĆ«l
      • Week 20: Expo Week
      • Week 19: Project Week 9
      • Week 18: Project Week 8
      • Week 17: Project Week 7
      • Week 1: Kick-Off
      • Week 2: Electronics and Connecting Materials
        • Part I: The Basics and Recreating Circuits
        • Part II: The Making of the Speaker
        • Part III: Testing the speaker
      • Week 3: Reading Week
      • Week 4: Processes & Collaboration
        • Part I: exploring the words
        • Part II: experimenting with the laser cutter
      • Week 5: Critical Making 3D
        • Part I: Creating the injection mold
        • Part II: Creating the two-part mold
        • Part III: Printing the designs
      • Week 6: Electronics & Open Design
      • Week 7: Bioplastics
        • Material Properties Sheet
        • The Ma2E4 Toolkit
        • The Ma2E4 Toolkit (second bioplastic)
        • An application for the bioplastic
      • Week 8: Interfaces & Algorithmic Bias
      • Week 9: Documentation Week
      • Week 10: Assessments
      • Week 11: Project Kick-Off
      • Week 12: Recess
      • Week 13: Project Week 2
      • Week 14: Project Week 3
      • Week 15: Project Week 4
      • Week 16: Project Week 5
        • Presentation Preparation
    • Desiree
      • Summaries
      • Kick-off
      • Week 1 - Safety Zine
      • Week 2-3 Electromagnets
      • Week 4 - Cutting Supersurfaces
      • Week 5 - Additive Manufacturing
      • Week 6 - Untoolkit: Electronic Inputs
      • Week 7 - Transforming: Molding and Casting with Bioplastics
      • Week 8 - Untoolkit: Electronic Outputs
      • Trail of Evidence
      • Website
      • Material Archive
      • Week 11 - Choose a project
      • Week 12 - 13
      • Week 14
      • Week 15
      • Week 16
      • Week 17
      • Week 18
      • Week 19
    • Duncan
      • Week 1: Kick-Off
        • Masterclass Studio Overvelde
        • Workshop letterpress
        • Textielmuseum Tilburg
        • Meet the Makers - introduce yourself
        • Safetyzine
        • extraĀ“s
      • Week 2: Electronics: Connecting Materials
        • Zine: Kits & Open sources
      • Week 3: Reading week
      • Week 4: Cutting Supersurfaces
        • Zine:
      • Week 5: Additive Manufacturing
        • Workshop Amstelstation
        • Zine: 3D-printers & Being editors
        • Overall conclusion
      • Week 6: Untoolkit (Inputs)
        • Together w/ Loes
        • Zine: week 6
        • ExtraĀ“s
      • Week 7: Transforming
        • Zine: Social issues
        • extra's
      • Week 8: Untoolkit (Outputs)
        • Zine: Does being a 'maker' makes you a better civilian?
        • extraĀ“s: week 8
      • Week 9: Reflection
        • Zine:
        • extra's (week 9)
      • Week 10: Assessments
        • Zine:
      • Week 11
        • Makers skills & attitude
        • Design research skills
        • Collaborative learning
      • Week 12
        • Maker skills & attitude
        • Design research skills
        • Collaborative learning
      • Week 13
        • Scenario
        • Maker skills & attitude
        • Design research skills
        • Collaborative learning
      • Week 14
      • Week 15
        • Materialen lijst
        • Lijst met verschillende manier van connecten
        • Scenarios
        • Inspiratie voor vormen
        • Concrete voorbeelden tekenen
        • Samples / plan schrijven om te MAKEN!!
        • Kleuren inspiratie
      • Week 16
      • Week 18
        • Samples
        • The making of Samples
        • Inspiratie
        • Benodigdheden Woensdag 03/06/20
        • Inspiratie foto serie
        • Digitale tekeningen
      • Week 19
      • Week 20
    • DuÅ”anka
      • Week 1 - 8
        • 1 | Kick-Off
          • 2 | Electronics: Connecting Materials
            • Assignment 0 - Zine
            • Assignment 1 - Paper circuit
            • Assignment 2 - Soft speaker
          • Assignment 1
          • Assignment 2
        • 4 | Cutting Supersurfaces
          • Assignment 0 - Zine
          • Assignment 1 - Sample Book
        • 5 | Additive Manufacturing
          • Assignment 0 - Zine
          • Assignment 1 - Mold documentation
          • Assignment 2 - Molds
        • 6 | Untoolkit: Electronic Inputs
          • Assignment 0 - Zine
          • Assignment 1 - Antiprimadonna's
          • Assignment 2 - Working circuit
        • 7 | Transforming: Molding and Casting with Bioplastics
          • Assignment 0 - Zine
          • Assignment 1 - Intro
            • Bioplastics
            • Experiential toolkit
            • Material properties sheet
            • Future applications
            • Reflection
        • 8 | Untoolkit: Eelectronic Outputs
          • Assignment 0 - Zine
          • Assignment 1 - Working circuit
      • 11 | Projects Kick-Off
        • Trail of Evidence
      • 12 | First experiments
        • Trail of Evidence
        • Building the board
      • 13 | Project Work
        • Trail of Evidence
        • Building scenery
      • 14 | Reframing
        • Trail of Evidence
        • Game ideation
      • 15 | Making fake water
        • Trail of Evidence
      • 16 | Making a cherry blossom tree
        • Trail of Evidence
      • 17 | Expo plan & Clouds
        • Trail of Evidence
      • 18 | Research zine & Coffee soil
        • Research zine
      • 19 | Research zine 2.0
    • Kaz
      • 1 | Kick-Off
      • 2 | Electronics: Connecting Materials
        • Assignment 0 - Zine
        • Assignment 1 - Paper circuits
        • Assignment 2 - Building a speaker
      • 4 | Cutting Supersurfaces
      • 5 | Additive Manufacturing
      • 6 | Untoolkit: Electronic Inputs
      • 7 | Transforming: Molding and Casting with Bioplastics
      • 8 | Untoolkit: Electronic Outputs
      • 11 - 20 | Project: Face Mask Strap
        • 11 | Kick-Off / Pitch
        • Trail of Evidence
        • 15 | Midterm presentation
    • Kim
      • 1 - Introweek
        • Discussion notes
        • Try out zine - Week 1
      • 2 - Electronics: Connecting Materials
        • Zine - Week 2
      • Zine - Week 3
      • 4 - Cutting Supersurfaces
        • The making of: The Sample Book
        • Dense - Clear final sample book
        • Zine - Week 4
      • 5 - Additive Manufacturing
        • Understanding Fusion 360
        • Understanding Cura
        • Understanding the 3D Printer
        • Zine - Week 5
      • 6 - Coronaweek Untoolkit: Electronic Inputs
        • LDR LED connection with Arduino
        • Zine - Week 6
      • 7 - Coronaweek Transforming: Molding and Casting with Bioplastics
        • Material properties sheet + Experiential toolkit
        • Future Bioplastic concept
        • Zine - Week 7
      • 8 - Untoolkit: Electronic Outputs
        • Output swatch
        • Zine - Week 8
      • Project Page Biodegradable Packaging Bags
      • 11 - Project proposal week
        • Trial of evidence week 11
      • 12&13 - Project Bioplastic Consumables
        • Trial of evidence week 12&13
      • 14 - Reframing week
        • Trial of evidence week 14
      • 15 - Project work
        • Trial of evidence week 15
      • 16 - Reframing and expo prep
        • Trial of evidence week 16
        • 16 - The first test
      • Material Sample 1
      • 17 - Project work
        • 17 - Ironing a bioplastic bag
        • 17 - New method for sticking a bioplastic bag together
        • 17 - How to compost?
        • Trial of evidence week 17
      • 18 - Trial of Evidence
      • 19 - Trial Of Evidence
      • 20 - Trial Of Evidence
      • 21 - Final Expostion
    • Laura
      • Week 1: Kick off
      • Week 2: Electronics: connecting materials
      • Week 4: Cutting Supersurfaces
      • Week 5: Additive Manufacturing
      • Week 6: Untoolkit: Electronic inputs
      • Week 7: Transforming Molding and Casting with Bioplastics
      • Foam For Material Activists
        • How to protect?
        • To find a material
        • Foam
        • Trail of Evidence
        • Midterm presentations
    • Summer
      • Foto's
      • Midterm presentation
      • Project: Stop touching
        • Project Proposal
        • Inspirational projects
      • Cutting Supersurfaces
      • Additive Manufacturing
      • Molding and Casting with Bioplastics
        • Creating natural dyes
        • Created bioplastics
      • Electronic input
      • Electronic output
    • Thijs
      • Week 1 - Kickoff
      • Week 2 - Electronics : connecting materials
      • Week 2 - Workshop : debugging circuits
      • Week 2 - Making a speaker
      • Week 3 - Processes & Collaboration
      • Week 4 - Cutting supersurfaces
      • Week 4 - Zine editor
      • Week 5 - Additive manufacturing
      • Week 6 - Untoolkit: Electronic Inputs
      • Week 7 - Transforming: Molding and Casting with Bioplastics
        • Ma2E4 Toolkit
        • Future applications & reflection
      • Week 8 - Untoolkit : electronic outputs
      • Week 11 - Project kickoff
      • Week 12 - First experiments
      • Week 13 - Project work
      • Week 14 - Reframing & trail of evidence
        • Reframing : additional research
        • Shopping list
        • Testing bioplastic material
      • Week 15
      • Weeks 15 - 20
      • Expo prep
  • CLASS NOTES
    • Zine documentation (collaborative doc)
    • Discussions week 2-8
      • Week 02 - Connecting Materials
      • Week 04 - Cutting Supersurfaces
      • Week 05 - Additive Manufacturing
      • Week 06 - Untoolkit Electronics Inputs
      • Week 07 - Transforming Bioplastics
Powered by GitBook
On this page
  • Understanding a sensor and an RGB LED
  • Connecting the sensor, motor and RGB LED
  • L289N, first try building something with DC motor
  • Making something without the L289N, second try
  • Another idea
  • Input week 6
  • End result
  • Reflection
Export as PDF
  1. Coursework
  2. DuŔanka
  3. Week 1 - 8
  4. 8 | Untoolkit: Eelectronic Outputs

Assignment 1 - Working circuit

Circuit with self made input and actuator as an output

PreviousAssignment 0 - ZineNext11 | Projects Kick-Off

Last updated 5 years ago

Understanding a sensor and an RGB LED

The first thing I did was connecting a RGB Led. When I managed to change the colors I decided to connect it with a sensor, I used the ultrasonic sensor. The color changes whenever I get closer or further away from the sensor. This was the outcome:

#include <NewPing.h>
// ( trigger, echo, max cm)
NewPing sonar(5, 2, 20);

int greenPin = 3;
int bluePin = 4;

void setup() {
  // put your setup code here, to run once

  Serial.begin(9600);
  delay(50);

  pinMode(greenPin, OUTPUT);
  pinMode(bluePin, OUTPUT);

}

void loop() {
  // put your main code here, to run repeatedly:

  Serial.print("The distance is:");
  Serial.println(sonar.ping_cm());
  delay(1000);
  if ((sonar.ping_cm()) > 10) {
    digitalWrite(greenPin, HIGH);
    digitalWrite(bluePin, LOW);
  }
  else {
    digitalWrite(greenPin, LOW);
    digitalWrite(bluePin, HIGH);
  }
}

Connecting the sensor, motor and RGB LED

When I understood how you could connect a sensor with something else I added the actuator. Whenever I would come closer to the sensor, not only the color of the LED would change but the speed of the actuator as well, this was the outcome:

#include <NewPing.h>
// ( trigger, echo, max cm)
NewPing sonar(3, 4, 20);

int bluePin = 1;
int greenPin = 2;
int redPin = 6;
int motor = 5; 

void setup() {
  // put your setup code here, to run once

  Serial.begin(9600);
  delay(50);

  pinMode(greenPin, OUTPUT);
  pinMode(bluePin, OUTPUT);
  pinMode(redPin, OUTPUT);
  pinMode(motor, OUTPUT);

}

void loop() {
  // put your main code here, to run repeatedly:

  Serial.print("The distance is:");
  Serial.println(sonar.ping_cm());
  delay(1000);
  if ((sonar.ping_cm()) > 0) {
    digitalWrite(greenPin, HIGH);
    digitalWrite(bluePin, LOW);
    digitalWrite(redPin, LOW);
    analogWrite(motor, 0);
    
  }
    if ((sonar.ping_cm()) > 5) {
    analogWrite(motor, 120);
  }
      if ((sonar.ping_cm()) > 8) {
    analogWrite(motor, 130);
  }
        if ((sonar.ping_cm()) > 10) {
    analogWrite(motor, 140);
  }
  if ((sonar.ping_cm()) > 12) {
    digitalWrite(greenPin, LOW);
    digitalWrite(bluePin, HIGH);
    digitalWrite(redPin, LOW);
    analogWrite(motor, 150);
  }
          if ((sonar.ping_cm()) > 14) {
    analogWrite(motor, 180);
  }
   if ((sonar.ping_cm()) > 16) {
    digitalWrite(greenPin, LOW);
    digitalWrite(bluePin, LOW);
    digitalWrite(redPin, HIGH);
    analogWrite(motor, 200);
   }
             if ((sonar.ping_cm()) > 18) {
    analogWrite(motor, 230);
  }
               if ((sonar.ping_cm()) > 19) {
    analogWrite(motor, 255);
  }
}

L289N, first try building something with DC motor

When I thought I understood the components and the code well enough to build something that I liked I started looking into stuff that I wanted to build. I found that you can build a small car that can go forward and backward with an L298N and a switch. So I got that board and switch to try. I tried to control the speed of a motor with a potentiometer and control if the motor would go backwards or forwards with the switch. Unfortunately after a lot of trying I couldn't figure out why the motor wouldn't connect with my arduino through the l289N, so I gave up on this.

// L298N board by How to Mediatronics
#define enB 5
#define in3 14
#define in4 13

//toggle button
#define button 9

// defaults
boolean buttonState = LOW;
int rotDirection = 0;
int pressed = false;

void setup() {
  // put your setup code here, to run once:
  pinMode(enB, OUTPUT);
  pinMode(in3, INPUT);
  pinMode(in4, INPUT);
  pinMode(button, INPUT);
  
// set initial rotation direction
  digitalWrite(in3, LOW);
  digitalWrite(in4, HIGH);

}

void loop() {
  int potValue = analogRead(A0); // Read potentiometer value
  int pwmOutput = map(potValue, 0, 1023, 0 , 255); // van 0-1023 naar 0-255
  analogWrite(enB, pwmOutput); // verzend potentiometer value naar l298n board
  // Read button - Debounce
  if (digitalRead(button) == true) {
    pressed = !pressed;
  }
  while (digitalRead(button) == true);
  delay(20);
  // If button is pressed - change rotation direction
  if (pressed == true  & rotDirection == 0) {
    digitalWrite(in3, HIGH);
    digitalWrite(in4, LOW);
    rotDirection = 1;
    delay(20);
  }
  // If button is pressed - change rotation direction
  if (pressed == false & rotDirection == 1) {
    digitalWrite(in3, LOW);
    digitalWrite(in4, HIGH);
    rotDirection = 0;
    delay(20);
  }
}

Making something without the L289N, second try

Because the DC motor did work without the L289N, i figured to just skip it. I've looked up on internet so many things and i tried a lot of different setups but I couldn't get it to work. I tried to make something without the L289N. Since I can not let it go backwards or forwards I figured that I can maybe make some propellor so that I wouldn't have to put the motor into the wheels. I made a sketch so that I knew what to build.

In my sketch I didn't had my sensor yet because I figured out later that a part of the assignment was to have an input that was made by yourself. I tried making a propellor out of a plastic bottle, I glued the motor into the lit:

I was pretty happy with the result so I continued building the car. I used small candles for the wheels and straws and sate sticks to connect it to the black board.

The car wasn't moving forward when I was blowing it with my own mouth so I figured that it wouldn't go forward with the propellor either. I thought it could be the wheels so I changed the wheels.

But it was still not moving forward when blowing it. I thought maybe I needed lighter material. So I used a plastic bottle, but it still didn't go forward unfortunately.

Another idea

When making the 3rd car still without success I decided to come up with another idea. I thought of stuff that turns. One of the first things that came in my mind was a windmill. I started making the windmill out of the carton of a toilet paper roll and made a hole in it for the motor.

It was pretty hard to make the hole of the square where the flags are attached to just as big as the turning part of the DC motor. I made it too big first and because of that it wouldn't turn anymore.

When the DC motor was working inside the windmill, I started making my sensor. First I decided to use the foam and set it up exactly as I did before with the crystal, but unfortunately that didn't work because there were no copper parts touching (loes told me).

Input week 6

I tried making something out of the conductive wire and fabric for a bit but unfortunately I only had a small needle where the wire couldn't go in to. So I decided making one of Loes' examples of the untoolkit week. If I would still have more time left I would've made another one made by myself.

End result

I decided to pimp it up a bit with some fake grass. I made the folding pressure sensor into a window and glued it on the side of the windmill. The windmill is on a 10x10 black swatch and the windmill itself is also black so that it fits the series of week 6. When i would have more time left I'd like to put led lights in the grass and controll them with a joystick.

Unfortunately my DC motor started working at the end (maybe a power failure?) It only worked for a few seconds and then I had to plug out the diode and plug it in again for it to work again for a few seconds. So that's why I can't show the working end result with the sensor in a video. I've tried a lot of different set ups and codes but I couldn't undeerstand why it suddenly didn't work anymore because it worked just fine before with the same setup.

This is the setup i've used for my DC motor. Besides this example I've put the sensor in +, GND on the breadboard and the i/o pin in A0 on my arduino board.

And this is the code I've wrote for the sensor and DC motor:

int drukSensor = A0;
int motor = 13;
int sensorValue = 0;

void setup() {
  // put your setup code here, to run once

  Serial.begin(115200);

  pinMode(drukSensor, INPUT);
  pinMode(motor, OUTPUT);

}

void loop() {
  // put your main code here, to run repeatedly:
  delay(1000);;
  sensorValue = analogRead(drukSensor);
  Serial.println(sensorValue);

  if (sensorValue > 10) {
    digitalWrite (motor, HIGH);
  }
  else {
    digitalWrite (motor, LOW);
  }
}

Reflection

In the beginning I was feeling full of inspiration, I had a lot of nice ideas. I really liked this assignment because you can do a lot of things with a DC motor. But after working on it everyday and one day even from 13:00 - 04:30 am, I got more and more frustrated because I hadn't the right materials at home to for example glue things together with a glue gun, or a good soldering iron to solder things together. I did try to make it work with the things I had. Besides not having the right tools, on the way to the end result, different, technical things went wrong a lot of times. For example, components in the circuit wouldn't work anymore when it did work a few minutes before and I had to build certain circuits over and over again just to find the mistake. When I would find the mistake and it worked again it was very satisfying. I am quite upset that I couldn't finish the assignment on time, while I put so much effort and time in it in my opinion. I did learn a lot about myself in this process. I learned that I have an insane amount of patience until I go nuts, haha. But everyday whenever waking up I would try again.

RGB led + sensor, Dusanka, 2020
Actuator, sensor and LED, Dusanka, 2020
L289N, Switch, motor and potentiometer, Dusanka, 2020
Setup, How to Mediatronics, 2020
Sketch for assignment input & output, Dusanka, 2020
Propellor, Dusanka, 2020
Propellor, Dusanka, 2020
First car, Dusanka, 2020
Second car, Dusanka, 2020
Third car, Dusanka, 2020
motor in Windmill/toilet roll, Dusanka, 2020
start of Windmill, Dusanka, 2020
Flags, Dusanka, 2020
Working windmill, Dusanka, 2020
Failed sensor, dusanka, 2020
Foam sensor, Loes, 2020
End result, Dusanka, 2020
Video of motor only working for a few seconds, Dusanka, 2020
DC motor setup, Vasilakis Michalis,
Reflection of the inside of my fried brains, Dusanka, 2020