Giter Site home page Giter Site logo

jeroenst / 433mhzforrpi Goto Github PK

View Code? Open in Web Editor NEW
24.0 5.0 9.0 772 KB

Software for raspberry pi to control 433 mhz modules including old and new kaku (klik aan klik uit) modules

License: GNU General Public License v3.0

C++ 94.21% C 0.85% PHP 1.12% Shell 3.82%

433mhzforrpi's Introduction

433mhzforrpi

Software for raspberry pi to control 433 mhz modules including old and new kaku (klik aan klik uit) modules

Stappenplan

Stap 1 - Sluit alles aan

VCC van de transmitter op pin 4 van je Pi (VCC 5V)
GND van de transmitter op pin 6 van je Pi (GND)
ATAD of DATA van de transmitter op pin 8 van je Pi (TX)

Stap 2 - Installeer WiringPi

WiringPi is een prachtige library die veel arduino functionaliteit naar de Raspberry Pi port. Omdat ik de draadloze library van een Arduino naar de Pi heb geport, heb je deze library dus ook nodig.

Als je git nog niet hebt, installeer dat dan via:

code:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git-core

Daarna gaan we WiringPi downloaden en builden:

code:

git clone git://git.drogon.net/wiringPi
cd wiringPi
git pull origin
cd wiringPi
./build
cd ..

Als alles goed gaat, heb je nu WiringPi geinstalleerd en kun je mijn code downloaden!

Stap 3 - Installeer het tooltje

Voer deze code uit:

code:

git clone git://[email protected]:jeroensteenhuis/433mhzforrpi.git
cd 433mhzforrpi

Compileer nu de versie die jij nodig hebt:

KlikAanKlikUit code:

g++ -o kaku kaku.cpp -I/usr/local/include -L/usr/local/lib -lwiringPi

Action code:

g++ -o action action.cpp -I/usr/local/include -L/usr/local/lib -lwiringPi

Blokker code:

g++ -o blokker blokker.cpp -I/usr/local/include -L/usr/local/lib -lwiringPi

Elro code:

g++ -o elro elro.cpp -I/usr/local/include -L/usr/local/lib -lwiringPi

Nu kun je het zojuist gecompileerde tooltje uitvoeren om je lampen te schakelen! Bijvoorbeeld:

code:

sudo ./action 18 C on

of voor de nieuwe kaku modules:

sudo ./kaku 123 1 on
sudo ./kaku 123 1 dim 4

Voor de andere merken, voer sudo ./merk uit voor het juiste gebruik. (sudo is nodig omdat de GPIO pin low-level zijn)

Dit kun je voor alle gebruikers instellen door het sticky bit aan te zetten: sudo chmod +s merk

Optionele stap 4 - Tweaken

Bereik optimaliseren Als je moeite hebt met het schakelen, is waarschijnlijk het bereik te klein. Dit heeft meestal drie oorzaken:

1 De ontvanger zit in de buurt van veel electronica: verplaats deze naar een wat 'rustigere' plek 2 De antenne heeft niet de juiste lengte, dit moet een draad met een harde kern van exact 17,3 cm of een veelvoud hiervan zijn 3 Het vermogen is te laag, boost het vermogen van de transmitter naar maximaal 12V door die twee pinnen op een externe adapter aan te sluiten

Ontvanger Ook kun je met de broncode aan de slag om de functionaliteiten uit te bouwen. Voor de originele Arduino library klik hier. Een receiver aankoppelen zou niet al te moeilijk moeten zijn!

Webserver Koppel dit tooltje aan bijvoorbeeld een PHP of Node.js server om via je browser of smartphone je lampen te schakelen met een mobiele website, NFC tags bij de deur, Wi-Fi detectie.. you name it!

Bron: http://weejewel.tweakblogs.net/blog/8665/lampen-schakelen-met-een-raspberry-pi.html

433mhzforrpi's People

Contributors

jeroenst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

433mhzforrpi's Issues

kaku.cpp missing

Tried to compile the kaku - version:
g++ -o kaku kaku.cpp -I/usr/local/include -L/usr/local/lib -lwiringPi
g++: error: kaku.cpp: No such file or directory

Either kaku.cpp is missing in your repo, or your documentation needs updating?

kaku.cpp

Hi,

Is kaku.cpp missing???

Thanks, Johan

Is 443mhzdaemon running?

After installing I'm trying to run the following command; ./kaku 123 on and I get the following output:

Message queue open failed, is 433mhzdaemon running?: No such file or directory

What's going on?

Kaku.cpp missing

kaku.cpp is missing from the repo. How can I compile for Kaku?

Raspberry Pi 3 and ACD-300

Hello. I cannot get the ACD-300 to learn. It just... does nothing.

  • I ran your install file
  • wiring Pi is ok
  • This is my result:

pi@raspberrypi:~/Programs/Domotica/wiringPi/wiringPi/433mhzforrpi $ sudo ./kaku 123 1 on
Sending message to 433mhzdaemon.... Done
Message Queue Closed

I do not have other KaKu modules to test it on. Please help!

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.