2016

Fablab CEPT
Faculty of Design CEPT University

Rudrapalsinh Solanki

                                                    Week-11

Input Devices

Assignment

 

1. Measure something: add a sensor to a micro controller board that you have designed and read it .

 

 

I Decided to work with piezo for do this exercise.

 

I wanted to learn and understand arduino programming through C/C++ language.

 

So I designed a pcb with the attiny 44 and then see the working of the piezo

 

Now its turn to design the board in Eagle design and start working with it.

 

Steps involved are :

1. Design the board with the required components

2. Milling the board

2. Soldering the components

3. Programming of the board through Arduino

1. Design the board with the required components:

Png file download

Png file download

2. Milling of the board:

First the circuit traces are cut with 1/64 bit

Once the circuit is milled now the board in cut with 1/32 bit

3. Soldering all the components on the board:

Input Devices was an interesting week of using sensors wit h a micro-controller.

 

I wanted to explore light so I decided to work on the photo-transistor in making of my circuit.

 

This was the first time I was using the photo transistor. I wanted to get the circuit for the functioning the light. that is it should tell me if there is no light or if there is light.

 

I downloaded the file from the fab academy archive. Download

 

This is the traces of the board for milling

 

This the circuit diagram of the board

 

This is the image of the complete board from archive

This is the interior of the board for cutting the board out.

I selected photo transistor for do this exercise.

 

I wanted to learn and understand arduino programming through C/C++ language.

 

Now its turn to mill the board and start working with it.

 

Steps involved are :

1. Milling the board

2. Soldering the components

3. Programming of the board through Arduino

1. Milling the board :

2. Soldering the components :

Once the milling of the board is done now its turn to do the soldering. I started soldering all the components one by one.

3. Programming of the board through Arduino :

Once the milling and soldering of the bode is done now its turn to see how/ what does the board can do. After soldering we will follow the steps applied in the week-08.

 

The arduino board is connected to the computer ant the basic sketch is uploaded in the board.

All the connections are done according to the circuit diagram and the pins alloted for the arduino board in the code.

Colour code for the connection of six pins from the board

GND- ORANGE

MOSI - RED

V -  WHITE

RST - YELLOW

SCK - GREEN

MISO - BLACK

 

Now this 6 pins are connected to the Arduino board.

 

PIN_MOSI to 11

PIN_MISO to 12

PIN_SCK  to 13

PIN_RST to 10

 

GND to ground of arduino

V to 5v of arduino

 

Once the connections are done the board would look like:

The connections are done using the bread board that had 3 led which game me indication of the error/ program uploading and the flow of current. After the connection the Light blinked/ started in the circuit board that I had made.

 

The code from the fab archive is uploaded in the board through arduino. The code can be downloaded from here Link.

 

I MADE A MISTAKE ..ACTUALLY BIG MISTAKE...INSTEAD OF USING A PHOTO TRANSISTOR I USED A RGB LED....I DIDN'T REALIZED TILL THE END BUT ONCE I UPLOADED THE SKETCH THEN I REALIZED THE MISTAKE AND AGAIN MILLED A NEW BOARD.

 

 I re done the board with the same process and I make sure that i use the right components and also make sure the position of the components place at each place. I had to re do the board twice as there was the issue of the signals each time. But the last one was perfect and I was able to code it and also i was able to see the output from the board.

As you can see the difference in the board the component is now changed

The board is coded in the same processes mentioned above

Once the output is seen in the serial monitor of the Arduino software I went back and re programed it again in python.

Python is downloaded from LINK. Once I am ready with the code I saved the code in my week 11 folder in my computer.

Opened command prompt in Windows and selected the path from week 11 and loaded the code in python.

Once the code is run Here I GO....Photo transistor..Working

These are the screen shots when I move my hand on top of the photo transistor board.