I have a little Problem. I am working on a school project and I ordered the MCP33886 MotorDriver for my own Board. I need to control the Driver with an ESP32, but it is not working. I have not much time left. I have connected the IN1 IN2 D1 D2 Pins to the ESP32 and I want to control it with PWM. A problem could be that the ESP32 has 3,3V output and the Driver needs at least 3,5V at the PWM Pins to work. Would be really nice if someone could solve my problem.
Welcome! Without an annotated schematic it will only be a SWAG. You have probably nailed it on the driver PWM pins. They make level translators that should do the job for you.
You solved the problem yourself! You should use 5V on the control pins.
I used two function generators instead of the ESP32, which provide the 5V and 10kHz for the PWM signals, but it still doesn't work. I use the oszilloscope to see the PWM-Signals, they are here at the IN1 and D2 Pins but there is nothing on the OUTPUT Pins
I answered the other Problem to gilshultz, can u take a look
10kHz is the maximum, it may or may not work at that frequency, try 1kHz
Is the GND commected to the ESP?
Where does the 5V come from?
Is the 5V GND connected to the driver GND?
Is your power supply for the motors of the corrent voltage?
Okay I will try with 1kHz, yes the GND is connected, I connected AGND to the ground of the ESP32 and PGND all together. The drivers get 7,4V extern and the esp32 gets 4,9V. I use a function generator to send the PWMs with 5V, because ESP32 cannot do 5V
Are you using a MC33886 pre-made module/board or the IC in some design you made?
I am using the IC with a design which I made. It is for a RC Car Project
I am using the IC with a design which I made. It is for a RC Car Project
Then I suspect there is something wrong with your design.
We will need to see the schematics and PCB layout.
can I send you that from email
You can upload them here
the problem is that I did it on easyeda, that is online and if I send the link, everyone can change the design
Can't you export them as jpg or pdf?
a PDF is possible
Schematic_GimbalCar_2024-01-31.pdf (86,8 KB)
What about D1 and D2?
There is no bypass capacitor for each of the MC33886s.
Did you cut the PCB traces in order to connect the function generator?
this is how it loooks like right now, some traces were missing and I connected them here with the red one. I connect the funkction generator with the Pins from the ESP32