Show Posts
Pages: [1]
1  Using Arduino / Sensors / Condensor Microphone Breakoutboard - connect to Arduino Mega on: September 08, 2011, 08:42:15 am
Hi all,
does anybody know how to connect a "Condensor Microphone Breakoutboard" to the Arduino Mega?
Here's the product info: http://www.watterott.com/de/Breakout-Board-mit-Kondensatormikrofon

Thanks!
Frank
2  Using Arduino / Sensors / Re: QTR-1RC Reflectance Sensor - Problem reading data with Arduino Mega on: September 08, 2011, 08:33:49 am
Hello!

I tried it again with a new sensor that can't be broken.
I did everything as described above - but with the white and black cable switched.

Still I only get the value "2000" all the time in the serial monitor.....

Any ideas ?


Thanks!
Frank
3  Using Arduino / Sensors / Re: Piezo Knock - Some values are not recognized on: August 31, 2011, 01:26:56 pm
good idea!
Thanks a lot
Frank
4  Using Arduino / Sensors / Re: QTR-1RC Reflectance Sensor - Problem reading data with Arduino Mega on: August 31, 2011, 12:32:24 pm
Thanks for the message!
I think you are right and have now switched the black and the white cable.
But I still get the same "2000" result all the time.

Thanks a lot
Frank
5  Using Arduino / Sensors / QTR-1RC Reflectance Sensor - Problem reading data with Arduino Mega on: August 31, 2011, 12:05:40 pm
Hi all,
I am trying to read the sensor values from a QTR-1RC Reflectance Sensor to an Arduino Mega.
I have been following instructions on
http://forum.pololu.com/viewtopic.php?f=6&t=3696&start=0&st=0&sk=t&sd=a&sid=90e60dca175a22c8f8d9c3c626220b12
but just can't seem to get it working.

I simplified the code to:

#include <PololuQTRSensors.h>

/* 5V = Vin
SENSOR_PIN = VOUT
GROUND = GROUND-Arduino[POWER]
*/
#define SENSOR_PIN 3
#define LED 13
PololuQTRSensorsRC qtr((unsigned char[]) {SENSOR_PIN}, 1, 2000);

unsigned int sensorValues[1];
unsigned long time;
void setup()
{
pinMode (LED, OUTPUT);
pinMode (SENSOR_PIN, INPUT);


Serial.begin(9600);
}

void loop()
{
qtr.read(sensorValues);
Serial.print(sensorValues[0]);
delay(50);
Serial.println();
}



But always just get the value "2000" in the serial monitor.

I am also including the photo of how I wired the sensor.

If anyone can point out what I'm doing wrong I'd be very thankful.

All the best
Frank




6  Using Arduino / Sensors / Piezo Knock - Some values are not recognized on: August 31, 2011, 09:32:16 am
Hi all,
I am using a piezo to detect hits(knocks) as in
http://www.arduino.cc/en/Tutorial/Knock

I tried different modifications of the arduino code, right now I use:

 
// these constants won't change:
const int ledPin = 13;      // led connected to digital pin 13
const int knockSensor = A0; // the piezo is connected to analog pin 0
const int threshold = 10;  // threshold value to decide when the detected sound is a knock or not


// these variables will change:
int sensorReading = 0;      // variable to store the value read from the sensor pin
int ledState = LOW;         // variable used to store the last LED status, to toggle the light

void setup() {
 pinMode(ledPin, OUTPUT); // declare the ledPin as as OUTPUT
 Serial.begin(9600);       // use the serial port
}

void loop() {
  // read the sensor and store it in the variable sensorReading:
  sensorReading = analogRead(knockSensor);   
  Serial.println(sensorReading); 
  delay(10);  // delay to avoid overloading the serial port buffer
}


And I use a max patch to read the values with a [serial a 9600] object which is banged every ms.

Still sometimes some knocks are not recognized even though I touch the piezo as hard as before (when it was recognized).
It's not a matter of being below a threshold -  it's a matter of not getting a value different from 0.


Are there any ways to make this more reliable?

Thanks a lot,
Frank
7  Forum 2005-2010 (read only) / Interfacing / Arduino Mega & ADXL321 - 3.3V --> 3V on: August 27, 2009, 08:21:36 am
Hello all,
I have an Arduino Mega and a
ADXL 330  
that i want to connect to it.

The ADXL needs 3V and the Arduino only outputs 3.3V.

Is it safe to connect that?
Or do i need to reduce the 3.3V to 3V - and if so - how would I do that ?

Help is very much appreciated
thanks, diether
Pages: [1]