aurdino cc1101 project

hey.........
can any1 of u help me ??????
i m interfacing cc1101 and aurdino....... atmega328p....

i m configuring the cc1101 ic with aurdino...... we need to configure the cc1101 registers and set frequency and power by configuring its register.... i m using elechouse library ......

here is my code

#include <ELECHOUSE_CC1101.h>
byte s;
void setup ()
{
Serial.begin (9600);
ELECHOUSE_cc1101.Init();
s= ELECHOUSE_cc1101.SpiReadReg(CC1101_FREQ0); //trying to read the configuration register
Serial.println(s);
}
void loop ()
{}

it is returning me 0..... where as according to the configuration i wrote it should return me 0x62 .........

i can share the header and cpp file as well....

can sm1 help me ????? its urgent..............

What is cc1101 ?
Do you have a datasheet?

it is an rf chip....... yeah i got the data sheet

Pauly:
Do you have a datasheet?

..... was actually a polite (coded) request for you to post a link to it so that members might see it.

opppssssss sorry .........

i have attached the header file
and the elechouse library files thaat i m using

ELECHOUSE_CC1101.h (7.4 KB)

ELECHOUSE_CC1101.cpp (11.5 KB)

cc1101.pdf (2.18 MB)

How many threads are there on this now? It seems to be three, or maybe two were merged I'm not sure, but certainly seems to be two?

Multiple threads on the same thing do not guarantee you a better quantity or quality of response. On the contrary....

JimboZA:
How many threads are there on this now? It seems to be three, or maybe two were merged I'm not sure, but certainly seems to be two?

Multiple threads on the same thing do not guarantee you a better quantity or quality of response. On the contrary....

the other thread was just on the aurdino programing...... bcx i initially guessed that i was having programming aurdino....
and i just posted this thread to ensure tht if some1 could guide me with this.....

i hope this doesnt cause an issue...

i got my problem solved :slight_smile:

Hello there i have bought cc1101 transceiver with 1.27mm pin pitch.Moreover pin configuration is not written on the module like GND/3.3 V etc. how would i interface it on arduino.more over plz tell how would i program it to send and recieve data.i am totally noob here.any body plz help me
Thanks

monster123456:
Hello there i have bought cc1101 transceiver with 1.27mm pin pitch.Moreover pin configuration is not written on the module like GND/3.3 V etc. how would i interface it on arduino.more over plz tell how would i program it to send and recieve data.i am totally noob here.any body plz help me
Thanks

hey,
do u have the chip cc1101 on the board cc1100... i m attaching some figures which show the chip as well as board pin configuration...
i hope u find these helpful....
for programing u can get panstamp library files... further help u can get from

labalec.fr/erwan/?p=497

cc1101 pins.PNG

cc1101 conf.jpg

Hi,

I'm using an arduino mega 2650 and a cc1101 RF module and I can't get it working ! I followed this tutorial: Arduino : use a Texas CC1101 – Erwan's Blog but in the serial monitor all register values are 0 and packets not sent Sad
I have two questions:

  1. did you used tension regulator ? because I actually use it since on cc1101 the max voltage that can be on any digital pin is 3.9v but the high or low voltage levels for arduino correspond to +5v and 0v so if we directly connect the pins, it may cause a damage to cc1101 ?

  2. when using arduino mega, the GDO0 pin of the CC1101 must be connected to the pin 19 (RX1) of arduino and we change the value of #define GDO0 2 to #define GDO0 19 in spi.h of the panstamp library, right?

Thank you in advance.

Works For Nano
GND >> GND
VCC >> 3V
SCK >> D13
MOSI >> D11
GDO2 >> D9
MISO >> D12
CSN >> D10
GDO0 >> D2

Is there anyone who can help with cc1101 for an Arduino Pro-Mini
I use the same include as above, but the code fails at SPI reset / SpiTransfer.

byte ELECHOUSE_CC1101::SpiTransfer(byte value)
{
SPDR = value;
while (!(SPSR & (1<<SPIF))) ;
return SPDR;
}

void ELECHOUSE_CC1101::Reset (void)
{
digitalWrite(SS_PIN, LOW);
delay(1);
digitalWrite(SS_PIN, HIGH);
delay(1);
digitalWrite(SS_PIN, LOW);
while(digitalRead(MISO_PIN));
SpiTransfer(CC1101_SRES);
while(digitalRead(MISO_PIN));
digitalWrite(SS_PIN, HIGH);
}