Week 12 : Input Devices


This week's assignment seems to be quite important for me. For my smart furniture, I need to use a sensor to sense the person while he uses the furniture and then use this data to turn on the lights.

Assignment :

This week's assignment is to measure something: add a sensor to a microcontroller board that you have designed and read it.


Things to figure out:

Niel insists on designing a new board using Attiny 45 and adding a sensors into it. So it is also a practice in designing and fabricating a board.Attiny 45 is much smaller, cheaper 8 pin chip. One way to get signals in is digitally within through the pin. Each pin can be connected or disconnected to sense. Each pin can have a pull up resistor too attached to it. So there are a lot of states just in a pin. I would like to use Attiny 44 and take out all the pins, so that I could add more input and output devices later on.


Input Devices

My Goal is to learn and do some personal research of different input devices and then pick on an input device for my project, mill the board with sensor traces and program the board.

Switch

There are two switches in the inventory. Push Button and Slide switch. Switch takes in an input as HIGH or LOW, which could be used as imput to make any changes in output devices. I don't need a person to mechanically switch on the light's while he is using the furniture. So, switch is not an option for me.


Different switch types


Motion detection Sensor

Sensor Used: Pyroelectric Infrared PIR Motion Sensor Detector Module Hc-sr501

This detects activity. Not a proximity detector but it is activity detector. It has several nice features including sensitivity adjustment and trigger delay. Qualitative measurement of activity is done in this sensor. This sensor requires a 5V DC supply. It can be used to sense the person while he moves, but sensitivity of the device can be an issue. Franc, suggested to use this sensor for the input board for my project.


HC-sr501


Distance measurement with sonar

Sensor Used: Ultrasonic Module HC-SR04 Distance Sensor

This module includes ultrasonic transmitters, receiver and control circuit. It's 4 pinned device requies 5V DC Supply and a working current of 15mA. It has a maximum range of 4m and minimum range of 2cm. The four pins are

That's what I learnt from datasheet of the sensor.


HC-SR04 Module


Magnetic field -

Sensor Used: IC Sensor HALL EFFECT SOT23W

This component has packages in both through hole and SMD's. These provide a voltage output that is proportional to the applied magnetic field. This requires a supply voltage of 5V (Min:4.5V and Max:5.5V) and supply current, maximum of 9mA. It's a 3 pin component, with pins being:

What I learnt from this week's schedule...

Learnt about different input boards

Found out which input board is apt for my project

Tried a hand on step response board...it still needs more exploration.