Author Topic: 9DOF Shield  (Read 3966 times)

quteor

  • Newbie
  • *
  • Posts: 1
9DOF Shield
« on: January 09, 2015, 07:05:26 am »
Hi everyone
I recently got my digispark pro and now I am trying to use the 9DOF shield.
As there is no example code in the wiki I was wondering if anyone could help me?
Thanks!

defragster

  • Sr. Member
  • ****
  • Posts: 467
Re: 9DOF Shield
« Reply #1 on: January 09, 2015, 11:27:43 am »
This is still pending.  Looking to start on it myself.

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: 9DOF Shield
« Reply #2 on: January 12, 2015, 05:58:00 pm »

defragster

  • Sr. Member
  • ****
  • Posts: 467
Re: 9DOF Shield
« Reply #3 on: January 12, 2015, 10:04:03 pm »
IT WORKS!  It dumps pretty numbers without labels.

WARNING - Save your work - IT SPEWS NUMBERS TO THE KEYBOARD!!!!

OPEN NOTEPAD and give it the focus before the SKETCH STARTS!!!!!

I just edited the wiki with this added line
Code: [Select]
    DigiKeyboard.delay(1000);    // Open Notepad (or similar) and make sure it has the focus
It will immediately spew strings all over your sketch or whatever has the focus, at a rate that perfectly prevents you from helping before you yank the PRO.

And there isn't wait in SETUP before the fun begins

My Win8 machine opened some accessibility app and then the start screen came up and numbers were going in there after my sketch was dumped on.

Thanks, Looks like the perfect app looking for my to be updared serial debugger OLED.
NOTE: I put the 9DOF on my OLED PCB (socketed under) - current sketch with NEW Xled OLED code running give the following:
Sketch uses 11,494 bytes (77%) of program storage space. Maximum is 14,844 bytes.
Global variables use 222 bytes of dynamic memory.

Since it uses Wire I can add serial for 'free'.
« Last Edit: January 12, 2015, 10:09:21 pm by defragster »

defragster

  • Sr. Member
  • ****
  • Posts: 467
Re: 9DOF Shield
« Reply #4 on: January 19, 2015, 08:15:24 pm »
Back to seeing this after other stuff.  Need to understand the numbers to know when they are reading right, for instance Gyro second two sets sitting at zero.

Would like to know how fast I can expect to read data from the 3 portions and get usable data without making it less reliable in the process, or reading it when no chance of new data.

I have one PRO with the 9DOF running to a serial cable now to a second PRO with OLED to display the data.  Much easier to move the device and read the screen that is stationary.