Академический Документы
Профессиональный Документы
Культура Документы
Course Evals
A MSP430 microcontroller talks to the 1-wire chips in the sensor project, and to the radio chip. (Texas Inst.) ARM microcontrollers in cell phones are as powerful as desktop computers of a few years ago, and consume little power. (Made by many companies) Nowadays: programmable in high level languages like C. Minimalist chips like some PIC microcontrollers (Microchip) are still programmed in assembly language. Most microcontrollers are not good at multitasking, but excel at repetitive tasks requiring good timing.
Assembly Language
Strict syntax, few commands Commands differ for each controller Can make up variable names Can have subroutines Should have comments!
;-------; change LED pattern based on state of digit_index and dot_index ;-------Display_now movlw 0x05 xorwf dot_index,w ;test for end of digit movlw 0xFF ;pattern for blank column btfsc STATUS,Z goto D_lookup_3 ;it needs a blank bcf STATUS,C ;clear carry before a rotate rlf digit_index,w ;double the index because each addwf PCL,f ;takes two instructions
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.phanderson.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
Computer Interfacing
LabView PCI or PCMCIA cards and connector board very common in research labs
http://www.ni.com
QuickTime and a TIFF (Un compressed) decompressor are neede d to see this picture.
http://www.maxim-ic.com/products/1-wire/
1-wire chips allow multiple sensors to be connected to the same wire for weatherstations and similar devices. (Thermometer Demo)
Wireless sensor board can poll multiple sensors on the 1-wire bus.
Soldering Tips
Heat the part, then solder will flow onto it. If solder is only going onto your wire but not your motor, youve probably noticed that thin wires heat more quickly than chunky motors. Try heating the motor first, then bring the wire in just before soldering. Attach copper foil to your motor: copper solders easily Is the tip blackened (oxidized) so much that the solder wont melt? Dip the hot soldering iron in tip-tinner. Avoid touching the soldering iron to the sponge for more than about 1 second. Long contact will oxidize the tip. Work at the lowest temperature you can, to avoid oxidizing the tip. Sandpaper can be used in tough cases (let your tip cool off first), but eventually it will remove the tin plating on the iron. You will need a new tip someday.