WEEK THERTEEN
-Input devices-
ASSIGMENT: measure something: add a sensor to a microcontroller board that you have designed and read it.
What I wanted to do for this week is to program a humidity sensor as it has relatin with my final project.
This is the schematic. It contains: an AtTiny44 as a microcontroller. Three switches, one led, one 5V regulator, three resistors and one capacitor.
In the design of the board I made sure that the three switches where in one side of the board for later easy to interact with them. I did autorouter and it took me so long to have the final design board.
I have prepared the two PNG black and white files for the small milling machine.
Then in the fab moduls I have define the properties of the milling of the two files. First always the traces and then the outline.
This is the resoult after soldering the board with all the components. With an FTDI pin heder to see the resoults after programming it in the serial monitor of arduino.
I have used Arduino software to proram the board. So first you tye the code.
Then you click to VERIFY and see if there is any error.
To program the board we use the USBisp programmer connected to our board.
First we check that the computer reads the USB isp programmer and to do so we open the GIT BASH and type the following:
After this we press INTRO and we can see it reads it because of this message.
So we are ready to program our board. First we need to select the: board, processor, clock and which programmer we are using. We can do that in TOOLS.
Then we click the botton UPLOAD to program it.
And if everything is allright a message like this one should appear.
Now is time to see if it works and does something our board. To do so we remove the USBisp programmer and plug the FTDI cable to our board and computer and in the appropiate orientation.
We need to go to TOOLS again and change the programmer for the AVRISP mkll and then.
We open the serial monitor and see if there is someting happening. In my case the numbers change when the humidity change. So I am printing in the computer the resoults of the sensor in the computer and that is why we are using the command "println"
Files
Schematic
Board