Can MPU6050 implement hand lift detection in low power mode? - stm32

If i want to use mpu6050 intterrupt to wake up stm32.
when i move my board,stm32 can wake up form stop mode.
i have realized the iic communication between stm32 and mpu6050.and stm32 can already enter stop mode.

Related

STM32L4 Embedded Bootloader CAN interface resets after first frame

I'm using the STM32L496 and attempting to use the CAN interface with the embedded bootloader. I know I can put it into the bootloader, I can see the bootloader mapped to memory zero-address. And I can see the HSI is checked and system clock set to 72MHz as it should. However, when I attempt to send the first CAN frame (which should kick off the CAN command loop), the device resets. If I have boot0 high, it will reset to the application, but if I hold it low it will reset to the bootloader again.
I have a 24MHz oscillator connected to the HSE pins. Why does the device reset when I send a CAN frame (any CAN frame)?

tearing pin interrupt problem of the LCD driver

Using st7789 tearing pin interrupt for synchronization of lcd display. But getting interrupt at very high rate hence all other tasks are getting delayed. Help me in configuration of tearing pin interrupt at lower rate so other task will get MCU time and get executed.
Using stm32l4 with st7789 driver to drive TFT LCD display.

STM32H7 DCMI with BT.656

I am currently making a system using digital camera, my camera resolution is 384x288 4:2:2 YCbCr. My camera works on BT.656 with embedded sync (without hardware sync).
I configured STM32 DCMI with embedded sync and it didn't work. Then I started to debug it and found some weird STM32 DCMI issue:
STM32 DCMI embedded for BT.656 is inverted.
STM32 DCMI document (out of ST's
AN5020):
BT.656 Protocol (from
here):
I have 2 questions:
Has anyone been able to make BT.656 work on STM32H7 or any STF32FXX?
BT.656 resolution for PAL is 720x576 but my camera is 384x288.
What is the format of the camera?
Or: How can I understand how many lines are used?

How to maximize battery life on Movesense sensor?

I have a use case where the Movesense sensor will be used occasionally (say, an hour a day) and I'd like to maximize battery life. Is there a way to put it into a sleep state, and then wake it in response to some user action? For example, shut off Bluetooth and all sensors but the accelerometer, and then wake them up with the accelerometer detects that it's being moved or tapped.
I see that the Movesense sensor can be put in "PowerOff" or "FullPowerOff" state. In these states is it completely shut down, or is it possible to continue to monitor the accelerometer?
Yes, it is possible. You can check hr_wakeup_sample:
https://bitbucket.org/suunto/movesense-device-lib/src/887714f3b42496988cce6055b3ccf8b8c99a6846/samples/hr_wakeup_app/?at=master
The device is waking up when you put your fingers to the metal pins (on the bottom).
Also you can change this line:
asyncPut(WB_RES::LOCAL::COMPONENT_MAX3000X_WAKEUP::ID,
AsyncRequestOptions(NULL, 0, true), (uint8_t) 1);
https://bitbucket.org/suunto/movesense-device-lib/src/887714f3b42496988cce6055b3ccf8b8c99a6846/samples/hr_wakeup_app/HrWakeupApp.cpp?at=master&fileviewer=file-view-default#HrWakeupApp.cpp-132
to use this API:
https://bitbucket.org/suunto/movesense-device-lib/src/887714f3b42496988cce6055b3ccf8b8c99a6846/MovesenseCoreLib/resources/movesense-api/component/lsm6ds3.yaml?at=master&fileviewer=file-view-default#lsm6ds3.yaml-119

Generating Pause Frames to test hardware

I have put together a media converter that converts from 100Mbps ethernet on one side and 100BASE-FX fiber on the other. The application that this converter goes into uses Full Duplex / Pause Frame flow control to handle data overloads. I have configured my hardware to accept and deal with pause frames. What I need is a means of testing the setup to see that the media converter correctly handles the pause frames. To that end I have 2 questions....
1) Does anyone have a good method for testing a piece of hardware for it's handling of pause frames?
2) An idea that I had was to send data through the converter. While doing so, send a pause frame of a known length to the converter. Then look to see that the device pauses for the correct amount of time. Does this method seem plausible? If so, is there an easy way (software tool) to generate pause frames to accomplish what I am trying to do?
Any help here would be greatly appreciated.
Thanks,
Mike Nycz
There are two types of Pause frame testing:
1) Your device should detect Pause frames and stop transmitting for the time mentioned in received Pause frame. If you send a few pause frames to your device, it can be difficult to detect whether your device stopped transmission for that small duration. What you can do is to send Pause packets continuously. By doing this your device should altogether stop transmitting till it is receiving pause packets.
2) Your device should generate Pause frames when RX FIFO level is above a certain threshold and should stop generating them when level again goes below the threshold.
You can use a Packet generator like N2X/IXIA etc for generating pause packets. One more thing Pause packets should be of 64 bytes only. For size other than 64bytes, device may opt to reject them.