Documente Academic
Documente Profesional
Documente Cultură
Transreceiver
Wireless Module
2.4 GHz, 40 meters range, 255 configurable address,
255 channels & inbuilt ADC.
1 -
Features
2|Page
Idle
If Data received
On USART
Special command
Data received
received
through CC 2500
Send data through
CC to respective
address Configure Module
Data is checked
for valid address Read SID & CID &
sent to USART
Idle
3|Page
CC2500 Serial Transreceiver Wireless Module is designed to meet the
requirement for the low cost, low power wireless device to transmit and receive serial data.
The module operates on 2.4 GHz frequency band. The module can also be used as Wireless
Sensor Network (WSN) node.
Working: The module has simple Protocol for working. the Using CC transreceiver GUI, the
module can be configured data communication through hyperterminal. This modules
basically take TTL data & send it to receiver (receiver whose ID is send along with data).
Modules can also broadcast the data (broadcast id (0xff).A single module can communicate
with number of modules at run time. as receiver ID needs to send every time, So one can
send different receiver id every time to communicate with different modules. This feature
makes it best suited for swarm robotics.
As modules has capability of analog to digital conversion (ADC). So user has to just
configure the module once for ADC, & the module will send the data to the respective
receiver, at the given interval of time. This feature (of reading ADC value & sending to the
respective receiver module) makes it standalone for WSN. So it reduces the need of
separate controller.
The GUI interface makes it easy for user to configure module as well as to send data
& test modules for different settings.
Pin connections:-
CC2500 transreceiver module is having 3 connector headers (P1, P2 & P3as shown in
picture). P1 is having 4 pins GND (V-), VCC (V+), Rx, Tx. Where Jumper 2 is having 6 pins A0
to A5 (ADC 0 to ADC 5).
4|Page
Configuring CC2500 Module:-
CC2500 module can configure for various things like Self ID (self address or SID),
Channel ID (CID), Baud Rate (max 38400bps) and ADC values.
To configure the module we need to follow some protocol (some set of commands).
Protocol for configuring self ID & channel ID is given below. In which we have to give Self ID
/ Self Address (range 0 to 255 in decimal 0R 0x00 to 0xFF in Hex) and channel ID / Channel
Address (range 0 to 255 in decimal 0R 0x00 to 0xFF in Hex). It is to be noted that the Self ID
0xFF (in hex) Or 255 (in decimal) is reserved for broadcast. Broadcast means that each &
every module on the same channel can receive data, provided that broadcast should be
enable on every module (broadcast is default enable on the CC modules Broadcast id is 255
OR 0xFF).
Here
‘1’ Self id
‘2’ Channel id
5|Page
}
Note: - 1) Once Self id & channel id is configured it needs not to configure every
time.
Protocol for configuring Baud rate includes Baud rate index (1-3). Sending this baud
rate index can change its own baud rate. It is to be noted that changing a baud rate may
leads to failure after configuration. So one has to change the baud rate of other device also.
Here
‘) ‘ Part of protocol
6|Page
Baud Rate index:-
Protocol for reading SID & CID includes just transmission of ‘<’ & ‘>’. As soon as
module receives these symbols it will return “< SID CID >”.
Here
‘ 1 ‘ Self id (say 1)
‘ 2 ‘ Channel id (say 2)
Note: - you can get different SELF ID & CHANNEL ID when read.
7|Page
Int main( void)
{
transmit(‘<’); // part of protocol (or 0x3C hex of ‘<’)
transmit(‘>’); // Part of protocol (or 0x3E hex of ‘>’)
}
Void transmit (unsigned char data_tx)No table of figures entries found.
{
while(!(UCSRA&(1<<UDRE)));
UDR=data_tx;
}
Protocol of this module includes RID (to whom the ADC value is to be send) ADC
channel number (which ADC channel number is to read, 0 to 5 total 6 ADC channels) and
DELAY (time interval at which ADC is to be read in milliseconds). The minimum value of
delay should be 50 milliseconds. The complete protocol must be a string, i.e. it should return
ASCII value as shown in example.
Here,
‘2’ As RID
8|Page
‘,’ Part of protocol (comma)
‘9’ delay
‘0’ delay
‘+’
2) If we need delay of say 100 millisecond it should be sent like ‘1’’0’’0’ OR “100”
that means it should be in string format not a single int like 100.
ASCII Table: - For finding ASCII values one can use following table.
9|Page
E.g. ASCII value of A is 64(value shown on left) + 1(value shown on top) Equal to 65.
For desktop on which serial Port is available, RS TTL link (RS TTL link) is need.
For laptop users (where Serial com Port is not available) USB to serial converter is
needed.
Dot net framework 4.0 is required for installation of GUI.
10 | P a g e
Select required Baud rate _Default Baud rate is 9600.
Click Open
11 | P a g e
CC Setup:-
After successful configuration of com port & Baud rate we need to set SELF ID &
CHANNEL ID. For this put the desired SELF ID & CHANNEL ID and click on Write. After that
we may see a progress bar & message “configuration successful” at the bottom of GUI as
shown.
ADC Setup:-
The inbuilt ADC can be activated using the section ADC Setup on GUI. For this we need to
put ADC Number (0-5), RID (0-255 id is to be provided to whom data is expected to send) and DELAY
the delay is to be provided in Millisecond. Then click on configure. After successful configuration of
ADC we may receive message “configuration successful”. The status LED on the module will now
start blinking at the regular interval.
To disable ADC click on Disable All button. This will disable all the enabled ADCs. The status
LED will now stop blinking.
TEST section:-
For testing one may need two modules (one pair) connected to computer /laptop with the
help of serial link (Rs-TTL converter Or USB 2 serial). Do the necessary connections as described
above.
In this section we can send as well we can receive data. To use test mode we have to provide
RID. Data to be sent is also provided in the respective column. After this just click on send. If any data
is received on the same module it may be seen on the received data box.
12 | P a g e