Show Posts
Pages: [1]
1  Forum 2005-2010 (read only) / Development / connect two ardui on: September 25, 2006, 04:54:34 am
Hi I am trying to build  serial connect between two arduino baords with radio connection.

The recipient module gets values from 0V to 0,8 V. So I boosted up the signal that 0V stays 0V (digital 0) and everything grater than 0,6 becomes ~ 5V (digital 1).

Is it correct that the serial input (RX) accepts ~0V als logigal 0 and ~5V als 1??

Thanks for your help!
2  Forum 2005-2010 (read only) / Interfacing / Interfacing with Nikon D80 SLR on: July 25, 2008, 02:30:21 pm
Hello,

is there somebody having an idea how to connect an arduino board to an SLR (e.g. Nikon D80). I'm thinking about building a bluetooth trigger...

Mr. Google doesn't really give an answer.

Thanks!

KR,
FJ


3  Forum 2005-2010 (read only) / Interfacing / Re: use pin 0 (RX) and 1 (TX) for wireless connect on: September 20, 2006, 04:41:28 am
Quote
are both boards connected on ground?

Mhm, what do you mean by that? Recipient and Transmitter module are connected to ground.

Thanks for your help!!
4  Forum 2005-2010 (read only) / Interfacing / Re: use pin 0 (RX) and 1 (TX) for wireless connect on: September 20, 2006, 03:58:35 am
Hi!

You told me that there arduino accepts 5V (with a little tolerance) as HIGH. And 0V for LOW. Is there somewhere some information which range of tolerance arduino accepts?

Thanks!!

Quote
well i wanted to write you that it should just work now. but then i read the datasheet you provided a third time :-)

sending and receiving probably works right now. the problem is your receiver's output signal. it's 0 volts for LOW but only 0.8 volts for a HIGH. arduino expects 5V with a little (!) tolerance.

you need to amplify the signal, which should be no hard task. but i don't think i'm the best person to help you here. i guess a single transistor could do the job. there should be plenty of infos on the internet.

keep us updated!

best, kuk
5  Forum 2005-2010 (read only) / Interfacing / Re: use pin 0 (RX) and 1 (TX) for wireless connect on: September 19, 2006, 05:52:02 am
Hi!

I tried to build a direct connection between two arduino boards. So there is a direct connection between TX of the one board and RX of the other board. And it works - sometimes. If I remove the direct connetion and again plug it in, I receive total different values. After disconnecting and connecting again there is the right value again (SOmetimes I get 19, sometimes 164, and then 52, which is correct then).

This is the code I used.

------------------------------------------------------
------------------------------------------------------
RECEIVER:
int income = 0;

int receiveLED = 12;

void setup() {
  pinMode(receiveLED, OUTPUT);
  Serial.begin(9600);  
}

void loop(){
        income = 0;        

        if (Serial.available() > 0) {
            income = Serial.read();
                          Serial.println(income);
                  if (income == 79){          
                                   digitalWrite(receiveLED, HIGH);   // sets the LED on       

                                   }else{

                         digitalWrite(receiveLED, LOW);

                        }
                }else{
                  digitalWrite(receiveLED, LOW);

                  }

}


------------------------------------------------------
------------------------------------------------------
TRANSMITTER:

int send = 52;

int sendLED = 12;

void setup() {
  pinMode(sendLED, OUTPUT);
  Serial.begin(9600);  
}

void loop(){
    Serial.print(send, BYTE);  
}


------------------------------------------------------


Thanks for your help!!
6  Forum 2005-2010 (read only) / Interfacing / Re: use pin 0 (RX) and 1 (TX) for wireless connect on: September 18, 2006, 01:43:14 pm
Thanks for your help!!

I think I have a problem with transmitter or receiver - dont know.

If I direktly connect PIN 0 and PIN 1 everything works great. Butt if I replace TX with the transmitter module and RX with the receiver module nothing happens nothing happens. SOmetimes receiver gets any values. How do I best debug this problem?

As said, I'm using the  www.conrad.at module --> Article-Nr.: 130428 - 62  

This is the code I have - I attached RX and TX module on one arduino board:

int send = 52;
int income = 0;

int receiveLED = 12;

void setup() {
  pinMode(receiveLED, OUTPUT);
  Serial.begin(9600);  
}

void loop(){
    income = 0;    
    
    //transmitt
    delay(700);  
    Serial.print(send, BYTE);
 

    //receive
    if (Serial.available() > 0) {
           income = Serial.read();
           //Serial.print("receive:");
           //Serial.println(income);

           if (income == 52){
              for (int i=0; i < 3; i++){  
              digitalWrite(receiveLED, HIGH);   // sets the LED on
              delay(300);                          // waits
              digitalWrite(receiveLED, LOW);    // sets the LED off
              delay(300);      
            }      
           }
    }    
}


Thanks for helping me!!
fj
7  Forum 2005-2010 (read only) / Interfacing / Re: use pin 0 (RX) and 1 (TX) for wireless connect on: September 12, 2006, 01:25:24 pm
And how can I transform those numbers to readable signs?

Thanks.

FJ
8  Forum 2005-2010 (read only) / Interfacing / Re: use pin 0 (RX) and 1 (TX) for wireless connect on: September 12, 2006, 11:42:22 am
AHA,

I am also sending "I sent". AHA :-)

FJ
9  Forum 2005-2010 (read only) / Interfacing / Re: use pin 0 (RX) and 1 (TX) for wireless connect on: September 12, 2006, 11:11:26 am
Hi!

I tried it with connecting RX and TX with a jumper cable.

LED is blinking when it receives data.

int send = 5;
int income = 0;
int led = 12;

void setup() {
  pinMode(led, OUTPUT);
  Serial.begin(9600);  
}

void loop(){

    // transmitter
    Serial.print("I sent: ");
    Serial.println(send, DEC);

    // reciever
    if (Serial.available()) {
        digitalWrite(led, HIGH);   // sets the LED on
        delay(1000);                  // waits for a second
        digitalWrite(led, LOW);    // sets the LED off
        delay(1000);      
      
        income = Serial.read();
        Serial.print("I received: ");
      Serial.println(income, DEC);
       }
    delay(2000);
}



But the output is quiet strange:

I sent: 5
I received: 32
I sent: 5
I received: 115
I sent: 5
I received: 101
I sent: 5
I received: 110


The value of "I received" should be 5, I assume!?

Thanks for help!!
10  Forum 2005-2010 (read only) / Interfacing / Re: use pin 0 (RX) and 1 (TX) for wireless connect on: September 12, 2006, 08:50:25 am
Thanks  for answering.

I'll try what you posted.


The modul can be seen at www.conrad.at --> Article-Nr.: 130428 - 62

This is a better description http://www2.produktinfo.conrad.com/datenblaetter/125000-149999/130428-an-01-ml-Sender_Empfaenger_Modul_Set_de-en-fr.pdf

Bye!
11  Forum 2005-2010 (read only) / Interfacing / Re: use pin 0 (RX) and 1 (TX) for wireless connect on: September 12, 2006, 07:02:49 am
Ok, this is the code i tried to use:

int send = 5;
int income = 0;

void setup() {
  Serial.begin(9600);  
}

void loop(){

    // transmitter
    Serial.print("I sent: ");
    Serial.println(send, DEC);


    // reciever
    if (Serial.available()) {
        // read the incoming byte:
      income = Serial.read();

            // say what you got:
            Serial.print("I received: ");
            Serial.println(income, DEC);
    }
}


But I get an errror when i want to move the code to the arduino board. --> "Programmer is not responding." (even through pressing RESET)
When I remove the PINS from 1 (TX) and 0 (RX) installation is possible

THis is how I configured the board and the modules:


Thanks for your help
12  Forum 2005-2010 (read only) / Interfacing / Re: use pin 0 (RX) and 1 (TX) for wireless connect on: September 12, 2006, 02:25:30 am
THis is some technical info about hte TX and RX module



http://www2.produktinfo.conrad.com/datenblaetter/125000-149999/130428-sp-01-en-Sender_Empfaenger_Modul_Set_433MHz.pdf

I have a general question. How do I say the arduino board to use pin 0 and pin 1 for serial communication?

pinMode(0, INPUT);   ??
pinMode(1, OUTPUT);  ??

FJ

13  Forum 2005-2010 (read only) / Interfacing / Re: use pin 0 (RX) and 1 (TX) for wireless connect on: September 12, 2006, 02:17:50 am
Hi!

Thanks for answering!

This is what I have:
transmitter:
   freq: 433.92 MHz
   HF modulation: AM
   Voltage: 3 to 12 V/DC
   Power consumption: 2 to 10 mA
   bandwidth: 2 kHz
   Input SIgnal: Square wave signal (Manchester encoding) - amplitude depending on strengh of operation voltage of transmitter

receiver:
   freq: 433.92 MHz
   HF modulation: AM
   Voltage: 5 V/DC
   Power consumption: 1 mA
   bandwidth: 2 kHz
   Output SIgnal: Hi +0.8 V; Lo 0 V

The desciption say:
Externally produced (I assume with the arduino) serial data are high-frequency modulated by the transmitting module and transmitted to the receiving module via radio link. The receiver demodulates the high-frequency signal and provides the transmitted serial data.

First I would like to test the radio link on just one arduino board. But later I will have a second arduino to allow radio communication between them.

I will have a look at the links, thank you!!



image taken from www.conrad.at
14  Forum 2005-2010 (read only) / Interfacing / use pin 0 (RX) and 1 (TX) for wireless connection on: September 11, 2006, 02:49:49 pm
Hi,

i would like to biuld a radio connection. Is there somebody having experience with that?

I have attached a sender (to TX pin 1) and a recipeint (RX) to my arduino board.

How can I send information between those two components?

Serial.write and Serial.read?

Thanks for your help!
Pages: [1]