▍1. EPWM
利用正玄查表,在28335上实现PWM调制,生成正弦波(The use of positive look-up table, in 28335 to achieve PWM modulation, generate sine wave)
说明: 基于stm32f103的lora驱动,芯片为sx1276,已验证可以使用(it is use sx1276 to make the f103 to work)
展现了三维多智能体仿真再现,实现了多智能体协同一致性。(The simulation representation of 3d multi-agent is presented and the multi-agent couniformity is realized.)
1、单向通信 向甲方连续不断地发送变量a的值,未按键,a=0x0f,按键后根据按键确定a值;并将a的值取反从P0口输出,控制D0、D1、D2、D3相应点亮。乙方接收到数据并偶校验正确后,将接收数据取反从P0口输出,控制D0、D1、D2、D3相应点亮。 2、双向通信 甲方连续不断地发送变量a的值,未按键,a=0x0f,按键后根据按键确定a值;乙方未按键不发送,按键后将乙方按键得到的a*16发送;甲乙双方都将发送数据与接收数据相或后再取反,从P0口输出控制D0—D7相应点亮。 3、间隔发送 未按键,甲方不发送数据,按键后甲方每隔50ms连续发送4个字节:0xff、a、a、a。 乙方只在收到甲方数据0xff后的3个数据并验证相同时,才将接收数据*16发送。 甲乙双方都将发送数据与接收数据相或后,从P0口输出控制D0—D7相应点亮。(1. One-way communication The value of variable a is continuously sent to Party A without key, a = 0x0f. After the key is pressed, the value of a is determined according to the key; and the value of a is output from P0 port to control the corresponding lighting of D0, D1, D2 and D3. After receiving the data and checking it correctly, Party B will output the received data from P0 port and control D0, D1, D2 and D3 to light up accordingly. 2. Two-way communication Party A continuously sends the value of variable a without key, a = 0x0f, and determines a value according to the key after the key; Party B does not send the key without key, and sends the a*16 obtained by the key after the key is pressed; Both parties will send the data to or from the receiving data, and then retrieve the data and control D0-D7 from the P0 port to light up accordingly. 3. Interval Sending Without keys, Party A does not send data. After keys, Party A sends 4 bytes continuously every 50 ms: 0xff, a, a.)
240128E驱动,基于STC15的240128显示屏驱动 亲测可用(240128E driver, STC15 based 240128 display drive pro test available)
说明: 1、单向通信 向甲方连续不断地发送变量a的值,未按键,a=0x0f,按键后根据按键确定a值;并将a的值取反从P0口输出,控制D0、D1、D2、D3相应点亮。乙方接收到数据并偶校验正确后,将接收数据取反从P0口输出,控制D0、D1、D2、D3相应点亮。 2、双向通信 甲方连续不断地发送变量a的值,未按键,a=0x0f,按键后根据按键确定a值;乙方未按键不发送,按键后将乙方按键得到的a*16发送;甲乙双方都将发送数据与接收数据相或后再取反,从P0口输出控制D0—D7相应点亮。 3、间隔发送 未按键,甲方不发送数据,按键后甲方每隔50ms连续发送4个字节:0xff、a、a、a。 乙方只在收到甲方数据0xff后的3个数据并验证相同时,才将接收数据*16发送。 甲乙双方都将发送数据与接收数据相或后,从P0口输出控制D0—D7相应点亮。(1. One-way communication The value of variable a is continuously sent to Party A without key, a = 0x0f. After the key is pressed, the value of a is determined according to the key; and the value of a is output from P0 port to control the corresponding lighting of D0, D1, D2 and D3. After receiving the data and checking it correctly, Party B will output the received data from P0 port and control D0, D1, D2 and D3 to light up accordingly. 2. Two-way communication Party A continuously sends the value of variable a without key, a = 0x0f, and determines a value according to the key after the key; Party B does not send the key without key, and sends the a*16 obtained by the key after the key is pressed; Both parties will send the data to or from the receiving data, and then retrieve the data and control D0-D7 from the P0 port to light up accordingly. 3. Interval Sending Without keys, Party A does not send data. After keys, Party A sends 4 bytes continuously every 50 ms: 0xff, a, a.)
说明: Arduino core for ESP8266 WiFi chip 2020 November 15
二维码(data matrix)检测定位算法,(data matrix detection and positioning)
说明: 二维码(data matrix)检测定位算法,(data matrix detection and positioning)
说明: STC15系列开发板的原理图及相关测试程序。(Schematic diagram and related test program of stc15 series development board.)
说明: EDEM中颗粒工厂API例子,可以自己套用(The particle factory API example in edem can be applied by itself)
EDEM中bond模型颗粒快速填充替换文件(Quick fill and replace file for EDEM particles)
问道etc修改,有需要的可以下载看看,谢谢(Ask etc to modify, if necessary, you can download it. Thank you.)
说明: 处理器系统,包括创建进程(QQ)、枚举进程、自定义消息发送、共享内存、线程同步等功能,有MFC界面(Processor system, including create process (QQ), enumeration process, custom message sending, shared memory, thread synchronization and other functions, with MFC interface)
说明: STC89S52单片机设计一款智能充电器的控制系统,通过对电压传感器和电流传感器的检测,当检测充电电压和电流大设置值时,自动断开充电电路。本设计由软件和硬件两部分组成,硬件设计对单片机最小系统、电压电流采集电路、充电控制电路、按键电路、液晶显示电路、报警电路等进行设计,使控制器具备电压、电流检测,系统参数显示,自动断电控制等功能;软件设计方面对控制器的软件驱动程序进行设计。并利用Protues软件进行可行性仿真,对软件和硬件设计进行验证(425/5000 STC89S52 mcu design a smart charger control system, through the voltage sensor and current sensor detection, when the detection charging voltage and current settings, automatically open the charging circuit. This design is composed of two parts: software and hardware. The hardware design designs the minimum system, voltage and current collection circuit, charging control circuit, key-press circuit, liquid crystal display circuit, alarm circuit, etc. , the controller has the functions of voltage and current detection, system parameter display, automatic power-off control and so on. The feasibility simulation is carried out by using Protues software to verify the design of software and hardware)
实现STM8L152串口3数据的收发,亲测可以正常使用(STM8L152 serial port to achieve 3 data transceiver, pro test can be used normally.)
输入椭圆中心和长短轴径; 2. 计算得到中心在原点的椭圆上的第一个点=; 3. 根据公式(1.1.3-2)计算区域1中决策参数的初值为; 4. 在区域1中每个位置处,从开始,反复按照公式(1.1.3-3)更新决策参数,若决策参数小于0则不变,反之加1,一直循环到为止,记第一个满足此条件的点为(); 5. 在区域2的每个位置处,从开始,反复按照公式(1.1.3-6)更新决策参数,若决策参数小于0则不变,反之加1,一直循环到()为止;(Input ellipse center and long and short axis diameter; 2. The first point of the center on the ellipse at the origin is calculated. 3. According to formula (1.1.3-2), the initial value of decision-making parameters in region 1 is calculated. 4. At each location in region 1, the decision-making parameters are updated repeatedly according to formula (1.1.3-3). If the decision-making parameters are less than 0, they will remain unchanged. If the decision-making parameters are less than 0, then add 1 and cycle until the first point satisfying this condition is (); 5. At each location of region 2, the decision parameters are updated repeatedly according to the formula (1.1.3-6). If the decision parameters are less than 0, they will remain unchanged. If the decision parameters are less than 0, then add 1 and cycle until ().)
说明: 输入椭圆中心和长短轴径; 2. 计算得到中心在原点的椭圆上的第一个点=; 3. 根据公式(1.1.3-2)计算区域1中决策参数的初值为; 4. 在区域1中每个位置处,从开始,反复按照公式(1.1.3-3)更新决策参数,若决策参数小于0则不变,反之加1,一直循环到为止,记第一个满足此条件的点为(); 5. 在区域2的每个位置处,从开始,反复按照公式(1.1.3-6)更新决策参数,若决策参数小于0则不变,反之加1,一直循环到()为止;(Input ellipse center and long and short axis diameter; 2. The first point of the center on the ellipse at the origin is calculated. 3. According to formula (1.1.3-2), the initial value of decision-making parameters in region 1 is calculated. 4. At each location in region 1, the decision-making parameters are updated repeatedly according to formula (1.1.3-3). If the decision-making parameters are less than 0, they will remain unchanged. If the decision-making parameters are less than 0, then add 1 and cycle until the first point satisfying this condition is (); 5. At each location of region 2, the decision parameters are updated repeatedly according to the formula (1.1.3-6). If the decision parameters are less than 0, they will remain unchanged. If the decision parameters are less than 0, then add 1 and cycle until ().)