ohahaha

[Cost 5 yuan] DotMatrix 24x16

 
Overview

Inspiration and some schematics come from: https://oshwhub.com/WOSHI6666444444/led-dian-zhen-24x32-ji-lian-ping

 

The 8x8 dot matrix comes from Laowu. Ten of them cost 1.9 yuan, and the total cost can be controlled at about 5 yuan.

 

At present, the firmware has been written and controlled by sending instructions through UART. The Python driver module has almost been written, and you can directly use Python to write the host computer.

You can also play videos (hi

https://www.bilibili.com/video/BV1FT411w76A?vd_source=fd71e511abd409703309df546d85c9af

 

UART configuration: baud rate 115200, no parity, 1 stop bit

Each UART command consists of a packet header and a packet body. The following is the command list:

 

1. Send data frame

Header (length: 3): 0x44, 0x0D, 0x0A

Package body (length: 48): 48 bytes of data, scanned line by line starting from the upper left and going to the right

 

2.Adjust brightness

Header (length: 6): 0x4C,0x55,0x4D,0x49,0x0D,0x0A

Package body (length: 2): The first byte is the brightness, the second byte is the maximum brightness

Note: The brightness value is between 0 and maximum brightness. If the brightness is less than the maximum brightness, the refresh rate will become the value divided by the maximum brightness. Make sure the value is greater than 50, otherwise there may be flickering.

By default, both brightness and maximum brightness are set to 0x01.

 

3. Set refresh rate

Header (length: 5): 0x46,0x50,0x53,0x0D,0x0A

Package body (length: 2): The first byte is 8 bits higher than the refresh rate, and the second byte is 8 bits lower than the refresh rate. If the refresh rate is set to 1000, the package body is 0x03, 0xE8

Note: The default refresh rate is 1000, and the maximum value should not exceed 1250. If it is too low, lower brightness cannot be achieved.

 

4. Run the built-in test program

Serial port sends string TEST  

 

5. Restart

Serial port sends REBOOT  

 

6. Get firmware information

Serial port sends ABOUT

 

For how to use the Python driver library, please refer to the source code and Demo.

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-23 08:44:49

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号