Module not working? #933
Replies: 4 comments
-
Posted at 2017-05-18 by ClearMemory041063 No experience with the MPU6050 module here. Pullup resistors on the scl and sda lines are one thing to check. var MPU6050 = require("MPU6050");
For PICO |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-05-18 by @allObjects ...since it is a @Gordon/node.js-classical-module-setup, global MPU6050 ('constructor') function is not exposed... in other words, your code is ok to use MPU6050 for the module (singleton) object returned by require(). The module object returned knows only I do not know the inner workings/details of the driver and the MPU650's behavior, but I would put the Not soldered pins is not a good idea... (there are special pins that need no soldering but they are hard to use and often break the (thinner) breakout boards...). I may understand why you do not want to solder pins the standard way... Depending on how the pins are held in their plastic, you may just solder them in 'the other way round' without pushing them all the way in the the plastic touches the board. After solidly soldering them in, you can remove the plastic by preying gently multiple times on multiple locations. If you are then done with prototyping and you want to solder wires directly (or other final connections), you can take off pin by pin easily. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-05-19 by ClearMemory041063 MPU6050 Try this code
Without an MPU6050 connected to the PICO I get the following:
Please try it with your chip connected. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-05-22 by @gfwilliams Also, just checking, but do you have up to date firmware? Some older versions had some bugs in the ES6 function implementation that could have caused a crash for arrow functions. Generally Espruino should never crash such that |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-05-18 by trusktr
I got an MPU6050, and I connected the wires based on what the doc for the module says. When I run my code, it seems like Espruino freezes (the command line in the IDE becomes unresponsive).
Maybe I didn't connect the wires properly? I am using wires but no solder (see photo, the module is on bottom, the pins are fastened with the wires but not soldered). Maybe it really needs solder?
Or if that should be good enough for prototyping, maybe there's something wrong in code or with the module? Here's my code:
What are some steps I can take to diagnose the problem?
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions