SRS Labs 1 Manual

Manual is about: SRS Robot Level 1 Kit

Summary of 1

  • Page 1

    Srs robot level 1 kit table of contents getting started ................................................................................................................... 2 computer requirements..................................................................................................... 2 r...

  • Page 2: Getting Started

    Getting started getting started congratulations on your purchase of a seattle robotics society level 1 robot kit! Here are suggested steps for getting your robot assembled and running. Read through the “computer requirements” and “recommended equipment” sections to be sure you have the materials you...

  • Page 3: Kit Contents

    Kit contents kit contents level 1 kit anti-static bag item qty vendor part fairchild qrb1134 light sensor 2 digi-key qrb1134 arc 1.1 pcb 1 barello.Net arc-01 atmega16-16pc microcontroller 1 digi-key atmega16-16pc-nd ti 754410 h-bridge 1 digi-key 296-9911-5-nd rs232 driver 1 future electronics sp232a...

  • Page 4

    Kit contents 2-56 x 1" machine screw 4 mcmaster-carr 91772a086 small wood screw (in motor if not here) 2 4-40 nut 5 mcmaster-carr 90480a005 2-56 nut 4 mcmaster-carr 90480a003 #4 flat washer 8 mcmaster-carr 92141a005 #4 lock washer 2 mcmaster-carr 91113a005 #2 lock washer 8 mcmaster-carr 91113a003 lo...

  • Page 5

    Avr robot controller 1.1 assembly instructions avr robot controller 1.1 assembly instructions preparation identify the parts used in the avr robot controller (arc). Refer to the kit contents section for a list of parts in each bag. • anti-static bag: everything except the qrb1134 light sensors. • el...

  • Page 6

    Avr robot controller 1.1 assembly instructions prepare boards the pcb comes with a serial adapter and a programming adapter that need to be detached. First break the long line of holes. You might find it easier to break if you run a razor knife along the top and bottom of the line of holes. Then sna...

  • Page 7

    Avr robot controller 1.1 assembly instructions small capacitors and leds the picture on the right shows the locations for: 8 - 0.1uf capacitors 1 - red led 1 - green led orientation of the small capacitors is not important. Note that one of the capacitors (second from the top) will be under the micr...

  • Page 8

    Avr robot controller 1.1 assembly instructions sockets, headers, and jumper the picture on the right shows the locations for: 2 - 1x3 boardmount sockets 3 - 1x4 boardmount sockets 3 - 1x3 male headers 2 - 2x3 male headers 1 - 2x5 male header 1 - shorting jumper install the sockets along on the front...

  • Page 9

    Avr robot controller 1.1 assembly instructions install chips be sure to inspect the board before applying power. Connect the battery pack to the 3-pin header next to the switch (jp13). With the switch in the on position (toward the near edge of the board) the red power led should light. Now you can ...

  • Page 10

    Avr robot controller 1.1 software tools programming cable the kit is supplied with material to make a programming cable that works with the bascom basic compiler or the avrdude program (included in the winavr suite for c/c++ programming). Bascom and avrdude work with any third party programmer that ...

  • Page 11

    Avr robot controller 1.1 software tools tool options free, high-quality tools are available for the atmel avr series of microcontrollers. On windows systems, two popular options are the bascom (basic) compiler and the winavr suite of tools for c/c++ programming. Mac os x supports the avr-gcc c/c++ c...

  • Page 12

    Avr robot controller 1.1 software tools double-click on “launchpn.Bat” in the “c samples” folder. This will launch programmers notepad with the path changes needed by the compiler and downloader. (if you installed winavr in a non-default location, you’ll need to edit this batch file.) while power to...

  • Page 13

    Avr robot controller 1.1 software tools to 8 mhz; (2) enable brown-out detection; (3) disable jtag; and (4) disable erasing eeprom when downloading a new program. Please refer to the chip data sheet ( www.Atmel.Com ) for a complete list of the fuse bits. The following steps set the microcontroller t...

  • Page 14: Chassis Assembly

    Chassis assembly chassis assembly preparation identify the parts used in the chassis. Refer to the kit contents section for a list of parts in each bag. • anti-static bag: qrb1134 light sensors. • electro-mechanical bag: velcro, mounting squares, shrink tubing, and rubber bands. • hardware bag: ever...

  • Page 15

    Chassis assembly light sensors find the two copies of the “light sensor plate” pictured on the right. Hardware: 1 4-40 x 1” screw 1 4-40 nut 2 4-40 lock washers 4 4-40 flat washers stack items onto the screw as follows: lock washer, plate, 2 flat washers, both light sensors (orient them the same way...

  • Page 16

    Chassis assembly strip about 2” from one end of each 7” length of 18 awg insulated wire. Hardware (for one side): 1 4-40 x 1/4” round standoff 1 4-40 x 1/4” screw 2 4-40 x 1/2” screws 2 4-40 washers 2 4-40 nuts mount the standoff in hole c, on the same side of the plate as the caster, using the 1/4”...

  • Page 17

    Chassis assembly flip the top plate over. The screws will be visible, and the standoffs will be underneath (and you should have a hole in the lower right corner). Find this piece (the battery spacer), and hold it like this: you will mount this to what is the underside of the top plate (which is now ...

  • Page 18: Wiring Connections

    Wiring connections leftover parts at this point, your robot is together and you’re probably wondering about those extra parts. They are used for levels 2 and 3 of the srs robot. Here’s a summary. The hardware bag should still contain four 1” standoffs and eight 1/4” machine screws. They are explaine...

  • Page 19: Atmega16 Programming

    Atmega16 programming atmega16 programming part 1 11-3-2005 19.

  • Page 20

    Atmega16 programming 20 11-3-2005.

  • Page 21

    Atmega16 programming part 2 11-3-2005 21.

  • Page 22

    Atmega16 programming 22 11-3-2005.

  • Page 23

    Atmega16 programming part 3 11-3-2005 23.

  • Page 24

    Atmega16 programming 24 11-3-2005.

  • Page 25

    Atmega16 programming 11-3-2005 25.

  • Page 26

    Atmega16 programming part 4 26 11-3-2005.

  • Page 27: Sample Programs

    Sample programs sample programs there are sample programs available from http://www.Seattlerobotics.Org/workshoprobot/level1/ (or the workshop cd’s “samples” folder). There are versions for bascom (basic) and c. The program files contain descriptive comments to explain what the code is doing. The pr...

  • Page 28

    Sample programs a good way to get started with a new program is to make a copy of a folder for an existing program, then rename the new folder and its .Bas or .C file. (for c programs, you will also need to edit the makefile to reflect the name change for the .C file. Look for the src= line. You may...

  • Page 29

    Sample programs challenges: o make a bumper touch cause the robot to back up, turn away from the obstacle, and then resume exploring. (the bumpngo program shows one possible solution, including waiting for a bump at the beginning of the program before starting.) o teach the robot how to navigate a (...

  • Page 30

    Sample programs program 8 purpose: learn to use the timer/counter for timing. This program flashes a led at a specific rate while reading sensors. Program: timer extensions: o change the flash rate. O add more code to the loop, e.G. Showing sensor values. Notice that the flashing still maintains its...

  • Page 31

    Avr robot controller 1.1 hardware description avr robot controller 1.1 hardware description the level 1 robot kit ships with an atmega16 microcontroller. The atmel avr microcontrollers are designed to be pin- and code-compatible where possible. In this case, for example, you could substitute an atme...

  • Page 32

    Avr robot controller 1.1 hardware description expansion headers jp3 and jp10 refer to the schematic for the connections to these headers. All cpu i/o, +5v, ground, +/- 10v and battery voltages are supplied. Jp3 supplies +5v and ground from the analog section. Jp10 supplies +5v, ground, +10v and –10v...

  • Page 33

    Avr robot controller 1.1 hardware description r/c servo output when driving an r/c servo, use the pins nearest to the edge of the board. They are marked with letters indicating polarity: “w r b” for white, red, and black. Some servo brands substitute yellow for white. When driving servos, the board ...

  • Page 34

    Avr robot controller 1.1 schematic avr robot controller 1.1 schematic 34 11-3-2005.