完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
|
|
相关推荐
10个回答
|
|
|
说明你都没有检测到NRF24L01
|
|
|
|
|
|
原子哥#include "led.h" #include "delay.h" #include "key.h" #include "sys.h" #include "lcd.h" #include "usart.h" #include "24l01.h" #include "spi.h" //ALIENTEK????STM32??·?°????é32 //?????¨?? ???é //?????§????www.openedv.com //?????????í??×????????????? int main(void) { u8 tmp_buf[33]; delay_init(); //???±?????????? NVIC_Configuration(); //?è??NVIC????·?×é2:2??????????????2???ì???????? uart_init(9600); //????????????9600 LED_Init(); //LED?????????? SPI2_Init(); NRF24L01_Init(); //??????NRF24L01 while(NRF24L01_Check()) //?ì?éNRF24L01??·?????. { printf("NRF24L01 Error"); delay_ms(50000); } printf("NRF24L01 OK"); delay_ms(2000); NRF24L01_TX_Mode(); while(1) { if(NRF24L01_TxPacket(tmp_buf)==TX_OK) { printf("NRF24L01 OK"); delay_ms(2000); tmp_buf[0]=0x30+0;//?????á??·? } else { printf("NRF24L01 error"); delay_ms(2000); } } } 我用这个程序就能检测到能发送但是我把显示屏程序和摄像头程序加上去就不行 |
|
|
|
|
|
发送程序:最上面那个发送程序我发错了
#include "led.h" #include "delay.h" #include "key.h" #include "sys.h" #include "usart.h" #include "24l01.h" #include "spi.h" #include "string.h" #include "ov7670.h" #include "tpad.h" #include "timer.h" #include "exti.h" #include "usmart.h" #include "stm32f10x_exti.h" extern u8 ov_sta; //??exit.c?????¨?? extern u8 ov_frame; //??timer.c?????¨?? //ALIENTEK????STM32??·?°????é32 //?????¨?? ???é //?????§????www.openedv.com //?????????í??×????????????? int main(void) { u8 lightmode=0,saturation=2,brightness=2,contrast=2; u8 effect=0; u8 t; u32 j; u8 color; u8 tmp_buf[33]; delay_init(); //???±?????????? NVIC_Configuration(); //?è??NVIC????·?×é2:2??????????????2???ì???????? uart_init(9600); //????????????9600 LED_Init(); //LED?????????? SPI2_Init(); NRF24L01_Init(); //??????NRF24L01 while(NRF24L01_Check()) //?ì?éNRF24L01??·?????. { printf("NRF24L01 Error"); delay_ms(50000); } printf("NRF24L01 OK"); delay_ms(2000); //?????·?????? while(OV7670_Init()); OV7670_Light_Mode(lightmode); OV7670_Color_Saturation(saturation); OV7670_Brightness(brightness); OV7670_Contrast(contrast); OV7670_Special_Effects(effect); // TIM6_Int_Init(10000,7199); //10Khz????????,1???????? EXTI8_Init(); //?????¨?±?÷???? OV7670_Window_Set(10,174,240,320); //?è???°?? OV7670_CS=0; NRF24L01_TX_Mode(); tmp_buf[0]=0xf0; while(!(NRF24L01_TxPacket(tmp_buf)==TX_OK))delay_us(10); ov_sta=0; while(NRF24L01_RxPacket(tmp_buf)!=0)delay_us(10); NRF24L01_RX_Mode(); while(1) { if(ov_sta==2) { OV7670_RRST=0; //?????????????? OV7670_RCK=0; OV7670_RCK=1; OV7670_RCK=0; OV7670_RRST=1; //???????????á?? OV7670_RCK=1; for(j=0;j<76800;j++) { OV7670_RCK=0; color=GPIOC->IDR&0XFF; //?????? OV7670_RCK=1; tmp_buf[t]=color; t++; OV7670_RCK=0; color=GPIOC->IDR&0XFF; //?????? OV7670_RCK=1; tmp_buf[t]=color; t++; if(t>=32) { t=0; while(!(NRF24L01_TxPacket(tmp_buf)==TX_OK))delay_us(10); } } EXTI_ClearITPendingBit(EXTI_Line8); //????LINE8????????±ê???? ov_sta=0; //?????????????? } } } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
做出来了原子哥.每贞图片都要2秒左右
|
|
|
|
|
|
|
|
|
|
|
|
程序分享下! 感谢!
|
|
|
|
|
|
同求分享程序,最近也在做这块,但是采集到数据一直传不到LCD上去,求分享学习谢谢!
|
|
|
|
|
只有小组成员才能发言,加入小组>>
926 浏览 0 评论
如何使用STM32+nrf24l01架构把有线USB设备无线化?
3087 浏览 7 评论
请问能利用51单片机和nRF24L01模块实现实时语音无线传输吗?
2987 浏览 5 评论
3846 浏览 3 评论
3311 浏览 8 评论
请教各位大咖:有没有接收频率32M左右的芯片推荐的?先感谢啦!
1266浏览 1评论
1212浏览 0评论
882浏览 0评论
973浏览 0评论
926浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 03:23 , Processed in 0.784881 second(s), Total 90, Slave 73 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2657