very crude code here:
The code needs heavy clean-up but is fully functional.
It implements a
-
Orientation (X-Y-Z) sensor
-
Single Tap switch
-
Binary Motion sensor (when activity is detected sends on, after 1500 millies sends off)
-
Connect the NRF module as explained on the mysensors site
-
Connect the ADXL345 as explained on the adafruit site
-
Connect the NRF module directly to BAT-VCC, not the V-OUT of the step-up module
-
Connect VIN from Arduino & ADXL345 to the Step-up module
-
Connect INT1 from the ADXL345 to D2 on the Arduino.




