Assignment: Group: measure the power consumption of an output device Individual: Add an output device to a microcontroller board you've designed and program it to do something
Learning outcomes: Demonstrate workflows used in circuit board design and fabrication, Implement and interpret programming protocols
Assessment: Have you:
After I got my pcb milled I took the multimeter and checked my connections if all that needs to be connected is connected and all the does not need to be connected is not. When milling my board I realized that i went too deep on the z axis so the bit started digging my traces and leaving rough copper flakes on my board. That was also the issue because we ran out of milling bits and I was using a broken bit to mill my board for time sake. I DO NOT RECOMEND DOING THIS. I then went ahead and gathered my smd components and sensors and soldered my board.
I started off soldering my microcontroller resistors capacitor ftdi and avrisp compoents to check if my conections are good and if I can burn my bootloader.
Some things I had to keep in mind when soldering my pcb was that the diode had to be connected revered so the line needs to connect to the positve side of the motor and the regulator and mosfet gnd pin is the single one from the 3 foot.
When I powered my board from the external power supply of 8 volt my diode burnt twice and my regulator was outputing 0 volt instead of converting 8 volt to 5 volt.
When my diode burnt I realize that my resistors and capacitor and attiny was also burnt so I ended up changing all my compoents and tried reburning the bootloader and upload my code and it worked.
The next step was to test again to see if my code was running with my motor connected and my board connected via the external power supply without burning my diode or board. Well my diode was burnt again but when I took it off and run my on off code it worked fine the only issue was that the motor was not running smoothly instead there was some gitter in the sweep.
The strange thing is when I powered the board from the ftdi I got a clean sweep without gitters. I decided to stop here and conclude I got the dc to sweep but not perfectly.
After soldering my attiny 45 with my resistors and capacitor board I went ahead and programmed it. The first thing which I had to do was to connect my Output board to my fab isp and connect the fab isp to my computer and burn the bootloader using the arduino ide. I had already have the attiny core library installed from the previous week so I selected the
I then upladed a simple sketch to turn the motor on and off and my pin was pin 3 of the attiny 44a which maps to pin 4 of the arduino and note to define your pin as digital pin instead of analogue the analoge gave me some strange gittering.
Here is a little preview of what is happening
Paramaribo Suriname
Ethnalaan
50..