Please give suggestion for this problem

Hello All,

We are planning to perform the below task.

The intent of this work is to unique speed control(PWM) the individual motors (bi-directional) based on the ultrasonic sensor readings using Arduino Nano. In addition, We wanted to have an MPU-6050 IMU and an RC receiver.

I have challenge of connecting all the below components in one Arduino Nano board. Any Suggestion/solution to accommodate the below components in one Arduino Nano are welcome.

If we could not fit below components in one Arduino Nano what is the other feasible and low cost approach to achieve this Solution. As we have the space constraint, we could not accommodate the Controller board which is bigger than Arduino Nano.

I have also attached the rough Circuit diagram for your reference

Existing Components:

  1. 5 Numbers of Ultrasonic sensor (HC-SR04)
  2. 4 Numbers of Motors (bi-Directional, Need unique speed on every motor)
  3. L293D 4 channel Motor Driver
  4. MPU-6050 IMU
  5. RC Receiver

Please, provide link to specs of your peripheral devices and sensors.

Your problem statement is inadequate. It your question regarding physical space, I/O capability, or power consumption, or processing load, or what?

My Problem is about the I/O capacity. is there any way i can connect the above mentioned devices in single Arduino Nano.

Respond to post #2 to get further help.

Component specification

  1. Ultrasonic sensor
    ==================
    HC-SR04 Ultrasonic Sensor Working, Pinout, Features & Datasheet

  2. L293D 4 channel Motors Driver
    ==============================
    L293D Motor Driver IC Pinout, Equivalent ICs, Features and Datasheet

  1. DC motor (4 Numbers)
    ========================
    Buy 3-12V 18000 RPM High Speed DC Motor (Pack of 2) at HNHCart.com

  2. MPU-6050 IMU
    ===============
    MPU6050 Module Pinout, Configuration, Features, Arduino Interfacing & Datasheet

  1. RC receiver
    ==============

10 pins for Ultrasonic Sensors
12 pins for 4 motors with speed control
2 pins for MPU-6050 IMU (I2C/TWI/Wire)
1 pin for RC Receiver
25 pins total.

The Nano only has 19 digital I/O pins so you will need some kind of I/O Expansion. You can share the I2C pins with a "port expander" to get 8 of the 12 motor pins:

10 pins for Ultrasonic Sensors
4 PWM pins for speed control on 4 motors
2 pins for MPU-6050 IMU (I2C/TWI/Wire) and Port Expander for the 8 motor direction controls.
1 pin for RC Receiver
17 pins total.

Thank you @johnwasser for the solution.

How?
Port-B: 6
Port-C: 6
Pott-D: 8


Sub Total: 20

  •               2 (if internal OSC is used)
    
  •               1 (if internal power up is used)
    

Possible IO lines: 23

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.