Keywish Hummer-Bot-2.0 Instruction Manual page 44

Table of Contents

Advertisement

analog signal. The PWM signal is still digital, because at any given time, the full amplitude of DC power
supply is either 5V (ON) or 0V (OFF). The voltage or current source is added to the analog load with a ON
or OFF repetitive pulse sequence. When the DC power supply is added to the load, the power supply is on,
otherwise the power supply is off. As long as the bandwidth is enough, any analog value can use PWM to
encode. The output voltage value is calculated by the on and off time. Output voltage = (turn-on time / pulse
time) * maximum voltage. Fig.2.4.6 shows the corresponding voltage to the pulse change.
In the "Hummer-Bot" car experiment, we use Arduino UNO R3 as the main control board. By referring
to the chip data, we will know that Arduino UNO has 6 PWM pins, namely digital interfaces 3, 5, 6, 9, 10,
11, and we select 5, 6, 9, 10 as the motor control IO, the connection is shown in Fig.2.4.7.
The following table shows the correspondence between L298N and Uno board:
Figure .2.4.7 Arduino and L298N driver board connection diagram and connection table
The L298N and Arduino expansion board wiring is as follows:
Figure .2.4.6 Relation between Pulse and Voltage
L298N
IN1
IN2
IN3
IN4
41
Arduino Uno
D6
D10
D5
D9

Advertisement

Table of Contents
loading

Related Products for Keywish Hummer-Bot-2.0

Table of Contents