Skip to content

Instantly share code, notes, and snippets.

@heborras
heborras / seml GridFS cleanup.ipynb
Created May 30, 2022 13:43
Script to handle GridFS files orphaned by seml
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@heborras
heborras / Quentin data analysis.ipynb
Last active July 24, 2020 12:30
Analysis of data posted by Quentin, in FINN Gitter
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@heborras
heborras / Utilization extractor.ipynb
Created July 20, 2020 12:18
Functions for extracting utilization data from synthesis and post-place-and-route reports from FINN
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@heborras
heborras / CosmicPiV2_DUE_test_script.ino
Last active September 23, 2018 22:54
A dev firmware for testing and characterizing the V2 board, SiPMs and slabs with an arduino DUE
#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
@heborras
heborras / Moved.txt
Last active July 9, 2018 15:25
A small programm which can configure an OV7670 sensor via the SCCB protocoll. The programm will use the standard I2C hardware of the arduino to drive the SCCD-Bus. Also a 8MHz PWM will be applied at the PIN 9, this should be connected to the XCLK of the camera. Tested with: Arduino Yun. Should work on Arduino Uno/Leonardo/Yun, a few more.
The source code and project moved here: https://github.com/HenniOVP/OV7607_sccb_configuration
@heborras
heborras / Interrupt_analysis.ipynb
Created October 12, 2017 11:02
This script analyzes the recorded serial output from an Arduino Due.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@heborras
heborras / serial_recorder.ipynb
Last active October 12, 2017 11:02
his python script can record arbitrary data from a serial connection.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@heborras
heborras / Interrupt_and_event_recorder.ino
Last active October 12, 2017 11:03
Event/Interrupt recording firmware for the Arduino DUE.
/*
Description:
Event/Interrupt recording firmware for the Arduino DUE.
The firmware can record events from different detectors with sufficent precision.
The resulting output can be recorded to calculate coincidence rates.
Usage:
Set pins that are supposed to be used as detection interrupts.
Attach interrupts to those pins and give them fitting names. (See example further down)
Flash firmware to DUE.
Record serial output with: https://gist.github.com/HenniOVP/3ee85aee16575391f46451dbd566b0ef
@heborras
heborras / Cosmic_Pi_V1.5_dev_firmware.ino
Last active October 12, 2017 10:00
Development firmware for the CosmicPi V1.5
/*
Description:
Development firmware for the CosmicPi V1.5.
With this one can set the high voltage and thresholds for the detector on the fly, all while listening to events.
Usage:
Set sensible default values for:
The high voltage: HV_DEFAULT_VAL
Both thresholds: Thresh_default_val
Wether to use the DAC or the MAX5387 for thershold setting: useDAC
@heborras
heborras / Cosmic_Pi_V1.5_LED_test.ino
Created October 12, 2017 09:44
A utility for testing the LED's on an CosmicPi V1.5.
//flash the red/green LED on the cosmic Pi analogue board when
//it's connected directly to the Arduino DUE
int LED1_pin = 12; // green and lower one
int LED2_pin = 11; // red and upper one
void setup() {
Serial.begin(115200);
Serial.println("Cosmic Pi Status: Alive");