Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pral2a
pral2a / mdef-experimental-dispatch-vol-I.md
Last active November 8, 2023 16:24
Experimental Dispatch Vol I is an informal collection of readings, tools, and platforms curated regularly by the Fab Lab Barcelona team. 📚

Hello,

The following is an informal collection of readings, tools, and platforms curated during the last two months by the Fab Lab Barcelona team. 📚

We plan to send a thought-provoking collection every 2-3 months. 🔄 The summary and clustering of the articles are automatically done by GPT using the Bing extension; errors are expected.

We hope you like it, and remember to check out our blog. 🌐

Articles and Studies 📖

@pral2a
pral2a / MicroBiomeMAP.geojson
Last active July 12, 2021 16:26
Microbioma Barcelona
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pral2a
pral2a / I2CAnalogRead.ino
Created October 3, 2019 10:47
I2CADCforPi
#include <Wire.h>
/*
* Set I2C Slave address
*/
#define I2C_SLAVE_ADDRESS 0x7
#define SENSOR A0
ID Name Unit RAW?
10 Battery SCK 1.1 (%) N
14 BH1730FVC (Lux) N
15 MiCS-4514-NO2 (kOhm) Y
16 MiCS-4514-CO (kOhm) Y
53 ICS43432 - Noise (dBA) N
55 SHT31 - Temperature (ºC) N
56 SHT31 - Humidity (%) N
58 MPL3115A2 - Barometric Pressure (kPa) N
int const PIRpin = 2;
unsigned long previousMillis = 0;
const long interval = 2000;
int prevPinStatus = 0;
long presenceCounter = 0;
void setup() {
Serial.begin(9600);
pinMode(PIRpin, INPUT);
/*
ESP8266 example for tone via timer1
Hardware: NodeMCU
2018
tone using Timer
*/
//define ITONE_CYCLE 2500000 // 1 second cycle in 1/16 CPU clock (1/5 µs) for 80 MHz
#define ITONE_CYCLE 5000000 // 1 second cycle in 1/16 CPU clock (1/5 µs) for 160 MHz
@pral2a
pral2a / proxy
Created September 17, 2018 21:47 — forked from sheerun/proxy
Automatic SOCKS proxy setup through SSH connection on Mac OS X
# Script for automatic setup of SOCKS proxy through SSH connection.
# It automatically teardowns SOCKS configuration before stopping.
# It's supposed to work on Mac OS X 10.6+
#
# Author: Adam Stankiewicz (@sheerun)
#
[[ -n "$1" ]] || { echo "Usage: proxy user@example.com"; exit 1; }
# get service GUID and NAME (like Wi-Fi) to set SOCKS proxy
@pral2a
pral2a / D
Created September 6, 2018 12:27
https://drive.google.com/open?id=1aP-eGbe7RuVnANh1Ch2mvUk5OdOmQnU9
{
"devices": [{
"id": 2300,
"uuid": "85543ca2-e543-4351-9122-98756d50e6b1",
"name": "Orchid Surf Stay Bali",
"description": "Located at the pool area of the hotel ",
"added_at": "2018-04-01T07:32:48Z",
"updated_at": "2018-04-10T00:10:05Z",
"data": {
"recorded_at": "2018-04-12T21:02:47Z",