This action might not be possible to undo. Are you sure you want to continue?
Dr. Cindy Harnett ECE Dept., U of Louisville Spring 2008
Course Evals .
and consume little power. but excel at repetitive tasks requiring good timing. Sometimes a custom made IC. • Minimalist chips like some PIC microcontrollers (Microchip) are still programmed in assembly language. and to the radio chip. .) • ARM microcontrollers in cell phones are as powerful as desktop computers of a few years ago. (Texas Inst. ARM MSP430 Microchip PICs Furby board • A MSP430 microcontroller talks to the 1-wire chips in the sensor project. • Most microcontrollers are not good at multitasking.Microcontrollers run the gadget universe •Remember all those “black dots” in our teardowns? Usually there’s a microcontroller underneath. (Made by many companies) • Nowadays: programmable in high level languages like C.
f .test for end of digit movlw 0xFF .clear carry before a rotate rlf digit_index.pattern for blank column btfsc STATUS.-------.w .w .Z goto D_lookup_3 .it needs a blank bcf STATUS.C .Assembly Language Strict syntax. few commands Commands differ for each controller Can make up variable names Can have subroutines Should have comments! .takes two instructions .-------Display_now movlw 0x05 xorwf dot_index.double the index because each addwf PCL. change LED pattern based on state of digit_index and dot_index .
and download your code onto the chip • Fancy hardware (debuggers. emulators) is usually available to catch run-time errors. • Get software that “cross-compiles” from your PC to the target chip.How do you program microcontrollers? • Get or build a programmer that plugs into a PC. Usually sold by the chip maker. . sometimes 3rd party • Usually there’s a free development environment that lets you code. compile. Can program in a ZIF socket or in a circuit.
Computer Interfacing (uses 68HC11 chips) • Or pick a starter project like lighting a 7-segment display and learn from examples • Microchip PICs are versatile and cheap--if you stick with assembly language-http://www.com • MSP430 tools are also inexpensive ($20-$40) • Or get a module like a Basic Stamp or Arduino. with a large online community and plenty of code .phanderson.Learning to use microcontrollers • Take ECE course specifically on microcontrollers: ECE 412.
phidgets.ni. dedicated circuits such as the 1-Wire DS2450 converter http://www.com Even cheaper.com Lower cost: “Phidgets” have analog inputs and USB to PC http://www.From last time: Computer Interfacing LabView PCI or PCMCIA cards and connector board very common in research labs http://www.com And many more… .maxim-ic.
maxim-ic. (Flow sensor demo) .com/products/1-wire/ “1-wire” chips allow multiple sensors to be connected to the same wire for weatherstations and similar devices.From last time: Demos based on lab projects at U of L: 1-Wire and wireless sensor interfacing QuickTime™ and a TIFF (Un compressed) decompressor are neede d to see this picture. http://www. (Thermometer Demo) Wireless sensor board can poll multiple sensors on the 1-wire bus.
• Slides and most websites I mentioned in the course are available on BlackBoard. This word is “drittletzt” in German .” Comments? What should be changed next year? • See IEEE student group for jumper wires/other gadget building tools. • Visit ECE labs in BRB/Lutz/Speed! *2 more slides after this one.Antepenultimate* Slide of the Entire Semester • Thanks for being the Gadget Lab “guinea pigs.
You will need a new tip someday. then bring the wire in just before soldering. Avoid touching the soldering iron to the sponge for more than about 1 second. Attach copper foil to your motor: copper solders easily Is the tip blackened (oxidized) so much that the solder won’t melt? Dip the hot soldering iron in tip-tinner. but eventually it will remove the tin plating on the iron.Soldering “Tips” Heat the part. Try heating the motor first. you’ve probably noticed that thin wires heat more quickly than chunky motors. then solder will flow onto it. Long contact will oxidize the tip. If solder is only going onto your wire but not your motor. Work at the lowest temperature you can. . Sandpaper can be used in tough cases (let your tip cool off first). to avoid oxidizing the tip.
16: Engineering Day at the • 727 West Main Street • 12:30-4:30 (drop in anytime) • Show off your projects at the ECE table .Project Time! And A Special Announcement-- Feb.