PDA

View Full Version : AVR 40 Pin Rapid Robot Controller BoardV2 from robokits



sudarshan
03-08-2009, 06:21 PM
if any have this board and you have your own programs please kindly mail it to me
a.sudarshann@gmail.com
thank you :D

nandhu
03-08-2009, 10:23 PM
i have avr programmer with me

shall i know what actually you need

Regards
Nandhu

sudarshan
03-15-2009, 10:58 AM
ACTUALLY I WANT ANY SORT OF PROGRAMS CREATED BY ANY ONE .THE PROGRAM SHOULD RUN PROPERLY IN THAT BOARD.EX LIKE DISPLAYING IN LCD RUNNING TWO MOTOR AND A STEPPER MOTOR AND IR OBSTRACLE SENSOR ETC

sudarshan
03-26-2009, 08:02 PM
CAN ANY MODIFY THIS PROGRAM FOR A WALKING ROBOT I HAVE MADE LEG LIKE TWO STRIP FOR LEG AND RECTANGULAR STRIPS FOR BASE OF LEG AND BASE ATTACHED WITH 2 MOTOR ONE EACH LEG WHEN EACHOF THEM MOVE FORWARD ONE BY ONE TO MOVE

#include <avr/io.h>
#include <avr/interrupt.h>
#include<compat/deprecated.h> //HEADER FILE FOR FUNCTIONS LIKE SBI AND CBI
#include<util/delay.h> //HEADER FILE FOR DELAY

#define XTAL 1000000L // Crystal frequency in Hz
#define OC1A_PIN PD5 // OC1A pin
#define OC1B_PIN PD6 // OC1B pin
#define OC1_DDR DDRD // OC1 DDR


int main(void)
{

DDRA=0xF0; //SET DATA DIRECTION REGISTER
//SET 1 for OUTPUT PORT
//SET 0 FOR INPUT PORT
//PA.4, PA.5, PA.6 AND PA.7 ARE OUTPUT
//ALL OTHERS ARE INPUT

DDRB=0XFB; //SET DATA DIRECTION REGISTER
//SET 1 for OUTPUT PORT
//SET 0 FOR INPUT PORT
//PB.2 IS INPUT
//ALL OTHERS ARE OUTPUT

DDRD=0XF1; //SET DATA DIRECTION REGISTER
//SET 1 for OUTPUT PORT
//SET 0 FOR INPUT PORT
//PD.1, PD.2 AND PD.3 ARE INPUT
//ALL OTHERS ARE OUTPUT

DDRC=0xFF;

sbi(PORTA,4); //LED1 ON (INDICATION FOR READY TO USE)

sbi(PORTB,2); //ENABLE PULL UP FOR SWITCH INT2
sbi(PORTD,1); //ENABLE PULL UP FOR SW1
sbi(PORTD,2); //ENABLE PULL UP FOR SWITCH INT0
sbi(PORTD,3); //ENABLE PULL UP FOR SWITCH INT1



sbi(PORTC,0); //MOTOR1 forward
sbi(PORTC,3); //MOTOR2 reverse


uint8_t i = 0;

OC1_DDR |= _BV(OC1A_PIN) + _BV(OC1B_PIN); // set OC1A and OC1B pin as output, required for output toggling

TCCR1A = _BV(WGM10) | _BV(COM1A1) | _BV(COM1A0) | _BV(COM1B1) | _BV(COM1B0); // enable 8 bit PWM, select inverted PWM
TCCR1B = _BV(CS11) | _BV(WGM12);

for (;;)
{
for (i=0; i<255; i++) /* Decrease speed of motor */
{
OCR1AL = i;
OCR1BL = i;
_delay_ms(25); // delay 25 ms
}

for( i=255; i>0; i--) /* Increase speed of motor */
{
OCR1AL = i;
OCR1BL = i;
_delay_ms(25); // delay 25 ms
}
}
}

sudarshan
06-06-2009, 06:27 PM
DOES ANY ONE KNOW TO MAKE A BIPEDAL ROBOT WITH TWO SERVOS.IF SO PLEASE HELP ME AND I HAVE AVR 40 PIN RAPID ROBOT CONTROLLER V2 BOARD FROM ROBOKITS WITH ATMEGA32. :D .IF SO PLEASE HELP ME

vikas
06-06-2009, 06:37 PM
Whats with the APP CAPS ? thats considered shouting !!!