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
#include <SPI.h> | |
#include <Dhcp.h> | |
#include <Dns.h> | |
#include <Ethernet.h> | |
#include <EthernetClient.h> | |
#include <EthernetServer.h> | |
#include <EthernetUdp.h> | |
#include <DigitalIO.h> | |
#include <DigitalPin.h> | |
#include <I2cConstants.h> |
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
#include <RunningMedian.h> | |
#include <LowPower.h> | |
#include <nRF24L01.h> | |
#include <SPI.h> | |
#include <RF24.h> | |
#include <RF24_config.h> | |
#include <NewPing.h> | |
#include <math.h> | |
#define triggerPin 5 | |
#define echoPin 6 |
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
#include <SPI.h> | |
#include <Dhcp.h> | |
#include <Dns.h> | |
#include <Ethernet.h> | |
#include <EthernetClient.h> | |
#include <EthernetServer.h> | |
#include <EthernetUdp.h> | |
#include <DigitalIO.h> |
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
#include <nRF24L01.h> | |
#include <RF24.h> | |
#include <RF24_config.h> | |
#include <SPI.h> | |
/* | |
This sketch receives strings from sending unit via nrf24 | |
and prints them out via serial. The sketch waits until | |
it receives a specific value (2 in this case), then it | |
prints the complete message and clears the message buffer. |
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
#include <SPI.h> | |
#include <nRF24L01.h> | |
#include <RF24.h> | |
#include <RF24_config.h> | |
/* | |
This sketch sends a string to a corresponding Arduino | |
with nrf24 attached. It appends a specific value | |
(2 in this case) to the end to signify the end of the | |
message. |
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
#include <nRF24L01.h> | |
#include <RF24.h> | |
#include <RF24_config.h> | |
#include <SPI.h> | |
/* | |
This sketch receives strings from sending unit via nrf24 | |
and prints them out via serial. The sketch waits until | |
it receives a specific value (2 in this case), then it | |
prints the complete message and clears the message buffer. |
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
#include <nRF24L01.h> | |
#include <RF24.h> | |
#include <RF24_config.h> | |
#include <SPI.h> | |
/* | |
This is the corresponding sketch to the 'basicSend' sketch. | |
the nrf24l01 will listen for numbers 0-255, and light the red LED | |
whenever a number in the sequence is missed. Otherwise, | |
it lights the green LED | |
*/ |
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
#include <nRF24L01.h> | |
#include <RF24.h> | |
#include <RF24_config.h> | |
#include <SPI.h> | |
int msg[1]; | |
RF24 radio(9,10); | |
const uint64_t pipe = 0xE8E8F0F0E1LL; | |
/* | |
this is the most basic sketch I can think of to transmit data from an nrf24l01. | |
It loops over the numbers 0-255 continuously and sends each number to the receiving |
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
#include <NewPing.h> | |
#include <EEPROM.h> | |
#define redLed 11 | |
#define yellowLed 10 | |
#define greenLed 9 | |
#define triggerPin 2 | |
#define echoPin 3 | |
#define buttonPin 12 | |
/* |