1. Introduction
The DIY KIT 51/52 MCU Development Board is an educational platform designed for enthusiasts and students to learn about 51/52 series microcontrollers, specifically the STC89C52. This kit provides a hands-on experience in assembling electronic components and conducting various microcontroller experiments. It features a range of peripherals including LEDs, 7-segment displays, keypads, relays, motor interfaces, and LCD interfaces, making it a versatile tool for embedded systems learning.

2. Product Overview
2.1 Kit Contents
The DIY KIT includes all necessary electronic components for assembly. Please verify all components against the Bill of Materials (BOM) before starting assembly.

2.2 Board Layout and Components
The development board integrates various modules to facilitate a wide range of experiments. Familiarize yourself with the layout and functions of each component:

- USB Download Port: For programming the MCU and serial communication.
- LCD1602 Interface: For connecting a 16x2 character LCD display.
- LCD12864 Interface: For connecting a 128x64 graphic LCD display.
- Backlight Adjustment Potentiometer: To control the brightness of connected LCDs.
- Four-digit 7-segment display: For numerical output.
- External 5V Power Supply: Input for external power.
- CH340G: USB to serial converter chip.
- Power Switch: To turn the board on/off.
- DC Motor Interface: For controlling a DC motor.
- Stepper Motor Interface: For controlling a stepper motor.
- Buzzer: For audio feedback.
- Reset Switch: To reset the microcontroller.
- Relay: For controlling external high-power devices.
- Crystal Oscillator: Provides the clock signal for the MCU (12MHz).
- Digital Temperature Sensor DS18B20 Interface: For connecting a DS18B20 temperature sensor.
- Infrared Receiver: For receiving IR signals.
- ISP Download Port: In-System Programming port.
- Independent Buttons: General-purpose input buttons.
- 4x4 Matrix Keypad: For user input.
- Running Lights (LED Array): A series of LEDs for visual effects and output.
- Infrared Emitter: For transmitting IR signals.
- MCU Socket: Where the STC89C52 microcontroller chip is inserted.
3. Assembly Instructions
This kit requires soldering. Ensure you have basic soldering skills and appropriate tools (soldering iron, solder, desoldering wick, multimeter, safety glasses). Follow the Bill of Materials (BOM) and the provided schematic diagrams carefully.
3.1 Component Identification
Refer to the Bill of Materials (BOM) to identify each component. It is recommended to sort and verify all parts before beginning assembly.

3.2 Soldering Process
- Start with smaller components: Begin by soldering resistors, diodes, and small capacitors. Pay attention to polarity for diodes and electrolytic capacitors.
- Install IC Sockets: Solder the sockets for the MCU (STC89C52) and other ICs (CH340G, ULN2003L). Ensure correct orientation.
- Add larger components: Proceed with buttons, pin headers, crystal oscillator, power switch, and connectors.
- Install LED Array and 7-segment display: Ensure correct orientation and alignment.
- Solder Motor Interfaces and Relay: These typically have larger pads.
- Final Check: Visually inspect all solder joints for bridges, cold joints, or missing components. Use a multimeter to check for short circuits, especially around power rails.
A detailed schematic diagram is provided to assist with component placement and wiring:

3.3 Inserting the MCU
Once all components are soldered and verified, carefully insert the STC89C52 microcontroller chip into its designated socket. Ensure the notch on the chip aligns with the notch on the socket to maintain correct orientation.
4. Operating Instructions
After successful assembly, you can power on the board and begin experimenting. The board supports various experiments to explore microcontroller functionalities.
4.1 Powering On
- Connect a 5V DC power supply to the external 5V power supply jack (CN2).
- Flip the power switch (KEY1) to the ON position.
- Observe the power indicator LED to confirm the board is receiving power.
4.2 Programming the MCU
The STC89C52 MCU can be programmed via the USB Download Port using the CH340G chip. You will need appropriate STC-ISP programming software and drivers for the CH340G. Connect the board to your computer via a USB cable.
4.3 Conducting Experiments
The development board is designed to support a variety of experiments. Below are examples of common experiments you can perform:
- Running Light Experiment: Program the MCU to control the sequence of the LED array.

Figure 6: Running Light and 7-segment display experiments - 7-segment Display Experiment: Display numbers or characters on the four-digit 7-segment display.
- Infrared Decoding and Emission Experiments: Use the IR receiver and emitter to decode signals from a remote control or transmit custom IR commands.

Figure 7: Infrared Decoding and Emission experiments - DC Motor Control Experiment: Control the speed and direction of a DC motor connected to the board.

Figure 8: DC Motor and Stepper Motor experiments - Stepper Motor Control Experiment: Control the rotation of a stepper motor.
- LCD Display Experiments (1602 & 12864): Interface with character (LCD1602) and graphic (LCD12864) LCDs to display text and graphics.

Figure 9: LCD1602 and LCD12864 experiments - Bluetooth Communication Experiment: Connect a Bluetooth module (not included in the basic kit, but interface provided) for wireless communication.

Figure 10: Bluetooth Communication experiment setup - Temperature Sensor Experiment: Interface with a DS18B20 digital temperature sensor.
- Keypad Input: Read input from the independent buttons and the 4x4 matrix keypad.
- Relay Control: Program the MCU to switch the relay on and off.
5. Specifications
| Feature | Detail |
|---|---|
| Microcontroller | STC89C52 (or compatible 51/52 series MCU) |
| Operating Voltage | 5V DC (via external power jack or USB) |
| Crystal Oscillator | 12 MHz |
| USB to Serial Chip | CH340G |
| Display Interfaces | LCD1602, LCD12864, 4-digit 7-segment display |
| Input Peripherals | Independent buttons, 4x4 matrix keypad, Infrared receiver |
| Output Peripherals | LED array (running lights), Buzzer, Relay, Infrared emitter |
| Motor Interfaces | DC motor, Stepper motor |
| Sensor Interface | DS18B20 Digital Temperature Sensor |
| Dimensions (PCB) | Approximately 110mm x 96.37mm |

6. Maintenance
The DIY KIT 51/52 MCU Development Board is designed for durability, but proper maintenance can extend its lifespan and ensure reliable operation.
- Cleaning: Keep the board clean and free from dust and debris. Use a soft brush or compressed air to remove dust. For stubborn grime, use isopropyl alcohol and a cotton swab, ensuring the board is powered off and dry before use.
- Storage: Store the board in a dry, anti-static environment when not in use. Avoid extreme temperatures and humidity.
- Handling: Handle the board by its edges to avoid touching components, especially the pins of the MCU, which can be sensitive to static discharge.
- Component Replacement: If a component fails, identify it using the BOM and schematic, desolder it carefully, and replace it with an identical or equivalent part.
7. Troubleshooting
If you encounter issues with your development board, consider the following troubleshooting steps:
- Board not powering on:
- Check the 5V DC power supply connection and ensure it is providing stable 5V.
- Verify the power switch is in the ON position.
- Inspect for any visible short circuits or incorrect soldering during assembly.
- MCU not programming:
- Ensure the CH340G drivers are correctly installed on your computer.
- Verify the USB cable connection.
- Check the orientation of the STC89C52 chip in its socket.
- Confirm the correct COM port is selected in the STC-ISP software.
- Ensure the power switch is ON during programming.
- Peripheral not working (e.g., LED, LCD):
- Check the wiring connections for the specific peripheral.
- Verify the code uploaded to the MCU is correct for controlling that peripheral.
- Inspect the peripheral component itself for damage or incorrect soldering.
- For LCDs, adjust the backlight potentiometer if the display is blank or too dim/bright.
- Unexpected behavior:
- Review your code for logical errors.
- Check for loose connections or intermittent shorts.
- Ensure all components are correctly oriented and soldered.
8. User Tips
- Start Simple: Begin with basic experiments like blinking an LED or displaying text on the 7-segment display to get familiar with the programming environment and board functionality.
- Refer to Schematics: Always consult the provided schematic diagrams when troubleshooting or designing new circuits to understand the connections and component values.
- Use a Multimeter: A multimeter is invaluable for checking continuity, voltage levels, and identifying short circuits during assembly and troubleshooting.
- ESD Precautions: Always take Electrostatic Discharge (ESD) precautions when handling electronic components, especially the microcontroller chip, to prevent damage.
9. Warranty and Support
This DIY kit is intended for educational and hobbyist use. Due to the nature of a DIY product requiring user assembly, specific warranties on individual components may vary. Please ensure careful assembly and handling. For technical support, refer to online communities and resources related to STC89C52 microcontrollers and general electronics. The provided schematic and BOM are key resources for self-support.