ON 20040214@10:08:52 PM at page: http://www.piclist.com/techref/atmel/avr/index.htm#38031.9227893519 James Newton[JMN-EFP-786] Says http://www.piclist.com/techref/atmel/avr/avrbot.htm A small robot board with the AVR ON 20040214@10:17:58 PM at page: http://www.piclist.com/techref/atmel/avr/index.htm# James Newton[JMN-EFP-786] edited the page. Difference: http://www.piclist.com/techref/diff.asp?url=H:\techref\atmel\avr\index.htm&version=1 ON 20040214@10:23:45 PM at page: http://www.piclist.com/techref/atmel/avr/avrbot.htm#38031.9331597222 James Newton[JMN-EFP-786] Says This is a quick test for the AVRbot board. Briefly, you navigate the robot
via q,a,z,w,s,x keys, sent through RS-232 interface.

q - turn left motor forward
a - turn off left motor
z - turn left motor backward

w - turn right motor forward
s - turn off right motor
x - turn right motor backward



The provided hex file is for a 11.0592 MHz crystal and 115200 RS-232
communication . Please take a look at main.h and main.c and adjust it to your
needs. Then recompile with avr-gcc. Note that this is built as a development
board. You access most of the controller's peripherals through header JP5.
It's up to you if you want to improve the system. Or you can wait until I
finish mine as I will publish both schematics for sensors and software for
handling them.

You must provide a TTL (0-5V) level to the AtMega128 serial channel. Connect
to RXD and TXD. Some new PC mother boards automatically detect 5V and in this
case you won't need MAX232 to convert levels. Be aware that if your mother
board doesn't support this detection you will blow the controller. You have
been warned.

If you have questions, read the source code. If still in trouble you
can write to dinux at mail dot bg.
ON 20040214@10:26:42 PM at page: http://www.massmind.org/techref/atmel/avr/avrbot.htm#38031.9351967593 James Newton[JMN-EFP-786] Says /images/boards/avrbot/index.htm Board and schematic ON 20040214@10:33:22 PM at page: http://www.massmind.org/techref/atmel/avr/avrbot.htm#38031.9398263889 James Newton[JMN-EFP-786] Says http://www.massmind.org/techref/atmel/avr/avrbot-main.c main.c ON 20040214@10:37:07 PM at page: http://www.massmind.org/techref/atmel/avr/avrbot-main.c# James Newton[JMN-EFP-786] edited the page. Difference: http://www.massmind.org/techref/diff.asp?url=H:\techref\atmel\avr\avrbot-main.c&version=0 ON 20040214@10:38:28 PM at page: http://www.massmind.org/techref/atmel/avr/avrbot.htm#38031.9433680556 James Newton[JMN-EFP-786] Says http://www.massmind.org/techref/atmel/avr/avrbot-motors.c motors.c ON 20040214@10:43:05 PM at page: http://www.massmind.org/techref/atmel/avr/avrbot-motors.c# James Newton[JMN-EFP-786] edited the page. Difference: http://www.massmind.org/techref/diff.asp?url=H:\techref\atmel\avr\avrbot-motors.c&version=0 ON 20040214@10:46:18 PM at page: http://www.massmind.org/techref/atmel/avr/avrbot.htm# James Newton[JMN-EFP-786] edited the page. Difference: http://www.massmind.org/techref/diff.asp?url=H:\techref\atmel\avr\avrbot.htm&version=5 ON 20040214@10:47:39 PM at page: http://www.massmind.org/techref/atmel/avr/avrbot.htm# James Newton[JMN-EFP-786] edited the page. Difference: http://www.massmind.org/techref/diff.asp?url=H:\techref\atmel\avr\avrbot.htm&version=6 ON 20040214@10:51:36 PM at page: http://www.massmind.org/techref/atmel/avr/avrbot.htm#38031.9525 James Newton[JMN-EFP-786] Says http://www.massmind.org/techref/atmel/avr/avrbot-main.h mail.h ON 20040214@10:53:33 PM at page: http://www.massmind.org/techref/atmel/avr/avrbot.htm#38031.9538541667 James Newton[JMN-EFP-786] Says http://www.massmind.org/techref/atmel/avr/avrbot-main.h.htm main.h ON 20040214@10:54:37 PM at page: http://www.massmind.org/techref/atmel/avr/avrbot.htm#38031.9545949074 James Newton[JMN-EFP-786] Says http://www.massmind.org/techref/atmel/avr/avrbot-main_h.htm main.h ON 20040214@10:54:59 PM at page: http://www.massmind.org/techref/atmel/avr/avrbot-main_h.htm# James Newton[JMN-EFP-786] edited the page. Difference: http://www.massmind.org/techref/diff.asp?url=H:\techref\atmel\avr\avrbot-main_h.htm&version=0 ON 20040214@10:55:45 PM at page: http://www.massmind.org/techref/atmel/avr/avrbot.htm# James Newton[JMN-EFP-786] edited the page. Difference: http://www.massmind.org/techref/diff.asp?url=H:\techref\atmel\avr\avrbot.htm&version=11 ON 20040214@10:56:29 PM at page: http://www.massmind.org/techref/atmel/avr/avrbot.htm# James Newton[JMN-EFP-786] edited the page. Difference: http://www.massmind.org/techref/diff.asp?url=H:\techref\atmel\avr\avrbot.htm&version=12 ON 20040214@10:57:36 PM at page: http://www.massmind.org/techref/atmel/avr/avrbot.htm# James Newton[JMN-EFP-786] edited the page. Difference: http://www.massmind.org/techref/diff.asp?url=H:\techref\atmel\avr\avrbot.htm&version=13 ON 20040214@10:59:33 PM at page: http://www.massmind.org/techref/atmel/avr/avrbot.htm#38031.9580092593 James Newton[JMN-EFP-786] Says http://www.massmind.org/techref/atmel/avr/avrbot-motors_h.htm motors.h ON 20040214@11:00:05 PM at page: http://www.massmind.org/techref/atmel/avr/avrbot-motors_h.htm#38031.9583912037 James Newton[JMN-EFP-786] Code:
/**********************************************************************
    __file__.c

    This file is part of the <MyPackage> package

    Copyright (c) 2003 dinux - dinux@mail.bg

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

**********************************************************************/

/** ATMega128 headers use new scheme: instead of the good old PC0, 
 * we have to use PORTC0.*/

#define bMOTOR_LEFT	PORTC0
#define bMOTOR_RIGHT	PORTC1

#define MOTOR_DDR	DDRC
#define MOTOR_PORT	PORTC
#define MOTOR_PIN	PINC

#include <inttypes.h>

void set_right_motor(uint8_t state);
void set_left_motor(uint8_t state);


ON 20040214@11:03:22 PM at page: http://www.massmind.org/techref/atmel/avr/avrbot.htm# James Newton[JMN-EFP-786] edited the page. Difference: http://www.massmind.org/techref/diff.asp?url=H:\techref\atmel\avr\avrbot.htm&version=15