# How do i connect a ESP 32 with thunkable to a servo

**URL:** https://community.thunkable.com/t/how-do-i-connect-a-esp-32-with-thunkable-to-a-servo/2762741
**Category:** BLE / BlueTooth
**Created:** [December 28, 2023, 4:07pm UTC](https://community.thunkable.com/t/how-do-i-connect-a-esp-32-with-thunkable-to-a-servo/2762741 "2023-12-28T16:07:00Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![martijnmpmnf5](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@martijnmpmnf5](https://community.thunkable.com/u/martijnmpmnf5)
#### Post date: [December 28, 2023, 4:07pm UTC](https://community.thunkable.com/t/how-do-i-connect-a-esp-32-with-thunkable-to-a-servo/2762741/1 "2023-12-28T16:07:00Z")

</div>

Hello People,

I want to make an app which can set a servo into 2 different degrees.  
My little boy has a wooden train track and i want to make an app that can flip the track into righthru and left/right so he can use his ipad or phone to play with the tracks.  
The hardware i all have and its working, only thing is i see a lot of examples where the bluetooth module HC-05 or 06 is used but i dont want that.  
I think the ESP32 is very useable for this project cause of the onboard wifi and bluetooth.

Does someone have the experience or does someone know how to make an app for this with thunkable ?

What i need is a slider or on/off knob which set the servo in a saturn degree and back to zero…  
then i want to expand the app with more servo’s so my son can play with more tracks

I hope someone can help me out, been on a lot of youtube movies and sites, but sadly there is less to find how to control a servo with thunkable or other app

[https://x.thunkable.com/projectPage/658b10e20a409e834fa3af17](https://x.thunkable.com/projectPage/658b10e20a409e834fa3af17)  
this is what i made till now, i want thus the slider to make the servo turn , one slider for one servo and then hook it all up to the ESP32 and control it true bluetooth  
greetz  
Martijn

---

<div class="post-metadata">

### Author: ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)
#### Post date: [December 28, 2023, 4:42pm UTC](https://community.thunkable.com/t/how-do-i-connect-a-esp-32-with-thunkable-to-a-servo/2762741/2 "2023-12-28T16:42:47Z")

</div>

Hi @martijnmpmnf5, welcome to Thunkable! 🎉

Be sure to check out our posts about [How to ask Great Questions v2.0](https://community.thunkable.com/t/how-to-ask-great-questions-v2-0/2689983/1) and our [Community Guidelines](https://community.thunkable.com/t/community-guidelines/78/8) as you get started.

I am not familar with a Servo but from looking at this site, you can connect via BLE to the servo and simply send out the angle value that you want the arm to turn and it would.

> **[BLE Controlled Servo With NRF](https://arc.net/l/rolrfczt)**
>
> BLE Controlled Servo With NRF: Hello everyone!In this Instructables, you will learn how to setup and interface a servo motor to your Arduino 101 over Bluetooth Low Energy or BLE4.1 using the modular tool, nRF Master Control. The servo motor will be...

Keep in mind, with Thunkable, you’d have to use Bluetooth Low Energy to connect to the board as we unfortunately do not currently support connecting via WiFi.

---

<div class="post-metadata">

### Author: ![martijnmpmnf5](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@martijnmpmnf5](https://community.thunkable.com/u/martijnmpmnf5)
#### Post date: [December 28, 2023, 5:37pm UTC](https://community.thunkable.com/t/how-do-i-connect-a-esp-32-with-thunkable-to-a-servo/2762741/3 "2023-12-28T17:37:14Z")

</div>

Thanks matt  
But this is not exactly what i want…  
I want to make and use the app for controling the servos …  
In use with a Esp32

Greetz

---

<div class="post-metadata">

### Author: ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)
#### Post date: [December 28, 2023, 5:52pm UTC](https://community.thunkable.com/t/how-do-i-connect-a-esp-32-with-thunkable-to-a-servo/2762741/4 "2023-12-28T17:52:05Z")

</div>

I suppose I might be a bit confused here. The app I am suggesting would do just that. The Servos is wired up to the ESP32 and you can connect to the ESP32 via BLE and transmit data to the ESP32 which will control the Servos? Is that not what you are wanting?

---

<div class="post-metadata">

### Author: ![martijnmpmnf5](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@martijnmpmnf5](https://community.thunkable.com/u/martijnmpmnf5)
#### Post date: [December 28, 2023, 6:30pm UTC](https://community.thunkable.com/t/how-do-i-connect-a-esp-32-with-thunkable-to-a-servo/2762741/5 "2023-12-28T18:30:50Z")

</div>

not exactly, i want for every servo one slider or knob that turns the servo into 2 posttions , u can see it as on off  
when the slider or knob is used the servo goes to a certian postition and when used again it goes back to the other position and so on…

Thanks for your help

Martijn

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [December 28, 2023, 6:48pm UTC](https://community.thunkable.com/t/how-do-i-connect-a-esp-32-with-thunkable-to-a-servo/2762741/6 "2023-12-28T18:48:20Z")

</div>

What’s the holdup for you? You’ll need to code your device to accept these commands, decide upon the packet of info you’ll send to transmit commands, hook your stuff up.

---

<div class="post-metadata">

### Author: ![martijnmpmnf5](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@martijnmpmnf5](https://community.thunkable.com/u/martijnmpmnf5)
#### Post date: [December 28, 2023, 7:09pm UTC](https://community.thunkable.com/t/how-do-i-connect-a-esp-32-with-thunkable-to-a-servo/2762741/7 "2023-12-28T19:09:22Z")

</div>

I dunno what u mean?  
i made this for now and want the sliders to set a certian degree 0 degree for rightthru, near 30 degree for going left or right  
[https://x.thunkable.com/projectPage/658b10e20a409e834fa3af17](https://x.thunkable.com/projectPage/658b10e20a409e834fa3af17)

greetz

---

<div class="post-metadata">

### Author: ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)
#### Post date: [December 28, 2023, 7:42pm UTC](https://community.thunkable.com/t/how-do-i-connect-a-esp-32-with-thunkable-to-a-servo/2762741/8 "2023-12-28T19:42:06Z")

</div>

In that case, you could easily set the slider to have a range of 1-3, where 1 could be the position for left, 2 for straight thru, and 3 for right. You could add some conditionals into the blocks so that the value of the slide can coordinate with the value sent to the Servo.  
 ![Screenshot 2023-12-28 at 2.40.38 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/0/c0c5cfe97d589d8a0e882277e11a8d8a5e7e6b12.png)

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 1:33pm UTC](https://community.thunkable.com/t/how-do-i-connect-a-esp-32-with-thunkable-to-a-servo/2762741/9 "2024-11-08T13:33:10Z")

</div>


