# Toy
## Description
This project involves the design and implementation of a motor control circuit using an L298N motor driver IC and a Seeed Studio XIAO ESP32S3-Sense microcontroller. The motor driver operates a single DC motor ($M1$) with control signals provided by the microcontroller. Additionally, the project includes a WS2812B-B addressable RGB LED, enabling visual feedback or status indication.
Primary goals:
- Control the speed and direction of the DC motor using the ESP32S3 microcontroller.
- Provide status indication via the RGB LED.
## Project Details
- **Owner:** ideo-workshop
- **Created:** 8/15/2024
- **Last Updated:** 8/15/2024
- **Visibility:** Public
- **Copies:** 4
## Key Components
### LED1 — [WS2812B-B](https://www.flux.ai/vasyl/ws2812b-b~vet.md)
- Part Type: LED
- Datasheet URL: https://datasheet.lcsc.com/lcsc/2006151006_Worldsemi-WS2812B-B_C114586.pdf
- Manufacturer Name: Worldsemi
- Manufacturer Part Number: WS2812B-B
**Pins:**
- DIN [pin 4]
- DOUT [pin 2]
- VDD [pin 1]
- VSS [pin 3]
### M1 — [DC Motor](https://www.flux.ai/vasyl/dc-motor~ku.md)
**Pins:**
- -
- +
### U1 — [Seeed Studio XIAO ESP32S3 Sense](https://www.flux.ai/seeedstudio/seeed-studio-xiao-esp32s3-sense~as.md)
- Purchase Url: https://www.seeedstudio.com/XIAO-ESP32S3-Sense-p-5639.html
- Product Info Url: https://wiki.seeedstudio.com/xiao_esp32s3_getting_started/
- Manufacturer Name: Seeed Studio
- Datasheet URL: https://files.seeedstudio.com/wiki/SeeedStudio-XIAO-ESP32S3/res/esp32-s3_datasheet.pdf
- Part Type: Microcontroller
- Manufacturer Part Number: 113991115
**Pins:**
- 3V3 [pin 14]
- 5V [pin 16]
- D10_A10_MOSI_GPIO9_TOUCH9 [pin 13]
- D7_RX_GPIO44 [pin 10]
- D8_A8_SCK_GPIO7_TOUCH7 [pin 11]
- D9_A9_MISO_GPIO8_TOUCH8 [pin 12]
- GND [pin 15]
- GPIO43_TX_D6 [pin 7]
- TOUCH1_GPIO1_A0_D0 [pin 1]
- TOUCH2_GPIO2_A1_D1
- TOUCH3_GPIO3_A2_D2 [pin 3]
- TOUCH4_GPIO4_A3_D3 [pin 4]
- TOUCH5_GPIO5_SDA_A4_D4 [pin 5]
- TOUCH6_GPIO6_SCL_A5_D5 [pin 6]
### U4 — [L298N](https://www.flux.ai/vasy_skral/l298n~uhf.md)
- License: https://creativecommons.org/licenses/by/4.0/
- Manufacturer Part Number: L298N
- Datasheet URL: https://www.st.com/content/ccc/resource/technical/document/datasheet/82/cc/3f/39/0a/29/4d/f0/CD00000240.pdf/files/CD00000240.pdf/jcr:content/translations/en.CD00000240.pdf
- Manufacturer Name: STMicroelectronics
- Part Type: Integrated Circuit
**Pins:**
- ENA [pin 6]
- ENB [pin 11]
- GND [pin 8]
- IN1 [pin 5]
- IN2 [pin 7]
- IN3 [pin 10]
- IN4 [pin 12]
- OUT1 [pin 2]
- OUT2 [pin 3]
- OUT3 [pin 13]
- OUT4 [pin 14]
- SENSE_A [pin 1]
- SENSE_B [pin 15]
- VS [pin 4]
- VSS [pin 9]
*The full schematic, PCB layout, bill of materials, and interactive design are available at [https://www.flux.ai/ideo-workshop/toy~03](https://www.flux.ai/ideo-workshop/toy~03).*
---
*Generated from [https://www.flux.ai/ideo-workshop/toy~03](https://www.flux.ai/ideo-workshop/toy~03)*