Author Topic: Digispark and memsic accelorometer  (Read 3245 times)

jcw5565

  • Newbie
  • *
  • Posts: 2
Digispark and memsic accelorometer
« on: April 01, 2013, 02:49:06 pm »
Is it possible?  I'm super new at this but I would like to connect my Digispark to a Memsic 2125.  My goal is to get the memsic to activate lights when it moves.  I've read the post in another forum but can seem to get that code to load up.  Please help.

Bluebie

  • Sr. Member
  • ****
  • Posts: 486
Re: Digispark and memsic accelorometer
« Reply #1 on: April 01, 2013, 04:07:08 pm »
This will work on Digispark: http://arduino.cc/en/Tutorial/Memsic2125 except digispark doesn't currently have the Serial library, so you should use DigiUSB or DigiKeyboard or something like that instead for testing.

jcw5565

  • Newbie
  • *
  • Posts: 2
Re: Digispark and memsic accelorometer
« Reply #2 on: April 02, 2013, 11:56:57 am »
Thanks Bluebie but I tried this and it doesn't load up.  I hooked up exactly as the diagram says but the loading program says "insert USB now." when the digispark is already inserted. What would you suggest to trouble shoot this?

Tommy_2Tall

  • Newbie
  • *
  • Posts: 13
Re: Digispark and memsic accelorometer
« Reply #3 on: April 02, 2013, 11:21:58 pm »
Hi!

That sounds like you haven't disconnected and reconnected the DigiSpark when trying to program it or you're not getting a good enough connection with that USB-sockets.

If you're using the original firmware you should have the DigiSpark disconnected until that text shows up and then connect it to the USB-port.
Then the Arduino IDE will have 5 seconds to try and establish a connection with the DigiSpark before it switches from "programming mode" to "run current program mode".

If that still doesn't work you may want to test other USB-ports.
I had some problems with the chassis-mounted USB-ports and a couple of extensioncables/hubs because the plastic around the female USB-socket stopped the DigiSpark from getting a good connection.
Right now I'm using one of those butt-ugly USB extensioncords that has almost all of the female USB-socket exposed, so that there's no plastic rim around the opening, just the metal shielding that is usually hidden in plastic.

Hope that helps.. :)