![](http://image.dfrobot.com/image//Blog/Application Tutorials of FireBeetle Board-ESP32 BLE: Smarten a Plugboard/control.gif)
Come to see! A new DIY from Chocho~
Yes! What you have seen is a smart plugboard that converted by ESP32 master board and controlled by BLE of ESP32. As a fan of Arduino, I am worried about that ESP32 has been supporting Wi-Fi and Bluetooth but without libraries files for Arduino. However, the smart plugboard can control many slave equipment at the same time. Trust me, I have made two and tested them.
Am I the first one to DIY with BLE of ESP32?
The video is a little bit long; please see the following steps to the details of working process.
Hardware in need:
*Click here to download the program and the source code for 3D printing.
Working Process:
1. Take a power adaptor and used plugboard apart.
You would better use tweezers or nippers to break the power adaptor. Mine power adaptor used glues not screws to compound and it is very hard to take it apart.
![](http://image.dfrobot.com/image//Blog/Application Tutorials of FireBeetle Board-ESP32 BLE: Smarten a Plugboard/image005.png)
Talking about how to take the used plugboard apart, you can refer to the video. Anyway, different factories produce different plugboards.
2. Make power cables.
You need to find a length of household wire, no requirement of types and demolish the outer enameled wires that are about 10cm.
![](http://image.dfrobot.com/image//Blog/Application Tutorials of FireBeetle Board-ESP32 BLE: Smarten a Plugboard/image011.png)
(1)Solder the AC power line wire.
Solder one segment wire to the entry of AC.
Caution: To avoid leaking, no too many solders.
![](http://image.dfrobot.com/image//Blog/Application Tutorials of FireBeetle Board-ESP32 BLE: Smarten a Plugboard/image012.png)
(2) After the soldering, you should use a diagonal nipper to remove the USB power-supply interface.
(3) Then, you should solder a power cable to supply the FireBeetle board.
![](http://image.dfrobot.com/image//Blog/Application Tutorials of FireBeetle Board-ESP32 BLE: Smarten a Plugboard/image015.png)
3. Connect the board.
The Circuit Diagram is as below:
D2 controls a relay, D3 controls RGB.
![](http://image.dfrobot.com/image//Blog/Application Tutorials of FireBeetle Board-ESP32 BLE: Smarten a Plugboard/image016.png)
In this step, you should fix the relay, Beetle BLE board, plugboard.
You can refer to the radio for details.
![](http://image.dfrobot.com/image//Blog/Application Tutorials of FireBeetle Board-ESP32 BLE: Smarten a Plugboard/image017.png)
![](http://image.dfrobot.com/image//Blog/Application Tutorials of FireBeetle Board-ESP32 BLE: Smarten a Plugboard/image018.png)
![](http://image.dfrobot.com/image//Blog/Application Tutorials of FireBeetle Board-ESP32 BLE: Smarten a Plugboard/image020.png)
![](http://image.dfrobot.com/image//Blog/Application Tutorials of FireBeetle Board-ESP32 BLE: Smarten a Plugboard/image021.png)
4. Complete machine assembly.
Fix the plug with solders and put it into the crust.
![](http://image.dfrobot.com/image//Blog/Application Tutorials of FireBeetle Board-ESP32 BLE: Smarten a Plugboard/image022.png)
Moreover, this is the end.