Show Posts
Pages: [1] 2 3 ... 103
1  Using Arduino / Programming Questions / Re: SIM900 incoming voice call on: Today at 08:29:40 am
I think it will print RING when an incoming call is going on.
You could parse that and take some action when you received it
2  Using Arduino / Project Guidance / Re: Freeduino with Atmega 168 and RFID Reader/Writer RC522 on: July 27, 2014, 08:34:51 am
You don't provide enough info to help you.How did you wire it?
What programs did you test?
3  Using Arduino / Project Guidance / Re: Problems with Icomsat v1.1 SIM900 GSM/GPRS shield on: July 27, 2014, 08:31:51 am
I know GSM Modem interacts with the Arduino using the Software Serial library on pins 2 and 3, but my understanding is that the GSM library already uses the Software Serial calls when I call up GSM library code.
Your answer is inside the library.I believe it should be using it there inside in the constructor ...
I always use my modems without any library, I use direct AT commands to it.
Apart of that did you successful send the sms?
Oh, and I am using an external power supply of 5v 2.5A. I believe that should be enough, as per the technical specs?
It should be enough but if you want to make sure if that insert a amperimeter between you power supply and modem  and measure how much amps does it drain when you are sending messages or receiving a call.
4  Using Arduino / Project Guidance / Re: Using Large Text on: July 27, 2014, 05:14:04 am
Store those large strings in flash memory using the F macro.
Serial.println(F("This string will be stored in flash memory"));
5  International / Portugues / Re: Gravação de bootloader (arduino uno) e programação em ATMEGA328P-AU? on: July 27, 2014, 03:55:47 am
Apagar o bootloader é mais facil do que tu pensas.Tudo que precisas de fazer é carregar um programa novo e ele será apagado.
6  Using Arduino / Project Guidance / Re: Many PIR's sharing common data line on: July 26, 2014, 06:53:50 pm
I subcribe all the sugestions.A couple of months ago I develop a small project based on RS485 and in my project I power all the nodes using a UTP cable CAT5 like a POE solution.Well it works ok but when you increse the distance for about 200 meters then the voltage drop in the cable is a problem.Just pay atention to that.
Also try to use a swithing power supply at each node, not a 78XX since with lot nodes you will need some juice to power all then.They are not eficient and in my case that reveals a problem when the number of nodes start increasing
7  Using Arduino / Project Guidance / Re: Real Time Clock on: July 26, 2014, 06:27:07 pm
Most of the RTC have a pin named SQRT that output a 1Hz square signal with that exact frequency.If you have a scope you could measure it to see if it is exact.
If you dont have a scope you could try to use interrupts to sense the signal and measure it using millis()
Did you try to change the cr2032 battery?
8  Using Arduino / Project Guidance / Re: Arduino UNO + Ethernet Shield + Temperature Sensor + Apache Server + SQL + PHP on: July 26, 2014, 06:02:54 pm
If you are using Wamp then you should have in systray a W simbol and if you right click on it you sould see Open http folder or something like that.This will show you your root folder where your  index.php file should be.
My advice for now is forget the arduino programming, just setup the php and make sure you are inserting values when you run your php files locally using (http://localhost/yourPhpFile.php/$yourVariable=14)
This should insert the values in mysql if all is ok.Then try to do the same thing in another computer in the same network has your pc where you have Xamp running.
Make sure now you use the ip address like 192.168.XXX.XXX not since refers to itself and you want access your Xamp server that is in another computer.This is an important concept you must understand!
Anyway try in the test computer open browser and visit http://192.168.XXX.XXX/yourPhpFile.php/$yourVariable=15
If you also can insert values in mysql then you can do the same in arduino now.Until you can't do this you will never be able to put it working.
Disable the firewall or open an exception to www service and make sure your apache is listen for external connections.THis is configured in apache.conf

9  International / Portugues / Re: Gravação de bootloader (arduino uno) e programação em ATMEGA328P-AU? on: July 26, 2014, 05:28:45 pm
Como eu falei acima, quero continuar com a facilidade de programação usanso as diversas bibliotecas prontas que ja baixei e uso nas minhas placas.

Como posso gravar?
Ao usares o metodo que te disse tal como o Bubulindo te disse nao perdes nada em termos de bibliotecas nem o que ja tens feito.Tudo ira funcionar igual apenas o metodo de upload do programa será diferente.Se nao usares este metodo e quiseres continuar a usar o bootloader vais ter de arranjar uma soluçao para teres a porta serie acessivel para poderes enviar o programa.Isso implica ou colocares um ftdi232 na board ou arranjares um externo e apenas deixares os pinos de RX,TX,GND,RTS.
Eu vejo mais vantagens em usares o meu metodo numa board final, ja que nao tens o tempo inicial de arranque que o bootloader apresenta quando o micro sofre reset, nao tens problema de auto-reset, ganhas um pouco na flash em termos de tamanho e é igualmente facil enviar o programa e mais rapido.Se reparares na IDE do arduino indo a Ficheiro tens la a opçao Upload using programmer....

10  International / Portugues / Re: Gravação de bootloader (arduino uno) e programação em ATMEGA328P-AU? on: July 26, 2014, 11:05:57 am
Porque nao apenas colocas um header ISP na board e programas directo com um programador ISP.
11  International / Portugues / Re: Módulo de reconhecimento de voz V2 on: July 26, 2014, 04:28:27 am
Esse módulo se nao estou em erro liga por porta serie logo sim podes ter mais que um se usares a serie nativa e virtualizares uma usando o newsoftserial.Se usares um mega podes liga-lo  nas portas serie nativas sem recorrer ao newsoftserial
12  Using Arduino / Project Guidance / Re: Problems with Icomsat v1.1 SIM900 GSM/GPRS shield on: July 25, 2014, 08:02:56 am
Sending an SMS is very simple.All you need is to write the right AT commands and make sure you are connecting it to the right softserial pins.
Note that the SIM900 and another modems need about 2 A when they are transmitting or receiving something.
Your usb port should not be able to deliver 2A so an external power is needed to power the modem.That is explicit described on the datasheet of the SIM900
On the code below adapt you sms number to where you want to send the sms, upload the code to the arduino, open your serial port on IDE and press t do send a message or d do dial to your number
This will give you an hint how you could handle it
Hope it helps


#include <SoftwareSerial.h>
//#include <String.h>

SoftwareSerial mySerial(2, 3);

void setup()
  mySerial.begin(19200);               // the GPRS baud rate  
  Serial.begin(19200);    // the GPRS baud rate

void loop()

  if (Serial.available())
    case 't':
    case 'd':

  if (mySerial.available())

///this function is to send a sms message
void SendTextMessage()
  mySerial.print("AT+CMGF=1\r");    //Because we want to send the SMS in text mode
  mySerial.println("AT + CMGS = \"+3519XXXXXXXX\"");//send sms message, be careful need to add a country code before the cellphone number
  mySerial.println("A test message!");//the content of the message
  mySerial.println((char)26);//the ASCII code of the ctrl+z is 26

///this function is to dial a voice call
void DialVoiceCall()
  mySerial.println("ATD + +3519XXXXXXXX;");//dial the number
13  Using Arduino / Project Guidance / Re: RFID Tag as security for arduino on: July 25, 2014, 07:51:25 am
What RFID device are you using?
How do you connect it(serial, i2c, spi)?
14  Using Arduino / Project Guidance / Re: RFID Tag as security for arduino on: July 25, 2014, 06:48:14 am
Simple.Something like this sudo code should work

void setup()
   if(rfReader.card() == myTagg) break;//If this doesn't match it will be in the while forever until a valid match is found

15  International / Portugues / Re: Como ler no arduino a porta serial criada pelo Bluetooth? on: July 17, 2014, 02:06:54 am
A questão é, quado eu faço o emparelhamento do módulo bluetooth com o meu pc é criado uma porta serial responsável por mostrar os dados enviados pelo bluetooth, mas como eu posso pegar esses dados e executar alguma ação no arduino 2?
Com o que tu nao queres fazer smiley-mr-green
Eu não queria fazer um programa em php, java, c#, etc para intermediar...
Não tens como fugir a isso!
Vais ter de fazer um programa numa linguagem que consigas programar(VB,C#,Delphi,Java,c++,c ....) e ficar a escuta nessa porta serie que o teu Bluetooth cria e eventualmente depois tratares isso  enviar para a outra porta serie onde esta o arduino 2

Pages: [1] 2 3 ... 103