“Jika Anda ingin mengembangkan ekskul sekolah, workshop ataupun sekedar hobby bahkan lomba Line follower dan lainnya, maka kit robot Asuro paling tepat untuk dicoba.”
ASURO is a tiny mobile robot developed for educational purposes by DLR, the german aerospace centre.
It is very flexible and completely programmable in C. Assembly is easy for experienced electronic technicians and feasible for a novice.
Robot ini mesti dirakit dan disolder terlebih dahulu setelah dibeli.
Fitur:
- Atmel AVR RISC-processor using Atmega8
- Two independently controlled motors
- Optical linetracer
- Six collision-detector switches
- Two odometer-sensors
- Three indicator LEDs
- IR-Interface for programming
- and remote controlling this robot by a PC
- Supplied with software assistance, compiler, editor and upload tools
- Completely programmable in C using freeware
- Compatible with Windows and Linux
- Challenging assembly for novice builders
- Comprehensive instruction guide to construction, programming and fault finding CD included
Gambar 1. PCB Asuro yang harus disolder, lengkap dengna komponennya sangat menarik dan menantang bagi pemula dan pelajar.
Berikut ini contoh kode demo Linefollower menggunakan WinAVR.
line.c:
#include “asuro.h”
#define SPEED 0×8F
int speedLeft,speedRight;
unsigned int lineData[2];
int ADOffset;
void LineLeft (void)
{
speedLeft += 1;
if (speedLeft > 0xFE) speedLeft = 0xFF;
}
void LineRight (void)
{
speedRight += 1;
if (speedRight > 0xFE) speedRight = 0xFF;
}
void LineDemo(void)
{
int i;
unsigned char j;
Init();
FrontLED(ON);
for (j = 0; j < 0xFF; j++) LineData(lineData);
LineData(lineData);
ADOffset = lineData[0] – lineData[1];
speedLeft = speedRight = SPEED;
for(;;) {
LineData(lineData);
i = (lineData[0] – lineData[1]) – ADOffset;
if ( i > 4) {
StatusLED(GREEN);
LineLeft();
}
else if ( i < -4) {
StatusLED(RED);
LineRight(); } else {
StatusLED(OFF);
speedLeft = speedRight = SPEED;
}
MotorSpeed(speedLeft,speedRight);
}
}
Silahkan order kit robot ini di http://www.toko-robot.com atau http://www.toko-elektronika.com.
Related posts:
1. Robot Avoider berbasis ATmega16
pada robot...
2. Mengenal Quick Robot
3. Contoh Program Sederhana Robot Pemadam Api (KRCI) dengan BS2 dan OOPIC.
robot cerdas, bahkan ingin mencoba...
http://widodo.com/tutorial/asuro-merakit-dan-memprogram-robot-line-follower/
Tidak ada komentar:
Posting Komentar