This file contains hidden or 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 <Wire.h> | |
//this code sets values in the MAX5387LAUD+ via I2C. | |
//it then reads back those values over A1 and A2 inputs | |
//The ADC is set to 12 bits for the DUE | |
//Channels are scanned in parallel (0 to 255) | |
//then alternatively ascending and descending. | |
//Output is a CSV over serial at 9600bps. | |
//this test works when testing with board 2 |
This file contains hidden or 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
unsigned long start_time; | |
unsigned long stop_time; | |
unsigned long values[1000]; | |
const int SS_pin = 42; //tbc | |
const int SCK_pin = 44; | |
const int MISO_pin = 22; | |
const int MOSI_pin = 43; | |
String intextbuf; | |
String extextbuf; |
This file contains hidden or 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
//Cosmic Pi histogram program | |
//this compiles histograms from the ADC for different HV Bias levels | |
//it is used to profile the detection of muons and noise | |
//updated to give horizontal row output rather than columns, easier to process | |
//only prints values from 500 to 1500 | |
//the first set of samples seem to be noisy for some reason (?) | |
unsigned long start_time; | |
unsigned long stop_time; | |
unsigned int values[2000]; |
This file contains hidden or 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
Specification for one time pad use. | |
One Time Pad must be smaller than 4Gb! | |
File format for transmission data (cyphertext): | |
Part 0 - 32 bits, the MD5 hash of the OTP used for encoding (before encoding) | |
Part 1 - 32 bits, indicating the address of the start bit. | |
Part 2 - The message, no minimum length imposed. | |
Message input format: Ascii text (for starters) |
This file contains hidden or 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
d465fd28e22ed9f083dc51bbbf802d9b *file1.zip | |
eb92e26bbff0fe135b96d9859ea8979b *file2.zip |
This file contains hidden or 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
//Based on example code from SEEED studio wiki | |
//for 125kHz GROVE RFID reader | |
//GPL V3 | |
/* | |
link between the computer and the SoftSerial Shield | |
at 9600 bps 8-N-1 | |
Computer is connected to Hardware UART | |
SoftSerial Shield is connected to the Software UART:D2&D3 | |
*/ |
This file contains hidden or 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
@echo Project Directory Structure Creation | |
@echo J.Devine 07/08/17 | |
@echo Version 0.1 | |
@echo off | |
md 01_Meeting_Minutes | |
md 02_Drawings | |
cd 02_Drawings | |
md 02_01_Sketches | |
md 02_02_Received_Drawings | |
md 02_03_Sent_Drawings |
This file contains hidden or 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 <Wire.h> | |
//this code sets values in the MAX5387LAUD+ via I2C. | |
//it then reads back those values over A1 and A2 inputs | |
//The ADC is set to 12 bits for the DUE | |
//Channels are scanned in parallel (0 to 255) | |
//then alternatively ascending and descending. | |
//Output is a CSV over serial at 9600bps. | |
//this test works when testing with board 2 |
This file contains hidden or 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
/* | |
* Hydroponics system monitor | |
* J. Devine | |
* Runs on Arduino Pro 5V | |
* Sensors: | |
* DFRobot pHmeter V1.1 | |
* Waterproof DS18B20 water temperature sensor | |
* TMP36 air temperature sensor | |
* HC-SR04 distance sensor (for water level..) | |
* A european two pin plug for EC measurements |
This file contains hidden or 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
//this can be used to test a uart connected GPS. | |
void setup() { | |
// initialize both serial ports: | |
Serial.begin(9600); | |
Serial1.begin(9600); | |
} | |
void loop() { | |
// read from port 1, send to port 0: |