Week13 - Speaker and Motor

Replace the microcontroller of the Toy(Motor and Speaker)

Motor driver L9110 and A4953
D1274DBF497575EEB34A8C4C324D1575

A4953

At first,I reference to Nerl’s H-bridge board

Design the Schematic

Layout the PCB

Output the traces

traces

Output the interior

interior

After I milled and soldered the board,I found I use the wrong ic,the right ic is A4953,not the 4953.So I try another motor driver ic I have.

L9110

Functional Block Diagram

Pin-out Diagrams

Control Mode

Design the schematic

I add two motor drivers and speaker driver

Layout the PCB board

Output the traces

L9110_audio_Module_traces

Output the interior

L9110_audio_Module_interio

Moter test:

1
void setup() {
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
  pinMode(9, OUTPUT);
  pinMode(10, OUTPUT);
  digitalWrite(13, LOW);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(5, HIGH);
  digitalWrite(6, LOW);
  digitalWrite(9, LOW);
  digitalWrite(10, HIGH);
  delay(500);
  digitalWrite(9, HIGH);
  digitalWrite(10, LOW);
  digitalWrite(5, LOW);
  digitalWrite(6, HIGH);
  delay(500);
}

Yeap!Motor work!
D1274DBF497575EEB34A8C4C324D1575

Speaker Test

I use the Arduino Example -> 02.Digital -> toneMelody

File Download

eagle
Arduino Code


This work is licensed under a Creative Commons Attribution 4.0 International License.

文章目录
  1. 1. Replace the microcontroller of the Toy(Motor and Speaker)
    1. 1.1. A4953
      1. 1.1.1. Design the Schematic
      2. 1.1.2. Layout the PCB
      3. 1.1.3. Output the traces
      4. 1.1.4. Output the interior
    2. 1.2. L9110
      1. 1.2.1. Functional Block Diagram
      2. 1.2.2. Pin-out Diagrams
      3. 1.2.3. Control Mode
      4. 1.2.4. Design the schematic
      5. 1.2.5. Layout the PCB board
      6. 1.2.6. Output the traces
      7. 1.2.7. Output the interior
    3. 1.3. Moter test:
    4. 1.4. Speaker Test
    5. 1.5. File Download
,