Teensy / WMP problem
-
- Posts: 27
- Joined: Tue May 15, 2012 9:57 am
Teensy / WMP problem
I'm trying to build a multiwii controller with the teensy.
I've wired it according to this pinout: viewtopic.php?f=8&t=635&start=11.
I'm using the dev version (since this is the only one supporting the teensy).
The sensors I'm using are the WMP from dealextreme and the NK from dealextreme.
In the GUI I can see the value of all channels and I can arm it with AUX1, but thats is, there is no sensor info visible.
I've tried uncommenting different things(ITG3200, NUNCHAK or both) but no result.
I've tried with or without internal pullup, with internall pullup the pullup is to strong and the data line stays high.
I've tried 100KHz and 400KHz but this made no visible difference(except on the logic analyzer I could see the difference in frequency.
The I2C error keeps counting until it overflows and then it starts over, so I know it is an I2C problem.
I saw the adress sent by the teensy was wrong, so I grabbed a mbed and a demo program wich reads the WMP and outputs the data to the serial port.
The only thing that it is returning is 0.
So, do you think my WMP is broken? since it is acknowledging its adress but it doesnt send any data back...
What did I do wrong or forget?
KoekieMonster.
I've wired it according to this pinout: viewtopic.php?f=8&t=635&start=11.
I'm using the dev version (since this is the only one supporting the teensy).
The sensors I'm using are the WMP from dealextreme and the NK from dealextreme.
In the GUI I can see the value of all channels and I can arm it with AUX1, but thats is, there is no sensor info visible.
I've tried uncommenting different things(ITG3200, NUNCHAK or both) but no result.
I've tried with or without internal pullup, with internall pullup the pullup is to strong and the data line stays high.
I've tried 100KHz and 400KHz but this made no visible difference(except on the logic analyzer I could see the difference in frequency.
The I2C error keeps counting until it overflows and then it starts over, so I know it is an I2C problem.
I saw the adress sent by the teensy was wrong, so I grabbed a mbed and a demo program wich reads the WMP and outputs the data to the serial port.
The only thing that it is returning is 0.
So, do you think my WMP is broken? since it is acknowledging its adress but it doesnt send any data back...
What did I do wrong or forget?
KoekieMonster.
Re: Teensy / WMP problem
Have you got SDA SCL crossed over. Try without nunchuck, cycle info should be about 3000 for a wmp and nunchuck and 6000 for wmp only.
-
- Posts: 27
- Joined: Tue May 15, 2012 9:57 am
Re: Teensy / WMP problem
nope, I have tried with and without nunchuck and tried switching SDA and SCL (even though i was very sure they were right) several times.
cycle info is about 4400 if I remember it right.
cycle info is about 4400 if I remember it right.
Re: Teensy / WMP problem
Only thing I can suggest is to check continuity of wires from wmp to your teensy, if there anything like mine they are quite fragile and easy to break.
-
- Posts: 27
- Joined: Tue May 15, 2012 9:57 am
Re: Teensy / WMP problem
I connected the logic analyzer to the place where the pullup resistors were, so I'm measuring that only a few mm away from the gyro.
KoekieMonster.
KoekieMonster.
Re: Teensy / WMP problem
Logic analyser, I would just use a multimeter, probably because thats all I have, oh and a logic probe somewhere. Have you tried reloading the sketch with default settings. As you say you are getting I2C errors which would point to a broken WMP although I have found them to be quite tough the nunchuck however isnt. I have one that I manged to connect incorrectly recently and it did not want to play, reloaded a different sketch and it was working again, flashed back to the original sketch and it was still working so its worth a try.
BTW I got my wmp and wmp +nunchuck figures crossed its about 3000 for wmp and 6000 for wmp + nunchuck.
BTW I got my wmp and wmp +nunchuck figures crossed its about 3000 for wmp and 6000 for wmp + nunchuck.
-
- Posts: 27
- Joined: Tue May 15, 2012 9:57 am
Re: Teensy / WMP problem
I've tried reading it using an mbed (www.mbed.org) but that failed too, it did acknowledge the adress and register adress, but only returned 0 values...
So reloading the sketch with default setting doesn't solve anything if the gyro doesn't respond. right?
Does anyone have any idea of why the gyro doesn't respond?
KoekieMonster.
So reloading the sketch with default setting doesn't solve anything if the gyro doesn't respond. right?
Does anyone have any idea of why the gyro doesn't respond?
KoekieMonster.
Re: Teensy / WMP problem
Well my last shot at this is try another wmp if you can, other than that I'm out of ideas. Let us kno0w how you get on though it might help someone else in the future.
-
- Posts: 27
- Joined: Tue May 15, 2012 9:57 am
Re: Teensy / WMP problem
I'll go experiment a little more, if this doesn't work i'll order a new wmp and post it here.
Thanks for your help.
KoekieMonster.
Thanks for your help.
KoekieMonster.
-
- Posts: 27
- Joined: Tue May 15, 2012 9:57 am
Re: Teensy / WMP problem
Well, the WMP problem is solved:) saw a post somewhere of someone who cut away everything except the gyro itself.
This made me realize that the rest of the components are not needed and may interfere.
the IC labeled "CH0901" in this pic (not my own photo) was just a black blob, so i cut all the traces next to it and then it worked.
Now I've got the same problem with my NK, I just don't know wich pins are what on the ACC... so cant quite solve this yet I am afraid.
This made me realize that the rest of the components are not needed and may interfere.
the IC labeled "CH0901" in this pic (not my own photo) was just a black blob, so i cut all the traces next to it and then it worked.
Now I've got the same problem with my NK, I just don't know wich pins are what on the ACC... so cant quite solve this yet I am afraid.
Re: Teensy / WMP problem
If you go to rc groups.com and look under multi rotor there is a massive thread about multiwii copters. If you click on the thread and then on thread attachments it will show you all the pics that have been uploaded. If you look through them you should find the nunchuck you have and it should have the pins marked as to what they are. Glad to hear you've got progress.
-
- Posts: 27
- Joined: Tue May 15, 2012 9:57 am
Re: Teensy / WMP problem
I do know how to connect it(silkscreen on pcb) but it just simply doesn't work.
The accelerometer itself is analog(it looks analog) so I can't remove the black blob this time.
KoekieMonster
The accelerometer itself is analog(it looks analog) so I can't remove the black blob this time.
KoekieMonster
Re: Teensy / WMP problem
I didnt mean the silk screen idents, people have identified which pin on the chip or where to connect to and put it on the pics they've uploaded. Using the uploaded pics you can bypass all the stuff on the nunchuck board like you've done with the wmp, but you have to use 3v, which I think you already are.
-
- Posts: 27
- Joined: Tue May 15, 2012 9:57 am
Re: Teensy / WMP problem
I am using 3v3 allready. I cant just use the chip since this is analog (and not I2C).
I didn't find a picture of one on the thread, but thanks for the link, saw some cool things in the pictures(a 3" quad, exactly what i was planning on building)
I found this thread : http://www.rcgroups.com/forums/showthread.php?t=1443300 wich is exactly the problem i am having, also i recognize the foto from dealextreme(where I bought my NK), so I guess he has the same NK.
When I get back home I'll try this and hope it helps.
KoekieMonster.
I didn't find a picture of one on the thread, but thanks for the link, saw some cool things in the pictures(a 3" quad, exactly what i was planning on building)
I found this thread : http://www.rcgroups.com/forums/showthread.php?t=1443300 wich is exactly the problem i am having, also i recognize the foto from dealextreme(where I bought my NK), so I guess he has the same NK.
When I get back home I'll try this and hope it helps.
KoekieMonster.
-
- Posts: 27
- Joined: Tue May 15, 2012 9:57 am
Re: Teensy / WMP problem
I gave up on the NK.
Ive ordered a breakout baord with the HMC5883L compass and the ADXL345 accelerometer(€12,75)
A friend of mine ordered a breakout with the L3G4200D gyro, the ADXL345 ACC, the HMC5883L compass and the BMP085 barometer (€26).
So a lot cheaper then the 9DOF from sparkfun($99.95).
Will have to wait for it and will post when in works, thanks for your help.
KoekieMonster
Ive ordered a breakout baord with the HMC5883L compass and the ADXL345 accelerometer(€12,75)
A friend of mine ordered a breakout with the L3G4200D gyro, the ADXL345 ACC, the HMC5883L compass and the BMP085 barometer (€26).
So a lot cheaper then the 9DOF from sparkfun($99.95).
Will have to wait for it and will post when in works, thanks for your help.
KoekieMonster
Re: Teensy / WMP problem
I got one of those with the l2g4200d on it I'm trying to set it up now. I would still be banging my head against the wall if it wasn't for Katch and his code. What I have noticed tho is this imu is not as intolerant of vibrations as the wmp and nunchuck combo.
-
- Posts: 27
- Joined: Tue May 15, 2012 9:57 am
Re: Teensy / WMP problem
bill516 wrote:I got one of those with the l2g4200d on it I'm trying to set it up now. I would still be banging my head against the wall if it wasn't for Katch and his code. What I have noticed tho is this imu is not as intolerant of vibrations as the wmp and nunchuck combo.
and by "not as intolerant of vibrations" you mean it handles them better? since that would be very nice.
KoekieMonster.