Fab Academy 2015, Dong-Hyun Kim

Input Devices

Redesign an Input board

I plan to make switch to input device, and it is for my final project.

My design is based on Hello.Button.45 in Fab Academy Archive I studied it and redesignit.

I try to remove the connection from Board screen the software show me some warning sign. Which was “Can’t backannotate this operation. Please do this in the schematic!” and it means you can’t erase the connections from Board screen. You can modify circuit only on Schematic screen. So, I got back to Schematic screen to erase the connection and I connect it on Board screen.
‘Can’t backannotate this operation. Please do this in the schematic!’

Components

  • ATTiny45 : Low power Atmel 8bit microcontroller, It's kind of brain or computer, you can control sensor or actuator using this
  • Capacitor : capacitor is a passive two-terminal electrical component used to store energy electrostatically in an electric field.
  • Resistor : A resistor is a passive two-terminal electrical component that implements electrical resistance as a circuit element. Resistors act to reduce current flow, and, at the same time, act to lower voltage levels within circuits.

    Mill the board and soldering

    The board I made was well soldered and cut well.

    Use “Make” file to upload Bootloader on ATTiny45. It is worked well.

    Program a board (with Arduino IDE)


    I programed it by modifying the sample code and I success programming to make LED on when I keep push the button and off when I put my finger off from the button.

    Button Switch Serial Monitoring

    You can see when I bend flex sensor, sensing value change from 84 to 224 in serial monitor.
    These value are analog value, we can use digital out put with map() funtion.

    What is flex sensor

    Flex sensor can measure how much bended. It is kind of resistor.

    Design felx sensor board



    Trouble shooting

    When I look serial monitor in Arduino IDE, That shows me that unidentification words, So, I chage the Clock to baordrate 9600. then it works.

    source code

    int flexpin = A5;

    void setup()
    {
    Serial.begin(9600);
    }

    void loop()
    {
    int flexVal;
    flexVal = analogRead(flexpin);
    Serial.print("sensor:");
    Serial.println(flexVal);
    delay(200);
    }

    Flex Sensor Serial Monitoring


    Download files

    Flex sensor
    Inputdh

    Makers Gonna Make !
    • © Fab Academy 2015 'How to make (almost) anything', All rights reserved
    • Designed by Dong-Hyun Kim