Circuit Cellar No.269
Total Page:16
File Type:pdf, Size:1020Kb
PROJECT: Proximity Card Access Control INSIGHT: Determine a Design’s Failure Rate INNOVATE: Power-Up with Heat LOCATION: United States LOCATION: Canada LOCATION: United States PAGE: 34 PAGE: 64 PAGE: 68 N O 269 CIRCUIT CELLAR THE WoRLD’S SoURCE foR EMBEDDED ELECTRonICS EnGInEERInG InfoRMaTIon DECEMBER 2012 The World’s Source for Embedded Electronics Engineering Information ISSUE 269 PROGRAMMABLE LOGIC MCU-Based Bike Computer Inside Arduino’s Power Supply Linux & Concurrency DECEMBER 2012 PROGRAMMABLE LOGIC Synchronous Detection Explained Electrically Actuated Sound Effects PLUS Green Energy Design Innovative RL78-Based Projects // Electrostatic Cleaning Robot // Solar-Powered Water Heater // Portable Power Quality Meter www.circuitcellar.com NowNNow withwiwitithth 32MB3322MMB FlashFllasashh andand 64MB64M4MBMBB RAM!RAM! MOD54415 Core Module NANO54415 Core Module 32-bit 250 MHz processor 32-bit 250 MHz processor 64MB DDR2 RAM 64MB DDR2 RAM 32MB ash 8MB ash $ 00 10/100 Mbps Ethernet 10/100 Mbps Ethernet 69 Qty.. 100100ytQ 44 general purpose I/O 30 general purpose I/O Eight UARTs Eight UARTs NANO54415 Five I2C Four I2C Two CAN Two CAN 3 SPI 3 SPI 1-Wire® 1-Wire® 5 pulse width modulators (PWM) 8 pulse width modulators (PWM) SSI SSI MicroSD ash card MicroSD ash card ready $ 00 8 analog to digital converters (ADC) 6 analog to digital converters (ADC) Qty.tQ yy.. 100 Two digital to analog converters (DAC) Two digital to analog converters (DAC) MOD54415 89 Quickly create and deploy applications from your Mac or Windows PC Low cost NetBurner development kits are available to customize Development Kit for MOD54415 any aspect of operation including web pages, data ltering, or custom Part No. NNDK-MOD54415-KIT $99.00 for a limited time network applications. The kit includes platform hardware, ANSI C/C++ compiler, TCP/IP stack, web server, e-mail protocols, RTOS, ash le system, Development Kit for NANO54415 Eclipse IDE, debugger, and cables. The kit enables you to communicate with Part No. NNDK-NANO54415-KIT peripherals that use SD/MMC Flash Card (including SDHC), SPI, I2C, or the $99.00 general purpose digital I/O interface. The NetBurner security suite option includes SSH v1, v2 and SSL support. Information and Sales | [email protected] Web | www.netburner.com Telephone | 1-800-695-6828 DESIGNSPARK NEW. FREE. DESIGNSPARK PCB VERSION 4 COMPREHENSIVE NEW LIBRARIES. EASIER COMPONENT SELECTION & QUOTATION. NEW PCB PROTOTYPING SUPPORT. Discover today at UNIQUE www.designspark.com RESOURCES BY TASK MANAGER THE WORLD’S SOURCE FOR EMBEDDED ELECTRONICS ENGINEERING INFORMATION Before I introduce the articles in this issue, I want to take the EDITORIAL CALENDAR opportunity to thank Steve Ciarcia for bringing the electrical engi- IssUE THEME neering community 25 years of innovative projects, essential 270 January Embedded Applications 271 february Wireless Communications content, and industry insight. Since 1988, he’s devoted himself to 272 March Robotics the pursuit of EE innovation and publishing excellence, and we’re 273 April Embedded Programming all better off for it. I encourage you to read Steve’s final “Priority 274 May Measurement & sensors 275 June Communications Interrupt” editorial on page 80. I’m sure you’ll agree that there’s no 276 July Internet & Connectivity better way to begin the next 25 years of innovation than by taking 277 August Embedded Development a moment to understand and celebrate our past. Thanks, Steve. 278 september Data Acquisition 279 October signal Processing 280 November Analog Techniques Break Through Designer’s Block 281 December Programmable Logic Analog Techniques: Projects and components dealing with analog signal Are you experiencing designer’s block? Having a hard time acquisition and generation (e.g., EMI/RF reduction, high-speed signal integrity, signal conditioning, A/D and D/A converters, and analog programmable logic) starting a new project? You aren’t alone. After more than 11 months of designing and programming (which invariably Communications: Projects that deal with computer networking, human-to- human interaction, human-to-computer interaction, and electronic information involved numerous successes and failures), many engineers are sharing (e.g., speech recognition, data transmission, Ethernet, USB, I2C, and SPI) simply spent. But don’t worry. Just like every other year, new Data Acquisition: Projects, technologies, and algorithms for real-world data projects are just around the corner. Sooner or later you’ll regain gathering and monitoring (e.g., peripheral interfaces, sensors, sensor net- your energy and find yourself back in action. Plus, we’re here to works, signal conditioning, ADCs/DACs, data analysis, and post-processing) give you a boost. This issue is packed with projects that are sure Embedded Applications: Projects that feature embedded controllers and MCU-based system design (e.g., automotive applications, test equipment, to inspire your next flurry of innovation. simulators, consumer electronics, real-time control, and low-power techniques) Turn to page 16 to learn how Dan Karmann built the Embedded Development: Tools and techniques used to develop new hard- “EBikeMeter” MCU-based bicycle computer. He details the hard- ware or software (e.g., prototyping and simulation, emulators, development ware and firmware, as well as the assembly process. tools, programming languages, HDL, RTOSes, debugging tools, and useful tips) Another interesting project is Joe Pfeiffer’s bell ringer system Embedded Programming: The software used in embedded applications (p. 26). Although the design is intended for generating sound (e.g., programming languages, RTOSes, file systems, protocols, embedded Linux, and algorithms) effects in a theater, you can build a similar system for any num- Internet & Connectivity: Applications that deal with connectivity and ber of other uses. Internet-enabled systems (e.g., networking chips, protocol stacks, device You probably don’t have to be coerced into getting excited servers, and physical layer interfaces) about a home control project. Most engineers love them. Check Measurement & sensors: Projects and technologies that deal with sensors, out Scott Weber’s garage door control system (p. 34). He built it interfaces, and actuators (e.g., one-wire sensors, MEMS sensors, and sensor interface techniques) around a PIC18F2221 and a 125-kHz proximity card and reader. Once considered a hobby part, Arduino is now implemented Programmable Logic: Projects that utilize FPGAs, PLDs, and other program- mable logic chips (e.g., dynamic reconfiguration, memory, and HDLs) in countless innovative ways by professional engineers like Ed Nisley. Read Ed’s article before you start your next Arduino-relat- Robotics: Projects about robot systems, devices capable of repeating motion sequences, and MCU-based motor control designs (e.g., mobile robots, motor ed project (p. 44). He covers the essential, but often overlooked, drives, proximity sensing, power control, navigation, and accelerometers) topic of the Arduino’s built-in power supply. signal Processing: Projects and technology related to the real-time processing Need to extract a signal in a noisy environment? Consider a of signals (e.g., DSP chips, signal conditioning, ADCs/DACs, filters, and compar- lock-in amplifier. On page 50, Robert Lacoste describes synchro- isons of RISC, DSP, VLIW, etc.) nous detection, which is a useful way to extract a signal. Wireless Communications: Technology and methods for going wireless (e.g., This month, Bob Japenga continues his series, “Concurrency radio modems, Wi-Fi/IEEE 802.11x, Bluetooth, ZigBee/IEEE 802.15.4, cellular, infrared/IrDA, and MCU-based wireless security applications) in Embedded Systems” (p. 58). He covers “the mechanisms to create concurrently in your software through processes and UPCOMING IN CIRCUIT CELLAR threads.” fEATUREs On page 64, George Novacek presents the second article in Build a function Generator, by Larry Cicchinelli his series, “Product Reliability.” He explains the importance of MCU-Based Model Helicopter Controller, by Akshay Dhawan and failure rate data and how to use the information. Sergio Biagioni Jeff Bachiochi wraps up the issue with a article about using Open-source Hardware Development, by John Vaughn, Tomas heat to power up electronic devices (p. 68). Fire and a Peltier Carvalho e Silva, and Josh Davis device can save the day when you need to charge a cell phone! Control Center software Design, by Scott Weber Lastly, be sure to set aside time to carefully study the prize- COLUMNs winning projects from the Reneas RL78 Green Energy Challenge Web-Based Tools for Home-Energy Efficiency, by Jeff Bachiochi (p. 30). Among the noteworthy designs are an electrostatic cleaning robot and a solar energy-harvesting system. failure Mode and Criticality Analysis, by George Novacek Embedded Authentication, by Patrick Schaumont December December 2012 – Issue 269 [email protected] CIRCUIT CELLAR® 2 CIRCUIT CELLAR® • www.circuitcellar.com 2 Issue 194 September 2006 INSIDE ISSUE 269December 2012 • Programmable Logic 16 Build an MCU-Based Bicycle Computer Green Energy Design Projects Dan Karmann Electrostatic Cleaning Robot 26 Electrically Actuated Sound Effects A Circuit and Firmware to Ring a Phone Bell Joe Pfeiffer 30 RL78 Green Energy Challenge Winners 34 Controlling Access with a Proximity Card Open the Door to Manchester Encoding The “Sun Chaser” Energy-Harvesting System Scott Weber Manchester-Encoded RFID Arduino Board’s Built-In Reader p. 34 Power Supply p.