用atmega M32制作高智能坦克车

RP6高智能坦克车

RP6视频,Please wait

 RP6感应障碍物视频,请等待

 
 RP6感应障碍物视频, RP6英文说明书下载

/*
 * ****************************************************************************
 * RP6 ROBOT SYSTEM - ROBOT BASE EXAMPLES
 * ****************************************************************************
 * Example: SELFTEST PROGRAM
 * Author(s): Dominik S. Herwald
 * ****************************************************************************
 * Description:
 *
 * Test routines for all RP6 components.
 *
 * You can compile this in two different versions. The FACTORY Version is
 * more restrictive with the voltage sensor and tests if voltage is about
 * 7.20V.
 * You can not guarantee this with standard accumulators of course and thus
 * you would need a laboratory power supply - which most of the home users
 * will not have.
 *
 * --------
 *
 * Yes I know - this program has not the most beautyful code on earth...
 * To be honest it is quite ugly ;)
 * All the Text output is just a waste of programspace and this is
 * intentionally to get a large program ;)
 *
 * It is a good demonstration how big your programs can get!
 * Consider that every single character of a String consumes one byte
 * of program space!
 * Also look at it in the hexfile viewer in RP6Loader - nearly half the
 * program memory is full with ASCII Text.
 * 
 *
 * ****************************************************************************
 */
 
 
/*****************************************************************************/
// Includes:

#include "RP6RobotBaseLib.h"  

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

// Uncomment only ONE of the following definitions:
//#define FACTORY
#define HOME

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

char receiveBuffer[UART_RECEIVE_BUFFER_SIZE];

void done(void)
{
 writeString_P("Done!/n");
}

void bars(uint8_t number)
{
 uint8_t cnt;
 writeChar('/n');
 for(;number > 0; writeChar('/n'), number--)
  for(cnt = 69; cnt ; cnt--)
   writeChar('#');
}

void test(uint8_t number)
{
 bars(2);
 writeString_P("#### TEST #");
 writeInteger(number, DEC);
 writeString_P(" ####/n");
}

void printUBat(uint16_t uBat)
{
 writeIntegerLength((((uBat/102.4f)+0.1f)), DEC, 2);
 writeChar('.');
 writeIntegerLength((((uBat/1.024f)+10)), DEC, 2);
 writeChar('V');
}

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

void testPowerOn(void)
{
 test(1);
 writeString_P("/n### POWER ON TEST ###/n");
 writeString_P("Please watch the yellow PowerOn LED and verify that it lights up!/n");
 writeString_P("(it will flash a few times!)/n");
 mSleep(1000);
 powerON();
 mSleep(1000);
 powerOFF();
 mSleep(1000);
 powerON();
 mSleep(2000);
 powerOFF();
 mSleep(500);
 powerON();
 mSleep(500);
 powerOFF();
 done();
}

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

void testLEDs(void)
{
 test(2);
 writeString_P("/n### LED Test ###/n");
 writeString_P("Please watch the LEDs and verify that they all work!/n");
 mSleep(1000);
 setLEDs(0b111111);
 mSleep(500);
 setLEDs(0b000000);
 mSleep(500);
 setLEDs(0b111111);
 mSleep(500);
 setLEDs(0b000000);
 mSleep(250);
 uint8_t testLEDs = 1;
 uint8_t i;
 for(i = 0; i < 12; i++){
  setLEDs(testLEDs);
  testLEDs <<= 1;
  if(testLEDs > 63)
   testLEDs = 1;  
  mSleep(400);
 }
 setLEDs(0b111111);
 mSleep(400);
 setLEDs(0b000000);
 done();
}

   rp6是一个低成本,能自动控制的机器人系统,它装有大量的传感器和一个现成的自由开放源工具,并且可以用C语言编程的8位ATMEGA单片机,另外它提供可能用到的扩展平台。另附产品光碟,包含许多范例程序和一个C函数库,这可使你比较容易的学习编程,也使你能较快的控制机器人。所有的库和例子都是开放源码。
   rp6的特点和技术资料如下:
1,功能强大的8位ATMEL ATMEGA32单片机。
2,基于扩展系统的I的2次方C总线。
3,USB接口与电脑进行通讯。
4,机器人的前方和后方有对称架置的扩展模块。
5,强大的跟踪驱动系统。
6,2个强大的MOSFET H桥式马达驱动。
7,2个高分辨率的感应器。
8,防碰撞系统。
9,红外线通讯系统。
10,2个光感应器。
11,2个碰撞感应器
12,6个LED状态灯
13,2个自由的数据模块转换通道,它是机器人爱好者附加的感应器而设计。也可以作为数字输入输出接口。
14,精确的5V电压调节器
15,超低的待机电流消耗
16,可心更换的2.5A保险丝
17,由6个镍氢蓄电池作为电源
18,外部蓄电池充电接口

RP6及扩展板如下:

 

and universal expansion System. It is based on the two wire I2C-Bus, which allows you to connect up to 127 devices to the Robot. You can add several expansion modules on top of the Robot, which can be mounted symmetrically on front and rear. AREXX Engineering plans to release several expansion modules with additional sensors in the near future. Of course, there is already the Experiment module for your own circuits included with the Robot and also available seperately (Conrad Electronics odering code: 191537).

RP6_Exp.jpg, 39 kB

 

RP6Control_M32.jpg, 40 kB

You can easily add an additional Microcontroller to the Robot with the RP6 CONTROL M32 (Conrad Electronics odering code: 191550). The RP6 CONTROL M32 offers an ATMEGA32 clocked at the maximum 16MHz, an external 32KB SPI EEPROM (non-volatile memory), and 14 free I/O pins, 6 of the I/Os are useable as Analog to Digital Convertor Channels. You can connect HD44870 compatible LC-Displays to the Display Port of the RP6-M32, for example the 16x2 Characters display with Conrad Electronics ordering code 190911-62.
The non-volatile EEPROM can be used for data logging or Bytecode interpreters like the Java NanoVM: http://www.harbaum.org/till/nanovm/.

RP6_expansions.jpg, 149 kB

Beneath the accessories manufactured by AREXX Engineering, there are several things from 3rd party manufacturers that can be used for RP6.

The Robot can receive IR Codes in RC5 Format. One of the example programs allows you to use an universal IR Remote to control the Robot like a normal RC Car. For example the "Promo 8" from Conrad Electronics, ordering code 340720-62 or similar programmable remote controls.

You can use external battery pack chargers to charge the 6 required NiMH accumulators inside the Robot. This is more comfortable than removing the mainboard everytime. For example you can use one of the following chargers:

  • Voltcraft 1A Delta Peak fast charger, ordering code 232622-62
  • Voltcraft 2A Delta Peak fast charger, ordering code 233085-62
  • Ansmann AC48, ordering code 250125-62
  • Ansmann ACS 110 Traveller (or ACS 410), ordering code 512067-62

Of course any other Battery pack charger that is capable of charging 6 NiMH Cells in series and has a suitable 5.5mm connector can be used! We recommend to use Microcontroller based Chargers.

voltcraft_1A_charger.jpg, 14 kB

voltcraft_2A_charger.jpg, 18 kB

 

 

 

中山大谷机器人www.arexx.com.cn AVR可重复编程(C、C++、VC)ATmega8系列教育机器人,红外编程遥控机器人,两足机器人,自己动手组装机器人、焊接机器人,高智能坦克车,机器臂,益智玩具,六足机器人,教学模型,图形化编程机器人,电脑遥控车,红外遥控编程车,红外传感器,编程玩具,编程车,编程机器手臂,机器手,足球机器人,玩具机器人,机器人配件,可编程机器人,机器人竞赛,教学机器人,实验机器人,机器人教育,教育机器人应用,机器人制作,移动机器人,DIY机器人设计,单片机学习,机器人工作室,国内机器人,电脑可编程机器人,电脑编程智能机器人,电脑编程机器人,红外遥控机器人,机器人视频,仿真电子钢琴,模拟电子钢琴,远程温度监视器,温度计,噪音测试仪,环保电筒,手摇电筒,收音机电筒,轨迹车,线性跟踪车,伺服电机,舵机,组装车,实验车,机械车,入门车,钢珠万向轮,滚珠万向轮,玩具脚轮,玩具轮胎,空气轮胎,机器人万向轮,机器人脚轮,履带机器人底盘,坦克车底盘,传感器sfh-300|sfh-415u|sfh-5110|IRL80A|LPT80A,红外发射对管,自制万向轮DIY配件,DIY玩具,太阳能小蜜蜂,音乐IC,口袋型气铬铁,1300度大喷枪,防静电摄子,机器人自己做.教学器材,教育器材,教育模型,电教器材,模型玩具,大谷机器人,最小的机器人,小机器人,机器人竞赛,人形机器人,机器人制作,人工智能机器人,机器人工作室,电子信息,自动控制产品,人工智能,自动化,数控,机电一体化,avr单片机学习,51单片机学习,单片机制作,单片机开发,机器人开发,DIY玩具,动手组装的玩具,实验室用的机器人,电子教学平台,中小学机器人教育,大中专机器人教育,自动控制玩具,http://arexx.com.cn广东中山大谷机器人科技有限公司,0760-8811951,07608811951

 
 
点击查看详细信息...
 
 
名称:ASURO电脑遥控车
编号:42711482416
选取
 
 
 
点击查看详细信息...
 
 
名称:YETI两足机器人
编号:42711524716
选取
 
 
 
点击查看详细信息...
 
 
名称:YETI两足机器人-001
编号:10221755516
选取
 
 
 
点击查看详细信息...
 
 
名称:高智能坦克车 RP6
编号:4271215316
选取
 
 
 
点击查看详细信息...
 
 
名称:高智能坦克车Robby RP5
编号:42712164416
选取
 
 
 
点击查看详细信息...
 
 
名称:足球机器人
编号:42712375116
选取
 
 
 
点击查看详细信息...
 
 
名称:机器手
编号:42712431616
选取
 
 
 
点击查看详细信息...
 
 
名称:轨迹车
编号:42712583316
选取

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值