SIM808 module with PIC18f4580

I have been attempting to interface SIM808 module with PIC18f4580. I completed the code by myself.I attempted to debugit utilizing PICkit3.The resound mode is not getting OFF despite the fact that I set ATE0.The SIM808 module is sending back what it has gotten from the PIC18f4580.Plz help me with this.

SMS sim900 MikroC

Hello everyone,

I'm trying to send a SMS using easypic7 and sim900 gsm module,

1- how to send ctrl+z through mikroelektronika usart terminal for testing,

2- this code not working, even though i receive in the end OK from the sim900, but no sms received from the other phone

/////////////////////
UART2_Write_Text(" AT\r\n");
UART2_Write(10);
UART2_Write(13);
Delay_ms(1000);

UART2_Write_Text(" AT+CPIN = xxxx\r\n");
UART2_Write(10);
UART2_Write(13);
Delay_ms(1000);

UART2_Write_Text(" AT+CMGF = 1\r\n");
UART2_Write(10);
UART2_Write(13);
Delay_ms(1000);

UART2_Write_Text(" AT+CMGS=\"+41774004311\"\r\n");
delay_ms(500);
UART2_Write(10);
UART2_Write(13);
UART2_Write_text(" ba7abek Hasan test0\r\n");
UART2_Write(26); // Send CTRL + Z as end character

if (UART2_Data_Ready() == 1) {
// if data is received
UART2_Read_Text(rx2buff, "OK", 20); // reads text until 'OK' is found
UART1_Write_Text("msg SENT\r\n"); }
////////////////////////////

I write two times new line, is it ok, or not,
did any1 used it succefully AT command to send a SMS,

Greetings, Thanks in advance,

Password based Electronic lock based on pic microcontroller

i want to build a electronic lock using password saved in eeprom and ****asterisk based when pressing buttons. I didnt find yet any helpful link to accomplish this task with pic microcontroller by using c or basic. Do have any idea or capability to help me???

Need help how to control the stepper motor using PIC 16F84a?

Dear all
I am the new one of using PIC. Now I want to make the stepper motor control ciruict using PIC 16F84a and transistor to drive the stepper motor...
I want to control the speed and the direction of the motor...Would anyone like to show me or give me the circuit diagram? Thank a lot to all

Pure Sine Wave Inverter Design

I am designing a pure sinewave inverter, 220V, 50 Hz.
Here is the complete design,
[img]http://i.imgur.com/QpX93md.png[/img]
without filter i simulate the whole circuit and tried to plot the current waveform by placing a current probe in RL Load (R = 5 Ohm, L = 16 mH).
I should be getting a sinusoidal current waveform but it is giving my arbitrary result. what might be the problem ?
I have followed this article for PWM generation using Atmega16.
Switching Frequency 16 Khz.
Fundamental Frequency 50 Hz.
http://tahmidmc.blogspot.com/2013/02...mode_2525.html
An external crystal is being used for 16 Mhz clock frequency.
here is the configuration i have done .
[img]http://i.imgur.com/JjK5UYJ.png[/img]

Here is the PWM waveform
[img]http://i.imgur.com/jPlB2it.png[/img]

[img]http://i.imgur.com/cXcdX7y.png[/img]



Instead of IR2110 i have used IR2112, as IR2110 is not available in Proteus. MOSFET Driver circuit is working fine, i have checked the voltage at gate and it is turning it ON/OFF.
MOSFETS are working good.

If i directly filter the PWM signal using RC filter i am getting a sinusoidal voltage waveform.

What might be the problem that i am not getting sinusoidal current waveform ????
If someone interested in debugging my circuit or just wants to run it in their Proteus please tell i will attach the design file.

Here is what i am getting when simulate the circuit
Current waveform
[img]http://i.imgur.com/XbKkVQz.png[/img]

Voltage Waveform
[img]http://i.imgur.com/rp0XPZp.png[/img]

Any help will be appreciated

I wish tahmid is here to help me out, he is the best guy when it comes to share knowledge and helping out.[img][/img]

Displaying ADC value in LCD using PIC

Hi all,

I am in a situation where I need to read ADC value and display it in LCD. Im using PIC18F4620. I have interfaced the LCD with the PIC and it can display normal strings very well. But I have been caught in a difficult situation when I try to read an analog value and display it in my LCD. This is my simple code:

// LCD module connections
sbit LCD_RS at RB0_bit;
sbit LCD_EN at RB1_bit;
sbit LCD_D4 at RB2_bit;
sbit LCD_D5 at RB3_bit;
sbit LCD_D6 at RB4_bit;
sbit LCD_D7 at RB5_bit;

sbit LCD_RS_Direction at TRISB0_bit;
sbit LCD_EN_Direction at TRISB1_bit;
sbit LCD_D4_Direction at TRISB2_bit;
sbit LCD_D5_Direction at TRISB3_bit;
sbit LCD_D6_Direction at TRISB4_bit;
sbit LCD_D7_Direction at TRISB5_bit;
// End LCD module connections



int temp;


void main() {
TRISB = 0; //PORTB as output
TRISA = 0xFF; //PORTA as input
ADCON1 = 0x7A; // Configure all ports with analog function as digital except RA2
CMCON |= 7; // Disable comparators
Lcd_Init(); //Initialize LCD

while (1){
Lcd_Cmd(_LCD_CLEAR);
Lcd_Cmd(_LCD_CURSOR_OFF);
temp = 5000*ADC_Read(2)/1023;


Lcd_Out(1, 1, temp);
Delay_ms(500);
}
}

There are few problems here. I am not sure what value will the variable 'temp' have. When I use the function LCD_Out, I get a warning that reads: "Implicit conversion of int to ptr" and the LCD would show a string of funny symbols. When I use LCD_Chr, it doesnt give any warning, but I only get to see a single numeric character on the display. Furthermore, I am not sure if I should convert temp from hex to decimal or binary to decimal since I am not sure the nature of the read value. Please help me on this, thanks in advance. Your suggestions/opinions are much much anticipated.

GSM Modem Interfacing with PIC Microcontroller

Hi to all...
I am doing a project in which i will be interfacing a gsm modem with PIC microcontroller(16f877).. when i connect the gsm modem with PC i can able to send and read the messages in the sim using AT commands in hyperterminal...Then i iniatized UART in PIC send and received data to PC through hyperterminal its working properly...
When i interfaced PIC with GSM Modem i can able to send AT command to GSM modem but the reply "OK " from GSM modem to PIC is not received by PIC...

Example:

AT (Enter)-----In Hyperterminal
OK ------Message from GSM Modem

Compiler:MikroC
Baud Rate:9600 bps
GSM MOdem:Wavecom HT-W2101

I can able to send AT and Enter command from UART to PIC... But i cant able see the reply from GSM modem... but it works well when i interface GSM modem with PC hyperterminal...

Help me...

Functions Available in PIC18F452

hey, i wana know that there are 40 pins in PIC18F452 i know each pin do the unique work i need the whole description of these 40 pins to understand their working and usage.

Getting Started With Pic Programming, i wana learn

first i hope this is the right section. iv wanted to learn how to program a pic for a while and i have a project in mind that could use one and have decided now is a good time to learn. i want it to do the ps3 jailbreak boot sequence (unplug, plug back in, power then eject quick) it should be a easy beginning ( trigger a relay the either trigger 2 transistors or just short to ground) and it could prolly be done with a 555 but i wana learn how to program pics. keep in mind that i only kno a bit of html, what software/language do i have to get and learn. and anyone know of a tut along the lines of what i have to do ( a input signal will trigger 3 output signals in a timed sequence) or any good beginners tut. thanks to all.
BTW i have all the hardware needed to program the pic and build the circuit

PIC microcontroller and LCD

Hi, I've been working on this issue for days now and I'm not a programmer but I've been trying to make my pic (PIC24HJ12GP201) communicate with my LCD (Matrix Orbital LK204-25). When I connect to output on hyperterm the code works great it shows what it is suppose to show, however I cannot seem to make it work on LCD which is using the serial RS-232 interface. Can anyone please give me an idea as to how to make it work?

Here is the code that I have: [code] #define FCY 25000000 #define BAUDRATE 19200 #define BRGVAL ((FCY/BAUDRATE)/16)-1 void initUART(void) { PORTBbits.RB4 = 1; ///*************************** // Assign U1Rx To Pin RP0 //*************************** RPINR18bits.U1RXR = 0; //*************************** // Assign U1CTS To Pin RP1 //*************************** RPINR18bits.U1CTSR = 1; //*************************** // Configure Output Functions // (See Table 9-2) //*************************** //*************************** // Assign U1Tx To Pin 11 //*************************** RPOR4bits.RP8R = 3; //*************************** // Assign U1RTS To Pin 12 //*************************** RPOR4bits.RP9R = 4; //UART Initialization// PLLFBD=38; // M=40 CLKDIVbits.PLLPOST=0; // N1=2 CLKDIVbits.PLLPRE=0; // N2=2 RCONbits.SWDTEN=0; // Disable Watch Dog Timer while(OSCCONbits.LOCK!=1) {}; // Wait for PLL to lock U1MODEbits.STSEL = 0; // 1-stop bit U1MODEbits.PDSEL = 0; // No Parity, 8-data bits U1MODEbits.ABAUD = 0; // Autobaud Disabled U1MODEbits.BRGH = 0; // Low Speed mode U1BRG = BRGVAL; // BAUD Rate Setting for 19200 U1STAbits.UTXISEL1 = 0; U1MODEbits.UARTEN = 1; // Enable UART U1STAbits.UTXEN = 1; // Enable UART Tx } /////////////////////////////////////////////////////////////////// int main () { unsigned int place1,place2,place3; int STX,ETX,sign,unit_num; int temperature; initADC(); // initialize the ADC initUART(); // initalize the UART LCDinit(); OutStr(">"); The LCDinit(); Is a function from a header. I didn't included it here, but what the LCD requires to perform tasks is to have decimal values sent to it. For instance in order to clear the screen which I've been trying to do, the following must be done (this is excerpt from LCD manual); Clear Screen Syntax Hexadecimal 0xFE 0x58 Decimal 254 88 ASCII 254 ?X? Description This command will immediately clear all of the contents of the display. so what I've done is make the following commands WriteUART1(254); WriteUART1(88); [/code] I do not know why it does not work by sending this, I have the LCD to it's default setting to 19200 baudrate and that's how i set software too. Please, any help with be greatly appreciated
Syed Zain Nasir

I am Syed Zain Nasir, the founder of <a href=https://www.TheEngineeringProjects.com/>The Engineering Projects</a> (TEP). I am a programmer since 2009 before that I just search things, make small projects and now I am sharing my knowledge through this platform.I also work as a freelancer and did many projects related to programming and electrical circuitry. <a href=https://plus.google.com/+SyedZainNasir/>My Google Profile+</a>

Share
Published by
Syed Zain Nasir