▍1. BMP180
基于STM32F10X的气压传感器(bmp180)程序,串口输出,内含bmp180手册。(Based STM32F10X pressure sensor (bmp180) program, serial output, containing bmp180 manual.)
基于STM32F10X的气压传感器(bmp180)程序,串口输出,内含bmp180手册。(Based STM32F10X pressure sensor (bmp180) program, serial output, containing bmp180 manual.)
说明: CANFD 独立控制器开发代码,使用MCP2517模块(CANFD controller code for MCP2517)
STM32F103串口函数,接收,发送,经过测试,完全可用(Serial port function)
说明: STM32F103串口函数,接收,发送,经过测试,完全可用(Serial port function)
说明: PS2无线手柄资料,带例程 ps2 手柄兼容索尼的 PlayStation2 游戏机的遥控手柄。索尼的 psx 系列游戏主机在全球很是畅销。不知什么时候便有人打起 ps2 手柄的主意,破解了通讯协议,使得手柄可以接在其他器件上遥控使用,比如遥控我们熟悉的机器人。突出的特点是这款手柄性价比极高,按键丰富,方便扩展到其它应用中。(PS2 wireless handle data with routine The PS2 handle is compatible with the remote control handle of Sony's PlayStation 2. Sony's psx series game console is very popular all over the world. I don't know when someone came up with the idea of PS2 handle, cracked the communication protocol, so that the handle can be connected to other devices for remote control, such as remote control of familiar robots. The outstanding feature is that this handle has high cost performance and rich buttons, which is easy to extend to other applications.)
STM32作为主控芯片,72Mhz,利用DMA+PWM实现驱动WS2812,创建16个并行800kBit / s数据流的想法如下: 使用定时器每1.25us创建一个800kHz的时基和一个DMA请求。 使用2个比较模块在低位时间(350ns)和高位时间(700ns)下创建DMA请求 1.25us DMA请求将GPIO端口的所有位设置为高电平 350ns DMA请求将数据从帧缓冲区传输到GPIO端口。如果该位为0,GPIO引脚将变为低电平,否则将保持高电平。 700ns DMA请求将所有GPIO引脚设置为低电平。 重复步骤1到3,直到发送所有位。 这产生脉冲周期为1.25us,脉冲宽度为350ns或700ns的脉冲流,具体取决于脉冲表示的位值,通过DMA将数据传输到GPIO端口意味着每16个LED每位需要一个字(两个字节)。每个LED 24位,每16个LED 24个字(48个字节)。(The idea to create 16 parallel 800kBit/s data streams is the following: Use a Timer to create an 800kHz time base and a DMA request every 1.25us. Use 2 compare modules to create DMA requests at the low bit time (350ns) and the high bit time (700ns) The 1.25us DMA request sets all bits of the GPIO port high The 350ns DMA request transfers the data from the frame buffer to the GPIO port. If the bit is a 0, the GPIO pin will go low, otherwise it will stay high. The 700ns DMA request sets all GPIO pins low. Repeat steps 1 to 3 until all bits have been transmitted. This creates a stream of pulses with a pulse period of 1.25us and a pulse width of either 350ns or 700ns depending on the bit value the pulse represents. Transferring the data via DMA to the GPIO port means that per 16 LEDs one half word (two bytes) is needed per bit. At 24 bits per LED that makes 24 half words (48 bytes) per 16 LEDs.)
用程控放大器MCP6S26对信号进行增益放大,并用显示屏显示出来。(With a programmable gain amplifier MCP6S26 the signal amplification, and displayed by the display.)
罗姆锂电保护模拟前端的ML5238的MCU代码例程(Rom battery protection ML5238 analog front end MCU code routines)
本程序是基于stm32自定义串口通信协议(This program is based on STM32 custom serial communication protocol)
说明: 004---基于stm32电压表设计(数码管显示)(Based on STM32 voltmeter design (digital tube display)
本例程使用GPIO模拟I2C时序访问三轴陀螺仪芯片MPU-6050。通过串口实时打印MPU-60505的采样数据,每秒刷新一次显示。(The routine use of analog I2C GPIO Timing visit triaxial gyroscope chip MPU-6050. Real-time printing through the serial port MPU-60505 sample data, display refresh every second.)
用VC进行单片机的串口通讯,并进行数据采集,进行处理以后在PC端显示(VC MCU for serial communication, and data collection, processing beyond the PC to display)
说明: 利用DHT11采集温湿度,利用中断,每2秒采集一次,并利用串口传输至上位机系统(use DHT11 to get temperature and humidity)
使用stm32f103c8t6 输出pwm,可实现正弦波,三角波,锯齿波。(use stm32f103c8t6 to make pwm.)
说明: bayer图像测试,位图转换,yuv,rgb(Bayer image test, bitmap conversion, yuv, RGB)
51单片机的8155扩展的proteus仿真,完成数码管显示,LED灯控制,键盘控制等多种功能,仅供参考(51 MCU 8155 extended proteus simulation, the completion of digital tube display, LED light control, keyboard control and other functions, for reference purposes only)