PWM from CT-UNO+ MDDS10

This article is about PWM signal and the response of MDDS10 which being controlled by this PWM from microcontroller, and the PWM signal shown on oscilloscope. The MDDS10 be injected with PWM from microcontroller (CT-UNO) continuously.

INTRODUCTION

This article is about PWM signals and the response of MDDS10 controlled by a PWM signal from a microcontroller. In the meantime, we will be able to see the PWM signal through the oscilloscope.

 
 

HARDWARE REQUIRED

SOFTWARE REQUIRED

PROCEDURE

STEP 1

Attach the wheel with the motor and place the MDDS10 board on the base of the robot.

STEP 2

Connect the wire motor wire and the power supply wire to MDDS10 board.

  • Right motor wires connect to MRA and MRB terminals of MDDS10.
  • Left motor wires connect to MLA and MLB terminals of MDDS10.
  • Positive power supply connect to B+ of MDDS10.
  • Negative power supply connect to B- of MDDS10. 

Note: Please make sure to connect positive power supply wire and negative power supply wire correctly to MDDS10 board.

STEP 3

Check the movement of the right motor and left motor by pressing one of the buttons at ‘G’ and ‘J’ on MDDS10 board.

  1. Connect the battery to the MDDS10.
  2. Press button MLB and MRB,  the motor should rotates forward.
  3. Press button MLA and MRA  the motor should rotates backward.

Tips: If the motor move in opposite direction, just change the polarity of the wire motor on MDDS10. 

Note: Make sure the battery is connect with correct polarity.

STEP 4

Change the DIP mode on MDDS10 board.

1 2 3 4 5 6 7 8
1 0 1 1 0 1 0 0

STEP 5

  1. Upload the sketch of PWM to CT-UNO.
  2. Place the CT-UNO with the robot.
  3. Connect the CT-UNO with MDDS10 with female to female jumper wire accordingly.

schematic_MCU

CT-UNO pin MDDS10 input pin
7 DIG1
4 DIG2
5 AN1
6 AN2
5V +5V
GND GND

Note:

  • Please make sure 5V and GND is connected correctly.
  • You can refer to the User’s Manual for more details.

STEP 6

  • Connect the oscilloscope’s probe to the PWM pin on CT-UNO( pin ~6 or ~5).
  • Use male to male jumper to clip from the oscilloscope crocodile clip and connect the jumper to the GND at CT-UNO.

STEP 7

  1. Connect the power supply to the MDDS10 board.
  2. No power supply is needed for CT-UNO as it is powered by MDDS10’s 5V output. 
  3. Turn on the oscilloscope.
  4. Observe the waveform output on the oscilloscope screen.

Note:

  • Please make sure the positive and negative terminals of battery are connected correctly to the MDDS10.

If you have further inquiry about this tutorial, please post it in our technical forum as we seldom check the comment section in tutorial site.

PROGRAMMING

VIDEO

 

ATTACHMENT

Sample source code

REFERENCE

MDDS10 user manual.

BUY


Leave a Comment

Your email address will not be published.

Share this Tutorial

Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest
Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest

Latest Tutorail

Basic Usage of iMAX B6AC LiPo Charger
Colourful Bed Lamp Using Tilt Sensor on Maker UNO
Dot Matrix Clock With NTP Server Using ESP32
Safe Box Using I2C LCD and 4×4 Keypad On Arduino.
Send Sensor’s Data to ThingSpeak Using Raspberry Pi
Scroll to Top