2024-06-29 02:03 AM
Hi there, I'm trying to do a project that involves controlling a servo motor over the BLE I have a STM32wb15, i know my configuration is set up correct as I have copied a code from an example I have and the project works exactly as it should.
My problem is the coding i have a very basic knowledge of programming(bit of a beginner) and what i need is to control a servo motor over a android app over Bluetooth using a slider to control the motor i have a very basic app set up which has a slider and a button-which is supposed to connect to the device
So if anyone is able to help that would be very much appreciated!
2024-06-29 02:17 AM
I am confused.
You say you already have project that's working fine - so what is it that you actually need help with?
2024-06-29 02:21 AM
hi sorry Andrew I probably didn't explain to well, i have a project that proves my configuration is correct with starting the on board Bluetooth its the new project i need help with its the coding i struggle with, as mentioned i need to control a servo motor on a slider on an app i have created on android,
thank you
2024-06-29 02:27 AM
Still no idea!
@KaiP wrote:I have copied a code from an example I have and the project works exactly as it should.
So you already have a working project?
2024-06-29 02:31 AM
Unfortunately not the project I have a project that only activates the Bluetooth so i can talk to the st board, what i was saying was i can copy the code from that project into a new project and it works which means my configuration is set up correct, its just the code I'm having a trouble with.
2024-06-29 02:42 AM
@KaiP wrote:My problem is the coding i have a very basic knowledge of programming (bit of a beginner)
So start with the basics - don't leap straight in to such an advanced project!
https://www.avrfreaks.net/s/topic/a5C3l000000UYGFEA4/t145493?comment=P-1392529
Basic steps:
That will give you basic skills to write & debug code.
The next step would be to do the servo control without BLE - keep things simple, doing one step at a time.
Once you have your "standalone" servo code working you will know what commands/controls it needs - so you can move on to adding them via BLE.
Again, start with just the BLE code - without the servo part.
Finally, bring it all together.
2024-06-29 02:46 AM
thank you very much Andrew i shall keep practicing i have been able to control leds over ble before and do have basic projects of controlling servo and stepper motors its just implementing the both together but i shall keep learning and trying.