====== Des senseurs sur arduino / radio ======
====== MATOS ======
===== Complets ( integre le micro-controleur ): =====
* http://mchr3k-arduino.blogspot.fr/2012/02/wireless-sensor-node-part-9.html base tiny
==== plate-forme olimex encore ====
* https://www.olimex.com/Products/Duino/AVR/
On y reviens...du EXTR avec tiny AVR pour qlq euros
Avec un couplage d'une platine grove :) http://www.seeedstudio.com/wiki/GROVE_System
===== Sans le micro-controleur ): =====
* http://altelectronics.co.uk/shop/arduino/arduino-fsk-rf-shield-315-/-433-92-/-868-/-915-mhz-v2-0/prod_78.html
* http://www.openhomeautomation.net/wireless-motion-sensor-arduino/
* [[http://digistump.com/products/77|
nRF24L01+ Wireless Transceiver Module]] +[[ http://digistump.com/products/1|The Digispark is an Attiny85]] = 4+8 $
* http://www.anarduino.com/miniwireless/
* http://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo
* http://www.hobbyking.com/hobbyking/store/__42847__FPV_433Mhz_Radio_Telemetry_Kit_100mW_V1_1.html
**cf aussi** http://wiki.enchevetres.org/doku.php?id=teta:jeux_simplistes
====== Expérimentations ======
===== NRF24L01=====
ref :
* http://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo#ex1 pour le cablage
* http://www.airspayce.com/mikem/arduino/RadioHead/ pour les librairies
NRF24 vue avec les connexions sur le dessus
----- -----
I I I I
I I I I
:::: 8642
----- 7531
|IRQ(NC 8)|MOSI (6)|CSN (4)|VCC (2)|
|MISO 7|SCK 5|CE 3|GND 1|
VCC -> Arduino 5V
CE (3) -> 8
CSN (4) -> 7
SCK (5) -> 13
MOSI (6) -> 11
MISO (7) -> 12
===== Jeenode =====
* http://jeelabs.net/projects/cafe/wiki/Dive_Into_JeeNodes
* la librairie pour jeenode : https://github.com/jcw/jeelib
==== Senseur qui est du Lux ====
- brancher le jeelink
- séquence d'initialisation , groupe 100, node 1 , 863MHz : taper : **100g 1i 8b**
-le jeelink affiche :"OK G100 1 152"
- Sur le jeenode usb charger le code suivant ( c'est un arduino uno ) :
/// test de senseur lumiere sur jeenode port P1
/// base test ldr qui pourrait reservir
/// jeenode usb v5 (= arduino uno,57600 )
#include
#include
#include
#define LDR 0 // the LDR will be connected to AIO1, i.e. analog 0
PortI2C myBus (1);
LuxPlug sensor (myBus, 0x39);
byte highGain;
const byte LED = 9;
// turn the on-board LED on or off
static void led (bool on) {
pinMode(LED, OUTPUT);
digitalWrite(LED, on ? 0 : 1); // inverted logic
}
void setup () {
// this is node 1 in net group 100 on the 868 MHz band
rf12_initialize(1, RF12_868MHZ, 100);
bitSet(DDRB, 0);
bitClear(PORTB, 0);
sensor.begin();
Serial.begin(57600);
Serial.println("\n[lux]");
// need to enable the pull-up to get a voltage drop over the LDR
// pinMode(14+LDR, INPUT);
// digitalWrite(14+LDR, 1); // pull-up
}
void loop () {
led(true);
// measure analog value and convert the 0..1023 result to 255..0
// byte value = 255 - analogRead(LDR) / 4;
// recup lux
const word* photoDiodes = sensor.getData();
// recup lux
byte value = sensor.calcLux();
// actual packet send: broadcast to all, current counter, 1 byte long
rf12_sendNow(0, &value, 1);
Serial.print(value);
Serial.println(" ,n=1, g=100, RF12_868MHZ");
highGain = ! highGain;
sensor.setGain(highGain);
led(false);
delay(1000);
// let one second pass before sending out another packet
delay(1000);
}
===== Devduino =====
Une liaison avec le Nrf24L01, sur 100m, et une platine toute faite pour 20€
* http://www.seeedstudio.com/depot/DevDuino-Sensor-Node-V13-ATmega-328-RC2032-battery-holder-p-1774.html
* http://hackspark.fr/fr/devduino-sensor-node-v2-atmega-328-aaa-battery-holder-and-nrf24l01-included.html
===== arduino compatible et autres=====
* http://maniacbug.wordpress.com/2012/03/30/rf24network/
* http://bitknitting.wordpress.com/2013/09/23/building-a-home-network-part-1-wiring-together-the-802-11-chip-and-nrf24l01-chip/
* http://nathan.chantrell.net/20130810/experimenting-with-the-nrf24l01-2-4ghz-radios/ tiny
=====Tiny=====
* https://github.com/nathanchantrell/TinyTX et plein de codes pour capteurs
===== Olimexino =====
* [[https://www.olimex.com/Products/Duino/AVR/OLIMEXINO-85S/open-source-hardware|OLIMEXINO-85S]] 5€
* Nrf24L01-2.4GHz cf [[http://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo| howto]] et [[http://www.miniinthebox.com/fr/index.php?main_page=advanced_search_result&inc_subcat=1&search_in_description=0&keyword=nRF24L01&sort=4a#resultSortBarNew| pas cher ]] 2€
* + 1 senseur