Show Posts
Pages: [1] 2 3 4
1  Using Arduino / Sensors / Re: MPU6050 Help on: June 12, 2013, 05:14:02 pm
The advanced example with 'dmp' uses the interrupt.
Connect the INT to Arduino digital pin 2.
ok, i did that, but see my last post. i am still getting the same thing.
Edit: yes, the reason it was weird symbols was because it was made for processing! and i downloaded the missing library and it works! thank you guys so much!
2  Using Arduino / Sensors / Re: MPU6050 Help on: June 12, 2013, 05:03:27 pm
Awesome! re-downloaded the arduino idea and started from scratch. i only added a DHT22 library and all the data from this link:
it did compile, but i have not had a chance to upload it yet. i will upload it in a few minutes and see what i get. (by the way, i am talking about the DMP example sketch.) i just downloaded processing earlier today and i have next to no experience with it, but when i try to run the processing sketch thing included with the DMP example, i get these errors. it says i might be missing a library, so should i just google the library it says and put it in the processing library folder?
edit: i uploaded the sketch, and in the serial monitor, this is what i get. i assume this is because it is meant to be running with processing???
3  Using Arduino / Sensors / Re: MPU6050 Help on: June 12, 2013, 04:43:14 pm
The gyro should go to zero whenever it is not moving.  The gyro measures angular velocity, so when it is not moving, it measures zero.  A common misconception is that gyro's measure anglular position, but they do not.  However, by integrating the angular velocity, coupled with accelerometer data,  you can get relatively good pitch and roll data.  Rowberg's code that accesses the DMP can calculate Yaw, Pitch and Roll (though the yaw is subject to drift without a magnetometer). 

That makes a ton of sense! thank you for clarifying! i never would have known that, i thought it measured the position based on gravity or something. so if i use the dmp example from Rowberg's library i should be able to get the pitch and roll?
also, thank you for offering to look at the libraries. i will change #include "Wire.h" to #include <Wire.h> and see if that helps. thanks!
4  Using Arduino / Sensors / Re: MPU6050 Help on: June 12, 2013, 11:48:38 am
This is the first one.
5  Using Arduino / Sensors / Re: MPU6050 Help on: June 12, 2013, 11:19:28 am
I have been to Jeff Rowbergs github and downloaded his library and example sketches, but it still would not compile. it gave a ton of errors with the library. but i didnt mess with it too much because i got one of the files to return values, but they are weird values. i modified the code to divide the raw values for the accelerometer by 16384 (since i am using the 2g setting) and the gyro by 131 (since i am using the +-250 setting). the accelerometer now always says 0, even when i move the breadboard the MPU6050 breakout board is on. so something is not right there. also, the gyro always goes back to 0 for all the axes after i stop moving the board, even when they should not be 0. its like it recalibrated itself. it seems to do it every time it prints out the values in the serial monitor. i really have no idea what is going on.
edit: i am reading that link you posted about the kalman guide. hopefully it helps! thanks!
6  Using Arduino / Sensors / MPU6050 Help on: June 11, 2013, 10:35:26 pm
Hello, I am trying to figure out how to use a MPU6050 breakout board i bought, but i am stumped. I will attach the three files i am trying to use, but i cannot get it to work correctly. the second one is the closest. it will actually compile and give me values, but im not sure whats wrong. i modified the code to convert the raw data to readable data, but now no matter what i do, the accelerometer is almost always at 0 for x, y, and z. The gyroscope kind of works, but it seems to calibrate itself every time i stop moving the board. i do believe that it is correct, but if i hold the breadboard that the breakout board is on still, all the gyro values will go to 0, or something very close to 0. if i move the breadboard, the values change and when i stop moving again, they all go back to 0 again. any help is greatly appreciated. i am new with this stuff, and i do not really know what i am doing. thanks!
7  Using Arduino / Microcontrollers / Re: FT232RL Not in Sync Error on: June 10, 2013, 12:55:37 am
Thanks for the help, but i am sending mine back and claiming it to be DOA. I have tried everything i have read on the internet to see if it worked or not, and everything i found said the board was bad. so i am going to send it back and see if the replacement works, or if i have the same issue.
8  Using Arduino / Microcontrollers / Re: FT232RL Not in Sync Error on: June 08, 2013, 10:37:03 am
oh ok. i disconnected the jumper and it still echoed the characters back. so i followed
and it did not echo back what i typed.
edit: i tested it with an arduino to make sure i was doing it right and it worked. to clarify, the arduino worked correctly (i already knew it did) but the ft232rl board i bought does not echo back what i type.
9  Using Arduino / Microcontrollers / Re: FT232RL Not in Sync Error on: June 08, 2013, 10:03:29 am
how exactly do i do that? i downloaded a serial monitoring program, but i cannot send text.

edit: never mind, i figured it out. i *think* it worked correctly. this is what happened. i typed in the box below, and it showed up in the box above. does this mean that the chip is fine?
10  Using Arduino / Microcontrollers / Re: FT232RL Not in Sync Error on: June 05, 2013, 10:45:33 pm
it is identical to this, with a few exceptions:
mine has a cap on the main power line and i do not have the voltage regulation they have. i also have the dtr pin correctly connected to the reset with a 0.1uF cap, unlike in the picture where it is completely missing. other than that, it is exactly the same. that is why i think i have a bad usb to serial board. i can post a picture of it if you like, but it would be hard to follow and i thought it would be easier to try to explain it.

edit: I put the 328p back into the arduino and hooked the ft232 to the arduino (dtr to reset, tx to digital pin 0 and rx to digital pin 1. i made sure the board had power as well) and it still did not work. i am convinced i have a bad 232 board. whenever i try to upload anything, the tx light on the 232 board just blinks three times and does nothing. i dont know what else to try.
11  Using Arduino / Microcontrollers / Re: FT232RL Not in Sync Error on: June 05, 2013, 10:22:21 pm
yes i do. the drivers are from their website and the 232 connects and shows up as a com port just fine. i have also made sure to select it in the arduino ide.
12  Using Arduino / Microcontrollers / FT232RL Not in Sync Error on: June 05, 2013, 08:50:53 pm
I am making a standalone arduino, but i am having some issues. I ordered all the parts i need, but the atmega328p's have not come yet, but everything else has. i have an arduino uno that i took the microcontroller out of and i am using it. i can upload sketches fine from the arduino connected to the breadboard and it will play everything (sketches) fine, but i cannot program it with a ft232rl breakout board i bought.
this is the link to the one i bought:

i get the avrdude: stk500_getsync(): not in sync: resp=0x00 error every time i try to upload a sketch. everything works fine, except uploading sketches. i have the dtr pin connected to a 0.1uF cap and that to the reset pin of the chip with a 10k pullup resistor. the tx of the ft232rl goes to the rx of the 328p and the rx goes to the tx. i have tried swapping them, but it did not change anything. when i try to upload a sketch, the tx light on the 232 blinks three times and then nothing. the arduino ide takes a few seconds, and then gives the error. does anyone have any idea what is going on? do i have a bad 232 chip?
13  Using Arduino / Installation & Troubleshooting / Re: ebay FT232RL module - not working on: June 05, 2013, 08:29:45 pm
Hello, i am having the same issue and i have the same usb to serial converter you have. did you ever figure out what was wrong?
14  Using Arduino / Programming Questions / Re: 5 PWM's on, but nothing on: January 27, 2013, 11:26:36 pm
ok. will do.
15  Using Arduino / Programming Questions / Re: 5 PWM's on, but nothing on: January 27, 2013, 11:21:56 pm
sorry for all of this. i am sorry for spamming, i did not know it would be a problem since i am the one who started the thread. it turned out to be because the arduino was not properly grounded. i connected the ground of the arduino to the ground from the wall wart and it fixed the problem. guess it could not sink enough current into a normal usb port. or whatever; i am not really sure. again, i am sorry. i was not aware i could get banned for spamming my own thread.

edit: also, should i just delete this thread? it was a stupid mistake and i fixed it on my own. but it may help somebody else down the road having the same issue i was. just a thought.
Pages: [1] 2 3 4