It's time for a review after completing 3 parts for the EE2A2 subject.
Part 1 - Create a "Hello World", and make a sequence where you are asked to make 1 pin into a high output or low output, or give you an error.
For this part, we use the HyperTerminal to communicate with the RS232. We need the expression of "if (kbhit()==1)" in order to allow the following orders to be executed when one of the keyboard note is pressed. At the same time, whenever an output is activated, at the same time, the particular pin that has a high/low output must be "physically shown" (which means we need to use the multimeter to test LOL.)
My first try was OK until the multimeter part when it didn't work. After changing some steps (especially from output_high to bit_set and vice versa) and changing to a particular location, it worked normally.
Date completed : 19th March 2009
Part 2 - Create your name, date of submission and name of college on the LCD
For this, I think this is easy once you get the idea on how to initialize the LCD operation properly. At first, I have been in such a blur in all the LCD operations, until after Nicholas explained it to me. After a few trial and errors, I finally get the words to come out from the LCD, but some of them that I don't want came out. For example, I want a capital K, it gives me capital O instead. Despite my efforts, after a few MORE tries, Mr Lee pointed out that I SHOULD NOT use the RS232 line, because it is interfering with the inputs I am putting on. Silly me, so I delete the RS232 and everything was OK, just a few more fine tuning to do and presto, its done!
Date completed : 2nd April 2009
Part 3 - Create a wave that the stepper motor use using your own settings.
For this part, this is where the fun of doing assignments begins. Even some of the top pros like Kelvin and Zeneng (mainly because Zeneng didn't follow Mr Lee's recommendations that he introduced last week.) still have trouble doing this, although Kelvin may have finished it by now (I hope.)
Anyway, the settings for the stepper motor is completely up to the user. Like Part 1, you need to use the HyperTerminal, so the expression "if(kbhit()==1)" should be here again. The fun part is, you need to use at least 2 body spaces in C++ programming in order to do this part. More interestingly, the pattern of which body goes first is tricky. *smirks* One is for the stepper motor to run while you send the RS232 to change settings accordingly. For me, this was a really mean task to do. What's more, due to the fact that all are unable to complete it in time because of a lot of errors, he gave us a grace period to hand in out last assignment next Tuesday.
Even with the extra time, I've done most of the work, but its still not working properly.. Currently, I am still rechecking my work and maybe add in a few missing pieces if possible.
Date of submission : 14th April 2009
That's all for the assignment review. Stay tuned!
hey u forget the copying other ppl's work part
ReplyDeleteSorry edited.
ReplyDeleteLooking at other people's part doesn't mean I copy them. Didn't you see mine in the first place before saying its being copied? *shrugs*
btw, when u saw omar code den straight anyway ask omar "omar, did u copy zeneng code?" i'm curious to know how come u know tat is zeneng code? r u copy zeneng code as well?
ReplyDeletesince u say u look other ppl code doesn't mean u cpoy their code, but once u see it u know that it is whose code, so from here very obvious tat the code edy in ur mind rite, so it's consider copy u know?
anyway, u said with extra time, you've done most of the code, but you're the last one who handed in, is this ashame yourself? oh god....you late for 5 days david...come on this kind of ashame stuff, don't write in ur blog pls.