Sunday, 29 December 2013
Interfacing 16 Servo Motors With ATmega16/32 ~ Learn AVR and ARM Programming in EMBEDDED C
Posted by Unknown
On 20:30
| No comments
Change your WIN 7 startup Background
Posted by Unknown
On 14:49
| No comments
Presently you people will be able to change only and only desktop background , but today I am going to tell you How to Change Start Up Background of Win 7.
Make sure that you follow each and every steps accurately, other wise it will be difficult to correct the problem and you need to restore your system
Make sure that you follow each and every steps accurately, other wise it will be difficult to correct the problem and you need to restore your system
Follow the steps for setup :
Step to Setup Registry Entry :
- Click on start, in search box type "run" and press enter.
- In run commend type "regedit". and press Enter.
- Then a window will popup, click yes to it.
- Click on drop down menu of "computer" which is at top left of the opened box, select "HKEY_LOCAL_MACHINE", then select "SOFTWARE" , then go to "Microsoft" , then go to "Windows", then "CurrentVersion" then "Authentication" then go to "LogonUI" at last go to "Background".
- After that go to "OEMBackground" on the right side of space.
- Right click on it and select "Modify", select "Value data as 1" and "Base as Hexadecimal".
- Click "OK" and close the window.
Steps to Change the Background :
- Rename the Picture you want to set as the Startup Background as "background"
- Copy the file and paste it at "C:\Windows\SysWOW64\oobe"
- Go to following location "C:\Windows\System32\oobe\INFO\backgrounds", Paste the same file here also. Rename this file as "backgroundDefault", as a file with same name will be already existing, first change its name by adding 1 at last to it.
- Then close the Window.
- Either time you lock the screen or restart the system , your start up background will change with your desired pic.
Steps with Pictures :
Enjoy the Day ..!!!!!!!!
Monday, 25 November 2013
Interfacing 16 Servo Motors With ATmega16/32
Posted by Unknown
On 18:35
| No comments
/*
* 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) ;
PORTC=0x00;
PORTD=0x00;
_delay_us(2010) ;
}
* 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) ;
PORTC=0x00;
PORTD=0x00;
_delay_us(2010) ;
}
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 File
#include <avr/io.h>
#include <util/delay.h>
#include "ilcd.h"
//Macros
#define US_PORT PORTD
#define US_PIN PIND
#define US_DDR DDRD
#define US_TRIG PD0
#define US_ECHO PD1
//Globle Variable
int distance;
//Calculating width of high pulse in micro second.
#define US_Time_out -12
#define US_NO_OBSTACLE -13
void US_init();
void US_trig();
void US_init()
{
US_DDR|=(1<<US_TRIG);
}
void US_trig()
{
//Send a 10uS pulse on trigger line
US_PORT|=(1<<US_TRIG); //high
_delay_us(15); //wait 15uS
US_PORT&=~(1<<US_TRIG); //low
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 File
#include <avr/io.h>
#include <util/delay.h>
//Macros
#define US_PORT PORTD
#define US_PIN PIND
#define US_DDR DDRD
#define US_TRIG PD0
#define US_ECHO PD1
//Globle Variable
int distance;
//Calculating width of high pulse in micro second.
#define US_Time_out -12
#define US_NO_OBSTACLE -13
void US_init();
void US_trig();
void US_init()
{
US_DDR|=(1<<US_TRIG);
}
void US_trig()
{
//Send a 10uS pulse on trigger line
US_PORT|=(1<<US_TRIG); //high
_delay_us(15); //wait 15uS
US_PORT&=~(1<<US_TRIG); //low
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 the simple verticle line on the Display.
*/
#define F_CPU 8000000ul
#include <avr/io.h>
#include <util/delay.h>
#include <compat/deprecated.h>
//Macros
//for controlling on portC
#define EN 0
#define RW 1
#define RS 2
#define CS1 3
#define CS2 4
#define RST 5
#define dataport PORTB
#define ctrlport PORTC
//Function Declaration
void GLCD_init(void);
void enable (void)
{
ctrlport|=(1<<EN);
_delay_us(100);
ctrlport&=~(1<<EN);
}
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 the simple verticle line on the Display.
*/
#define F_CPU 8000000ul
#include <avr/io.h>
#include <util/delay.h>
#include <compat/deprecated.h>
//Macros
//for controlling on portC
#define EN 0
#define RW 1
#define RS 2
#define CS1 3
#define CS2 4
#define RST 5
#define dataport PORTB
#define ctrlport PORTC
//Function Declaration
void GLCD_init(void);
void enable (void)
{
ctrlport|=(1<<EN);
_delay_us(100);
ctrlport&=~(1<<EN);
}
Subscribe to:
Posts (Atom)