Show Posts
Pages: [1]
1  Using Arduino / Sensors / Re: GY-521 gyroscope/accelerometer breakout board on: January 17, 2014, 08:59:41 pm
I know... I'm researching why I am getting such insane readings right now... or none at all. it's a bit unsettling, it should be pretty straight forward...
2  Using Arduino / Project Guidance / Re: Multiple Accelerometers speaking with Ableton. on: January 17, 2014, 08:58:13 pm
my life got crazy I but I'm drafting up a response to this message once my schedule clears (I don't want to give you a bunch of questions I can answer myself smiley only thing's I'm truly stuck on... but I'm researching the SPI options smiley thanks for your reply!
3  Using Arduino / Project Guidance / Multiple Accelerometers speaking with Ableton. on: January 14, 2014, 12:12:58 am
Hi everyone!
I would like to have 8 Accelerometers act as a MIDI controller in "Ableton"
I imagine I would speak to Ableton with "PureData" That seems to not be the "hard" part
So far the problem I am running into is the use of Multiple Accelerometers.
Does anyone have any advice on how to get Data from Multiple Accelerometers?
4  Using Arduino / Sensors / Re: GY-521 gyroscope/accelerometer breakout board on: January 13, 2014, 10:35:53 pm
I try another sensor and it scrolls

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,

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,

MPU-6050
InvenSense MPU-6050
June 2012
InvenSense MPU-6050
June 2012


then stops. and I attempted to reset twice :/
5  Using Arduino / Sensors / Re: GY-521 gyroscope/accelerometer breakout board on: January 13, 2014, 10:33:28 pm
I followed the plans you layer out , and I was getting readings yay!!!!
but then all of a sudden it just doesn't work smiley-sad
nothing.
I was getting readings that were totally responding as I would expect.
I was going to see if I could hook up another board, but before I could it halted any readings and when I press reset on the Arduino it reads:

MPU-6050
InvenSense MPU-6050
June 2012

and nothing else

If I pull the:
A4 and A5 from The SDA and SCL
it scrolls, but unresponsive:

MPU-6050
Read accel, temp and gyro, error = 2
accel x,y,z: -5374, 2, 305
temperature: 37.212 degrees Celsius
gyro x,y,z : 2050, -13039, -29695,

MPU-6050
Read accel, temp and gyro, error = 2
accel x,y,z: 747, 512, 12545
temperature: 24.459 degrees Celsius
gyro x,y,z : 520, 4557, 396,

MPU-6050
Read accel, temp and gyro, error = 2
accel x,y,z: -5374, 2, 305
temperature: 37.212 degrees Celsius
gyro x,y,z : 2050, -13039, -29695,

MPU-6050
Read accel, temp and gyro, error = 2
accel x,y,z: 747, 512, 12545
temperature: 24.459 degrees Celsius
gyro x,y,z : 520, 4557, 396,

dang smiley-sad did I fry my chip somehow?
6  Using Arduino / Programming Questions / Re: Time and TimeAlarms Libraries – Ask here for help or suggestions on: February 02, 2012, 04:20:44 pm
Thanks ninja!

upon reading more it seems that you cannot use millisecond delays with the timealarm lib.
At 9pm every sunday I want to set the array to do a simple choreographed sweep through the LEDs back and forth 60 times and that requires the LEDs to High/Low with 100 milliseconds delays.
-Is that not possible using TimeAlarm Lib?
-If I simply calculate Milliseconds 604,800,000(once a week) and use the Arduino's clock, what is the typical drift? I can live with a little change. if that change is consistant. ie, it looses/gains 26.44 seconds a day. I can plan my events accordingly to that.

The 6months/deadline starts in 4 days. so I cannot order any of those shields.

Also a concern I have is, what if there is a power surge? does the Arduino reset the program completely or start where it left off?

Thanks! Thanks thanks!!!



*edit. PaulS I just read your post, thanks for letting me know about the Lib update!
-So as it sounds the hardware timing inconsistency isn't solved by software/code. so that means it is an A)inconsistant time change?
or
B)just inconsistant between different Arduinos, so I could calculate my specific hardwares drift and adjust?

Thank you for helping!
7  Using Arduino / Programming Questions / Will this work for 6 months? on: February 02, 2012, 01:21:59 pm
Hi I'm working on a relatively simple project where I want to time some LEDs to go on and off at slow intervals.
-throughout a one day period,
-then once a week have a different set of "alarms" to trigger the LEDs,
-then return to the usual pattern,
-then once a month have a different set of "alarms" to trigger the LEDs,
-then return to the usual pattern.
 
I've already tested and assembled the test hardware for the events, now all I need to do if figure out the code.

Someone mentioned
Quote
One thing to watch out for is that the Arduino clock isn't very precise so it will gain or lose time over long intervals (minutes per day, possibly a day or two over six months).

Is that problem solved with the "TimeAlarms Library?

Also when attempting to use time alarms I'm getting some error messages when just attempting to verify the example sketch.
Quote
/Applications/Arduino.app/Contents/Resources/Java/libraries/TimeAlarms/TimeAlarms.cpp:25:22: error: WProgram.h: No such file or directory
/Applications/Arduino.app/Contents/Resources/Java/libraries/TimeAlarms/TimeAlarms.cpp: In member function 'void TimeAlarmsClass::delay(long unsigned int)':
/Applications/Arduino.app/Contents/Resources/Java/libraries/TimeAlarms/TimeAlarms.cpp:256: error: 'millis' was not declared in this scope

Can someone shed a bit of light on my issues, queries? thanks!
-What are the error messages?
-Is TimeAlarms Library even what I should be using?
-Will I loose signifigant time accuracy over 6 months with TimeAlarms Library?
8  Using Arduino / Project Guidance / Re: Did I forget anything?- 72 LED Array loop cycle for 6 months. on: February 01, 2012, 12:27:29 am
It works!

the "test circuit":
-5 (2n2222) transistors, "emitter" terminals connected to Arduino ground and negative of power supply
-5 900ohm resistors, connected to each "collector" terminal of transistors
-5 2.1v 20mA LEDs connected to the other end of the resistors
-LEDs, all connected to positive terminal of 12v dc power supply
-Each Base terminal of transistors connected to pins 3-7 on Arduino

Next it to write a stable code that will get me a relatively predictable sequence for each day of the 6 month period.
John,
Quote
One thing to watch out for is that the Arduino clock isn't very precise so it will gain or lose time over long intervals (minutes per day, possibly a day or two over six months).
I've read on the forums somewhere that there is a way to work with the counter's quirks to make it more reliable. I'm going to poke around and try to find that again.
-or-
This solution may be a bit archaic, but if I simply put the power supply to the Arduino on a hardware store timer to flip off for a bit at like 4 in the morning the Arduino can restart it's sequence each day and hopefully will have close to the same events each day at a predictable time...

Does my schematic for the test circuit seem ok?
I attached some pictures too, (I know all of those exposed wires are silly, but it's a test smiley-razz )

Code: (slightly altered Knight rider circuit, going for a sort-of randomish sweep type array)

int pinArray[] = { 3, 4, 5, 6, 7};
int count = 0;
int timer = 100;

void setup(){
  for (count=0;count<8;count++) {
    pinMode(pinArray[count], OUTPUT);
  }
}

void loop() {
  for (count=0;count<6;count++) {
   digitalWrite(pinArray[count], HIGH);
   delay(timer);
   digitalWrite(pinArray[count + 1], HIGH);
   delay(timer);
   digitalWrite(pinArray[count], LOW);
   delay(timer*2);
  }
  for (count=6;count>0;count--) {
   digitalWrite(pinArray[count], HIGH);
   delay(timer);
   digitalWrite(pinArray[count - 1], HIGH);
   delay(timer);
   digitalWrite(pinArray[count], LOW);
   delay(timer*2);
  }
}
9  Using Arduino / Project Guidance / Re: Did I forget anything?- 72 LED Array loop cycle for 6 months. on: January 31, 2012, 09:35:51 pm
John and Doug, thanks for the replies!
I just got three types of NPN transistors a 2n2222, 2n3904, 2n4401

in the 2n2222 Data sheet:
"
SYMBOL PARAMETER CONDITIONS MIN. MAX. UNIT
VCBO collector-base voltage open emitter
2N2222 − 60 V
VCEO collector-emitter voltage open base
2N2222 − 30 V
VEBO emitter-base voltage open collector
2N2222 − 5 V
"

-That means that from Arduino output pin -> base pin, i'm not supposed to apply more than 6v, but the power supply going into the collector at 12v is ok still, correct?

-Also do I not need a resistor from Arduino to Trans. base? I thought I herd somewhere that it was safer? true?

-I'm understanding Ohms law better now, refresher from grade school physics smiley I'm also using this array wizard to check my designs: http://led.linear1.org/led.wiz

Just making sure I don't blow anything, still learning. Thanks!!!!!
10  Using Arduino / Project Guidance / Did I forget anything?- 72 LED Array loop cycle for 6 months. on: January 31, 2012, 04:39:55 pm
Hi all, I just got my Arduino a week ago... so much fun!
I've been reading the forums and feel like after all of my research on here it's time to check my ideas!

The Concept:
I'm working up to make a 72 led array in 6 sets of 12 yellow LEDs
They are programmed to turn on and off the 6 sets throughout a 6 month period.

My Plan:

Program:
Adjust http://arduinoarts.com/2011/08/arduino-tutorial-the-knight-rider program to have longer delays and use only 4 pins.
ie. adjust "int timer = (*) ;" * to the equivalent of a full day
Then add another "blink" code with a long delay on the 2 remaining sets of 12 LEDs for 2 more pins for a faster sequence running at the same time.

Hardware:
Arduino
LEDs
Wires
Resistors
Transistors
Breadbord

Hardware Layout:
Pins 3-8 each run through->appropriate resistor-> base pin of appropriate transistor
then run 12v external power->appropriate resistor->12 LED array-> current pin on transistor-> exit pin on transistor to ground.

Questions:
Can I run the whole lineup through a single transistor or do I need one for each output pin?
What would said transistor(s) appropriate value be?
How do I figure out the appropriate resistance values for the pin-> Transistor resistor values? and the Power-> LED resistor values
If some of my LEDs are mismatched do I run them in series or parallel? (some dimming is not a big deal, they are mostly hidden/subtle lights anyway)

Thank you everyone who replys on these boards! I have already learned so much! and am excited to learn even more!
-Andrew
Pages: [1]