
Input Devices
On this week assingment i decided to make an "universal" board, so insted of using a new board every project you can connect the components using a "shield" or using cables just like i did.

In order to make this "universal"board i connected the Attiny pins to the FTDI pins, this way you can connect anything to the Attiny 84 pins without the need to make another board

In this assingment i used the HC-SR04 ultrasonic sensor and to connected it to my board, I used a female to female pin cable
My goal was to measure distance using a ultrasonic sensor and monitor the distance on my P.C.
For my code I used a exemple that i have found it online but it was made for the arduino, i had to adapt it to the attiny84
In order to do that I had to identify with pins were being used and what their functions were for, I checked with pin were defined to the echo and trigger, when i found I changed the values to match with my board
Some code and wiring inspired by http://en.wikiversity.org/wiki/User:Dstaub/robotcar

This is the final result of my "universal" board with the ultrassonic sensor