Google

Tuesday, December 4, 2007

Obstacle Sensor

Sharp GP2D12 IR Range Sensor - 10cm to 80cm

Infrared rangefinder 10cm (~4") to 80cm (~30")
• Analog Interface
• Operating supply voltage is 4.5V-5.5V
• Suitable to use as a sensor for a obstacle robot

Read the distance of the object in front of your robot. The Sharp GP2D12 IR Range Sensor takes a continuous distance reading and reports the distance as an analog voltage with a distance range of 10cm (~4") to 80cm (~30"). The interface is 3-wire with power, ground and output.


Micro beam sensors EX-D200E can used to sense the object. This sensor have built-in amplifier. Selecting output operation by connecting control wire will make it dark-On or light-On. The maximum sensing range is up to 200mm.Its need 12V voltage supply.

Thursday, November 29, 2007

MicroC source code

/*Programming:Blink two LEDs
* this example smoothly blinks LEDs on RC1 and RC2 alternatvely
* using PIC CCP module configured as PWM output
*
* source code example for mikroC
* feel free to use this code at your own risks
*
* target : PIC16F877A, 8 Mhz crystal
* HS clock, no watchdog.
*
* easyPIC4 settings :
* LEDs on PORTC enabled
*
*******************************************************************************/

void main()
{
unsigned char dc ;

TRISC = 0 ; // set PORTC as output
PORTC = 0 ; // clear PORTC

/*
* configure CCP module as 4000 Hz PWM output
*/
PR2 = 0b01111100 ;
T2CON = 0b00000101 ;
CCP1CON = 0b00001100 ;
CCP2CON = 0b00111100 ;

for(;;) // forever
{
/*
* PWM resolution is 10 bits
* don't use last 2 less significant bits CCPxCON,
* so only CCPRxL have to be touched to change duty cycle
*/
for(dc = 0 ; dc < 128 ; dc++)
{
CCPR1L = dc ;
CCPR2L = 128 - dc ;
Delay_ms(10) ;
}
for(dc = 127 ; dc > 0 ; dc--)
{
CCPR1L = dc ;
CCPR2L = 128 - dc ;
Delay_ms(10) ;
}
}
}

Monday, November 19, 2007

Moving Message LCD Display System (MMDS) via SMS


The aim of this project is to design Moving Message LCD Display System (MMDS) via SMS entry using Rabbit Core Microcontroller 2000 (RCM2000) and integrate it with Global System for Mobile Communication module (GSM). This project presents an application of an LCD Display module that can display the message display when the message is sent via mobile phone. The system receives message through Short Message Service (SMS). In order to the send SMS to system, SIM card from Hotlink starter pack had been used. In conclusion, the MMDS system can replace the conventional entry method using handheld infra red remote console or keyboard.