Show Posts
Pages: 1 ... 7 8 [9]
121  Using Arduino / Project Guidance / Re: I got a problem w/ isd1932 breakout on: April 07, 2012, 11:50:17 am
Hi, I'm just about to start working with the ISD1932 but I am having trouble connecting it to the Arduino Uno. I'm not sure how to connect it correctly.
Would you be willing to help? I might be able to help with your problem when I reach the same stage.

Basically a photo of how they should be connected would be perfect.
122  Using Arduino / Project Guidance / Re: Controlling an ISD1932 Voice Recorder with an Accelerometer - Advice please. on: April 07, 2012, 10:14:03 am
Thanks for the pointer. This is working a treat.
Code:
   if (analogRead(xpin) < 500)
  {
  digitalWrite(ledPin, HIGH);
}
if (analogRead(xpin) > 500)
{
  digitalWrite(ledPin, LOW);
}
123  Using Arduino / Project Guidance / Controlling an ISD1932 Voice Recorder with an Accelerometer - Advice please. on: April 07, 2012, 09:42:48 am
Hello Open Sourcers,
I would like to control an ISD1932

 with an ADXL335.


So that when the unit it upright it plays and when it is tilted 90degrees in any direction it records.

So far I have followed the tutorial that explains how to get readings from the accelerometer.
http://www.arduino.cc/en/Tutorial/ADXL3xx

The problem comes when I try to control an LED with an IF/ELSE statement regarding the X axis.
The LED constantly stays on with my current code and I'm not sure why.

Code:
/*
 ADXL3xx
 
 Reads an Analog Devices ADXL3xx accelerometer and communicates the
 acceleration to the computer.  The pins used are designed to be easily
 compatible with the breakout boards from Sparkfun, available from:
 http://www.sparkfun.com/commerce/categories.php?c=80

 http://www.arduino.cc/en/Tutorial/ADXL3xx

 The circuit:
 analog 0: accelerometer self test
 analog 1: z-axis
 analog 2: y-axis
 analog 3: x-axis
 analog 4: ground
 analog 5: vcc
 
 created 2 Jul 2008
 by David A. Mellis
 modified 30 Aug 2011
 by Tom Igoe
 
 This example code is in the public domain.

*/

// these constants describe the pins. They won't change:
const int groundpin = 18;             // analog input pin 4 -- ground
const int powerpin = 19;              // analog input pin 5 -- voltage
const int xpin = A3;                  // x-axis of the accelerometer
const int ypin = A2;                  // y-axis
const int zpin = A1;                  // z-axis (only on 3-axis models)
const int ledPin = 13;
void setup()
{
  // initialize the serial communications:
  Serial.begin(9600);
 
  // Provide ground and power by using the analog inputs as normal
  // digital pins.  This makes it possible to directly connect the
  // breakout board to the Arduino.  If you use the normal 5V and
  // GND pins on the Arduino, you can remove these lines.
  pinMode(groundpin, OUTPUT);
  pinMode(powerpin, OUTPUT);
  digitalWrite(groundpin, LOW);
  digitalWrite(powerpin, HIGH);
 
  pinMode(ledPin, OUTPUT);
}

void loop()
{
  // print the sensor values:
  Serial.print(analogRead(xpin));
  // print a tab between values:
  Serial.print("\t");
  Serial.print(analogRead(ypin));
  // print a tab between values:
  Serial.print("\t");
  Serial.print(analogRead(zpin));
  Serial.println();

   if (xpin < 500)
  {
  digitalWrite(ledPin, HIGH);
}
if (xpin > 500)
{
  digitalWrite(ledPin, LOW);
}
  // delay before next reading:
  delay(100);
}

Thanks in advance for your help.
124  Using Arduino / Audio / Re: Audio resistor? on: February 26, 2012, 07:04:54 pm
Fantastic. I'll try and find one.
125  Using Arduino / Audio / Audio resistor? on: February 26, 2012, 03:35:56 pm
Is there such a thing as an audio resistor that works like the photo resistor?

Or does anyone know any code to make one with a BOB-09964?


Thank You
126  Using Arduino / Project Guidance / Re: Audio controlled motor? on: February 26, 2012, 02:23:50 pm
Thanks, I'm still quite confused as I'm very new to this. I was running the following code. It's really jumpy. Any idea why?

Code:
const int dcPin = 13;
const int micInput = A0;

int micValue = 0;
int dcValue = 0;

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

void loop(){
 micValue = analogRead(micInput);
dcValue = map(micValue, 0, 1023, 0, 255);
analogWrite(dcPin, dcValue);


 Serial.print("sensor = " );                      
  Serial.print(micValue);      
  Serial.print("\t output = ");      
  Serial.println(dcValue);
}
127  Using Arduino / Project Guidance / Re: Audio controlled motor? on: February 25, 2012, 08:15:33 pm
Velocity was the wrong word. Sorry I'm quite tired.

128  Using Arduino / Project Guidance / Re: Audio controlled motor? on: February 25, 2012, 08:13:35 pm
It's the BOB-09964 for detecting audio.
129  Using Arduino / Project Guidance / Audio controlled motor? on: February 25, 2012, 06:57:39 pm
Is it possible to use the velocity detected by a break out board to effect the speed of a motor spinning? I understand how an LDR does this but I'm not sure how a microphone could do it from it's analog output.

Would it be a case of assigning high to low motor responses to the numbers from the serial monitor of the BOB?
130  Using Arduino / Project Guidance / Re: Advice needed: Controlling a Servo from audio input on: January 10, 2012, 04:44:12 pm
Yes, a loudness sensor is basically what I want to use.

I've used
  sketch '6.7 Detecting sound' which lights up an LED when a Microphone Breakout Board detects sound.
as a guideline but turning a servo is the bit I'm not sure how to work out at the moment.
131  Using Arduino / Project Guidance / Re: Advice needed: Controlling a Servo from audio input on: January 10, 2012, 04:13:40 pm
The idea is, it responds to music, clapping, things like that... using the BOB-09964
132  Using Arduino / Project Guidance / Advice needed: Controlling a Servo from audio input on: January 10, 2012, 04:04:37 pm
Hello,
I've done some processing in the past but I'm new to Arduinos. I've got Programming interactivity and the Arduino cookbook.

I want to write a sketch that will make a servo turn clockwise at a speed defined by the velocity of sound picked up by a microphone. So the louder the noise, the faster it spins. Do you have any advice on where to look for sketch research? Is this even possible?

Secondly, Is this possible with a toy motor If I were to use the sound to effect the current?

Thank you.
Pages: 1 ... 7 8 [9]