Department of computer science and electronic BLIND SENSOR FOR SOCCER PLAYING ROBOTS Master thesis work 15 credits, C-
Department of Computer Science and Electronics 10 In addition, setting TXEN, in the UCSRB register, transmission is enabled. Before a transmissio
Department of Computer Science and Electronics 11 2.2.3. ADC The ADC is connected to an 8-channel Analogue Multiplexer which allows 8 single-e
Department of Computer Science and Electronics 12 Figure 2-7. ADC Timing Diagram, Single Conversion The select
Department of Computer Science and Electronics 13 2.4. RS485 The main information sources about the RS-485 network are mentioned in the refer
Department of Computer Science and Electronics 14 reduce electrical noise sensitivity. The value of each termination resistor should be equal to th
Department of Computer Science and Electronics 15 The implementation on the software side is not much more difficult than with RS232. It is t
Department of Computer Science and Electronics 16 2.6. Previous design The old system tests the field and it also gives back whether there is a
Department of Computer Science and Electronics 17 Finally, in point 5, the shift register swaps data between cards and the Power PC. The mentio
Department of Computer Science and Electronics 18 4. Design 4.1. Analysis of problem In figure 4-1, we have a general circuit. The three cards
Department of Computer Science and Electronics 19 Therefore the frame consists of a start bit, followed by the eight bit data and a 1 stop bit.
Department of Computer Science and Electronics 2 Abstract The present work, performed at Mälardalen University, illustrates the design of an e
Department of Computer Science and Electronics 20 Thus, the application requires at least six functions to perform
Department of Computer Science and Electronics 21 4.2. Hardware, schematic and layout 4.2.1. Required components for one card ⇒ Atmega16 microco
Department of Computer Science and Electronics 22 The MAX489 transceiver’s pins RO, DI, and DE are connected to the microcontroller’s pin PD0, PD1
Department of Computer Science and Electronics 23 On the other hand, the figure 4-7 explains how to connect the JTAG pins to the Atmega16. The JTA
Department of Computer Science and Electronics 24 4.3.2. Code generation 4.3.2.1. Flux diagram & Algorithm Initializ
Department of Computer Science and Electronics 25 In this section the algorithm of the program is going to be explained. The resultant C code ca
Department of Computer Science and Electronics 26 Then, the Atmega16 calculates the average of all the values read w
Department of Computer Science and Electronics 27 For(1000 steps)(1000 samples) do: Watchdog reset For (8 steps)(for 8 sensors) do: Read analog
Department of Computer Science and Electronics 28 4.3.3. Test AVR Studio and Hyper terminal software within the evaluation kit STK 500 are used fo
Department of Computer Science and Electronics 29 The ADC test has been done with some voltage divisor as shown in figure 4-12. Fo
Department of Computer Science and Electronics 3 Preface Express our thankfulness to Lars Asplund for giving us the opportunity to learn and bein
Department of Computer Science and Electronics 30 that one uses the latest Win AVR release (after 2007-01-02). However, the either analogue or UDR
Department of Computer Science and Electronics 31 As mentioned before, the microcontroller being used is not fully exploited, and taking into con
Department of Computer Science and Electronics 32 In the tests, the PC has replaced the Power PC’s role and just a point-to-point communication has
Department of Computer Science and Electronics 33 7. References Literature [1] Alldatasheet.co.kr website. ”OPB608 - Reflective Object Sensor -
Department of Computer Science and Electronics 34 [13] Maxim Integrated Products, “Guidelines for Proper Wiring of an RS-485 (TIA/EIA-485-A) Netw
Department of Computer Science and Electronics 35 8. Appendix Appendix A. C code //**************************************************************
Department of Computer Science and Electronics 36 // warm up the ADC, discard the first conversion PORTB|=(1<<EN_TRANSISTOR); ADCSRA |
Department of Computer Science and Electronics 37 eeprom_write_word((unsigned int*) &val[i],result_c[i]); } } unsigned int read_data(unsig
Department of Computer Science and Electronics 38 Appendix B. Schematic
Department of Computer Science and Electronics 39 Appendix C. Layout
Department of Computer Science and Electronics 4 Table of contents ABSTRACT...
Department of Computer Science and Electronics 40 Appendix D. Previous schematic
Department of Computer Science and Electronics 41 Appendix E. Required software and hardware Eagle EAGLE (Easily Applicable Graphical Layout Ed
Department of Computer Science and Electronics 42 An evaluation kit used for testing the code. JTAG ICE (Atmel) Used for programm
Department of Computer Science and Electronics 43
Department of Computer Science and Electronics 5 1. Introduction 1.1. Purpose In MDH robot laboratory, there are five robots constituting a foot
Department of Computer Science and Electronics 6 In brief, the purpose of this report is to illustrate how the work has been developed, e
Department of Computer Science and Electronics 7 In this application, the reflecting surface is the white line in the soccer fi
Department of Computer Science and Electronics 8 That means that the signal received from the sensors might be different in each football field.
Department of Computer Science and Electronics 9 2.2.2. USART The Universal Synchronous and Asynchronous serial Receiver and Transmitter (USAR
Comentarios a estos manuales