1.9 on seeduino mega?

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
Post Reply
capt
Posts: 54
Joined: Wed Jan 19, 2011 10:54 pm

1.9 on seeduino mega?

Post by capt »

I have been unable to get 1.9(v3) running on my seeduino mega.
Code loads fine but no gyro or accel in GUI and many errors in debug2
I have tried 5v to sensors WM+ and BMA020 with 2k2 on and off the SLC/SDA.
Also tried 3v on sensors
tried no 2k2 externals with pullup enabled and disabled in code but same results
1.8P2 works

Is anyone else running a seed on 1.9? Am I missing something?

mr.rc-cam
Posts: 457
Joined: Wed Jul 27, 2011 11:36 pm

Re: 1.9 on seeduino mega?

Post by mr.rc-cam »

I have tried 5v to sensors WM+ and BMA020 with 2k2 on and off the SLC/SDA.

Hopefully you find someone else that has used the Seeeduino Mega on V1.9 to confirm the Mega's def.h and config.h defines are ok. But if no one chimes in to help then I suggest you simplify the installation as follows:
1. Only install the WM+ (remove the BMA020).
2. Use 2.2K pullups sourced by 5V (not 3.3V!).
3. Power the WM+ with 5.0V. Do not use the POWERPIN method or add any diodes.
4. Ensure your Seeeduino's 3V/5V switch is in the 5V position.
5. Edit the V1.9 V3's config and disable the BMA020. Basically ALL sensors #defines should be commented/disabled.
6. Edit the config and disable internal pullups.
7. Edit the config and set I2C speed to 100KHz.
8. Use a voltmeter and confirm the WM+ has exactly 5.0VDC.
9. Use a voltmeter and confirm the "5V side" of the 2.2K pullups has 5.0V.
10. Push and hold the Mega's Reset button. With it depressed (CPU held in reset state), the WMP's Vcc, SCL and SDA pins should be 5.0V. Use the ground pin on the WM+ when you measure these voltages.

This simplified setup should make your troubleshooting "easier." If you cannot make it work (gyro data) then I suggest you edit the Seeeduino Mega schematic and draw in your added circuitry for forum review.

capt
Posts: 54
Joined: Wed Jan 19, 2011 10:54 pm

Re: 1.9 on seeduino mega?

Post by capt »

Happy Happy Joy Joy!

So I went in to check the voltages as you suggested and in the process I scrapped some junk from between sda-grd pins, re soldered 5v wire, re soldered 2k2's, reloaded the code and what do you know it worked flawlessly. No bugs in GUI, test flew in the garage and turned down PIDS a bit then even did a quick night flight outdoors (it has LED's) and definite improvement!
One thing I noticed is one 2k2 puts out 1.5V and the other 1.41V ? It seems to not cause problems.

Thanks Guys.

Seeduino Mega on code 1.9
original WM+ and BMA020 (stacked Jussi style for 6DOFIMU) powered off 5V
pullups disabled in code
external 2k2 pullups added between 5V power and SLC & SDA underside of mega shield.

LenzGr
Posts: 166
Joined: Wed Nov 23, 2011 10:50 am
Location: Hamburg, Germany
Contact:

Re: 1.9 on seeduino mega?

Post by LenzGr »

capt wrote:Is anyone else running a seed on 1.9? Am I missing something?

FWIW, I'm running the current SVN trunk on a Seeeduino Mega with an "allinone" sensor board, Spektrum satellite receiver and Serial to Bluetooth transceiver. Works quite well! Here's a picture of my setup.

Post Reply