Week 07 Embedded Programming

                                                                                    

                                                                                    

                                                                                    

            It took me awhile to read a data sheet. As a person who has not had much programming or electrical engineering background, this material was a bit difficult to read, but if you take time and google with it, I am pretty sure you can understand it. The best way I found understanding the material is to have an electrical engineering major friend next to you and ask them millinos of questions until they say no. lol

                                                                                    

                                                                                    

            Especially I found this image helpful to understand the architecture of the microcontrollers. It gave me a sense of where the controller is with other broad spectrum.

                                                                                    

                                                                                    

            Be sure to read this page carefully before you do anything. I just started doing the work without taking much attention to this page and especially this diagram and the commands below. I found this after I wasted hours. Please read this, this would save you so much time!

            I used Arduino programming code to ATTiny workflow. This page is super helpful in terms of its clarity and explannation and instructions on how to interface with ATTiny chips. I got Arduino libraries folder.

                                                                                    

                                                                                    

One thing to note is to match board and clock speed accrodingly. I used AVRISP mkii programmer from the arch shop. I opened up some simple variables for blinks. I made a code that woud allow computer to tack whether the LED is on or off. It would print "on" or "off" on the screen.

                                                                          

Things that can be improved: I did not make a good microcontroller in that some parts of the microcontroller which worked a couple of weeks ago did not work. I think it's because I had them in my backpack and some of the golden metal parts were erased. I had to mill the parts and solder again. It did not take that much time, but I could have saved if I kept them in a secure place. So if you are reading this, please keep your previous week material somewhere safe.