rycco

Members

10

• Rank
Member
1. Reading TM4C123 power supply voltage level

Hello i have seen article about reading the supply voltage from MSP430 http://www.elevendroids.com/2013/06/code-recipe-reading-msp430-power-supply-voltage-level/ It can be usefull when running on batteries however i am not able to find anything suitable to use for TM4C123. The system DEFINES carries another names and the code can not be used. I have only used Energia for programming my LM4F120. If anyone have some experience in reading the internall VCC a and Voltage Reference to compute supply voltage level on TM4C123 I would be thankfull.
2. Math lib problem

Hello, i am having problems with math library using energia. I always keep getting thi s error. I dont know whats wrong. Error : http://pastie.org/8127090 Here you can read the source : http://pastie.org/8127093#871-872 I highlighted the lines which are makeing troubles. Its lines 871 and 872, by commenting them you can avoid getting this error. float accel_angle_y = atan(-1*accel_x/sqrt(pow(accel_y,2) + pow(accel_z,2)))*RADIANS_TO_DEGREES; float accel_angle_x = atan(accel_y/sqrt(pow(accel_x,2) + pow(accel_z,2)))*RADIANS_TO_DEGREES;

Wiring seems to be good, but after running scanner i still receive device on each adress. I also tried to use the sketch from http://playground.arduino.cc//Main/MPU-6050?action=sourceblock&num=1 with just a little changes like Wire.begin(2); //to work on pins 5 and 6 Tried both adresses, which are written on in the sketch. But i always receive a zero from the device so the output looks like 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, I have no idea how to make it run :/

Thank you, i will try it. BTW your drawing is pretty clear and nice

Please, do you have some clear sketch how to wire a correct pullup resistors ?

Ok, i will try pullup resistors, but do you think it will solve the qestion why i see an I2C device on each address ?

8. GY521 MPU6050 - Accelerometer + Gyro on Energia

Hello, i need help with running GY521 gyro on my Stellaris Launchpad with Energia. I found something about wiring GND -> GND 3,3V -> VCC Analog4 -> SDA Analog5 -> SCL and also read this topic at arduino http://playground.arduino.cc/Main/MPU-6050 there is a sketch but i dont know how to port it at Energia for stellaris launchpad. So i want to ask if there is anybody, who was playing with gyro and can help me understand the way it works. Thanks
9. strange millis() overflow

Rei Vilo, this is what i got ... (copypasted ur code) 42 41957 43 42956 44 43955 45 44954 46 45953 47 46952 48 47951 49 48950 50 49949 51 50948 52 51947 53 52946 54 258 55 1257 56 2256 57 3255 58 4254 59 5253 60 6252 61 7251 i have no idead why is this happening ... EDIT - misspelling