How can I run six DC motors with three L298N drivers by using a Nano BLE sense 33?
Any help is deeply appreciated.
They all need to turn in only one direction?
Then it can be done.
Examples are in l293d datasheet. (Google..)
Is this a helicopter like thing?
Then a mosfet controller will help to save on electricity (will also work for cars, but cars do not need to lift their own batteries).
In my case, I want to turn in different direction. Can you suggest me, how can I operate six DC motors with L298N driver, rotating in different direction?
Have you got the code and hardware setup for controlling one motor.
If so can you post it, along with a schematic of how you have wired it up. Hand drawn is fine, Fritzing is not.
By the way that chip is a very old design, draws a lot of current and drops a lot of voltage.
By using following link, you can control a DC motor with encoder.
Arduino DC Motor Speed Control with Encoder, Arduino DC Motor Encoder (electroniclinic.com)
Here, my question is different. I want to operate six DC motors without encoder. I am varying PWM signals only, and I want to operate it through one Arduino nano ble sense 33.
I know how to control a motor. I was asking you for your schematic, you are the one posting the problem. I know that the logic level output of a BLE sense 33 is only 3V3 do you know.
So if you want any help you have to cooperate and show me what you have already. I only know what you tell me. If you are not serious about getting help then let's call it a day.
Since you want to save energy I would start by placing the L298 drivers in the trash bin and replacing them with a MOSFET outputs. The l298 drops about 1.4 V per leg or 2.8 Volts to the motor. Multiply the current the motors are drawing and multiply by 2.8, that will tell you how many watts of power you are just burning as heat. The L293D is similar, Each output is a complete totem-pole drive circuit, with a Darlington transistor sink and a pseudo-Darlington source. Each of the junctions will drop about 0.7 Volts each. This can be found in section 8.1 of the TI datasheet, (SLRS008D –SEPTEMBER 1986–REVISED JANUARY 2016). The L6203 comes to my mind. There are many, use "mosfet output small motor bridge IC" as a search term.
Thank you. I will try this.
create a sub-function that has arguments for the 3 pins: IN0, IN1, EN, speed (PWM) and direction. drive the EN pin thru an analog pin using the PWM value and set the IN0/IN1 pins depending on the direction
use that same sub-function to control the remaining motors as well (may just have enough pins on an UNO)
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.