Show Posts
Pages: 1 ... 11 12 [13] 14 15
181  International / Deutsch / SainSmart UNO als Ersatz für Arduino Uno on: October 03, 2012, 05:52:50 am
Hallo,

da ich für meine geplante Funkverbindung noch einen Mikrocontroller brauche, habe ich mich mal bei ebay umgeschaut und den SainSmart UNO entdeckt.
Momentan besitze ich einen echten Arduino Uno R3, mit dem ich sehr zufrieden bin.

Ist denn der SainSmart Uno ein vollwertiger Ersatz, d.h. kann ich damit genauso Sketches raufladen, die Pins arbeiten genauso... ?

Den einzigen Unterschied, den ich so gesehen habe ist, dass der Reset-Knopf in der Mitte anstatt in der Ecke ist, was für mich aber kein Nachteil ist.

Vielen Dank
182  Using Arduino / Networking, Protocols, and Devices / Re: using the microphone input at the computer for analyzing on: September 30, 2012, 03:48:16 pm
Ok, onfortunately, it definitely doesnt work. However, thank you for the explanation.
183  Using Arduino / Networking, Protocols, and Devices / Re: using the microphone input at the computer for analyzing on: September 30, 2012, 01:49:43 pm
Because I want to see the raw data, I simply read the RX's output with digitalRead(rx_pin) whereby rx_pin is the pin where the receiver is put in. And then check if this changed.



The program I wrote simply reads Serial input from COM port 10 and then saving these values in an array, depending of Odd(i) whereby i is the counter, it is drawn as 1 or 0. whereby odd(i) is the function i%2==1 (modulo).

I think the problem is that the Serial transmission is too slow for the amount of data that is sent, therefore I wanted to directly putthe RX's ouptut in the microphone input and then getting the graph with Audacity. Is that possible?

184  Using Arduino / Networking, Protocols, and Devices / Re: using the microphone input at the computer for analyzing on: September 30, 2012, 08:36:56 am
like illustrated in the picture 0 - 5V DC
It is for a 433MHz receiver and I want a good graph result
I already used a simple serial.println and read it via a terminal and converted these data to a graph
However, this method was very slow and unreliable.

185  Using Arduino / Networking, Protocols, and Devices / using the microphone input at the computer for analyzing on: September 30, 2012, 07:07:05 am
Hello,

the Protocol Analyzer uses a microphone input for the incoming signal.
Also Audacity can do this.

Can I use my earphone's cable that has a pin (that I can put into the PC's microophone input) and cut the cable and then supply voltage... ?

This is how I think:


Thank you
186  Using Arduino / Networking, Protocols, and Devices / Re: 433MHz RX/TX question, Manchester encoding on: September 25, 2012, 11:33:23 am
Ok, that sounds bad.
However, thank you for the explanation.

Have you any idea what could that be,  that is interferencing with the signal?

It is difficult to find simple remotes (ASK without encoding) that are reliable.
187  Using Arduino / Networking, Protocols, and Devices / Re: 433MHz RX/TX question, Manchester encoding on: September 25, 2012, 08:44:53 am
Hello,

or could I have to use a pull down(?) resistor to avoid a read from random data that is not actually given out by the rx?



So maybe if the receiver doesn't give me anything at its pin, there might be read a wrong voltage. (referring to "bouncing buttons") or is it very different between different modules?

By the way:
 I think, am really sure, that the up and downs in the raw read graph output were caused by the lack of a pulldown. I checked the following: read the value digitalRead(smiley-cool of pin 8 without anything but a cable put in pin8 - not more, thats all. Then touched the cable, moved it and the values changed rapidly (I think that is what is understood by "BOUNCING").

~
188  Using Arduino / Networking, Protocols, and Devices / Re: 433MHz RX/TX question, Manchester encoding on: September 24, 2012, 09:08:11 am
Actually, I don't know if the signal is Manchester encoded. The seller told me that it doesn't use encoding/decoding functions.
Does it has to use any kind of encoding or could I do it myself, that means: sending encoded data and receive and then decode it manually.?

I still want to know WHY there are these up and downs in what I recorded of the receiver (referring to the graph).
189  Using Arduino / Networking, Protocols, and Devices / Re: 433MHz RX/TX question, Manchester encoding on: September 23, 2012, 04:28:43 pm
Unfortunately, Virtualwire didnt work. The output was like this:
"
Sent
Timeout
"
So, it didnt receive an answer

However, I want to know HOW the signal is transmitted at all.

Quote
This is supposed to be connected to the pin that is providing the data to transmit. Why is it connected this way?
Thats what i did later, too. I wanted to test if a signal is transmitted
I expected that the receiver gives 5v at data out if 5v is supplied to transmitter's data in and receiver has 0v at data out if transmitter gets 0v at its data in (but it is NOT !??)

---
I tried the following:
rx/tx modules at one arduino (have only one) and the following code : (written myself)
Code:
// <CODE>; Freitag, 31. August 2012

#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 9); // RX, TX // i dont use rx=10 because I want to see how it looks like in a graph

int           pin       = 8;    // RX pin
int           ledpin    = 13;
int           laststate = 0;
unsigned long ausgabe;       // micros() nach 70min UEberlauf -> genug Zeit
unsigned long ausgabe_ = 0;
unsigned long micros_  = 0;
byte          i        = 0;
boolean       oddnow   = false;

void setup()
{
  Serial.begin(9600);
  Serial.println("pulse_in raw^2, <v2.4>;   31.8. - 23.9. 2012\n");

  pinMode(ledpin, OUTPUT);
  digitalWrite(ledpin, LOW);

  pinMode(pin, INPUT);
  //digitalWrite(pin, HIGH);//pullup

  mySerial.begin(9600);
  mySerial.println("Hello, world?");
}


void loop()
{
  unsigned long myc = micros();

  if (Serial.available())
    mySerial.write(Serial.read());

  if ((myc - micros_) / 100 >= 1000 * 1000 * 5)  // 5 Sekunden
  {
    micros_ = myc;
//    mySerial.write(i); //just test;dont execute
    i++;
  }

  int nowstate = digitalRead(pin);

  if (nowstate != laststate)
  {
    oddnow  = !oddnow;
    ausgabe = myc;

    Serial.println(ausgabe);

    if (oddnow) // only every second time
    {
      unsigned long diff = ausgabe - ausgabe_;
      if ((diff < 7000) || (diff > 12000)) // if dutycicle is MUCH different
      {
        //Serial.print("   D = ");
        //Serial.println(diff); // bewirkt anderen Duty-Cycle falls zu hauefig angewendet
        digitalWrite(ledpin, !digitalRead(ledpin));
      }
    }

    ausgabe_  = ausgabe;
    laststate = nowstate;
  }
}

So basically a led changes it state (on->off  /  off->on) if dutycyle(?) changed . AND it worked.
I know, that it is a very bad technique but it shows that it could work.

What happens here?:



Why does the receiver has an output 0V / 5V changing rapidly ?

190  Using Arduino / Networking, Protocols, and Devices / 433MHz RX/TX question, Manchester encoding on: September 20, 2012, 09:20:57 am
Hello,

I have bought this 433MHz ASK transceiver link kit.
Now, with Arduino, I want to send signals with these modules.

At first, to analyse, I've built the following:
Receiver: Vcc to 5V, GND to GND, out-Data to pin10(shouldnt matter which pin to use)
Transmitter: Vcc to 5V, GND to GND, in-Data via a button to 5v and a in-data via a resistor to GND (look picture)

That means:
- I press the button: transmitter gets 5V as input
- I dont press the button: transmitter gets 0V as input

Then I wrote a simple program to check what is received (because it's ASK modulation, it should be 5V or 0V (proved with analog in))
I used "digitalRead" and  looked for changes, that means, in the loop , i have:
Code:
void loop()
{
  int nowstate = digitalRead(pin);

  if (nowstate != laststate)
  {
    Serial.println(micros());
    laststate = nowstate;
  }
}

The results are the x-values for a graph


Why is it always up and down when I send nothing?
How can I receive/send signals  and read them?

Thank you


191  Using Arduino / Sensors / Re: attach an Ultrasonic Distance Sensor near the bottom on: September 01, 2012, 02:26:30 pm
Ok, thank you very much.
And yes, it is a (almost) right angle where the signals should be reflected and so get its echo.

192  Using Arduino / Sensors / Re: attach an Ultrasonic Distance Sensor near the bottom on: August 31, 2012, 01:11:12 pm
Hello,

0.2 - 2 cm refer to the distance between the signal and the ground that is parallel to the signal's path. That's why I said in the title "attach an Ultrasonic Distance Sensor near the bottom". In the second picture, the light blue ray should depict the path of the ultrasonic signal which goes parallel to the bottom of the room. Is this also a problem?
And thanks for recommending the library.
193  Using Arduino / Sensors / attach an Ultrasonic Distance Sensor near the bottom on: August 29, 2012, 12:01:30 pm
Hello,

as the title may suggest, my intention is to create a measuring system that does not need very high accuracy and shall provide a fast result. To achieve that, I want to use a ultrasonic sensor.
Of course, there are easier methods but it should make some fun.

I drew a sketch how I thought it should look like (with Cabri 3D v2.1.2).


The object is attached on the very right side.


So the resulting distance is the full length (ca. 2 meters) minus the length that was measured by the ultrasonic distance sensor.

? Is there a problem that the sensor is very near to the bottom?


I am also planning to create a very similar device (actually the same, 90 degrees turned) that shall measure my body height.

source (stick figure)
I want to attach this sensor near a wall. Is there a problem because the vertical wall then goes parallel to the emitted ultrasonic signal.

Thank you very much!
194  Using Arduino / Project Guidance / Re: power source: wall charger AND battery on: August 28, 2012, 11:54:32 am
That sounds good. There should be a preassembled module for this, something like an "uninterruptible power supply for Arduino" that also has the feature to select the priority (the order) of each power supply (i.e. wallwart first, battery pack second, maybe something else third...).
195  Using Arduino / Project Guidance / Re: power source: wall charger AND battery on: August 28, 2012, 09:51:19 am
Thank you very much! Now, I feel sure that this will won't cause trouble.
I think this is a very easy way if you want to have more than one power source
However, can I be really sure that the battery's voltage is always less then the one from the wallwart? It is very important for me that the battery is only used if the main power supply isn't working anymore. (I want that the batteries aren't even used if everything is normal.)
Pages: 1 ... 11 12 [13] 14 15