Notifications
Clear all

How to connect power supply to ESP32, Servo motor and Leds strips.  

  RSS

Amishai
(@amishai)
Active Member
Joined: 3 months ago
Posts: 6
2020-09-30 2:58 pm  

Hi everybody.

My project is a torch light directed by servo motor which controlled from my cellular phone using the WiFi ability of the ESP32. The power supply is of 12V (for the Leds lights ) and 5V (for the ESP32 and the servo motor).  The information titles written on the power supply is:

L  N  Ground symbol  +12V  +5V  COM  COM  +V adj

Following the YouTube DroneBot lectures I couldn't figure out how to connect the three elements together with this power supply using the ground symbol and the other two COM sockets.

Thanks for the help

Amishai 

AE


Quote
DroneBot Workshop
(@dronebot-workshop)
Workshop Guru Admin
Joined: 1 year ago
Posts: 652
2020-09-30 3:22 pm  

@amishai

From your description, this sounds like one of those power supplies that is built in a case with a lot of ventilation holes and a single terminal strip, similar to this one:

Is that correct?

From your description I would say the leads are as follows:

L = This is the AC input HOT lead.

N = This is the AC input neutral lead.

Ground = Obviously this is the Ground for the input!

+5 and + 12 are your positive outputs

COM = I'm guessing that this is the ground or "common" output from your power supply. Note that I used the word "guessing" here!

+V adjust = Usually this is a way to "fine-tune" the voltage output, it's a potentiometer with a screw adjust.

I would suggest you verify the above with a multimeter. Be EXTREMELY CAREFUL around the line voltage inputs, most of those supplies come with an acrylic cover for the terminal strip that should always be in place after you connect the AC input wires.

See if you have 5-volts between +5V and one of the COM leads (I assume both CFOM terminals are internally connected, a multimeter would answer that question).  Ditto for 12 volts.

BTW, that sounds like a very cool project. You should post some details about it.

Good luck, and again, BE CAREFUL around the line voltage!

😎

Bill

"Never trust a computer you can’t throw out a window." — Steve Wozniak


ReplyQuote
Amishai
(@amishai)
Active Member
Joined: 3 months ago
Posts: 6
2020-10-01 9:55 am  

Hi Bill,

Many thanks for your quick response.

Your description of my project is perfect.

My assumptions following the YouTube "Using Servo Motors with ESP32" DroneBot Workshop time - 39:07 system drawing are:

1. The micro USB of the ESP32 and the Servo motor (Orange/Red wires) are connected to the power supply using its 5V and COM socket.

2. An extra wire must be connected between the same Power supply COM and the ESP32 GND point as mentioned in the drawing (black wire).

3. The Power supply Ground symbol socket is used for wall power (220V) connection only.

Please correct me if I'm wrong.

Thanks

Amishai

 

AE


ReplyQuote
Amishai
(@amishai)
Active Member
Joined: 3 months ago
Posts: 6
2020-10-01 9:58 am  

Small Mistake! Sorry

1. The micro USB of the ESP32 and the Servo motor (Black/Red wires) are connected to the power supply using its 5V and COM socket.

Amishai

AE


ReplyQuote
DroneBot Workshop
(@dronebot-workshop)
Workshop Guru Admin
Joined: 1 year ago
Posts: 652
2020-10-01 10:04 am  
Posted by: @amishai

1. The micro USB of the ESP32 and the Servo motor (Orange/Red wires) are connected to the power supply using its 5V and COM socket.

The Orange wire on the servo motor is the Control line, which needs to be connected to the I/O port you're using to drive the servo motor.  The Red wire is the power lead, which connects to 5-6 volts, and the Brown wire is the ground.

You may also power the ESP32 directly on its 5-volt pin instead of the USB connector if you wish.

Otherwise, your description sounds fine!

😎

Bill

 

"Never trust a computer you can’t throw out a window." — Steve Wozniak


ReplyQuote
DroneBot Workshop
(@dronebot-workshop)
Workshop Guru Admin
Joined: 1 year ago
Posts: 652
2020-10-01 10:05 am  
Posted by: @amishai

1. The micro USB of the ESP32 and the Servo motor (Black/Red wires) are connected to the power supply using its 5V and COM socket.

LOL, we replied at the same time!

"Never trust a computer you can’t throw out a window." — Steve Wozniak


ReplyQuote
Amishai
(@amishai)
Active Member
Joined: 3 months ago
Posts: 6
2020-10-01 10:10 am  

Brown it is. (and not black)

When you mentioned ground do you intend COM?

AE


ReplyQuote
DroneBot Workshop
(@dronebot-workshop)
Workshop Guru Admin
Joined: 1 year ago
Posts: 652
2020-10-01 11:29 am  

@amishai

Yes, that is what I mean.

COM would be an abbreviation for "Common", which is similar to Ground.

You could likely tie the COM lead to ground and everything would be fine. In most cases, the manufacturer does not do this just in case you have an application where your Common connection is not grounded, but in 99% of the cases, it is.

Again, be very careful on the 220v side and make sure you know which wire is the HOT lead and which one is Neutral. Here in North America we use a 3-pronged plug where one connection is ground. The other two are keyed with different sizes, the smaller one is HOT and the larger one Neutral.  

Your 220v connector will employ a similar scheme, there are a few different ones in use in different parts of the world.

Good luck with your project and stay safe!

😎

Bill

 

"Never trust a computer you can’t throw out a window." — Steve Wozniak


ReplyQuote
Amishai
(@amishai)
Active Member
Joined: 3 months ago
Posts: 6
2020-10-01 11:33 am  

Many, Many thanks

Amishai

AE


ReplyQuote
Amishai
(@amishai)
Active Member
Joined: 3 months ago
Posts: 6
2020-10-25 10:02 am  

Hi Bill,

The attached photo is my esp32 controlled lamp project thanks to the dronebot workshop lecture "Using Servo Motors with ESP32" (not beautifully designed but lights all my hidden room corners)

There is one unsolved problem: I can't control the servo motor speed (which is very fast) and its movement is rocking the whole lamp structure.

The project includes ESP32 and Servo motor with no driver.

How I control the servo motor speed ?

Thanks

Amit

IMG 3740

 

 

 

 

AE


ReplyQuote