EEVblog Electronics Community Forum
Electronics => Beginners => Topic started by: Rishles69@ on May 24, 2024, 07:57:02 pm
-
I was wondering if I could use a mpu6050 to wake up esp32 on a specific direction like in smartwatches. I first tried to use the int pin of the mpu6050 to wake up esp32 from deep sleep. But the problem is, it wakes up the esp32 even in a slightest motion. Then I thought this: let the int pin of the mpu 6050 send an impulse. And it wakes up the esp32. As I'm using a display, I thought, let it use a transistor to switch on and off the display. So if it send an impulse, let the esp32 wake up (still the display is off). Now the esp32 is turned on, it should check which direction I have hold the gyro or mpu6050. And if it sees I have hold it in right direction, the display turns on. And if I hold it in other directions it doesn't turn on and back to sleep. So here, this should be done at 1 second maximum and I don't think if esp could handle it. Any ideas?
-
So here, this should be done at 1 second maximum and I don't think if esp could handle it.
1 second is a lot of time. ESP can do a lot in 1 second. Just use appropriate sleep mode that can be awaken fast.
-
You have to use the Interrupt pin of the MPU6050. It will generate interrupt and wake up the ESP32 from deep sleep.