Show Posts
Pages: [1]
1  International / Generale / Re: Arduino group in Bologna? on: October 04, 2012, 07:40:22 am
Non credo di poterci andare, cmq lascio il link del sito dove potete stampare le riduzioni del costo di ingresso smiley-wink

http://www.mondoelettronica.net/cgi-bin/_moele/showall.cgi?c=0&t=2
2  International / Generale / Re: Arduino group in Bologna? on: October 01, 2012, 11:54:04 am
Azz, non è proprio vicina faenza smiley-sad
3  Using Arduino / Programming Questions / Re: IR sensor program on: October 01, 2012, 10:10:09 am
Ok, thx PaulS, I have worked with the library you suggested me. First of all it works and helped me to learn more about ir, but now I still have a problem: this library cant allow you to transmit and recive at same time..... so for my project is not complete. Do you have any other suggestion?

Thx
4  Using Arduino / Installation & Troubleshooting / Re: I/O input reading random on: October 01, 2012, 07:42:05 am
Well ty to both of you, very helpful on my newbie problems smiley
Since I'm new I have already another problem smiley-grin so if you want to check and help me again I would appreciate ..... here's the link http://arduino.cc/forum/index.php/topic,125164.0.html

Ty

ps @CrossRoads I have tried to pullup and it works very good
5  International / Generale / Arduino group in Bologna? on: October 01, 2012, 07:37:05 am
Ciao a tutti,
volevo sapere se c'è a Bologna un gruppo o delle persone che vogliono lavorare a qualche progetto o che vogliono semplicemente sperimentare le potenzialità di arduino in compagnia. Io sono alle prime armi ma mi sono molto appassionato e vorrei trovare qualcuno con cui collaborare per imparare su arduino e sull'elettronica.

Grazie a tutti, ciaoooo smiley
6  Using Arduino / Programming Questions / IR sensor program on: October 01, 2012, 07:27:49 am
Hi,
I'm tring to work on a simple IR emitter-reciver sistem and I've spent on it 5 days now and still is not working smiley-sad .The pourpouse is to understand is there is an obstacle between the emitter-reciver, but I have several problems. As a reciver I'm using a TSOP32238 of Vishay, is a 3 pin sensor, 38,5khz and is the only thing that work because I've connected its signal to a led and it's blinking if I use my stereo remote on it. The emitter seems not working properly, dont think because of electrical connection, probably is a code issue. Here's the code I'm using:

//define pins. I used pins 4 and 5
#define irLedPin 4          // IR Led on this pin
#define irSensorPin 5       // IR sensor on this pin

int irRead(int readPin, int triggerPin); //function prototype

void setup()
{
  pinMode(irSensorPin, INPUT);
  pinMode(irLedPin, OUTPUT);
  Serial.begin(9600);
  // prints title with ending line break
  Serial.println("Program Starting");
  // wait for the long string to be sent
  delay(100);
}

void loop()

  Serial.println(irRead(irSensorPin, irLedPin)); //display the results
  delay(10); //wait for the string to be sent
}

int irRead(int readPin, int triggerPin)
{
  int halfPeriod = 13; //one period at 38.5khZ is aproximately 26 microseconds
  int cycles = 38; //26 microseconds * 38 is more or less 1 millisecond
  int i;
  for (i=0; i <=cycles; i++)
  {
    digitalWrite(triggerPin, HIGH);
    delayMicroseconds(halfPeriod);
    digitalWrite(triggerPin, LOW);
    delayMicroseconds(halfPeriod - 1); // - 1 to make up for digitaWrite overhead   
  }
  return digitalRead(readPin);
}

Does anyone know where I made a mistake?  smiley-roll-sweat

ps if it's needed I could post the electrical scheme overhere.

Thanks
7  Using Arduino / Installation & Troubleshooting / Re: I/O input reading random on: September 30, 2012, 12:48:52 pm
So basically on the wire must have applied always an electrical signal in order to have a proper read of digital input, is that right?

@CrossRoads what i meant here "if wire is plugged into a breadbord, the electrical path in it is surrounded by plastic" was that one end connected to arduino, the other end plugged in a breadboard with no electrical circuits on it
8  Using Arduino / Installation & Troubleshooting / Re: I/O input reading random on: September 30, 2012, 11:52:20 am
Well,
if wire is not connected and it's free then is possible to see interferences captured so it could read random value.... what i dont aspect is reading of random value if wire is plugged into a breadbord, the electrical path in it is surrounded by plastic so it shoudnt capture anything smiley-sad

I get it wrong?
9  Using Arduino / Installation & Troubleshooting / Re: I/O input reading random on: September 30, 2012, 11:15:21 am
Yes,
program is very simple, I just started to use Arduino and I'm still testing basical functions

void setup() { 
Serial.begin(9600); 
pinMode(2, INPUT);
}

void loop() {
 int sensorValue = digitalRead(2); 
Serial.println(sensorValue, DEC);
}

smiley-sad
10  Using Arduino / Installation & Troubleshooting / I/O input reading random on: September 30, 2012, 11:03:25 am
Hi,
I have strange behavior of digital input. Using serial monitor and digitalread on any digital input of my arduino uno rev3, it happens this:
- if no wire is connected into the digital input then read is 0 (perfect)
- if a wire is connected with one side but the other side is not then I read random 0 and 1 .....
- if a wire is connected with one side and the other side is connected in a breadboard with any others connections then again random 0 and 1.....
So basically it reads random 0 and 1 when there is a wire in the I/O pin of arduino. How can I expect to read the correct digital value if I connect the wire into a circuit for my experiments? Pls tell me where I wrong
Pages: [1]