Help with GPIO and Bluetooth
Hello everyone,
hope someone can help me with my issue.
I have one MetaWearRG device and have a special use case for it.
I need to send on 1 GPIO pin every 20ms a signal of high voltage for 1-2ms (ms = millisecond) and then turn it off for 20ms and so on in an endless loop...
I have tried to implement the use case in two ways:
1. Bluetooth commands
Send command every 20ms via Bluetooth to set the high voltage signal for 1-2ms and loop until turned off.
As you can view from the image, every 1 out of 3 signal is incorrect. Is Bluetooth to slow for this?
2. Internal timer
Send the internal timer a command to set the GPIO signals as on timers on and off. The device becomes unstable and unresponsive for more then 5 minutes... and I'm afraid of using this way, because the whole system become unstable.
I have an issue with the timer not being consistent enough either way
Am I doing something wrong? What is the right way?
Hope someone can point me in the right direction.
Thanks!
Tine
hope someone can help me with my issue.
I have one MetaWearRG device and have a special use case for it.
I need to send on 1 GPIO pin every 20ms a signal of high voltage for 1-2ms (ms = millisecond) and then turn it off for 20ms and so on in an endless loop...
I have tried to implement the use case in two ways:
1. Bluetooth commands
Send command every 20ms via Bluetooth to set the high voltage signal for 1-2ms and loop until turned off.
As you can view from the image, every 1 out of 3 signal is incorrect. Is Bluetooth to slow for this?
2. Internal timer
Send the internal timer a command to set the GPIO signals as on timers on and off. The device becomes unstable and unresponsive for more then 5 minutes... and I'm afraid of using this way, because the whole system become unstable.
I have an issue with the timer not being consistent enough either way
Am I doing something wrong? What is the right way?
Hope someone can point me in the right direction.
Thanks!
Tine
This discussion has been closed.
Comments
"Set 1"