Navigation

    Welcome to the Pycom forum

    Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Tags
    3. accelerometer
    Log in to post

    • N

      understanding accelerometer wake example
      Expansion Board • accelerometer • • NicolaC  

      11
      0
      Votes
      11
      Posts
      170
      Views

      J

      @NicolaC The PORTC configuration will be changed during the go_to_sleep call. You should just add an argument false to that call to disable the GPS (the argument is optional and defaults to true).
    • M

      Accelerator as a vibration sensor?
      Discussion • accelerometer • • misterlisty  

      7
      0
      Votes
      7
      Posts
      699
      Views

      J

      @misterlisty that’s about as vague as it gets... I recommend you start by reading the accelerometer’s datasheet to learn of its capabilities. An accelerometer detects just that: acceleration, and you can sample the acceleration values at regular intervals to try to detect all sorts of things. I believe you can even “stream” the values samples by the accelerometer. But high frequency vibrations for instance may be an issue as they may exceed the capabilities of the accelerometer. High sampling rates may also be an issue if you have lots of computations to perform. It’s really difficult to help you much further without any indication of what exactly you are trying to measure / detect, and what the threshold are.
    • D

      accelerometer wake not working
      Comments & Feedback • accelerometer wake not working • • devinv  

      6
      0
      Votes
      6
      Posts
      563
      Views

      D

      @jcaron any news?
    • A

      Wake machine.deepsleep using pin input from accelerometer [SOLVED]
      WiPy 2&3 • deepsleep pin interrupt accelerometer • • alexpul  

      5
      0
      Votes
      5
      Posts
      1400
      Views

      A

      Ah ha. I was using the wrong interrupt script. This is the correct working code for an accelerometer interrupt (P13) of machine.deepsleep(): import machine machine.pin_deepsleep_wakeup(['P13'], machine.WAKEUP_ANY_HIGH, False) machine.deepsleep(10*1000) So for pin interrupts there is a callback() function to create interrupts of active and sleep modes but the pin_deepsleep_wakeup() is needed to interrupt deep sleep (is that what you meant by "wake-on-pin" @jcaron?). There is no interrupt handler for pin_deepsleep_wakeup() because the working memory is cleared after deep sleep (as mentioned by @jcaron below). @jcaron I had tested my interrupt handler without sleep and it did work. In my main.py I had the following script to test that it woke from deep sleep and ran main.py. import pycom import utime pycom.heartbeat(False) #turn off LED pycom.rgbled(0xFF0000) #red LED utime.sleep(2) pycom.heartbeat(False) #turn off LED
    • A

      Accelerometer always produces two interrupts [SOLVED]
      Getting Started • pytrack interrupt accelerometer • • alexpul  

      5
      0
      Votes
      5
      Posts
      1042
      Views

      A

      @dmayorquin Amazing! Both of those solutions worked for me. Thanks for your help :)
    • E

      OSError: [Errno 22] EINVAL at writing to SD-card
      Issues & Bugs • pytrack accelerometer sd card • • Eric Waai  

      12
      0
      Votes
      12
      Posts
      1759
      Views

      E

      @timh Well in embedded programming for example one of the lpc4000 series with a proper debugger you can "walk" through the code and see at any given point in the code what value any given variable has. That's the real thing i'm missing with python: a decent debugger where i can set breakpoints, evaluate and and manipulate RAM variables and cycle through lines of code. this And i believe that wrapping everything in try and catch can make you a lousy/lazy programmer. For myself i only add try and catch if everything works as it should. Than add them to give the option to continue running with less functionality or save some variables and reboot. As for now i'm liking C much more. But there is also an enormous difference in experience. I've been programming all kinds of embedded microcontrollers in C for years, and probably python is never gonna catch up. I have to get more used to coding in python and i will. I guess i'm not so used anymore to make beginner mistakes ;)
    • L

      Visualised acc data on app via Bluetooth using Pysense/Lopy4
      Guides • lopy4 pysense bluetooth accelerometer • • luke89  

      1
      0
      Votes
      1
      Posts
      692
      Views

      No one has replied

    • D

      FiPy getting hot
      FiPy • fipy accelerometer hot • • Dylan  

      5
      0
      Votes
      5
      Posts
      1016
      Views

      D

      @jmarcelino Yeah, all up to date to the latest firmware. We are working them pretty hard, I guess they are reaching somewhere into the 45+ degrees C
    • S

      Enabling 'Wake-On-Motion' feature on MPU 9250 9DOF Orientation sensor
      Discussion • accelerometer wakeup mpu • • sprasad  

      2
      0
      Votes
      2
      Posts
      1122
      Views

      catalin

      hi @sprasad, So you're interfacing orientation sensor directly with GPY, right? You could control RST pin of GPY, or control Vin(3.5V-5.5V) from your powering scheme.
    • S

      GPy with BNO055 - I2C bus error
      Discussion • gpy accelerometer i2c bus error • • sprasad  

      9
      0
      Votes
      9
      Posts
      1547
      Views

      M

      @sprasad said in GPy with BNO055 - I2C bus error: I2C(0, I2C.MASTER, baudrate=1000, pins=(Pin.exp_board.G15, Pin.exp_board.G16)) > ``` Expansion board G15 and G16 are P8 and P9. P8 is the SD_Data, but You don't use the SD card, the P9 on expansion board is the "led" pin. Try removing the led jumper "enable led signal" on expansion board to disable it.
    • J

      Pysense accelerometer wake up issues
      Issues & Bugs • pysense library accelerometer wake up • • jcaron  

      13
      0
      Votes
      13
      Posts
      2928
      Views

      D

      Hi @jcaron, yesterday I posted some findings about this issue. Today I've discovered that if I comment the line: self.set_register(CTRL3_REG, 1, 5, 1) in LIS2HH12.py, then my multimeter shows the accelerometer works as its supposed in terms of current consumption: ~130 µA for 5 seconds (inactivity duration) and then ~60 µA. If I shake a little bit the board then the current rises up to ~130 µA (activity detection) and after 5 seconds lowers to ~60 µA again. Off course, the SiPy doesn't wake up because accelerometer's inactivity interrupt (INT1_INACT bit in CTRL3 register) is not enabled (the line I commented), but this reinforces my theory that there is a problem regarding to the way the PIC handles the interruption. I.e., an issue in Pysense/Pytrack firmware or in pycoproc.py library.
    • arthurlutz

      Grove - 6-axis accelerometer & gyroscope v1.0 (LSM6DS3)
      Discussion • python wipy2.0 library accelerometer • • arthurlutz  

      2
      0
      Votes
      2
      Posts
      1205
      Views

      arthurlutz

      Any luck with new wipy users ?
    • M

      PySense & PyTrack sleep: get time slept (like sleep time remaining) + state saving?
      Comments & Feedback • pytrack pysense sleep accelerometer • • Meirssv  

      2
      0
      Votes
      2
      Posts
      938
      Views

      livius

      @meirssv you can save this info to sd card, flash or nvs
    • arthurlutz

      wipy 2.0 juggling balls - protoyping
      WiPy 2&3 • wipy2.0 accelerometer lipo battery rgbled rgb • • arthurlutz  

      5
      1
      Votes
      5
      Posts
      1482
      Views

      P

      @crumble Pictures of the larp kit please :P Ill dig mine out in return ^_^ @arthurlutz Thats super cool. good work.
    • P

      PyTrack LoRa & LiPo
      LoPy • lora pytrack gps accelerometer lipo battery • • pymiom  

      3
      0
      Votes
      3
      Posts
      1423
      Views

      P

      Hi @Xykon , Thanks for reply, that works for the PySense update! The Battery I am using is a 3.7v 2000mAh. Thanks Michael
    • C

      Trying to accessing accelerometer values on sipy with pytracks
      Expansion Board • pytrack sipy accelerometer • • chrisi  

      6
      0
      Votes
      6
      Posts
      2117
      Views

      T

      @bucknall : @chrisi runned into one of your documentation errors: https://docs.pycom.io/pycom_esp32/pycom_esp32/tutorial/includes/pytrack-examples.html#axis-accelerometer you might adapt the example as mentioned above.
    • O

      pytrack accelerometer pitch/yaw/roll read wrong values
      Getting Started • pytrack bug accelerometer • • ozeta  

      3
      0
      Votes
      3
      Posts
      2026
      Views

      O

      @livius os.uname()                                                                                                           (sysname='WiPy', nodename='WiPy', release='1.7.5.b2', version='v1.8.6-694-g25826866 on 2017-06-29', machine='WiPy with E SP32') pytrack firmware: pytrack_0.0.3.dfu yes I git-pulled the lastest library
    • E

      Power consumption on Pytrack with SiPy
      Expansion Board • pytrack gps power saving accelerometer • • Emmanuel Goudot  

      17
      1
      Votes
      17
      Posts
      5402
      Views

      joeri

      @asaph I've tried it out and it works fantastically 🎉 Thanks @Daniel!
    • K

      Anyone manged to get the FIFO in the Pysense shield accelerometer working?
      Expansion Board • pysense accelerometer fifo • • kuantsai  

      1
      0
      Votes
      1
      Posts
      741
      Views

      No one has replied

    • bucknall

      Alex's Corner - Week 7 - Pytrack, GPS & more!
      Events • pytrack gps accelerometer • • bucknall  

      18
      1
      Votes
      18
      Posts
      6215
      Views

      bucknall

      @Jiemde This is correct! They use the same sleep method as the deep sleep shield to control the devices sleep. I.e. setup_sleep() + go_to_sleep().
    • 1
    • 2
    • 1 / 2