Skip to content

Instantly share code, notes, and snippets.

@pral2a
pral2a / KUKAIO.md
Last active March 26, 2024 03:58
KUKA IO

KUKA IO

This is a WIP documentation on the setup and usage of KUKA IO modules

IO Bus and Modules

Industrial IO Modules come in different filed buses depending on the KRC setup. DeviceNet, Profibus and EtherCat standards are available depending on the KRC. Most KRC use Beckhoff modules. Most common modules are digital IN, digital OUT, analog IN and analog OUT.

KRC IO Configuration

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