12. OUTPUT DEVICES¶
Goal¶
Individual assignment: Add an output device to a microcontroller board you’ve designed, and program it to do something Group assignment: Measure the power consumption of an output device
Doing¶
First I were guided of this board that is on the page of the fabacademy
To the plate I will add two led spotlights
Then, I designed the board in the Eagle software, mainly considering the A4953.
You can download the file by clicking on the bullet point.
Milling¶
Also to be able to milling the plate, I used of the Roland Modela Machine
Then, I opened the PNG file, in the software of the MODELA, opened the terminal and mill the design on a copper blad board.
Before, I put the parameters in the Fab Modules to have a good milling.
I started with the rough (traces 1/64),.It is important to modify the parameter of Path error (pixel) which by default is 1.1 and it is changed to 0.1.
Then I continued with the finish process (outline 1/32)
Then I soldered the board with the materials provided by the Fab Lab Esan.
Programming¶
I made the output board without a microcontroller because I was planning to use it with the fabkit for my final project.
I used my Fabduino FABKIT 2.0 board, this board i did in my Final Assignment , I tested my output board also ATtiny 44
To burn the bootloader, I need to identify the port in wich the FTDI cable was pluged,
Then in the tool tab, begin to set the information, board, processor, port.
After according to the data sheet of the plate, the pins are connected, just like the source that in this case would be a battery of 9v.
For programming in Arduino,For a DC motor to move it is needed to connect a positive source to one cable and a negative source to the other cable. The direction of the motor depends which side is positive and negative.
Explain the code¶
Finally I compile and upload to the board.
We can see the performance of the motors
You can see the video
You can download the files by clicking on the bullets point.