Showing posts with label lcd. Show all posts
Showing posts with label lcd. Show all posts

Sunday, May 25, 2008

Updates with Pictures!


I decided to upload several pictures to show what exactly my little area looks like. I keep my soldering stuff off to the side, since what I mainly do deals with plug in prototyping and breadboarding. I realize my area is messy, but I do get things done.



This is my desk's electronics section, situated to the right of my computer. Since most of what I do involves interfacing the computers to program the microcontrollers, it works out to be a great spot. I'm thinking about putting a table next to my desk, but my parents probably won't like that idea. As you can see, my power supply is still being used to its fullest, making that $50 investment so worth it. You can also see my programmer and my STK500 and some paperwork.


Heres a closer shot of my microcontroller, GLCD, and the power supply. As you can tell it is extremely messy with wires, but as far as I'm concerned if they are connected right then why bother wasting time neatening it up. As you can see there is a Slurpee positioned right next to a power supply and sensitive electronics. I did not put that there, and I only realized it was there after I started taking pictures.


Here is the JTAGICEMKII that I bought recently. This thing is amazing, and was totally worth the investment. In fact, the debugger came in real handy earlier.

Just thought I'd include a picture of the STK500 since it is lying right next to the JTAGICEMKII. On the far right you'll see the header that connects to the JTAGICEMKII, which is very nice for quick programming and debugging.


And finally, a picture of my GLCD in action. Unfortunately when moving all the equipment for the electronics lab renovations at my college I forgot to backup all the programs onto my flash drive. I spent today redoing the entire program, and was able to make a better version of it. I next want to make it go through images like a slideshow, and that will require use of the PROGMEM feature of the AVR to prevent each picture from being loaded directly into RAM upon startup. Each 128x64 pixel monochrome image takes up 1024 bytes, or a quarter of the RAM.

Well, there it is, my work area. It isn't much, but it will be much once I get the STK600. I can't wait to move onto more advanced areas such as GPS, Wireless communication, Color GLCDs and 32 Bit processors.

Monday, March 24, 2008

Learning C Programming


I've decided to take up learning C for the AVR 8-bit microcontroller. Although I enjoy programming in ASM, larger scale projects require C programming. I suppose the LCD program was a wake up call as to how useful C programming is. I wanted to create a function in C that would output a string to the LCD display. Essentially I wanted to be able to type LCDPrint("Testing!"); and have "Testing!" appear on the display. After a few days working with C, I came up with a simple program that does just that. Arrays are fabulous for just this type of thing, and this was a great chance to learn the language.

Mr. Harrill, my electronics professor, has requested a project on outputting a keyboard to a LED display. I plan on interfacing the keyboard to an LCD display and then having that output go to the larger LED displays. This LCD program I made is the first step in that process. Since I don't want to have a large bundle of wires going to every LED controller or setting up extra hardware such as shift registers on the LED end, I need to work on doing USART communication between microcontrollers, and also interfacing with a keyboard. The keyboard seems to be quite easy, since I could probably setup an interrupt based system where it reads the bit value after each clock pulse. USART will be used simply because it's easy to use and is supported by nearly all AVR microcontrollers. I wish I had more time to work on all this, I barely had time to setup the LCD program. As stated earlier, classes, in this case macroeconomics, are crowding up my free time. Anyways, attached in this post is the program to interface with the 2x16 character LCD.

EDIT: Oh and did I mention I got a new job at the college?

LCD Interfacing Program: http://salgat.googlepages.com/LCDInterface.zip