Show Posts
Pages: [1] 2 3 4
1  Using Arduino / Sensors / Re: MPU6050 returning a null set after working previously on: October 22, 2013, 04:20:56 am
Did you ever find out what was wrong? I'm having the same error.
2  Using Arduino / Programming Questions / Re: MPU6050 SparkFun Breakout to Arduino Uno - No data output on: October 21, 2013, 11:10:03 am
Ah, sorry. There's resistors on the breakout  I believe.
3  Using Arduino / Programming Questions / MPU6050 SparkFun Breakout to Arduino Uno - No data output on: October 21, 2013, 10:48:05 am
Hey guys.

I'm having a little trouble getting the MPU6050 to work. I'm sure I've connected everything correctly but I'm only getting the same data through (just '0'  for the accel and gyro and a tempreture of 36.506 degrees).

I'm using the same code as this: http://playground.arduino.cc/Main/MPU-6050

Code:
InvenSense MPU-6050
June 2012
WHO_AM_I : 68, error = 0
PWR_MGMT_2 : 0, error = 0

MPU-6050
Read accel, temp and gyro, error = 0
accel x,y,z: 0, 0, 0
temperature: 36.506 degrees Celsius
gyro x,y,z : 0, 0, 0,

The I2C scanner picks out the device too.

Code:
IC Scanner
Scanning...
I2C device found at address 0x68  !
done

VCC and VIO to 3.3v
GND to GND
SCL to A5
SDA to A4
- No resistors on anything.

Any ideas?
4  Using Arduino / General Electronics / Re: Controlling a 5V Solenoid on: July 16, 2013, 12:01:31 pm
Yeah sorry, wirelessly was the wrong word. Untethered or portable - so yes, a battery.
5  Using Arduino / General Electronics / Re: Controlling a 5V Solenoid on: July 16, 2013, 06:06:59 am
Sure. So basically its a small lock. A solenoid moves a pin in/out depending on a sensor connected to an Arduino Mini. The Arduino and sensor has a small Li-ion battery powering it, but I'm a little lost as to how to wirelessly power the solenoid (i.e. not through mains power).
6  Using Arduino / General Electronics / Re: Controlling a 5V Solenoid on: July 16, 2013, 05:31:25 am
Thanks Nick. I'm limited by the width of a tube (30mm). The tubes quite long so other components will fit inside.

Something like this? http://www.ebay.co.uk/itm/SMD-MOSFET-Driver-for-Arduino-AVR-PIC-Microcontroller-Reprap-Projects-/171027857973?

One last thing, to feed power into the MOSFET, would something like this work?:

http://www.brchobbies.co.uk/catalog/product_info.php?products_id=821

Thanks again
7  Using Arduino / General Electronics / Controlling a 5V Solenoid on: July 16, 2013, 04:35:15 am
Hi there,

I'm designing a super small Arduino project where space is ver limited (max diameter is 30mm). I'm looking to use this https://www.sparkfun.com/products/11015 solenoid with an Arduino. As stated across the web, these can't be powered directly by the Arduino.

My question is, how do I power the solenoid in such a tight space?

Thanks
8  Using Arduino / Programming Questions / Re: Accelerometer data detection on: June 04, 2013, 05:17:50 pm
Thanks Peter.

How would you detect that the result is going negative or positive?

Sam
9  Using Arduino / Programming Questions / Accelerometer data detection on: June 03, 2013, 05:06:46 pm
Hi all,

I'm using an accelerometer to measure movement, mapping (0-100) and averaging the data fine. However, I'm looking to sense when the data goes from positive to negative. E.g. sensing when the X axis goes up from ...50,51,52 THEN stops and reverses (52,51,50...). How would I detect that that point when it reverses?

Thanks!
10  Using Arduino / Programming Questions / For loops - efficient way of changing a group of ints on: May 07, 2013, 11:27:12 am
Hi there,

Whats the best way to change a group of ints to = 0 using a for loop

For example...

Code:

int a0, a1, a2, a3, a4, a5;

void setup(){
}

void loop(){

//code to ++ a0, a1, a2, a3 etc.

 for(int i; i < 6; i++){
      // Something here to add the 'i' from the for loop to the end of all the ints
  }
}

11  Using Arduino / Programming Questions / Re: Serial RFID Problem on: November 07, 2012, 09:48:19 am
Sure, that probably would have been helpful to begin with: http://www.seeedstudio.com/depot/125khz-rfid-module-uart-p-171.html
12  Using Arduino / Programming Questions / Re: Serial RFID Problem on: November 07, 2012, 09:36:49 am
...Get Arduino to check for a before/after difference within the buffer.

The tag is continually read every 50ms or so by the reader, even if it's still within range, so that's not an issue.

The LED will stay on until the tag is removed away from the reader (when the buffer is empty?) when it'll turn off.

--

Assuming this is the best avenue forward, could you give me some pointers to get started? Getting a little lost somewhat.

Thanks Paul smiley
13  Using Arduino / Programming Questions / Re: Serial RFID Problem on: November 07, 2012, 09:07:22 am
Is there no way that I could store the incoming data in a buffer and get the Arduino to check every 5 seconds or so? If the buffer is empty then turn off the LED, if it contains the ID, keep it on?

I need the LED to turn on whenever someone unique touches (or is very close) to the hotspot.
14  Using Arduino / Programming Questions / Serial RFID Problem on: November 07, 2012, 06:03:58 am
I'm currently playing around with RFID and Arduino at the minute, however I'm a little stuck. The RFID reader is connected to the RX and TX pins on the Arduino, communicating via serial.

What I want the code do to is to recognise when the RFID chip is actively in range of the reader and blink the LED on and off. When I remove the RFID chip away, it should turn off the LED.

What it's currently doing is turning on the LED... and not much else. I've been reading the serial references, but to no prevail.

Code:
int led = 7;

void setup()
{
  Serial.begin(9600);
  pinMode(led, OUTPUT);  
}
void loop()
{
  if(Serial.available())
  {
    digitalWrite(led, HIGH);
    delay(1000);              
    digitalWrite(led, LOW);  
    delay(1000);              
  }
}
15  Using Arduino / Audio / Connecting a Piezo element on: November 05, 2012, 06:37:14 am
Hi,

Relatively new to all this..

I know how to connect a normal piezo element to an arduino, however I'm after something pretty loud (more voltage = louder noise). How can I connect the piezo to my 5V as well as controlling it via a digital pin?
Pages: [1] 2 3 4