Digital I/O

min

Nanna's Lab2

Catherine's Lab

Jury Hahn Jury Hahn

JOO YOUN'S lab

Chris Lab 2

Jadie OH Lab2

Dan

Rolf Lab 2


Lisa's chip programming experience:

It took me a few tries to simply program the chip. First, I didn't realize that the chip setting in the programming session I had opened up was not 18F452, and so I kept getting programming errors. After I realized that, the programming was fine. But then when I went to test to see if it worked, my regulator kept turning hot. I spent 3 hours taking apart my breadboard and reprogramming my chip, and I was still somehow shorting out the board. I grabbed one of Todd's model breadboards and compared the two, nearly going cross-eyed in the process. I made my board identical to his, to no avail. Finally, in pure exhaustion I just sat there, brooding, staring at my board, willing it to work. That was not successful. I anxiously remembered how a few of the pins on my microchip has been bent when I took it out of the flimsy pink bubblewrap it had been in, and the careless way I straightened them out with my pliers. Did I just plain ruin the chip to begin with? That somehow didn't seem right... But then- after counting down the pins for the umpteenth time—I spotted it! The ridiculous problem that I had managed to overlook in the 20 different times I scrutinized my board—I had my clock crystal one pin too low. After I stopped smacking my head against the wall, I moved the clock crystal, plugged in my power source, and voila!

Blink blink blink. Trust me, it's blinking. And then I got three of them going. Here's a .mov of them. So my biggest problems were simply careless oversights on my part. I think I may actually be learning this stuff in spite of myself.


Rebecca - I rigged up my board and wrote the code and configured and compiled and all that... and nothing. It seems I fried 2 microprocessors. I'm still checking and double-checking everything to figure out why and how.


Todd - In my lab I used the 18F252 Microprocesor instead of the 18F452 that was shown in class. Although all of these PIC chips are really similar, I found that using a different chip than we were shown in class made me really understand the concepts involved in wiring a project with a chip. After the frustratiion of the first lab -- getting my soldering skills up to snuff, finding neccessary parts, it felt really good to be able to complete this lab and write a few simple programs to make LEDs? blink in response to the input of switches. As you can tell from the pic, I like to build small, and I call this set-up on the little 3" breadbord the Lil Bastard (eventhough he knows who his Daddy is :)). I got the deli tray at delion and thought that the Lil Bastard looked quite delicious. Better than what you ususlly get at Delion, at least. The only frustration i felt this time around was due to my ridiculous schedule. I wish I had some more time to learn some PIC BASIC syntax so i could write something better. I'm especially interested in exploring the analog ins and outs on these chips and possibly feeding some audio signals through. Over the next couple of days I'll post some code, after I've looked at some code/syntax examples.


Shiu Feng - After settle down my board, I got my 18F452 fired. ;-( The reason is that I plug the power and ground ( +5V and GND ) on the both side of chip. The power from chip's right side is 5V with 5V DC Regulator, but the other side is 12V !! Orz I did the same thing with the SECOND chip before I know that I had made a cooking- board. I got locky because the second 18F452 chip didn't burned. Taking out the "Firewire", the brad board looks clear and easy to understand. Everything make sense now ! I add some LED on the board and make them blink.


Anh Nguyen - It took me many hours to get the microchip programmer to work. Some of the PIC programmers weren't being recognized by the computers because of loose serial connections. After my third one, I was able to program some chips, but blew one up 'cause i didn't run the power through my 5V regulator and accidently sent it 12v direct, which was quite fun actually. I also messed up some 18F452 by pulling them out with my hands- DOH! After some time, I got my 18F452 to work and was able to use a makeshift switch to make a series of lights blink successively. No pics this week, just a lot of frustration and releif once things started to work.


kate's lab 2


Charles Pratt- It all works, and all fits, but the transistor is starting to heat up quite a bit. Pretty much went off without a hitch.


========================

- Rolf:

Week 2

September 22, 2005

I got three Microcontrollers (great).

 Chris explained how to do the programming and with his help I got it to work. 

– Thanks.

Here’s the code:

DEFINE OSC 4 ‘oscillator (clock)

OUTPUT portd.0

OUTPUT portd.1

Main:

HIGH portd.0

PAUSE 1000 ‘millisecond = 1 sec.

LOW portd.0

PAUSE 100 ‘this is a shorter pause

HIGH portd.1

PAUSE 100

LOW portd.1

PAUSE 100

GOTO main

Looking at those two blinking light bulbs is great. I am starting to get ideas. Enclose is a drawing of the set up on the breadboard:

====================================

alex bisceglie's misfortune


Page last modified January 25, 2006, at 09:06 AM