Show Posts
Pages: [1] 2 3 ... 7
1  Using Arduino / Interfacing w/ Software on the Computer / Program arduino nano without wires using xbee on: May 07, 2013, 06:14:21 pm
Hello, I have two xbees pro 900mhz at 115200 and wanted to program my arduino nano with an xbee connected to FTDI and the FTDI to the computer, and the other xbee connected to the arduino nano. But I needed to know what pins I must connect from the arduino that is gonna be connected to the arduino nano.
Thanks!
2  Using Arduino / Interfacing w/ Software on the Computer / Re: Thinker Proxy + flash broken data on: August 12, 2012, 11:48:19 am
//import flash.errors.*;
At flash:

import flash.events.*;
import flash.net.Socket;
var serial:String;
//Create a socket connection to the deafult tinkerProxy port
var arduinoSocket:Socket = new Socket("localhost",5334);
arduinoSocket.addEventListener(ProgressEvent.SOCKET_DATA, socketDataHandler);

function readResponse():void
{
   serial = arduinoSocket.readUTFBytes(arduinoSocket.bytesAvailable);
   touch(serial);
}

function socketDataHandler(event:ProgressEvent):void
{
   readResponse();
}


and at arduino is a simple
println("1000000000000000")
   trace(serial);
}
3  Using Arduino / Interfacing w/ Software on the Computer / Re: Thinker Proxy + flash broken data on: August 12, 2012, 11:40:12 am
It's a socket-to-serial for using arduino with flash:

http://code.google.com/p/tinkerit/wiki/TinkerProxy

Please help me smiley-sad
4  Using Arduino / Interfacing w/ Software on the Computer / Thinker Proxy + flash broken data on: August 12, 2012, 11:28:20 am
I'm using thinker proxy to interface arduino-to-flash but I'm receiving LOST/Broken data.

My arduino is outputing: "1000000000000000"

and the flash receives:

"100
0000000000000"

or

"1
000000
0000
00000"

What's the problem??

Please help me  smiley-cry smiley-cry
5  Using Arduino / Interfacing w/ Software on the Computer / Ethernet shield + flash on: March 19, 2011, 04:32:57 pm
I want to make a tamiya tank controlled by a flash program that will embed the live video transmitted from it. But I can't do it with HTML pages, because I can't make a code that makes the tank runs while i'm pressing the button, and stop when I release it. So I want to make a flash application that connects to the shield and send data, like, the tank stills running until I release the button.

Thanks!
6  Forum 2005-2010 (read only) / Forum / H-bridge and voltage regulator problems on: August 09, 2010, 04:26:58 pm
Hi, I'm using a L293D H-bridge to control two 3v motors, and controlling this with arduino. To power the motors I'm using a Lm7805 5v voltage regulator to power the motors (them work good in 5v). The problem is that when I use the h-bridge with an external power, it works really good, but when I power it with the same 9v battery used to control the arduino (while this is powering the arduino), they don't work (of course, regulating the voltage with Lm7805). I can see that them try to move, but they can't.

Can somebody help me? Thanks!
7  Forum 2005-2010 (read only) / Troubleshooting / Re: Iremote problem on: January 21, 2011, 08:09:19 am
Detail: this confirmation number is the same for ALL the buttons, so that's why I need to verify the code of the button first.
8  Forum 2005-2010 (read only) / Troubleshooting / Iremote problem on: January 21, 2011, 08:08:33 am
I'm using the Iremote lib and my LG controller is: when I press any button, he send the code of this button one time ex: 551489775, and then starts sending a confirmation number (4294967295) that is being sent until I release the button. I wrote a code to verify if the power button were pressed and then turn a led on until I release the power button. But It's not working!

if (remote()=="551489775") {
delay(50);
     while(remote()=="4294967295") {
digitalWrite(led, HIGH);
     }
      digitalWrite(led, LOW);
   }

//The function
String remote () {
   String code = "";
  if (irrecv.decode(&results)) {
    code += String (results.value, HEX);
    irrecv.resume(); // Receive the next value
        return(code);
    }
}
9  Forum 2005-2010 (read only) / Troubleshooting / virtualWire bits per sec problem on: January 10, 2011, 09:54:19 am
I'm using the virtualWire library to send some data but it works only at 2000 bits per sec, if I setup to 4800 (my 433.92 rf modules rate) it almost don't works, only send the signal so far away, and always lost signal. But with 2000bps I have a pretty good signal. The problem is that I have to use a delay(200); at the loop, If I don't use this I don't get any results. But this delay makes a slow responde, and I need to send data imediatelly, without delay.

Somebody knows what can be happening?

Thanks!!!  :smiley
10  Forum 2005-2010 (read only) / Troubleshooting / Re: RF modules on: December 25, 2010, 03:18:24 pm
Ok, so, how to send numbers via virtualWire? I tried but always tell me about wrong conversion from const char to int, something like this
11  Forum 2005-2010 (read only) / Troubleshooting / Re: RF modules on: December 25, 2010, 03:09:34 pm
The virtualWire worked, but I don't wanna use this lib, I want to make my own serial communication, and connected the transmitter on the tx of the arduino that sends the signal and the receiver on the rx pin of the arduino that receives the signal.
Even if I'm receiving something but not the entire text, the arduino should tell me, because I tried a code like this:
if (Serial.available) { Serial.print(Serial.read())} Anything that are received by the arduino should appears on the serial monitor
This should output any value, in case, I tried to send the "o" char, but nothing appears on the serial monitor.
12  Forum 2005-2010 (read only) / Troubleshooting / Re: RF modules on: December 23, 2010, 10:14:52 am
Well, so I have to verify if the received char is < and then make a for to finish the text? Gonna try it
13  Forum 2005-2010 (read only) / Troubleshooting / RF modules on: December 23, 2010, 09:23:33 am
Hello everybody, I'm trying to send soem data via the tx and rx pins of the arduino. I used a rf 433.92 tx module connected to the arduino tx and a rf 433.92 rx module connected to the arduino rx. I tried to write and print with the tx, and in the rx tried to read, but I get nothing...

I already used the virtualWire library and worked well, that means I didn't do nothing wrong with the connections. Maybe the problem is the code.

Here's the tx code:

void setup () {
 Serial.begin(4800);
 pinMode(3, OUTPUT);
 }
void loop () {
 Serial.write("ok"); // Already tried print and got nothing

}


And here's the rx code:

String text = String("  ");
      void setup(){
        Serial.begin(4800);
        pinMode(13,OUTPUT);
      }
      void loop(){
        int pos = 0;
        while(Serial.available()>0){
          char c = char(Serial.read());
          text.setCharAt(pos,c);
     pos++;
        }
        if(text.equals("ok")){
          digitalWrite(13,HIGH);
          delay(1000);
          digitalWrite(13,LOW);
          text = String("  ");
        }
      }

Thanks!
14  Forum 2005-2010 (read only) / Portugues / Re: Iremote urgente on: January 20, 2011, 05:31:42 pm
Olá.

Não posso fazer isso porque não quero que ele seja ou um ou outro, tem que ser um e depois o outro.
Eu mudei pra isso:

if (code=="551489775") {
funcao_que_busca_o_novo_codigo();
     while(code=="4294967295") {
digitalWrite(led, HIGH);
     }
   }  else {
      digitalWrite(led, LOW);
   }
Depois que ele acha o número ele busca pelo novo código, mas continua não funcionando!
15  Forum 2005-2010 (read only) / Portugues / Iremote urgente on: January 20, 2011, 03:49:16 pm
Pessoal estou precisando fazer um negócio pra um trabalho urgente, estou usando a lib Iremote e o meu controle é assim, cada botão tem um código, quando clica no botão power e solta rapidinho ele envia 551489775, e quando clica e segura ele envia 551489775 uma vez e logo depois tudo que ele envia é 4294967295. Portanto eu fiz um código pra quando eu segurar o botão power ele acenda um LED, mas não está funcionando. Alguém pode analisar o código? Muito obrigado!

if (code=="551489775") {
      while(code=="4294967295") {
digitalWrite(led, HIGH);
      }
    }  else {
       digitalWrite(led, LOW);
    }
Pages: [1] 2 3 ... 7