资源列表
PWM控制两个直流电机
- msp430f149/单片机通过按键控制PWM来控制控制直流电机,并且通过12864液晶屏显示数据(This system used PWM signal to control the DC motors, realizing automation of gear selecting and shiftin)
6_帆板控制
- 帆板控制PID,对于工业控制来说非常有用(Windsurfing control PID)
stm32f10x
- 这是一个关于STM32F103的头文件,主要包含STM32F103的地址映射(The header filed is about stm32f103)
ad7705程序stm -两通道
- AD7705的stm32的驱动程序,非常好用(AD7705's STM32 driver)
motor2
- 控制一台直流电机正反转,控制单片机的两个I/O口来选择电机的正反转(51 single-chip control a DC motor positive and negative, single-chip two I / O port to select the motor positive and negative)
relay
- 串口通讯232,接受上位机发出的指令来控制一个继电器的开关状态(Serial communication 232, to accept the instructions issued by the host computer to control a relay switch state)
timer+ADC+DMA
- 基于STM32F407的程序,实现了通过DMA方式进行ADC采样,并通过定时器定是触发。程序中使用了ADC3-channel0,1,2;通过定时器2触发。程序已在STM32F407开发板上验证。(Based on the STM32F407 program, to achieve the ADC sampling through the DMA, and through the timer is triggered. ADC3-channel0,1,2 is used in the progra
程序
- void main(void) { TMOD=0x01; //设T0为方式1,GATE=1; TH0=0; TL0=0; ET0=1; //允许T0中断 EA=1; //开启总中断 InitLcd1602(); LcdShowStr(0,0,PuZh); while(1) { StartModule(); while(!Echo); //当RX为零时等待
PID
- PID算法,可以参考里面的 一些代码 修改相应的 宏定义(PID algorithm, you can refer to some of the code, modify the corresponding macro definition)
MPU6050
- 通过51单片机读取MPU6050的加速度和角速度数据并在LCD1602上面显示出来。(Through the 51 microcontroller to read MPU6050 acceleration and angular speed data, and displayed on the LCD1602 above.)
STC12AD内部转换
- 通过STC12C5A60S2单片机内部AD读取外部电压值,共有8路,本程序用了一路。(STC12C5A60S2 microcontroller through the internal AD read the external voltage value, a total of 8 Road, the program used all the way.)
ADS1118(1)
- MSP430驱动高精度的低功耗 16 位模数转换器 adc1118采样(MSP430 drives high precision low power 16 bit analog-to-digital converters for adc1118 sampling)