Friday, March 7, 2008

Pictures and a Video of my Simple DVM Project

Today I took some pictures and a video of my DVM project. I really wish I had potentiometers to calibrate this thing, oh well, this is more of a learning project than anything else.


A picture of the DVM in action!




A view of the entire circuit, although the voltage dividers are kind of hidden behind the LCD display.




This video shows it in action. This circuit uses a ATmega644 microcontroller.


Attachments,
Picture of Assembler/Simulator: http://salgat.googlepages.com/simulation.JPG
Project Folder including Source Code: http://salgat.googlepages.com/AVRDVM.zip

Thursday, March 6, 2008

Updates on my Life

Just wrapped up a project I have been working on the past 2 mornings. I wanted to learn both ADC and the 2x16 character LCD, so I found a suitable project to incorporate them both, a simple DVM (digital voltmeter). The result is quite pleasing! In under 300 bytes I made a simplistic program that outputs "Voltage: XX.XV". The internal 2.56V reference isn't working for some reason, so I just used two 330 Ohm resistors in series to half 5V into 2.5V. If you take that along with the divide by 10 resistor network for the ADC input and the 10% tolerances of the resistors, it becomes understandable why it isn't perfect in accuracy (at lower voltages, the accuracy is within .1V, while at the upper limit around .8V). Since I knew anything beyond the tenths place wouldn't be close to accurate, I chose to use only 8-bit accuracy for the conversion. The program runs great and the display updates ~4 times per second (although this restriction is strictly aesthetic). The total cost of this high impedance DVM with decent accuracy is around $10, and higher accuracies will be obtained once I find more accurate resistors and fix the internal reference voltage problem.

I wish I could say that my devotion to my electronics is equivalent to my devotion to my school work. I have neglected all my school work this entire spring break, and now have 3 days left to play catch up. I hate to say hate, but I am absolutely sick of all my classes not related to my major electronics. Sociology, Business Management, and Economics in particular are becoming a nuisance. I find myself diverting almost all my attention from electronics to maintain my performance in those classes (although I do admit that I spend almost all my time on Friday-Sunday on Video Games, but that is to keep me sane through the rest of the week). As much as I love school, I dislike classes that while provide some life-long benefit, tend to be unnecessary. $1,400 and ~140 hours of my time going towards those classes, I hope that later in life they make up for their cost.

Another class that I have an aversion to is Visual Basic Programming. Although the class is neither required nor necessary by any means, I still decided to take it due to the many employers out there asking for experience with it. I absolutely enjoy programming in Assembly. The feeling of absolute control over what I am doing is amazing. My comparison between learning Assembly and learning Visual Basic is the difference between learning Math and English. I don't receive the same enjoyment from designing windows and programming in a manner where the computer does everything for me. I suppose it's the syntax that gets to me. Assembly on the AVR consists of 120 instructions. That's it, no more, no less. Visual Basic consists of thousands of different rules and instructions, all of which I have to learn. I have never liked English class, and I did poorly in my Intro to French Class. I am not surprised that I have a B in Visual Basic. I have found that the greatest challenge in taking 24 credits this semester is not the work, but the lack of interest. Last semester was heavenly, all electronics classes and a math class, which is why I could handle 23 credits with all A's. This semester however, I find it hard to find any interest in 5 of my classes. The possibility of several B's this semester is strong, but I'll probably drudge through it and increase my grades anyways. After all, I really would like a Scholarship or two for Lawrence Tech.

Tuesday, November 6, 2007

All As

On every midterm I took I received an A. Very pleased. The only classes that are wild cards as of now is Calculus 2 and Medium Voltage. Although I have an A in both classes, Calculus 2 always hold some amount of unknown in how difficult the test will be, and Medium Voltage, another class I have an A in, has the final remaining which is worth 50% of my grade. I have so much homework to catch up on; Electronics 2, Microcontrollers, Circuit Analysis, and Calculus 2. Last Winter Semester I waited until the last minute to finish the work, and I know now not to do that. This weekend I am dedicating myself to Calculus. Next weekend, well Microcontrollers I suppose.

In other school related news, I have a rough idea of what classes I will be taking this 2008 winter semester,
BMGT-201-01
ECON-251-01
ELEC-138-01
CIS-152-01
SOC-151-03
ELEC-136-01
ELEC-141-01
ELEC-144-01

8 classes for a total of 24 credits. This is nearly double the workload of my first semester of college. The 3 electronics classes and CIS-152 Visual Basic Programming should be of no concern, but Sociology, Business Management, and Economics are the beasts to tackle. I can easily handle 23 credits under my belt, but save for Calculus 2 all the classes I am currently taking are ELEC classes. Maybe this is a chance to prove to myself my limits. As much as it pains me to say this, the standards at community college are lower than at universities. Perhaps the workload of next semester will be a way for me to balance that difference. When I transfer to Lawrence Tech I plan on taking credits nearing 20, so I have to prove that I can handle it. If I succeed this winter, then maybe I could justify taking 30 credits... Haha, that'd be crazy! Well, if a 3.7 GPA afforded me 23 credits, then I will be able to tear down any concerns with my 3.92 GPA. Speaking of restrictions, I have to hurry and get Intro to Programming waved so I can take Visual Basic Programming!

Thursday, November 1, 2007

Hate for Homework



After next Wednesday (11-07-07) I will be able to report all my midterm grades. I'm a bit curious of my score for the test I took yesterday in Medium Voltage. The only concern I have with my academic performance is the homework that I still need to complete. If there is one thing I hate it is homework. Homework is typically busywork given by teachers who want to make sure you're busy even outside of their class. Others think of homework as a way to practice on what you learned, and to hone your knowledge of the material covered in class. I consider homework to be a lazy tool used by educators who assume that homework will be affective as a means of learning and becoming better. For many, including me, homework is nothing more than an annoyance I mindlessly burn through in an attempt to get it done with. I do it for the grade, not to learn.

In all the classes that require homework, I have never found it to be helpful, not even once. But, for the classes that give out homework as supplemental and optional, I have found it to be extremely beneficial. In my Calculus 1 and Calculus 2 classes, homework assignments are given but are optional and are not graded. In this way, I can focus on problems that I am not familiar with, and know what material I can use to be prepared for class. If anything, the optional homework guides me and prepares me. The same can be said true for my Chemistry class that I took my freshman fall semester. Although homework was given, it was optional and was not graded. I used this homework as a means to know what would be covered in the tests and through that I was able to achieve an A in the class. When homework is optional, it becomes a tool to be used when needed.

I cannot say the same about required homework assignments. Although I have scored 90%+ on my Electronics 2, Microprocessors and Circuit Analysis classes, I have yet to even start on the homework. If I have proven my knowledge of the material through tests, why must I still do the homework? Why is it required in the first place? In some ways I don't hold it against the professors who assign the homework, as homework is a traditional part of education. Hopefully educators will eventually overcome this widely held belief that homework should be required as a means of succeeding and understanding the class. Anyways, I have homework to do, even if I won't remember a thing from it as I mindlessly drudge through it.

Monday, October 22, 2007

87.7~%!



Earlier today I received my score for my math test. To my joy, I received 79 points out of a total of 90 points. As much as I hate getting a B on my math test, I'm still glad that it wasn't the train wreck that I was somewhat concerned with. For this quarter, my tests average to a 93.4% for each test. Those are scores I can be confident with. Mrs. Shepard said that this section was the hardest covered, so I expect better performance in the future. A part of me is a bit regretful in not studying harder, or even completing all the homework. I could have easily achieved a solid A if I had studied my trig identities and did what was assigned (in fact, I am confident that I would have received around 100% if that was true). Mathematics relies on two things, perfection, and a solid grasp of the underlying concepts. Thankfully my experience goofing off in High School has proven to be a valuable lesson.

In high school I didn't care much, and much like a calculator only learned the methods to solving problems. By not understanding the concepts behind the work I did, I suffered both in problem solving, that required a strong grasp on how to use these ideas, and suffered in building upon that knowledge when new concepts were introduced (if you don't understand what you are doing now, its really hard to understand anything else!). College for me was a nice restart, both in electronics and math. If there's one thing I make sure of, it's that I understand what I am doing! (although my mind does wonder in Electronics 2...)

Saturday, October 20, 2007

Halfway through, Midterms and my new best friend.


Midterms started unofficially with a math test this past week. Unfortunately the review for the test was a lot easier than the actual test, so I had a false sense of security going into the test. I failed to remember all my trig identities(sin(x)^2 = (1-cos(2x))/2) and the integral of cosecant. I passed my last math test with a 99%, so I'm hoping for a B on this test. With a B I can easily make up for it with my other tests, and I may even be able to pull off an A in the class if I get a C on the test(I'm pretty confident in at least achieving a C). If all else fails, I still have the opportunity to make up one test at finals. College is important to me, so I do always make sure to cover my bases. While on the topic of math, I recently purchased a used Ti-89 Titanium. The titanium is, at least in my opinion, the best calculator on the market to own for Calculus. It has a built in solver that handles anything, derivatives, integration, and anything else you can think of. It's a dream come true for me, and I love the diversity of programs available for it. I even have a PLC simulator on my calculator!

Next week I have four midterms, DC motors, Circuit Analysis, Electronics 2, and Microcontrollers. I'm confident in my abilities with Microcontrollers, my favorite class this semester. As for the others, Electronics 2 and Circuit Analysis will provide a challenge, but DC motors should be mediocre in difficulty, at least from what the teacher has provided for sample questions.

Ubuntu 7.10 Gutsy Gibbons was just released. As I type this my computer is upgrading from 7.04 Feisty Fawn. Although I'm on top of my Linux, Python has been receiving some neglect. With so much going on(school...school...and more school), I rarely have motive to read my Python books on my free time. I hope over the holidays I can dedicate more time to Python, but with learning assembly I may dedicate more time to that instead. I'm probably going to purchase a microcontroller kit at the end of the semester and study assembly for the 68k processor(the processor used on my calculator). Electronics can be so overwhelming, so many things I wish I could learn!

Sunday, September 9, 2007

School has started..and I have a cold!


School started last week on a Thursday, which meant I only had one day of school that week. This past week was close to a full week of school, with only Monday off(due to Labor Day) and only having not taken one class, which is scheduled only on Mondays. After taking 6 of my 7 classes, I can say that I'm fairly happy with my schedule. Everyday gives me at least 2 hours break, and on Thursdays I have a 7 hour break, which I use to catch up on school work. Combine that with a 3 day weekend, and I have plenty of time for rest and homework.

My main concern, Calculus 2, doesn't appear to be that bad. I was able to complete all but 2 problems from the assignment given to the class(a total of 20 problems on it), and even spotted out 2 errors made by the teacher. We are using the books from last semester, which means I saved roughly $150 on a book. I still have to purchase a Ti-89 Titanium calculator, but even for $100 I'm still glad it is required. This gives me a reason to buy a very nice calculator that will help a lot, not only for Calculus but also for Engineering Physics that I will be taking either next semester or next Fall.

Coincidently, on the first day of school I was fortunate enough to start having acute sore throats in the morning everyday. Since the symptoms were happening only after I slept and have been going on up until now, I was pretty worried. Finally the full fledged sickness came out today, and I'm just glad I know what it is now. It feels like it's finally going away, and I should be fine after a few more days.

I also did a major overhaul on my Python game(a lot more efficient and easier to modify). I'm not sure if I'll continue working on it, since I want to move onto GUI applications in Python. In fact, I ordered wxPython in Action a few days ago. My Circuit Analysis class has had some homework on Series and Parallel circuits, so I developed a Python program to compute all values for it, including Voltage, Current, Power, and total Resistance. I intend to enhance it more and make a GUI for it.