Home
Lecture Slides
Contents
1. V e The ADC is one of several devices connected to the internal I2C bus INE 3 ae I 4 AS x ala PCF8591 What is 12C e A serial bus 1 signal line 1 clock defined by Philips to allow integrated circuits to communicate e Standardized hardware and communication protocol e Recognized standard throughout the electronics industry e Example your smart phone has a processor that probably communicates with multiple internal devices with l2C or a similar bus like SPI How to access 2C e One year ago ECE2031 students created an 2C peripheral for SCOMP e A similar implementation is now provided to you ready to use e Details about how to access It and how to use it to communicate with ADC will be provided Audio feedback e You CAN generate sound like the startup beeps in PCs e Most of what you need will be given to you but some of the integration with SCOMP will be left as an exercise e More information will be provided on the project web page Inducing failure e Robots will generally be fully functional e Some bad robots will probably be desired e Watch for updates We will probably have one or more robots for QUICK usage by all students with several possible faults o Variable power supply to simulate low battery o One or more disconnected sonar transducers o Disconnected motor o Disconnected encoder Project starting point e Start with SCOMP that is provided to you o it will impl
2. sonar that doesn t mean you shouldn t test them all e Consider the use of a troubleshooting tree in your user manual o Depending on the result of a test you may consider alternate subsequent tests or simply end the process with some conclusion o Look up decision tree for examples in various contexts Optional DE2 board functions e The DE2 board includes VGA output keyboard input and mouse input e You CAN use these features but they are advanced functions o We do not have time to properly discuss them in lecture o And you may have to add steps just to test the features themselves before using them o They are an inconvenience for a future user to connect o You might get a better grade by ignoring them and doing better tests e Before you choose to use them read the relevant sections of Hamblen amp Furman and decide if you can interface them to your SCOMP if applicable You may even want to complete the interface BEFORE submitting your proposal Project details e If it is effective your self test can suggest targeted use of oscilloscope and logic analyzer o Once a failure is detected your user manual or user display can suggest the use of this external equipment e You can supply gadgets or measuring devices but it s preferable NOT to need any special accessories to run your tests o But you probably SHOULD use common objects like books or notepads to test sonar What should NOT be tested e Od
3. Final Design Project ECE2031 Spring 2013 Final project e You have now built an entire computer within the DE2 board e Now you will o Learn about using the DE2 on a robot o Create an application for it and o Demonstrate it The current ECE2031 Robot e In Summer 2010 older lab robots were gutted adding a new internal controller board and a connected DE2 on top e Beginning Fall 2010 capabilities have been added each semester AlteraBot hardware architecture Digital Design Lab customization Commercial AmigoBot product e The DE2 FPGA has direct access to robot sensors and actuators e ECE 2031 projects add new capabilities Past ECE2031 Robot Projects e Velocity position feedback from wheels e Open loop velocity control e Processing of sonar obstacle sensors e Wall following demonstration e C interface needed for sound battery monitoring e Odometry dead reckoning with wheel rotation sensors e Audio codec interface for sound output stem lution of robot I O subsy O j en me rs Digital PE d Motor Control 2 nf 2C Clock Data i op S U go O a O 8 TeVIOUS robot 1 9 Je A Analog ignals cmp Project 5 5 N WA L Future 1 9 devices Topic for Spring 2013 Self test e Understand functionality of robot e Take advantage of provided I O devices e Write an SCOMP program that performs a self test of the robo
4. ING BREAK SPRING BREAK SPRING BREAK SPRING BREAK BREAK 25 26 27 28 29 OPEN HOURS Project work Project work Project work EXAM IN LECTURE April 1 2 3 4 5 OPEN HOURS Practical Exam Practical Exam Practical Exam Project Q amp A 8 9 10 11 12 OPEN HOURS Project work Project work Project work Presentation and communication tips 15 16 17 18 19 OPEN HOURS Project work Project work Project work Design Report Tips 22 23 24 25 26 OPEN HOURS Project Demos and Project Demos and Project Demos and No lecture presentations presentations presentations LAB CLOSED CLOSED Lecture activity on Thursday is the same Saturday 9 LAB CLOSED 16 LAB CLOSED CLOSED 6 LAB CLOSED 13 LAB CLOSED 20 LAB CLOSED REPORTS DUE MONDAY NOON Project Demo e Your demo will be separate from your oral PowerPoint presentation o Both done in last day of lab e Compete head to head with other teams in the entire class all lab sections e All section results compiled to rank teams for 500 point demo score e Details later Brainstorming proposal e Review these slides e Get with your project team groups of four or five e Use collaborative process described in the Design Logbook and other information provided on the UPCP web site watch for email e Come up with a technical approach and management plan e Write proposal in the format described on the UPCP web site and in the workbook e Your pr
5. certain button and if DE2 board displays the right thing then at least that button and that display seem to be working Test functions within the FPGA if applicable Test functions involving other DE2 I O if applicable Test battery Test robot functions involving sensors Sonar wheel encoders Test robot functions involving actuators motors Example of good self test practice Consider a PC and the boot BIOS screen Usually the PC beeps first o That is its simplest communication to the user o If it doesn t beep you may suspect something serious is wrong THEN it starts testing processor and memory o Sometimes repetitive beep codes are used to communicate faults detected in the processor memory keyboard core system THEN it detects plug and play devices and may perform basic tests on some of them o By this point a video screen is assumed for user interaction especially if display adapter is passing tests o Keyboard may be used to alter operation FINALLY the operating system boots and performs the most advanced tests as drivers load More good self test practice e Minimize the need to refer to written instructions in the user manual o Optimize use of LEDs LCD and 7 segment displays e When aclear failure is found consider whether it is practical to continue testing o If you do not sense manual movement of wheels it would not make sense to test the motors for example o On the other hand if you find one bad
6. ement all instructions o it will have an additional DE2 I O device working LCD o It will implement an 8 level subroutine call stack e Modify VHDL BDF files as needed e Write SCASM e f you choose to add SCOMP instructions note that you need to change a LOCAL copy of SCASM cfg Project Decision Space e What features to test e How to test them e Order in which to test them e Modification of existing displays LCD segment LEDs e Use of displays switches to interact with user e Degree of selfness vs requirement of user operations e Use external test equipment Project phases and key dates e Introductory exercises March 12 14 in your regular lab section o Investigate project starting point provided for you e Brainstorm your approach and turn in proposal on April 9 11 in your lab section e Complete your design e Final demonstration April 23 25 o Make a PowerPoint presentation explaining what worked amp what didn t o Demonstrate your solution Points for your demo will factor into your grade o Turn in user manual the following Monday April 29 To Kevin Johnson by noon Project Schedule 8 March 7 Project background Project background 10 11 12 13 14 15 LAB OPEN HOURS Pre project Pre project Pre project Design Proposal CLOSED Exercises amp Exercises amp Exercises amp lecture amp Exam Brainstorming Brainstorming Brainstorming Review 18 19 20 21 22 SPRING SPR
7. fications will be posted on the web site or as direct answers to email o When a general question is asked everyone gets copied on the anonymized response
8. ometry it requires moving the robot off the table e Anything else that would require moving the robot from its fixed stand on the table e External memory IR USB Ethernet video input hard and simply not needed What constitutes test failure e Some specifications will be provided such as o sonar range and accuracy o Encoder wheel counts per revolution e You can establish your own specifications where none exist based on experience with many robots e If you make specifications make them such that mosi all robots pass them Should test the battery Yes A low battery is a common cause of problems some protections are built in o The hardware will not allow the motors to enable when the battery level drops below about 10 8 volts o Yellow LED on robot will turn on when this happens o Battery cuts off power to the LED at an even lower level But the user would want to at least know the current battery voltage A thorough battery test requires a slow charge many hours followed by a discharge at normal usage rates possibly several hours o So you do not have time for such a thorough test How do test the battery e There is an analog to digital converter ADC in the robot that SCOMP can read e Analog inputs larger than 5 V would damage ADG e A scaled version of the battery is used instead o Analog input 0 is battery voltage multiplied by 118 118 487 o So for example 12 V shows up as 2 34
9. oposal will be graded like any other report for style formatting content etc Your proposal should be detailed e Your proposal should explicitly describe how you address each of the items in the earlier Decision Space slide o Include some figures such as statecharts block diagrams e Should describe how it will be programmed in SCOMP o Do not show lots of code that comes later o Again include relevant figures such as a flowchart e Should describe problems likely to be encountered with ways to address them o Include backup plans if a high risk task fails e Assign task responsibilities as you decide what is most interesting to each team member e More on this next week in lecture Experiment before proposing e During your first project day in the lab conduct these activities o Investigate the design file template provided o Drill down into the details of the devices e I O decoder e SCOMP with 8 level stack all commands o Watch for posted exercises on project download page e It is never too early to prototype some ideas for your approach o What might be too hard Prelab activities for next week e Last Prelab Quiz will cover o Chapter 15 of textbook o These slides e Follow instructions in email from Kevin Johnson will be sent Friday afternoon regarding logbook and brainstorming o You will not need the lab to complete this but will need to print a few pages Clarifications e Additional clari
10. ource for future students o Chosen designs will be placed on web site as project downloads o And one design could be the default file loaded in all robots Bad self test practice e Suppose the first thing you test is a command telling the robot to turn a wheel at a certain velocity e f nothing happens was it because O O OO 0 O The motors never had power applied to them The motors are broken The wheel encoder needed for velocity sensing is broken The VHDL device that estimates velocity isn t processing encoder signals correctly The test program was never downloaded properly to the FPGA e Some of these you could probably eliminate by providing verbose instructions to the user e g Did the program load Did the wheel turn at all O But you would rather minimize manual operations in a good self test procedure e Other possibilities could not be eliminated because you simply are testing too many things all at once Good self test practice e Establish communication and start testing from the FPGA outward to the DE2 board peripherals and finally to the robot sensors and actuators e For example you may want to test items in the following sequence O O O O O Display something that shows correct downloading of the chip and indicates that at least part of the display is working Establish a basic communication between human user and FPGA chip Example User manual tells user to press a
11. t sitting in a fixed location on a desktop e Design space o Utilize the robot and its attached DE2 hardware and possibly instructing the user to attach oscilloscope or logic analyzer o Add new I O peripherals or improve existing ones as needed e Requirement Application must be a program running on SCOMP communicating with modular peripherals using IN and or OUT commands o i e do not create VHDL modules that are wired anywhere but to the I O subsystem A common theme in past 2031 robot projects e When something doesn t work the robot gets blamed e t is true equipment DOES fail but most problems are user related o FPGA design possibly in bdf possibly in VHDL o SCOMP code assembly errors can be elusive o Careless errors code not compiled variables not initialized something not reset e A simple debugging technique is to replace one component at a time with a known good device o See Lab Manual appendix on debugging e But how do we know a good robot Your Design Task for Spring 2013 e Make the DE2 board s FPGA test as much of the integrated robot DE2 system as possible e Your project will also include three major UPCP assignments o A proposal outlining what you intend to develop o A user manual to help anyone use your design o An oral presentation of your design e You must also maintain a design logbook using forms provided by the UPCP e One or more of the best designs will be a res
Download Pdf Manuals
Related Search
Related Contents
取扱説明書 User Manual USER MANUAL 2.81 アンバランスーステレオ バランス ーステレオ/4チャネル EVR-3 電気通信設備施工管理の手引き Copyright © All rights reserved.
Failed to retrieve file