Arduino library for TEXAS INSTRUMENTS CC2500.
I made it with reference to this.
-
Changed legacy SPI communication to SPI communication with transactions.
-
Added CS pin parameters to the constructor.
-
Added getChipPart function.
-
Added getChipVersion function.
-
Added resetDevice function.
-
Changed some initial parameters.
-
Changed example code.
CC2500 | UNO | MEGA | ESP8266 | |
---|---|---|---|---|
GND | -- | GND | GND | GND |
CSN | -- | D10(*2) | D10(*2) | IO15 |
MISO | -- | D12 | D50 | IO12 |
SCLK | -- | D13(*2) | D52(*2) | IO14 |
MOSI | -- | D11(*2) | D51(*2) | IO13 |
VCC | -- | 3.3V(*1) | 3.3V | 3.3V |
(*1)
UNO's 3.3V output can only supply 50mA.
In addition, the output current capacity of UNO-compatible devices is smaller than that of official products.
So this module may not work normally when supplied from the on-board 3v3.
(*2)
CC2500 is not 5V tolerant.
You need level shift from 5V to 3.3V.
I used this for a level shift.
Basically, communication between applications with different register values is not guaranteed.
These settings may differ.
- Base frequency and channel spacing frequency
- Packet format configuration
- Manchester encoding configuration
- Wireless modulation method
- The data rate used when transmitting
- The data rate expected in receive