Giter Site home page Giter Site logo

cc1101.net's Introduction

CC1101 Library for .NET

This is a .NET library for RaspberryPi to communicate with CC1101 Tranceivers.
Please make sure to first enable the SPI-Interface on your RPi.

Requirements

  • Raspberry PI (or similar) with a Linux Distribution of your choice
  • .NET 8 Runtime
    TODO: Maybe checker whether to add dotnet to path variable is required - probably needed so this program can run with dotnet..

Wiring

Please refer to the Raspberry Pi Documentation for the GPIO Header scheme

The default settings for this library are listed here:

Either use

BUS 00

CC1101 Raspberry Pi
Vdd 3.3V (01)
SI MOSI (19) - GPIO10
SO MISO (21) - GPIO09
CS CEO (24) - GPIO08
SCLK SCK (23) - GPIO11
GDO2 GPIO (22) - GPIO25
GDO0 not used
GND GND (25)

OR

BUS 01

CC1101 Raspberry Pi
Vdd 3.3V (17)
SI MOSI (38) - GPIO20
SO MISO (35) - GPIO19
CS CEO (12) - GPIO18
SCLK SCK (40) - GPIO21
GDO2 GPIO (22) - GPIO25
GDO0 not used
GND GND (34)

OR

Custom BUS

If you really need to, you can also supply your own ConnectionConfiguration when instantiating the CC1101 library.
Make sure the configured PIN supports the specific SPI operation (see Raspberry Pi Documentation) for predefined buses. Read up on Device Trees and the Raspberry SPI

CC1101
SI
SO
CS
SCLK
GDO2 (whatever GPIO Pin you like)

Usage

Instantiate a new 'CC1101Controller', if you go with the default configuration (Bus 00, see 'Wiring' for more details ) you don't need to specify anything.
If you want to choose a different Bus, you can create supply a 'ConnectionConfiguration' with your own settings.
When doing so, you need to specify the logical Pin number, not the physical Pin from the header.
After creating the controller, you have to call "Init" and initially set a DeviceAddress (whatever you like).
This method returns a CC1101 object which allows you to talk with your CC1101 module.

Example:

var controller = new CC1101Controller();
var cc1101 = controller.Initialize(0x03);

Dependencies

This project uses System.Device.Gpio

Work in progress

This is still work in progress and pretty much untested.
Also, at this point in time, the exposed interfaces might change...

Credits

Thanks to SpaceTeddy to share his C++ Project - i ported this library to this .NET library:
https://github.com/SpaceTeddy/CC1101

cc1101.net's People

Contributors

erythana avatar

Watchers

 avatar

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.