This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// which analog pin to connect | |
#define THERMISTORPIN A0 | |
// resistance at 25 degrees C | |
#define THERMISTORNOMINAL 5000 | |
// temp. for nominal resistance (almost always 25 C) | |
#define TEMPERATURENOMINAL 25 | |
// how many samples to take and average, more takes longer | |
// but is more 'smooth' | |
#define NUMSAMPLES 5 | |
// The beta coefficient of the thermistor (usually 3000-4000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: sendtoemoncms | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Put a short description of the service here | |
# Description: Put a long description of the service here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# raspberry pi nrf24l01 hub | |
# more details at http://blog.riyas.org | |
# Credits to python port of nrf24l01, Joao Paulo Barrac & maniacbugs original c library | |
import RPi.GPIO as GPIO | |
from nrf24b import NRF24 | |
import time | |
from time import gmtime, strftime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# raspberry pi nrf24l01 hub | |
# more details at http://blog.riyas.org | |
# Credits to python port of nrf24l01, Joao Paulo Barrac & maniacbugs original c library | |
from nrf24b import NRF24 | |
import time | |
from time import gmtime, strftime | |
import sys, string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
http://blog.riyas.org/search/label/radio | |
*/ | |
#include <SPI.h> | |
#include "nRF24L01.h" | |
#include "RF24.h" | |
// For using the temperature sensor DS18S20 | |
#include <OneWire.h> | |
//int DS18S20_Pin = 8; //DS18S20 Signal pin on digital 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
http://blog.riyas.org/search/label/radio | |
*/ | |
#include <SPI.h> | |
#include "nRF24L01.h" | |
#include "RF24.h" | |
// For using the temperature sensor DS18S20 | |
#include <OneWire.h> | |
//int DS18S20_Pin = 8; //DS18S20 Signal pin on digital 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Arduino con ethernet shield para control del aire acondicionado del salon | |
Miguel Alonso Octubre 2014 | |
Fuentes: varios de internet | |
- CONNECTIONS: nRF24L01 Modules See: | |
http://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo | |
1 - GND | |
2 - VCC 3.3V !!! NOT 5V | |
3 - CE to Arduino pin 9 ->6 | |
4 - CSN to Arduino pin 10 ->7 |