background image

Pololu Orangutan SVP User’s

Guide

1. Overview  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  2

1.a. Supported Operating Systems  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  4

2. Contacting Pololu .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  6
3. Schematic Diagrams  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  7
4. Module Pinout and Components  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  8
5. Getting Started  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  16

5.a. Installing Windows Drivers  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  16
5.b. Using the Demo Program  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  21
5.c. Programming your Orangutan  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  22
5.d. Assembling the kit version  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  22

6. AVR Pin Assignment Table Sorted by Function  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  27
7. AVR Pin Assignment Table Sorted by Pin  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  28
8. Using the USB Communication Port  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  31
9. Using the TTL Serial Port  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  35
10. Motor Driver Truth Table  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  38
11. USB Power  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  39
12. Upgrading Firmware  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  40
13. Related Resources  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  43

Pololu Orangutan SVP User’s Guide

© 2001–2019 Pololu Corporation

https://www.pololu.com/docs/0J39/all

Page 1 of 43

Summary of Contents for Orangutan SVP-1284

Page 1: ...21 5 c Programming your Orangutan 22 5 d Assembling the kit version 22 6 AVR Pin Assignment Table Sorted by Function 27 7 AVR Pin Assignment Table Sorted by Pin 28 8 Using the USB Communication Port...

Page 2: ...serves as an integrated AVR ISP programmer which means that no external programmer is required to use the Orangutan SVP This auxiliary processor provides a USB connection that allows direct communicat...

Page 3: ...of which 8 can be analog inputs 4 input lines on the auxiliary processor which can be either 4 analog inputs or dual quadrature encoder inputs 2 hardware UARTs Removable 16 character 2 line LCD with b...

Page 4: ...TL level serial devices from a computer In Linux the three virtual COM ports created by the SVP should appear as devices with names like dev ttyACM0 dev ttyACM1 and dev ttyACM2 the numbers depends on...

Page 5: ...utan SVP from working with macOS 10 11 or later Note You may not need to use the Orangutan SVP s USB connection If you have an AVR ISP programmer then you can program the AVR on the Orangutan SVP by c...

Page 6: ...and an assortment of sample code in the Pololu AVR Library https www pololu com docs 0J20 We would be delighted to hear from you about any of your projects and about your experience with the Orangutan...

Page 7: ...ams of the Orangutan SVP are available here Orangutan SVP schematic diagram https www pololu com file 0J265 org06a02_schematic pdf 99k pdf Pololu Orangutan SVP User s Guide 2001 2019 Pololu Corporatio...

Page 8: ...ditional input lines The auxiliary processor also serves as a programmer for the main processor meaning that an external programmer is not required but you can use one if you want to The auxiliary pro...

Page 9: ...ous 2 A and can briefly deliver up to 6 A If you are not taking extra steps to keep the motor driver cool such as using a heat sink exceeding this continuous current rating for too long will cause the...

Page 10: ...the four 4 3 0 100 female headers along the lower edger of the board as shown below Each I O line has associated power and ground connections for easy connections to sensors the exterior bottom pin is...

Page 11: ...care of configuring the pins as inputs enabling the AVR s internal pull up resistors and debouncing accounting for the fact that pushbuttons physically bounce when pressed Buzzer The Orangutan SVP com...

Page 12: ...d to do different things They can function as three analog inputs plus a serial receive line as four analog inputs or as the inputs for two quadrature encoders See the OrangutanSVP https www pololu co...

Page 13: ...Both regulators can supply a current of 3 A The adjustable voltage regulator draws current from the external power supply and produces an output voltage called VADJ The trimmer potentiometer in the up...

Page 14: ...the serial transmit line for UART0 TXD0 the LED will flicker whenever serial data is being transmitted from the AVR The LED can be disconnected from PD1 by cutting a labeled trace PD1 LED on the bott...

Page 15: ...uxiliary processor s TX line This LED is tied to the TX line so it will flicker whenever the auxiliary processor is transmitting TTL level serial bytes from the computer This LED will also blink when...

Page 16: ...ith the Pololu AVR C C Library and the drivers for the Pololu USB AVR Programmer If you are not sure which of these components you need it is OK to install all of them If you only need to install the...

Page 17: ...Hardware Wizard three times Each time the Found New Hardware Wizard pops up follow steps 4 7 4 When the Found New Hardware Wizard is displayed select No not this time and click Next 5 On the second sc...

Page 18: ...lick Continue Anyway 7 When you have finished the Found New Hardware Wizard click Finish After that another wizard will pop up You will see a total of three wizards when plugging in the Orangutan SVP...

Page 19: ...loads details aspx FamilyId 68C48DAD BC34 40BE 8D85 6BB4F56F5110 or Hotfix KB918365 Some users who installed the hotfix have reported problems using the programmer which were solved by upgrading to Se...

Page 20: ...ndows 10 and later and it will display USB Serial Device as the name for each port The ports will be usable but it will be hard to distinguish the ports from each other because of the generic name sho...

Page 21: ...to exit one of the demos There are nine demos accessible from the menu 1 Analog Inputs This demo displays voltage readings from the Orangutan SVP s 13 analog inputs as a bar graph The inputs are in th...

Page 22: ...the state of the RTS handshaking line The source code for the demo program is included with the Pololu AVR C C Library https www pololu com docs 0J20 in the examples atmega324p svp demo program or exa...

Page 23: ...uded box header https www pololu com product 854 One 2 8 shrouded box header https www pololu com product 898 One buzzer Five pushbuttons https www pololu com product 1400 One 2 20 breakaway male head...

Page 24: ...location 2 Power input There are two parallel connection points provided for the 6 13 5V power input You can install a 3 5mm terminal block on the large holes to accommodate large wires You can also i...

Page 25: ...d in at this location 8 Buzzer The buzzer can be soldered in at this location 9 Reset buttons A reset pushbutton can be soldered in at this location 10 SPI Programming connector The assembled version...

Page 26: ...emale headers you can use instead 16 Servo power selection To use your servo ports you will need to connect a power source no power source is connected by default You can install two 1 3 male headers...

Page 27: ...trol RS R W E PB0 PB1 PB2 LCD data 4 bit DB4 DB7 PC2 PC5 SPI auxiliary processor control lines x3 PB5 PB6 PB7 ICSP programming lines x3 PB5 PB6 PB7 ADC reference pin AREF reset pushbutton RESET Using...

Page 28: ...t B Pins Orangutan Function Notes Alternate Functions PB1 LCD control line R W Divided system clock output CLKO Timer Counter 1 External Counter Input T1 PB2 LCD control line E External interrupt 2 IN...

Page 29: ...replaced with jumper USART0 output pin TXD0 PD2 digital I O USART1 input pin RXD1 External interrupt 0 INT0 PD3 digital I O USART1 output pin TXD1 External interrupt 1 INT1 PD4 buzzer Timer1 PWM outpu...

Page 30: ...the auxiliary processor so we recommend using it as a digital output See Section 3 j of the Pololu USB AVR C C User s Guide for more information Pololu Orangutan SVP User s Guide 2001 2019 Pololu Corp...

Page 31: ...ram is connected to the Orangutan and make the Orangutan s behavior dependent on that On the PC side the Orangutan SVP s USB drivers make the USB Communication port look like a standard serial port to...

Page 32: ...driver to create virtual serial ports at the time the Orangutan SVP is plugged in To determine the port name in Mac OS X type ls dev tty usb There should be three entries for the Orangutan SVP and th...

Page 33: ...B Communication Port 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Choose the port name and baud rate Port Name must be determined from the Device Manager Baud rate is irrelevant f...

Page 34: ...gh level overview can be found in Section 3 j of the Pololu AVR C C Library User s Guide https www pololu com docs 0J20 The Serial Port Communication section of the library provides many functions for...

Page 35: ...and one stop bit 8N1 To use the TTL Serial Port you must first determine what port name the operating system has assigned it To determine the port name in Microsoft Windows open the Device Manager exp...

Page 36: ...Br y Terminal http sites google com site terminalbpp Windows To use any of these terminal programs you must specify the port name determined above and the baud rate PuTTY is a free Windows terminal p...

Page 37: ...ect to the port port Open Transmit two bytes 0x61 0x62 port Write new byte 0x61 0x62 0 2 Wait for a byte to be received on the RX line int response port ReadByte Show the user what byte was received M...

Page 38: ...e OC2B and PC6 Pins PD6 and PD7 are connected to the AVR s eight bit hardware PWM outputs which allows you to achieve variable motor speeds through hardware timers rather than software This frees the...

Page 39: ...conduct current backwards resulting in a VBAT around 4 6 5 0 V and a VCC around 4 3 4 6 V In some cases VCC will be low enough to trigger brown out detection on the AVR Therefore if you are having tro...

Page 40: ...indows computer 1 Connect the Orangutan SVP to your computer via USB 2 Open up the Device Manager 3 Double click on the Pololu Orangutan SVP Programmer entry in the Ports COM LPT list 4 In the Details...

Page 41: ...y places on the SVP check the Orangutan SVP Reference Diagram https www pololu com file 0J244 orangutan_svp_reference_diagram pdf 82k pdf if you are not sure where to find ground You may have to remov...

Page 42: ...ds erasing the current firmware and then it will echo back an upper case S Do not disconnect the device from the computer after this point until the upgrade is complete 10 Now send the contents of the...

Page 43: ...ps www pololu com docs 0J20 instructions on installing and using the library as well as sample programs Atmel Studio 7 https www microchip com avr support atmel studio 7 free development IDE from Atme...

Reviews: