Show Posts
Pages: 1 [2] 3 4 ... 6
16  Forum 2005-2010 (read only) / Interfacing / Re: Arduino + PHP on: March 17, 2008, 07:49:45 pm
Well, sorry, I will try to be more clear this time.

I'm trying to learn how to use arduino to communicate with software. I know some C and PHP. I would like to be able to build a email checker, that would, for example, use PHP to get the information from the EMAIL, and if there is a new email, get a program in C that would send some serial information to arduino to turn a led on. I found something like that on the web, but using python, and I couldn't get how it works. If anyone could give me some advices, it would be nice. smiley

Another thing would be to send some information from arduino to a program in C, for example, the number of an variable of somethings.

Thanks smiley
17  Forum 2005-2010 (read only) / Interfacing / Arduino + PHP on: March 17, 2008, 06:16:10 am
Hello everyone, I would like to know if there is some place where I can get some help on how to use arduino with php.
thanks smiley
18  Forum 2005-2010 (read only) / Development / Re: Converting number 7 to 07 on: August 03, 2008, 11:59:05 am
thanks mem, it worked that way =)
19  Forum 2005-2010 (read only) / Development / Converting number 7 to 07 on: August 03, 2008, 10:42:18 am
Hi all, im trying to build a lcd clock, and would like some help here.

I believe this is quite simple, i just don't know how to do it, and didn't found it how to do it with arduino.

I want to print one number, for example 7, but want it to have 2 digits, like 07.

if it was C it would be like printf("%.2d \n",x);

i'm using this

lcd.printIn(itoa(hour, buf, 10)); , want that the variable hour comes with two digits

thanks!
20  Forum 2005-2010 (read only) / Development / Re: LCD Blinking on second line on: August 02, 2008, 11:21:49 pm
yes, it worked, thanks mate! smiley-grin
21  Forum 2005-2010 (read only) / Development / LCD Blinking on second line on: August 02, 2008, 10:49:03 pm
Hello guys, I've just started playing with arduino + LCD
i'm trying to build a clock + temperature sensor using arduino.

the lcd display is updating every sec, but the problem is that the second line keeps blinking when it refreshes.

anyone could help me solve this?

I've made a movie so you know what i'm talking about:
http://flickr.com/photos/pasteler0/2726462259/

the code i'm using is this:

Code:


#include <LCD4Bit.h>
LCD4Bit lcd = LCD4Bit(2);

int second=20, minute=10, hour=14, i=0; //start the time on 00:00:00
char buf[12];

int pin = 0; // analog pin
int tempc = 0,tempf=0; // temperature variables
int samples[8]; // variables to make a better precision
int maxi = -100,mini = 100; // to start max/min temperature

void setup() {
  lcd.init();
  pinMode(11,OUTPUT);
}

void loop() {  
 
  digitalWrite(11,HIGH);
  
  static unsigned long lastTick = 0; // set up a local variable to hold the last time we moved forward one second
// (static variables are initialized once and keep their values between function calls)
// move forward one second every 1000 milliseconds

        if (millis() - lastTick >= 1000) {
      lastTick = millis();
      second++;
        serialOutput();
  }
        if (second >= 60) {
      minute++;
      second = 0; // reset seconds to zero

  }
        if (minute >=60) {
      hour++;
      minute = 0; // reset minutes to zero
  }

        if (hour >=24) {
      hour=0;
      minute = 0; // reset minutes to zero
  }


}

void serialOutput() {
 
  tempc = ( 5.0 * analogRead(pin) * 100.0) / 1024.0;
  
  lcd.clear();
  lcd.printIn("Hora: ");  
  lcd.printIn(itoa(hour, buf, 10));lcd.printIn(":");
  lcd.printIn(itoa(minute, buf, 10));lcd.printIn(":");  
  lcd.printIn(itoa(second, buf, 10));
  lcd.cursorTo(2, 0);
  lcd.printIn("Temp: ");
  lcd.printIn(itoa(tempc, buf, 10));
  
  tempc = 0;

}


22  Forum 2005-2010 (read only) / Portugues / Re: Pedido na Sparkfun veio faltando itens on: May 31, 2010, 03:43:54 pm
desculpe, mas uma pergunta meio fora do contexto,
quanto tempo demorou e pagou imporsto? smiley-razz
23  Forum 2005-2010 (read only) / Portugues / Re: Led Driver TLC5940 Onde comprar? on: May 23, 2010, 01:35:51 am
Exemplo para tornar qualquer I/O PWM

Code:
void setup()
{
  pinMode(13, OUTPUT);
}

void loop()
{
  digitalWrite(13, HIGH);
  delayMicroseconds(100); // Approximately 10% duty cycle @ 1KHz
  digitalWrite(13, LOW);
  delayMicroseconds(1000 - 100);
}
24  Forum 2005-2010 (read only) / Portugues / Re: Led Driver TLC5940 Onde comprar? on: May 22, 2010, 09:50:39 pm
http://nootropicdesign.com/projectlab/2010/03/14/mood-lamp/

Esse projeto é legal
mostra como usar todos os pinos do arduino com pwm.
é meio complicado o código, mas acho que dando uma estudada rola! smiley
25  Forum 2005-2010 (read only) / Portugues / Led Driver TLC5940 Onde comprar? on: May 22, 2010, 12:54:12 pm
Olá, estou precisando do Driver de LED TLC5940
alguem sabe onde comprar no brasil?
Não tenho tempo para esperar chegar de fora.
Obrigado
26  Forum 2005-2010 (read only) / Portugues / Re: Camisas Arduino on: November 18, 2009, 03:14:20 pm
Fizemos apenas 30 camisas, de diversos tamanhos! Não sei se vão durar muito tempo.

Valeu smiley
27  Forum 2005-2010 (read only) / Portugues / Camisas Arduino on: November 17, 2009, 07:16:56 pm
Opa pessoal, tudo bom?
É com grande orgulho que venho aqui mostrar para vocês as mais novas
camisas do Arduino. Feitas por fans para fans!!!
Abaixo você pode conferir algumas imagens das camisas, que ficaram
muito boas e com um ótimo tecido.
http://farm3.static.flickr.com/2560/4107742044_ee8b797a66.jpg
http://farm3.static.flickr.com/2739/4107741284_e79e19edb8.jpg
http://farm3.static.flickr.com/2781/4106975615_754ee62f58.jpg
Tamanhos
Masculina:
GG/G/M
Feminina:
G/M
Como não fizemos MUITAS camisas, logo quem quiser é bom garantir a sua
assim que possível.
Para comprar, mande um email para daniel [a] danielandrade.net
que daí eu passo as informações para depósito.
O preço fica R$25 + Envio.
Valeu pessoal, muito obrigado pela força!!!
Um abraço a todos
Daniel
28  Forum 2005-2010 (read only) / Portugues / Sensor Sharp GP2D120 on: March 26, 2009, 06:37:53 am
Alguem sabe onde posso conseguir o sensor Sharp GP2D120
no brasil?

valeu =)
29  Forum 2005-2010 (read only) / Portugues / Re: Arduino Severino - Tantalo on: October 11, 2008, 07:22:44 am
Ah, huehue, bom saber!  smiley

valeu!!!

assim que der eu posto fotos da montagem

abraços
30  Forum 2005-2010 (read only) / Portugues / Arduino Severino - Tantalo on: October 10, 2008, 03:28:18 pm
Opa, estou montando um arduino severino,
mas tenho uma dúvida...

estava comprando as peças, e os capacitores de tantalo, custam em torno de R$20 aqui no brasil.

quais capacitores posso usar para substituir?

valeu
Pages: 1 [2] 3 4 ... 6