Input devices

This week, I wanted to use a distance sensor for the Input device. So I decided to use a sonar distance sensor. I used the hello.HC-SR04 board and components. I refer to Neil's board design.

01

I decided to use this distance sensor because I want to use it for my final project, which can calculate the distance from an object. My final project would be the interactive light, so I tried to use this sensor to make different lighting effects accoring to the distance between light and humans.
I refer to Neil's board design since I don't have any electronic background; this board is my second in my whole life. Haha. I milled the board and soldered the components following Neil's design.
After soldering all the components, I realized that the microcontroller's direction was wrong. So I had to de-solder. But while I was de-soldering, I accidentally took the line out. I had to mill another board.
After milling and soldering again, I was ready to program the board, but I realized that the pin to connect the Atmel was 6pin(2x3) which is different from the 10pin(2x5) I used when I programmed D11C two weeks ago. I had to find the connector to convert 6pin to 10pin.
Luckily, We have that in our archsite. So I could use it.
However, Another problem starts here. I realized that Neil's board design used Attiny 45 microcontroller. I found out Attiny 45 needed a different program setting to bootload. I asked for help from TA. TA said we needed another board to program for Attiny 45. so With TA Reina and Demicran's help, we milled another board that could program Attiny 45 boards. However, even though we connected them with each other, It still couldn't read my board.
We later realized that no bootloader was required for the ATTINY45! Instead, I downloaded a library (ATTiny Core) to my Arduino IDE and used Atmel to push code.
Successfully, we could connect to Atmel.
However, the arduino can read my board, but I cannot push the code.
Whenever I upload the code, It shows me an error message, or the serial monitor shows me nothing but blinking.
I was highly suspicious about the connection between the board and the sensor. And TA Reina also advised me that It would be better to use a connector instead of soldering the sensor directly to the board. And while I was trying to connect my board to Atmel, the sensor just tore out. So It was apparent that soldering needed to be more solid.
So, I milled two more boards just in case. and soldered them again hoping that this time my boards would work.
After soldering new boards, I reconnect my board to Atmel. But the problem was still there. The Atmel still read my board, but I cannot upload my code.
When I copied Neil's code, the serial monitor reacted but the code was compeletly broken..At this point.. I didn't know what to do..
I visited TA Antony in desperation. He helped me to figure out what the problem was.
We figured out two problems. First, the VCC pin of the sensor should be connected between the register and the capacitor. So I re-solder them again.
Second, RX & TX pins are connected to the wrong pin. When we looked at the pin map of Attiny 45, the RX pin should connect to PB1, and the TX pin should be connected to PB0.
Using the jumper wire, we connected it to the correct pin.
Finally, It was working!!! OMG!!! I can not be happier!!