Main Point


Slides


glitch Example 1, highscore game with midi and click

code


glitch Example 2, networked drawing


code


glitch Example 3, networked skeleton


code



EXTRA STUFF

I2C Communication Protocols

I2C (Inter-Integrated Circuit) is a serial communication protocol designed for short-distance communication between integrated circuits on a single board.

Protocol Basics

I2C uses a two-wire interface for bi-directional communication, operating in a synchronous, serial manner with addressing capabilities.

Understanding Sensor Interfaces - UART, I2C, SPI and CAN ↗

Master-Slave Communication

One master device initiates and controls communication with multiple slave devices, coordinating data transfer and clock synchronization.

Clock and Data Lines

SCL (Serial Clock Line) provides timing synchronization, while SDA (Serial Data Line) carries the actual data between devices.

Addressing and Transfer

Each slave device has a unique 7-bit address, allowing up to 128 devices on the same bus. Data transfer occurs in 8-bit packets with acknowledgment.

SPI Interfaces

Serial Peripheral Interface (SPI) is a synchronous serial communication interface used for short-distance communication in embedded systems.

SPI offers full-duplex communication, allowing simultaneous data transmission and reception. Multiple slave devices can be connected through individual CS lines, enabling efficient device selection and communication.

Optimizing Sensor Data Acquisition in Industrial Automation ↗

Analog and Digital Input Reading

ADC Concepts

Analog-to-Digital Conversion transforms continuous analog signals into discrete digital values for processing by microcontrollers.

Digital Input Principles

Digital inputs read binary states (HIGH/LOW) with defined voltage thresholds and debouncing techniques for reliable readings.

Sampling Rates

The frequency at which analog signals are sampled affects data accuracy and system responsiveness. Nyquist theorem guides minimum sampling rates.

Resolution and Accuracy

ADC resolution (bits) determines the precision of analog measurements, while accuracy depends on reference voltage stability and noise management.

Principles of Data Acquisition and Conversion ↗

Real-time Data Streaming

Real-time data streaming in embedded systems requires careful balance between sampling frequency, buffer management, and processing capabilities to maintain reliable operation.

High-Speed, Real-Time Sensor Data Acquisition and Transfer Based on the Raspberry Pi ↗

Sensor Communication Protocols

One-Wire Protocol

Single-wire bidirectional communication protocol, ideal for temperature sensors and simple devices. Supports multiple devices on a single data line.

Learn More ↗

UART/USART

Universal Asynchronous/Synchronous Receiver-Transmitter protocol for serial communication between devices. Commonly used in GPS modules and debugging interfaces.

Documentation ↗

CAN Bus

Controller Area Network protocol, robust against electromagnetic interference, widely used in automotive and industrial sensors.

CAN Bus Guide ↗

Modbus

Industrial standard protocol for connecting electronic devices. Supports both RTU and TCP variants for sensor communication.

Specifications ↗

MIDI and OSC Protocols

MIDI Protocol

Musical Instrument Digital Interface protocol for real-time music performance data transmission.

  • Note messages (Note On/Off, Velocity)
  • Control Change messages (CC)
  • System Exclusive messages (SysEx)
  • Clock and timing synchronization
MIDI Specifications ↗

OSC Protocol

Open Sound Control - modern alternative to MIDI, offering greater flexibility and networking capabilities.

  • Network-based communication
  • Flexible message formatting
  • High-resolution timing
  • Pattern matching capabilities
OSC Documentation ↗

Implementation Examples

Common libraries and frameworks for MIDI/OSC implementation:

Real-world Applications

Practical uses in creative coding and performance:

  • Live music performance systems
  • Interactive installations
  • Digital audio workstations
  • Networked music performances

Implementation Examples

Common libraries and frameworks for MIDI/OSC implementation:

Error Handling and Calibration

Error Detection and Recovery

Implementing robust error detection and recovery mechanisms for reliable sensor data acquisition.

An Overview of IoT Sensor Data Processing, Fusion, and Analysis Techniques ↗

Data Processing and Storage

Basic Data Filtering

Implementation of digital filtering techniques for noise reduction and signal conditioning.

Processing Analog Sensor Data with Digital Filtering ↗

Data Logging

Methods for efficient data storage and retrieval using SD cards in embedded systems.

Using the SD Card | Adafruit Data Logger Shield ↗

Wireless Data Transfer

Implementing reliable data streaming over USB and Bluetooth interfaces.

Bluetooth Data Loggers: When, How & Why You Should Use Them ↗

Memory Management

Strategies for efficient memory usage and data buffer management.

Optimizing Sensor Data Acquisition in Industrial Automation ↗