Taillieu.Info

More Than a Hobby..

How to create a CC2530 router

The CC2530 is highly suitable for serving as a router. It has an external antenna which will greatly improve the range of your Zigbee network. This tutorial will explain how to create a CC2530 router packed into a nice enclosure which can be powered via any regular outlet.

DISCLAIMER: The CC2530 router will use Mains AC so there is a danger of electrocution if not installed properly. If you don’t know how to install it, please call an electrician!

CC2530 in an enclosure

1. What do I need? #

NamePricePicture
CC2530
OR
CC2530 + CC2591
The CC2530 + CC2591 is more powerful but more expensive
+-7.50$ on AliExpress

+-15$ on AliExpress
CC2530
HLK-PM03 +-2.20$ on AliExpress HLK-PM03
Enclosure (the one used has the following dimensions: 100x68x40mm) +-2$ Enclosure
Power cable +-2$ Power cable
CC debugger - CC debugger
8 female to female jumper wires - Jumper wires

2. Flashing the CC2530 #

The CC2530 has to be flashed with a router firmware which has to be done with a CC debugger using 6 female to female jumper wires. Pins have to connected as follows:

CC debugger pin layout #

CC debuggerCC2530
1 GND
2 VCC
3 P2.2
4 P2.1
7 RST
9 VCC

Pin layout of various CC2530 modules #

NamePin layoutPicture
CC2530 CC2530 pin layout CC2530
Webee CC2530 + CC2591 Webee CC2530 + CC2591 pin layout CC2530 + CC2591

Flashing #

Now the CC2530 can be flashed using the same instructions as Flashing the CC2531. The router firmwares can be found here.

CC debugger connected to CC2530

3. Putting it in an enclosure #

The following steps have to be followed:

  • Drill 2 holes in the enclosure; one for the antenna, one for the power cable
  • Lay a knot in the power cable; this serves as strain relief
  • Solder the power cable on to the AC pins of the HLK-PM03
  • Use 2 female to female jumper wires to connect the VC+ pin of the HLK-PM03 to the VCC pin of the CC2530 and the VC- pin of the HLK-PM03 to the GND pin of the CC2530
  • Use double sided tape to fix the CC2530 and HLK-PM03 into the enclosure

Result #

1

2

3

4

CC2530 in an enclosure

4. Done!