标题:
stm32 红外 WIFI 时空表
[打印本页]
作者:
wxs732
时间:
2020-6-28 23:34
标题:
stm32 红外 WIFI 时空表
这个小项目也好几年了
咱家里胡同中照明的灯每到晚上7点8点不就是亮了吗
这个项目就是 控制灯准时亮灯的
后面还有个项目是
这个模块 + 网络 + 上位机 一个小项目
比这个要难很多了
现在咱们绝对部分城市使用的是 路灯集中控制
其中就用到了 SIM卡通讯
到机房---来实现集中控制
但是能不能通过 LORA 模块来组网无线控制那
这个是可以的
一起努力 改变自己 成全别人
单片机源程序如下:
#include "stm32f10x.h"
#include "bsp_usart1.h"
#include "bsp_usart2.h"
#include "wifi_config.h"
#include "wifi_function.h"
#include "bsp_SysTick.h"
#include <string.h>
#include "io.h"
#include "rtc.h"
#include "sun.h"
#include "ds1302.h" //暂时没有用到1302
#include "remote.h" //红外接收
#include "stmflash.h" //flash
//void ( * pNet_Test ) ( void );
int main(void)
{
//配置系统时钟
SystemInit();
//配置嘀嗒时钟1us 中断一次
SysTick_Init();
//初始化WiFi模块使用的接口和外设
WiFi_Config();
//rtc时钟初始化
RTC_checkconfig();
//经纬度初始化
Sunrcr_Init();
//IO 口开关初始化
Io_Gpio_Config();
//红外接收初始化
Remote_And_Tim4_Init();
while(1)
{
ESP8266_AP_TCP_Server();
}
}
/********END OF FILE*****/
复制代码
所有资料51hei提供下载:
WiFi模块_USART手机通讯.7z
(440.41 KB, 下载次数: 14)
2020-6-28 23:40 上传
点击文件名下载附件
STM32wifi 红外
下载积分: 黑币 -5
欢迎光临 (http://www.51hei.com/bbs/)
Powered by Discuz! X3.1