Archive

Author Archive

Multiple Serial Communication on Avr Mcu

March 25th, 2010 nashrul 2 comments

Multiple Serial Communication on Avr Mcu??????????

This question comes up from time to time, and I want to give a simple solution in this problem.

My friend needs MCU with 4 UART (@ 38.4 KBaud each respectively) to their robot projects in Battle Division KRCI (Kontes Robot Cerdas Indonesia) 2010. 4 UART is a problem, because the simplest MCUs (AVR, PIC) do not have
chips with this number.

Read more…

Directed Sonar Sensing for Mobile Robot Navigation

March 17th, 2010 nashrul 3 comments

This monograph is a revised version of the D.Phil. thesis of the first author, submitted in October 1990 to the University of Oxford. This work investigates the problem of mobile robot navigation using sonar. We view model-based navigation as a process of tracking naturally occurring environment features, which we refer to as “targets”.

Read more…

Introduction to 3D game programming with DirectX 9.0

March 12th, 2010 nashrul 1 comment

Game Programming

This book is an introduction to programming interactive 3D computer graphics using DirectX 9.0, with an emphasis on game development. It teaches you the fundamentals of Direct3D, after which you will be able to go on to learn and apply more advanced techniques. Assumingly, since you have this book in your hands, you have a rough idea of what DirectX is about.

Read more…

Fabricating Printed Circuit Boards

March 12th, 2010 nashrul 1 comment

How difficult is it to design and fabricate printed circuit boards?
When you look at a finished printed circuit board—with an often-complex circuit pattern and a mixture of through-hole and surface mount components you may think creating your own boards would be a difficult, time-consuming task that would require specialized tools and expertise.

Read more…

AVR Keypad 4×4 Auto Scan (Interrupt Timer)

March 9th, 2010 nashrul 3 comments


/***************************************************************************
File : keypad-4x4-int-timer.c
Description : Main module
Project : Keypad Matrix 4x4 Auto Scan (Interrupt Timer)
Version : 1.1.5
Author : nashrul@nashrul.co.cc
Date : 2006 - 2008
***************************************************************************/

#include <mega16.h>
#include <lcd.h>
#include <delay.h>
#include <stdio.h>
#define kolom1  PORTA.0              // out      1
#define kolom2    PORTA.1
#define kolom3    PORTA.2
#define baris1    PINA.4               // in       Pull
#define baris2    PINA.5
#define baris3    PINA.6
#define baris4    PINA.7
#asm
.equ __lcd_port=0×18 ;PORTB
#endasm
char buf[17];
unsigned char sss, ss, mm, tt, key, old_key, temp_tt, temp_mm, temp_ss;
int menu_state = 0;
int time_state = 1;
int top_lcd = 0;
int trip = 4530;
int blink;
int bottom_lcd = 0;
int pulses = 0;
interrupt [TIM0_OVF] void timer0_ovf_isr(void)
{}
interrupt [TIM1_COMPA] void timer1_compa_isr(void)
{sss++;
if (sss>5){blink=0;}
if (sss=10){ss++;sss=0;blink = 1;}
if (ss==60){mm++;ss=0;}
if(mm==60) {tt++;mm=0;}
if (tt==24){tt=0;}
}

Read more…

Switch to our mobile site