Week 11

Input Devices.

ASSIGNMENT:

1.) measure something: add a sensor to a microcontroller board that you have designed and read it.

This week the task is to experiment with electronic input devices or sensors.

I decided to take this assignment to go testing alternatives that can serve me for my final project, because I'll need a device that measures distances. For this reason I decided to try the HC-SR04 ultrasonic sensor.

DOCUMENTATION

- Hello.HC-SR04.

Attiny45.

To build the board that would control the HC-SR04, needed to use the ATtiny45 microcontroller, for that reason I have analyzed some datasheet to understand the operation and connections to the microcontroller.

Based on the examples available in the Input Devices schedule, I used the example of the HC-SR04, I analyzed the images of the board and re designed in Eagle, obtaining the following results:

- Burning the microcontroller.

I burned the board using Ubuntu and AVRISP mkII programmer. First I downloaded the sample files found in the schedule of Input Devices:

Hello.HC-SR04.c

Hello.HC-SR04.make

hello.HC-SR501.py

- Makefile.

This website is very useful to make the Makefile on my board.

Click here.
- Testing the Ultrasonic Sensor.

As I mentioned before, possibly I need to use ultrasonic sensors on my helmet. Therefore I have placed the ultrasonic sensor in a cardboard model of my helmet and demonstrate their possible performance.

Eagle file: ultrasonic2.brd

Eagle file: ultrasonic2.sch

Circuit PNG: board2.png

Circuit cut out PNG: cutout2.png

You can download more files here from DROPBOX.

SELF EVALUATION
WHAT WORKED:

- The ultrasonic sensor works It worked as expected.

WHAT DID NOT WORK:

-

THINGS TO IMPROVE:

- Explore another types of movements and mesures sensores.

I'm currently taking this course in FAB LAB TECSUP, in Lima-Perú, through CIDI FADA UNA with the support of CONACYT and PARQUE TECNOLOGICO ITAIPU FOUNDATION

©DESIGNED AND BUILD BY FABIO IBARRA - FAB ACADEMY 2016

EMAIL: fabioibarrab@gmail.com