Code Monkey home page Code Monkey logo

Comments (6)

ElPernotador avatar ElPernotador commented on May 28, 2024 1

All clear! thanks a lot

from cc1101.

SpaceTeddy avatar SpaceTeddy commented on May 28, 2024

hi ElPernotador,

  • you want to connect a rPi 3 with an Arduino via a CC1101 module?
  • you said, that the tx_demo of the rPi 3 seems to work correctly?
  • you have trouble with the Arduino example, which stops at function cc1100.sidle ();?
  • may you post the Arduino serial output?

BTW: I don't know your CC1101 module, but please be sure that this module can handle the 5V voltage level output of the Arduino. As I remember, the Arduino has 5V GPIO output, even you has connected VCC to 3.3V. The pure CC1101 IC is NOT 5V tolerant. This could be the issue.

regards,
Chris

from cc1101.

ElPernotador avatar ElPernotador commented on May 28, 2024

Hello!

If we are trying to connect an arduino to a raspberry

In the raspberry seems to work correctly, attached initial log:

$ ./TX_Demo -v -a1 -r3 -i1000 -c1 -m250 -f434
CC1100 SW: Verbose option is set `'
Raspberry CC1101 SPI Library test
Init CC1100 ...
Partnumber: 0x00
Version: 0x14
... done!
Mode: 4
Frequency: 2
Channel: 1
My_Addr: 1
Config Register:
0x07 0x2E 0x80 0x07 0x57 0x43 0x3E 0x0E 0x45 0x01
0x01 0x0B 0x00 0x10 0xB0 0x71 0x2D 0x3B 0x73 0xA0
0xF8 0x00 0x07 0x0C 0x18 0x1D 0x1C 0xC7 0x00 0xB2
0x02 0x26 0x09 0xB6 0x04 0xEC 0x29 0x17 0x11 0x45
0x00 0x59 0x7F 0x3C 0x81 0x3F 0x0B
PaTable:
0x6C 0x1C 0x06 0x3A 0x51 0x85 0xC8 0xC0
TX_FIFO: 0x06 0x03 0x01 0x00 0x00 0x03 0xE8
 #: 0x01
TX_FIFO: 0x06 0x03 0x01 0x00 0x00 0x03 0xE8
 #: 0x02

And so on indefinitely

The log on the Arduino is:

Init CC1100 ...
Partnumber: 00
Version: 14
In EEPROM settings ...>

And there are no more changes

As for your clarification of the 5v, we try this example:

Https://github.com/veonik/arduino-cc1101/blob/master/examples/example.ino

Between 2 arduinos and works perfectly with similar connectors, but we are impossible to configure it to connect with a raspberry

THANK YOU

from cc1101.

SpaceTeddy avatar SpaceTeddy commented on May 28, 2024

ok, you can read the Partnumber and Version of the chip, which means that your SPI interface is correct. But I can not see any EEPROM settings. Did you upload your personal eeprom data, which the Arduino compiler generates for you, to the Arduino board? I mean the eeprom python script, which is mentioned on the ReadMe site.
https://github.com/SpaceTeddy/CC1101#arduino-specific

from cc1101.

ElPernotador avatar ElPernotador commented on May 28, 2024

Really, thank you very much. The answer was before our eyes but we did not see it.

I work perfect.

We only have one doubt, why is it necessary to record this data in the EEPROM initialy?

from cc1101.

SpaceTeddy avatar SpaceTeddy commented on May 28, 2024

Happy that I could help you!

The only reason I made it in this way is to safe flash memory. If you want to use only one modulation setting i.e. Gmsk 100kbit, you can hard code it in your main Arduino Sketch. It is up to you ;)

from cc1101.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.