Read the statement by Michael Teeuw here.
MMM-Swipe - Hand gestures
-
Your left sensor
Vcc goes to pin #2
Gnd goes to pin #6
Trig goes to physical pin #26 (Which is labeled GPIO 23)
Echo goes to physical pin #18 (Which is labeled GPIO 24)Your right sensor
Vcc goes to pin #4
Gnd goes to pin #9
Trig goes to physical pin #22 (Which is labeled GPIO 25)
Echo goes to physical pin #37 (Which is labeled GPIO 26)You need both sensors if you want to detect movement.
-
@mochman OK, I’m an idiot!
I only have one sensor! Ha
Thanks very much for your help, I’m gonna get one ordered then get back on it.
Sorry for the daft questions
-
No worries. Yeah the sensor looks like it has 2 detectors on it. I’m pretty sure one is the speaker and the other is the microphone detector.
-
@mochman when I use your workaround i get the following errormessage and a whitescreen:
Loading config ... Loading module helpers ... No helper found for module: alert. Initializing new module helper ... WARNING! Could not load config file. Starting with default configuration. Error found: Error: Module version mismatch. Expected 49, got 48. Loading module helpers ... No helper found for module: alert. Initializing new module helper ... App threw an error during load Error: Module version mismatch. Expected 49, got 48. at Error (native) at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:167:20) at Object.Module._extensions..node (module.js:568:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:167:20) at Module.load (module.js:458:32) at tryModuleLoad (module.js:417:12) at Function.Module._load (module.js:409:3) at Module.require (module.js:468:17) at require (internal/module.js:20:19) at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Swipe/node_modules/mmm-usonic/lib/usonic.js:5:14) Whoops! There was an uncaught exception... Error: Module version mismatch. Expected 49, got 48. at Error (native) at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:167:20) at Object.Module._extensions..node (module.js:568:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:167:20) at Module.load (module.js:458:32) at tryModuleLoad (module.js:417:12) at Function.Module._load (module.js:409:3) at Module.require (module.js:468:17) at require (internal/module.js:20:19) at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Swipe/node_modules/mmm-usonic/lib/usonic.js:5:14) MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues Launching application.
-
Can you make another config.js file with just the MMM-Swipe module in there? I don’t know what the:
WARNING! Could not load config file. Starting with default configuration. Error found: Error: Module version mismatch. Expected 49, got 48.
means. -
@mochman I change the config file to default and add your Module. The same errormessage.
-
@BeLuGe Try running
rm -rf node_modules/
inside the MMM-Swipe folder then runningnpm install
again. -
@mochman I have delete the directory and install the packages with
npm install
And I have reinstall the complete Raspberry and install only your module.
The error is still there -
I can’t help you then. That was my last option. I don’t receive that error nor do I know what that error means.
-
@mochman and @BeLuGe can you tell us what are the versions you are using :
Raspbian Jessie or Wheezy, which version of nodes, npm … ?
From where are you running npm start (local, ssh) using sudo or not ?
I have the same issue as @BeLuGe and I would like to debug/understand what’s is the problem.
I already red it could be a nodejs version issue (compiling vs running version)
So guys tell us what are your configurationHere is mine :
Rpi 3 updated firmware with rpi-update
Raspbian Jessie last version (apt-get update && upgrade && dist-upgrade)
Nodejs last version 6.5.0 ARM version (not sure if it’s 64 bit or 32 bit) from https://nodejs.org
Then install of MM and packages
MM is working fine until I add MMM-Swipe module configuration then got same error message about
Error: Module version mismatch. Expected 49, got 48.Hope we will find the solution …