Logic, Drive Control, and User Interface Integration of a Multidiscipline Kinetic Sculpture

Total Page:16

File Type:pdf, Size:1020Kb

Logic, Drive Control, and User Interface Integration of a Multidiscipline Kinetic Sculpture Logic, Drive Control, and User Interface Integration of a Multidiscipline Kinetic Sculpture Submitted By Jason D. Adrian IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR AN UNDERGRADUATE HONORS THESIS WITH A BACHELOR OF SCIENCE IN COMPUTER ENGINEERING School of Engineering Tufts University Medford, Massachusetts May 2004 Signature of Author: Committee: Jason D. Adrian Professor Joseph P. Noonan Dept. of Electrical and Computer Engineering Tufts University Committee: Committee Chair: Professor Chris Rogers Professor Chorng Hwa Chang Department of Mechanical Engineering Dept. of Electrical and Computer Engineering Tufts University Tufts University © Copyright 2004, by Jason Adrian Abstract Five diverse disciplines including mechanical, electrical, and computer engineering in tandem with human factors and child development helped create an interactive learning device called the kinetic sculpture. The kinetic sculpture consists of five engaging user interfaces that control the actions inside a Rube Goldberg-like device. The sculpture actions are controlled by DC, AC, and stepper motors along with solenoids to control the path of the ball in the sculpture. N-channel and P-channel MOSFETs were used extensively to control the motors and electronic components. The heart of the modular input devices is a PIC microcontroller which interfaces with both sensor inputs and LED output displays. The electrical and mechanical components together formed a unique and interactive learning device for elementary school children. i Table of Contents INTRODUCTION........................................................................................................................................ 3 DESIGN......................................................................................................................................................... 4 THE SCULPTURE ....................................................................................................................................... 5 Elevator ................................................................................................................................................ 6 Gate....................................................................................................................................................... 8 Turnstile ............................................................................................................................................... 9 Funnel ................................................................................................................................................ 10 Accelerator ......................................................................................................................................... 11 THE INPUT DEVICES ............................................................................................................................... 12 Simon.................................................................................................................................................. 13 Distance Piano ................................................................................................................................... 14 Grip..................................................................................................................................................... 15 Laser Maze ......................................................................................................................................... 15 Noise................................................................................................................................................... 16 PROTOTYPING ........................................................................................................................................ 16 PIC MICROCONTROLLERS ..................................................................................................................... 16 JDM PROGRAMMER ............................................................................................................................... 18 PROTOTYPE BOARD ................................................................................................................................19 MAJOR COMPONENTS............................................................................................................................. 21 IMPLEMENTATION................................................................................................................................24 THE SCULPTURE ..................................................................................................................................... 25 Elevator .............................................................................................................................................. 25 Gate..................................................................................................................................................... 31 Turnstile ............................................................................................................................................. 31 Funnel ................................................................................................................................................ 37 Accelerator ......................................................................................................................................... 38 INPUT DEVICES ....................................................................................................................................... 40 Simon.................................................................................................................................................. 43 Distance Piano ................................................................................................................................... 46 Grip..................................................................................................................................................... 49 Laser Maze ......................................................................................................................................... 51 Noise................................................................................................................................................... 54 AUDIO AND VISUAL FEEDBACK .............................................................................................................. 56 POWER SUPPLY ....................................................................................................................................... 57 SCULPTURE CONTROL CIRCUIT ENCLOSURE........................................................................................ 61 ANALYSIS.................................................................................................................................................. 63 FUTURE INTEGRATION WITH THE ROBO-TABLE .................................................................................. 65 CONCLUSION........................................................................................................................................... 66 SOURCES ................................................................................................................................................... 67 APPENDIX ................................................................................................................................................. 68 1 Table Of Figures Figure 1 - The Kinetic Sculpture ........................................................................................ 6 Figure 2 - Elevator Platform ............................................................................................... 7 Figure 3 - Top of Elevator With DC Motor........................................................................ 8 Figure 4 - Gate .................................................................................................................... 9 Figure 5 - Turnstile ........................................................................................................... 10 Figure 6 - Simulated Funnel ............................................................................................. 11 Figure 7 - Accelerator With AC Motor............................................................................. 12 Figure 8 - JDM Programmer............................................................................................. 18 Figure 9 - Custom Prototyping Board............................................................................... 21 Figure 10 - Happ Controls Large Arcade Button [4]........................................................ 23 Figure 11 - 12V Solenoid.................................................................................................. 24 Figure 12 - Elevator Circuit Diagram ............................................................................... 28 Figure 13 - Bi-Directional Elevator Circuit...................................................................... 30 Figure 14 - Applied Motion HT23-397 Stepper ............................................................... 33 Figure 15 - Turnstile Circuit Diagram .............................................................................. 35 Figure 16 - Turnstile Circuit ............................................................................................. 36 Figure 17 - Full Step State
Recommended publications
  • Practical Electronics
    Copyright Ó 2003, Wimborne Publishing Ltd (408 Wimborne Road East, Ferndown, Dorset, BH22 9ND, UK) and TechBites Interactive Inc., (PO Box 857, Madison, Alabama 35758, USA) All rights reserved. WARNING! The materials and works contained within EPE Online — which are made available by Wimborne Publishing Ltd and TechBites Interactive Inc — are copyrighted. You are permitted to make a backup copy of the downloaded file and one (1) hard copy of such materials and works for your personal use. International copyright laws, however, prohibit any further copying or reproduction of such materials and works, or any republication of any kind. TechBites Interactive Inc and Wimborne Publishing Ltd have used their best efforts in preparing these materials and works. However, TechBites Interactive Inc and Wimborne Publishing Ltd make no warranties of any kind, expressed or implied, with regard to the documentation or data contained herein, and specifically disclaim, without limitation, any implied warranties of merchantability and fitness for a particular purpose. Because of possible variances in the quality and condition of materials and workmanship used by readers, EPE Online, its publishers and agents disclaim any responsibility for the safe and proper functioning of reader-constructed projects based on or from information published in these materials and works. In no event shall TechBites Interactive Inc or Wimborne Publishing Ltd be responsible or liable for any loss of profit or any other commercial damages, including but not limited to special, incidental, consequential, or any other damages in connection with or arising out of furnishing, performance, or use of these materials and works. ISSN 0262 3617 PROJECTS .
    [Show full text]
  • Programming-8Bit-PIC
    Foreword Embedded microcontrollers are everywhere today. In the average household you will find them far beyond the obvious places like cell phones, calculators, and MP3 players. Hardly any new appliance arrives in the home without at least one controller and, most likely, there will be several—one microcontroller for the user interface (buttons and display), another to control the motor, and perhaps even an overall system manager. This applies whether the appliance in question is a washing machine, garage door opener, curling iron, or toothbrush. If the product uses a rechargeable battery, modern high density battery chemistries require intelligent chargers. A decade ago, there were significant barriers to learning how to use microcontrollers. The cheapest programmer was about a hundred dollars and application development required both erasable windowed parts—which cost about ten times the price of the one time programmable (OTP) version—and a UV Eraser to erase the windowed part. Debugging tools were the realm of professionals alone. Now most microcontrollers use Flash-based program memory that is electrically erasable. This means the device can be reprogrammed in the circuit—no UV eraser required and no special packages needed for development. The total cost to get started today is about twenty-five dollars which buys a PICkit™ 2 Starter Kit, providing programming and debugging for many Microchip Technology Inc. MCUs. Microchip Technology has always offered a free Integrated Development Environment (IDE) including an assembler and a simulator. It has never been less expensive to get started with embedded microcontrollers than it is today. While MPLAB® includes the assembler for free, assembly code is more cumbersome to write, in the first place, and also more difficult to maintain.
    [Show full text]
  • Extreme Low Power (XLP) PIC® Microcontrollers
    XLP PIC® MCUs eXtreme Low Power (XLP) PIC® Microcontrollers www.microchip.com/xlp Looking Beyond Low-Power MCUs Microchip’s XLP PIC® MCUs As more wearables, wireless sensor networks, and other Internet of Things (IoT) enabled smart devices are getting powered from battery, energy conservation becomes paramount. Today’s connected appli- cations must consume little power and, in extreme cases, last for up to 20+ years while running from a single battery. To enable applica- tions like these, products with Microchip’s eXtreme Low Power (XLP) technology offer the industry’s lowest Run and Sleep currents. Benefits of XLP PIC MCUs Low Sleep Currents Battery-Friendly VBAT Battery Back-Up Large Portfolio of XLP with Flexible Wake-Up Features • Automatic switch-over MCUs Sources • Enable battery lifetime upon loss of VDD • 8–121 pins, • Sleep current down greater than 20 years • Maintains Real-Time 4 KB–1 MB Flash to 9 nA • Low-power supervisors Clock/Calendar (RTCC) • Wide selection of • Brown-Out Reset (BOR) for safer operation and user registers packages down to 45 nA (BOR, WDT) • Powered seperately • Active mode currents as • Real-time clock down to • Core Independent Pe- from 1.8–3.6V source low as 30 µA/MHz with 300 nA ripherals (CIPs) take the (coin cell) efficient instruction set • Watch-Dog Timer (WDT) load off the CPU and per- with over 90% single- down to 200 nA form extremely complex cycle instructions tasks in self-sustaining mode at lowest possible energy requirement XLP PIC MCU Application Examples Internet of Things Smart Energy
    [Show full text]
  • MPLAB XC8 PIC Assembler User's Guide
    MPLAB® XC8 PIC® Assembler User's Guide Notice to Customers All documentation becomes dated and this manual is no exception. Microchip tools and documentation are constantly evolving to meet customer needs, so some actual dialogs and/or tool descriptions can differ from those in this document. Please refer to our web site (https://www.microchip.com) to obtain the latest documentation available. Documents are identified with a “DS” number. This number is located on the bottom of each page, in front of the page number. The numbering convention for the DS number is “DSXXXXXA,” where “XXXXX” is the document number and “A” is the revision level of the document. For the most up-to-date information on development tools, see the MPLAB® IDE online help. Select the Help menu, and then Topics to open a list of available online help files. © 2020 Microchip Technology Inc. User Guide DS50002974A-page 1 Table of Contents Notice to Customers.......................................................................................................................................1 1. Preface....................................................................................................................................................4 1.1. Conventions Used in This Guide..................................................................................................4 1.2. Recommended Reading...............................................................................................................5 1.3. Document Revision History..........................................................................................................5
    [Show full text]
  • MPLAB XC8 PIC Assembler User's Guide for Embedded Engineers
    MPLAB® XC8 PIC Assembler User's Guide for Embedded Engineers Notice to Customers All documentation becomes dated and this manual is no exception. Microchip tools and documentation are constantly evolving to meet customer needs, so some actual dialogs and/or tool descriptions can differ from those in this document. Please refer to our web site (https://www.microchip.com) to obtain the latest documentation available. Documents are identified with a “DS” number. This number is located on the bottom of each page, in front of the page number. The numbering convention for the DS number is “DSXXXXXA,” where “XXXXX” is the document number and “A” is the revision level of the document. For the most up-to-date information on development tools, see the MPLAB® IDE online help. Select the Help menu, and then Topics to open a list of available online help files. © 2020 Microchip Technology Inc. User Guide 50002994A-page 1 Table of Contents 1. Preface....................................................................................................................................................4 Notice to Customers................................................................................................................................1 1.1. Conventions Used in This Guide..................................................................................................4 1.2. Recommended Reading...............................................................................................................5 1.3. Document Revision History..........................................................................................................5
    [Show full text]
  • Picmicro Mid-Range MCU Family Reference Manual
    M PICmicro™ Mid-Range MCU Family Reference Manual 1997 Microchip Technology Inc. December 1997 /DS33023A M Internationally Recognized Quality System Certifications Microchip’s Quality System embodies the requirements of ISO9001:1994. Our Microchip Chandler and Tempe Design and Manufacturing facilities have been certified to ISO 9001. The Microchip Kaohsiung Test facility, and primary Assembly houses have been certified to ISO 9002. ISO certification plans are in-process for an esti- mated certification grant by year-end 1997. In addition, Microchip has received numerous customer certifica- tions, including a Delco issued certificate of compliance to AEC-A100/QS9000. Microchip received ISO 9001 Quality System certifica- tion for its worldwide headquarters, design, and wafer fabrication facilities in January, 1997. Our field-pro- grammable PICmicro™ 8-bit MCUs, Serial EEPROMs, related specialty memory products and development systems conform to the stringent quality standards of the International Standard Organization (ISO). “All rights reserved. Copyright © 1997, Microchip Technology Trademarks Incorporated, USA. Information contained in this publication regarding device applications and the like is intended through The Microchip name, logo, PIC, KEELOQ, PICMASTER, suggestion only and may be superseded by updates. No rep- PICSTART, PRO MATE, and SEEVAL are registered resentation or warranty is given and no liability is assumed by trademarks of Microchip Technology Incorporated in the Microchip Technology Incorporated with respect to the accu- U.S.A. racy or use of such information, or infringement of patents or other intellectual property rights arising from such use or oth- MPLAB, PICmicro, ICSP and In-Circuit Serial Programming erwise. Use of Microchip’s products as critical components in are trademarks of Microchip Technology Incorporated.
    [Show full text]
  • Experience of Teaching the Pic Microcontrollers
    Session 1520 EXPERIENCE OF TEACHING THE PIC MICROCONTROLLERS Han-Way Huang, Shu-Jen Chen Minnesota State University, Mankato, Minnesota/ DeVry University, Tinley Park, Illinois Abstract This paper reports our experience in teaching the Microchip 8-bit PIC microcontrollers. The 8-bit Motorola 68HC11 microcontroller has been taught extensively in our introductory microprocessor courses and used in many student design projects in the last twelve years. However, the microcontroller market place has changed considerably in the recent years. Motorola stopped new development for the 68HC11 and introduced the 8- bit 68HC908 and the 16-bit HCS12 with the hope that customers will migrate their low- end and high-end applications of the 68HC11 to these microcontrollers, respectively. On the other hand, 8-bit microcontrollers from other vendors also gain significant market share in the last few years. The Microchip 8-bit microcontrollers are among the most popular microcontrollers in use today. In addition to the SPI, USART, timer functions, and A/D converter available in the 68HC11 [6], the PIC microcontrollers from Microchip also provide peripheral functions such as CAN, I2C, and PWM. The controller-area- network (CAN) has been widely used in automotive and process control applications. The Inter-Integrated Circuit (I2C) has been widely used in interfacing peripheral chips to the microcontroller whereas the Pulse Width Modulation (PWM) function has been used extensively in motor control. After considering the change in microcontrollers and the technology evolution, we decided to teach the Microchip 8-bit microcontrollers. 1 Several major issues need to be addressed before a new microcontroller can be taught: textbook, demo boards, and development software and hardware tools.
    [Show full text]
  • Mplab C18 C Compiler Getting Started
    MPLAB® C18 C COMPILER GETTING STARTED © 2005 Microchip Technology Inc. DS51295F Note the following details of the code protection feature on Microchip devices: • Microchip products meet the specification contained in their particular Microchip Data Sheet. • Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions. • There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data Sheets. Most likely, the person doing so is engaged in theft of intellectual property. • Microchip is willing to work with the customer who is concerned about the integrity of their code. • Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as “unbreakable.” Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act. Information contained in this publication regarding device Trademarks applications and the like is provided only for your convenience The Microchip name and logo, the Microchip logo, Accuron, and may be superseded by updates. It is your responsibility to dsPIC, KEELOQ, microID, MPLAB, PIC, PICmicro, PICSTART, ensure that your application meets with your specifications.
    [Show full text]
  • COOLANT OIL CONTROL SYSTEM in VMC MACHINE ”Is the Bonafide Work Of
    COOLANT OIL CONTROL SYSTEM IN VMC MACHINE A PROJECT REPORT Submitted by RAJAGANAPATHY.S (13BEI111) GOWTHAMVEL.P (13BEI018) SANTHOSE PRABU.R (13BEI050) in partial fulfillment for the award of the degree of BACHELOR OF ENGINEERING in ELECTRONICS AND INSTRUMENTATION ENGINEERING KUMARAGURU COLLEGE OF TECHNOLOGY (An Autonomous Institution, Affiliated to Anna University,Chennai) COIMBATORE 641049 APRIL 2017 1 COOLANT OIL CONTROL SYSTEM IN VMC MACHINE A PROJECT REPORT Submitted by RAJAGANAPATHY.S (13BEI111) GOWTHAMVEL.P (13BEI018) SANTHOSE PRABU.R (13BEI050) in partial fulfillment for the award of the degree of BACHELOR OF ENGINEERING in ELECTRONICS AND INSTRUMENTATION ENGINEERING KUMARAGURU COLLEGE OF TECHNOLOGY (An Autonomous Institution, Affiliated to Anna University,Chennai) COIMBATORE 641049 APRIL 2017 2 BONAFIDE CERTIFICATE Certified that this project report “COOLANT OIL CONTROL SYSTEM IN VMC MACHINE ”is the bonafide work of RAJAGANAPATHY.S (13BEI111) GOWTHAMVEL.P (13BEI018) SANTHOSE PRABU.R (13BEI050) who carried out the project work under my supervision. SIGNATURE SIGNATURE Dr.N.EZHILARASI Mr.S.SARAVANA KUMAR HEAD OF THE DEPARTMENT SUPERVISOR Dept. of Electronics and Instrumentation Assistant Professor Kumaraguru College of Technology Dept. of Electronics and Instrumentation Coimbatore-641049 Kumaraguru College of Technology Coimbatore-641049 The candidates were examined by us in the project viva voce examination held on INTERNAL EXAMINER EXTERNAL EXAMINER 3 ACKNOWLDEGEMENT The satisfaction that accompanies the successful completion of any task would be incomplete without mentioning about the people whose constant guidance and encouragement crowns all effort with success. We are greatly indebted to our beloved Principal Dr.R.S.KUMAR, who has been the backbone of all our deeds. We express our gratitude to Dr.N.EZHILARASI, Head, Department of Electronics and Instrumentation Engineering, Kumaraguru College of Technology for her constant encouragement.
    [Show full text]
  • MPLAB Snap In-Circuit Debugger Information Sheet
    MPLAB® SNAP IN-CIRCUIT DEBUGGER MPLAB® Snap In-Circuit Debugger Information Sheet INTRODUCTION The MPLAB® Snap In-Circuit Debugger (PG164100) is an ultra-low priced debugging solution for projects not requiring high-voltage programming or advanced debug features. Therefore, it supports many of Microchip’s newer MCU offerings but not some legacy products. With a nominal feature set, the debugger is geared toward developers who don’t require advanced features. It is not intended for production programming. Note: Refer to the MPLAB® PICkit™ 4 In-Circuit Debugger and the MPLAB X IDE User’s Guides or online help for additional information. • Description • Features • MPLAB Snap In-Circuit Debugger Components • Additional Items Needed • MPLAB Snap vs. MPLAB PICkit 4 Comparison • Pinout Information • LEDs • Debugger to Target Communication • Debugger Options Selection • Troubleshooting DESCRIPTION The MPLAB Snap In-Circuit Debugger allows fast and easy debugging and programming using the powerful graphical user interface of MPLAB X IDE (Integrated Development Environment) or MPLAB IPE (Integrated Programming Environment). The debugger works with Microchip PIC®, dsPIC® Flash, AVR®, or DSC® devices. It will also work with 32-bit based microcontroller, such as SAM, CEC and PIC32 devices. The MPLAB Snap connects to the computer using a high-speed 2.0 USB interface and connects to the target via a Microchip debug 8-pin Single In-Line (SIL) connector. The SIL connector uses two device I/O pins and the reset line to implement in-circuit debugging and In-Circuit Serial Programming™ (ICSP™). The MPLAB Snap supports advanced interfaces such as 4-wire JTAG and Serial Wire Debug with streaming Data Gateway, while being backward compatible for demo boards, headers and target systems using 2-wire JTAG and ICSP.
    [Show full text]
  • Custom Control Module for the Teach-Robot
    Custom Control Module for the Teach-Robot David Cumbow, Christopher Dufault and John O’Connor CSCI 595 Spring 2007 June 15, 2007 Abstract This paper is being presented not only as a final report for the CSCI 595 course, but also as a point of reference for the control module made by David Cumbow, Christopher Dufault and John O’Connor during the course of this class. All data within this document is released under the Creative Commons License and is free to use with proper reference. 1 Contents 1 Introduction 3 1.1 Vision . 3 1.2 Plan and Research . 3 1.3 Building the Module . 3 2 Hardware and Software Information 3 2.1 Motors . 3 2.2 Arm Pinout . 4 2.3 H-Bridge . 4 2.4 Microcontroller . 4 2.5 Sample Microcontroller Source Code . 4 3 Conclusion 5 2 1 Introduction Going into this Independent Study, we had a vague idea of what we wanted to complete. While there were many options to continue previous projects or complete a project based on the OOPic Microcontroller, we wanted something different. Given this we chose to create a control module for a set of robotic arms made by Baden-Baden that were purchased by the school many years ago. With very little online and physical documentation for the arms, we were certain this was going to be a challenge. 1.1 Vision Our vision for this project is to create a fully programmable control module with the ability to monitor feedback from the motors to calculate the position of the arm in space.
    [Show full text]
  • Flowcode 7 Installed
    Getting Started Guide Getting Started Guide Introduction Flowcode is an Integrated Development Environment (IDE) for programming microcontrollers such as 8, 16 and 32bit PIC, Arduino and ARM devices. It achieves this by using flowcharts instead of text based languages, thus making programming simpler and faster. Flowcode also contains hundreds of pre-made component libraries, allowing users to interface with a host of sensors, inputs and outputs and electro-mechanical components with ease. Despite its simplicity and ease of use, Flowcode is a powerful tool allowing users to develop even the most complex of embedded systems. Flowcode supports both Matrix and 3rd party hardware. In this guide we will create examples based on three different sets of hardware; 1. Matrix EB006 multi-programmer and EB083 development board 2. Arduino Uno and Matrix EB083 development board 3. Microchip Xpress development board Prerequisites • A Windows based PC with a copy of Flowcode 7 installed Should haves for this guide • Supported hardware – a list covered in this guide is provided above • USB cable to both power and program the microcontroller of choice What we’ll cover in this guide? This guide will be split into two main sections: In section 1 we will provide an overview of the Flowcode IDE. How users interact with the environment, add components to the simulation panel and create flowcharts. In section 2 we will run through three examples which will increase in complexity and teach you how to create microcontroller programs. Copyright © 2016 Matrix Technology Solutions Ltd. 2 Getting Started Guide Section 1: The Flowcode IDE In this section we will provide an overview of Flowcode, detailing the programming interface and how users interact with it to create microcontroller programs.
    [Show full text]