简体   繁体   English

是否可以使用nrf24l01在arduino和android手机之间轻松交换信息?

[英]Is it possible to exchange information between arduino and android phones easily using nrf24l01?

I need to send information from arduino to an android phone, having some app actively listening for radio communication from arduino. 我需要将信息从arduino发送到Android手机,并让某些应用程序积极监听arduino的无线电通信。 Using nrf24l01 is that possible? 使用nrf24l01可以吗?

The best scenario would be direct communication, even without any type of handshake. 最好的情况是直接通信,即使没有任何类型的握手。 Arduino sends a number sequence that android expects to receive, and the app alerts me when it ears that sequence. Arduino发送了一个android希望接收的数字序列,当该应用程序听到该序列时,它会提醒我。

As far as I know, no Android phones have a nrf24l01 module nor SPI, so you will have to create an interface adapter. 据我所知,没有Android手机具有nrf24l01模块或SPI,因此您必须创建一个接口适配器。 So... You can decide what communication you want to use. 因此,您可以决定要使用哪种通信。

eg Android phone <-> USB/UART converter <-> microcontroller <-> nRF24L01 例如Android手机<-> USB / UART转换器<->微控制器<-> nRF24L01

and, since you are designing your own interface, you will be able to create the proper protocol. 并且,由于您正在设计自己的接口,因此您将能够创建适当的协议。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM