Arduino and Wireless Module CC1101

Source: Internet
Author: User

Summarize the experience of wireless module debugging. There are already people on the Arduino who have made the library of this module, but according to the manual written also has a certain reference significance.

Wireless module is one of the modules that I think is more difficult to debug, because it is a module of mutual interaction, communication failure has two reasons, can not be found from a single code. The code is written, and all sorts of information is written, but it is not received or the data is not received. The first thing to think about is checking the wiring of the device. Because it is SPI communication, it is using the SPI Channel port that comes with mega2560, see the previous article introduction.

In addition CC1101 has a GDO0 i connected to the board of the 48 pin,

Confirm the connection.

The second is to test whether the SPI is working correctly, the 0x31 address in the status register is 0x14, if you read the result for 0x14 then basically the SPI is working statically, the view chip manual says that the reset value of this version status register is 0x04, possibly a clerical error for the manual. Since we have read 3 modules, we have used different codes for this value.

In addition, we often use in the testing of the project is written addr register to test whether read and write is normal, addr register address is 0x09, first write read out, if consistent, then your communication with the chip is basically no problem.



After testing these, if you still cannot two wireless communication, then confirm the channel is consistent.

The manual does not recommend the IO current to exceed 10ma, but tested I read directly with the IO port, the current is 50mA also normal operation.

SOURCE Project Address

Arduino and Wireless Module CC1101

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.