/*
* SERVOS_EXECUTION.c
*
* Created: 25-Nov-13 11:37:32
* Author: avrnarm
*/
#define F_CPU 16000000ul
#include <avr/io.h>
#include <util/delay.h>
int main(void)
{
DDRC=0xFF;
DDRD=0xFF;
char i ;
while(1)
{
_delay_ms(2000);
for (i=0;i<2;i++)
{
PORTC=0xFF;
PORTD=0xFF;
_delay_us(1000+5.55*10)...
Monday, 25 November 2013
Friday, 15 November 2013
Interfacing UltraSonic Sensor with Atmega16
Posted by Unknown
On 19:37
| 3 comments
/*
Interfacing Ultra Sonic Module (4 PIN HCSR04) with Atmega16
Hardware Pin Configuration: Vcc, Gnd, Trigger input pulse, echo output pulse.
LCD Connected to port A.
Sensor to PORTD.
Sensor |
Trig --> PD0
Echo --> PD1
Vcc --> Vcc
Gnd --> Gnd
Programmer: Raj Prajapati
rajatmelavr@gmail.com
For any query
*/
//Header...
Basic Interfacing GLCD with ATmega16
Posted by Unknown
On 10:13
| No comments
Following is the program to Generate the basic verticle line on the glcd at and 0th Column.
Connection is shown in the Image. PORTC is reserved for the Control Port and PORTB for data Port.
Here we had not used any Library for this purpose.
/*
* GLCDpattern1.c
*
* Created: 14-Nov-13 23:27:35
* Author: avrnarm
* Description: To print...
Subscribe to:
Posts (Atom)