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
//Open Auto code | |
//Arezzo release July 2018 | |
//Released under the GPL V3. | |
//note that the number of live reservations in the system is stored in eeprom location 2046 (i.e. the last slot) | |
//ConfigCarFun | |
//Config string function - pass the master RFID and door mode via function. | |
//Car types | |
//1 = one button, wire to relay 1; pulse open, pulse close |
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
/*work in progress - single channel mode for V1 cosmic Pi hardware. | |
to do - disable on board DAC (not used in V1, I2C instead) | |
Check pinouts for SPI/Single channel HV | |
Refer to V1 schematic from here: | |
https://www.ohwr.org/attachments/3847/CosmicPiV1point0.zip | |
*/ | |
#include <SPI.h> | |
#include <Wire.h> | |
//updated to include a whole bunch of extra functions 120818 |
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
/* | |
Set point for testing - I think it was 1100?, 160, 160. PSU values are good, threshold tbc. | |
Features: | |
Working: | |
Set HV | |
Set Threshold | |
Print out events | |
ToDo: | |
Print precise GPS timestamps for events | |
HV calibration? |
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
#modified All Seeing Pi to remove overlay and overlay button. | |
from picamera import PiCamera | |
#from gpiozero import Button | |
#from overlay_functions import * | |
from time import gmtime, strftime | |
from guizero import App, PushButton, Text, Picture | |
#from twython import Twython | |
#from auth import ( | |
# consumer_key, | |
# consumer_secret, |
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 V2 Simulator for Arduino DUE | |
//functions provided: | |
//outputs | |
//Analogue Out 0 -> Simulated PSU Voltage FB (open loop) | |
//Analogue Out 1 -> Simulated Events (SlowOutA/SlowOutB) | |
//GPS PPS Output -> 1 Hz | |
//Trigout -> 5Hz, randomomised | |
//Strig A out -> 10Hz, sync with trigout | |
//Strig B out -> 10Hz, sync with trigout | |
//inputs - to check detection is working |
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 <SPI.h> | |
#include <Wire.h> | |
//updated to include a whole bunch of extra functions 120818 | |
/* Cosmic Pi SPI test routines - Master version, slave is commented out below. Runs on an Arduino DUE, | |
Pinouts: | |
MOSI - MOSI | |
MISO - MISO | |
SCK - SCK | |
Pin 10 - Pin 10 (SS) | |
GND - GND |
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 <SPI.h> | |
/* Cosmic Pi SPI test routines - Master version, slave is commented out below. Runs on an Arduino DUE, | |
* Pinouts: | |
* MOSI - MOSI | |
* MISO - MISO | |
* SCK - SCK | |
* Pin 10 - Pin 10 (SS) | |
* GND - GND | |
* 5V - 5V |
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
/* | |
Features: | |
Working: | |
Set HV | |
Set Threshold | |
Print out events | |
ToDo: | |
Print precise GPS timestamps for events | |
HV calibration? |
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
/* -------------------------------------------------------------------------- | |
* SimpleOpenNI User Test | |
* -------------------------------------------------------------------------- | |
* Processing Wrapper for the OpenNI/Kinect 2 library | |
* http://code.google.com/p/simple-openni | |
* -------------------------------------------------------------------------- | |
* prog: Max Rheiner / Interaction Design / Zhdk / http://iad.zhdk.ch/ | |
* date: 12/12/2012 (m/d/y) | |
* ---------------------------------------------------------------------------- | |
*/ |
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 #include statement was automatically added by the Particle IDE. | |
#include <Particle-GPS.h> | |
#include <ParticleSoftSerial.h> | |
#include "Particle.h" | |
//note that the number of live reservations in the system is stored in eeprom location 2046 (i.e. the last slot) | |
//This is licensed under GPL V3. | |
//status: |