Page 7
Spark V is a low cost robot designed for robotics hobbyists and enthusiasts. It is jointly designed by NEX Robotics with Department of Computer Science and Engineering, IIT Bombay. Spark V will help you get acquainted with the world of robotics and embedded systems. Thanks to its innovative architecture and adoption of the ‘Open Source Philosophy’...
Page 8
2.1 SPARK V Block Diagram: Figure 2.2: Spark V ATMEGA16 robot block diagram 2.2 SPARK V ATMEGA16 technical specification Microcontroller: ATMEL ATMEGA16 Programming: Using NEX Robotics Boot loader via USB port (no need of separate programmer) Sensors: Three white line sensors...
Page 28
Spark V robot supports EZ0 to EZ4 sensors from MaxBotix. All these sensors are available on NEX Robotics website. Other sensors from MaxBotix having compatible pin mapping can also be used instead of these sensors. For more details on compatibility, refer to the respective sensor’s datasheet.
Page 39
Spark V robot has ATMEGA16 microcontroller running at 7.3728MHz. .hex file is loaded using boot loader software from NEX Robotics. In the bootloading process Reset and Boot switches are used together. To know more about the boot loader, refer to section 4.6. Robot can also be programmed by ISP (In System Programming) using AVR USB programmer from NEX Robotics or ATMEL’s AVR ISP mkII.
Page 56
SPARK V ATMEGA16 Hardware Manual 4.4 Writing your first code in AVR Studio We are going to write our first code for our Spark V ATMEGA16 robot. This program will make robot’s buzzer beep. Copy the following code in window “code area”. We will see how this code works in the next chapter.
Page 60
PC. Bootloader software from NEX Robotics which is installed on the PC communicates with the microcontroller. Boot loader software loads the .hex file on the microcontroller.
Page 61
The software is located in the “Software and Drivers \ CDM 2.06.00 WHQL Certified” folder. provided in the SPARK V CD or can also be downloaded from the NEX Robotics’ website. Important: Make sure that jumper is configured to enable USB communication. Jumpers on J5 should be in the position.
Page 70
This is the second option for loading the program. We are going to use “USBasp”, USB port based programmer from NEX Robotics to load the “1_buzzer_test.hex” file on the robot. This programmer requires avrdude.exe file which comes with WINAVR. So installation of WINAVR is necessary for this programmer.
Page 81
We need to use AVR ISP adaptor to convert 6 pin to 10 pin connector which is available on NEX Robotics website. It comes free with the AVRISP mkII programmer if it is purchased from NEX Robotics website.
Page 87
PCs simultaneous communication. A more bit advanced communication protocol for the robot control and sensor data acquisition is covered in the chapter 7. Spark V ATMEGA16 robot can communicate with the PC using USB or XBee wireless module.
Page 89
SPARK V ATMEGA16 Hardware Manual XBee USB Wireless Module from the NEX Robotics enables wireless transmission of serial data through PC’s USB port. It uses Xbee module for wireless communication. The Xbee module can be configured via PC’s USB port easily using X-CTU utility to change frequency, baud rate etc.
Page 93
7. Robot Control using ‘GUI’ for SPARK V ATMEGA16 SPARK V ATMEGA16 robot can be controlled by GUI using USB cable or XBee USB wireless module. You need to load “GUI control.hex” on the robot and depending on the mode of communication (USB / Wireless) set the Jumper J5 in correct setting.
7.3 Using GUI Step 1: After successful installation go to Start -> All Programs -> SPARK V Atmega16 -> SPARK V Atmega16 or click on SPARK V Atmega16 on your desktop location, GUI will open. Figure 7.2: Selecting correct COM Port Step 2: Connect Robot with the PC via USB cable or XBee wireless communication module.
Need help?
Do you have a question about the SPARK V ATMEGA16 and is the answer not in the manual?
Questions and answers