<commit_before>This repository contains code for a datalogger based on the [Olimex
EKG-EMG shield](https://www.olimex.com/Products/Duino/Shields/SHIELD-EKG-EMG/)
on an Arduino-compatible atmega324 board.

Work in progress, doesn't do much yet.

# Hardware

 - [Olimex EKG-EMG shield](https://www.olimex.com/Products/Duino/Shields/SHIELD-EKG-EMG/)
 - atmega328p-based Arduino with a μSD slot (I'm using the [Freetronics
   EtherTen](http://www.freetronics.com.au/products/etherten))
 - I2C real-time clock (DS1307 or DS3232)
 - μSD card

# Preparation

 - Format the SD card to FAT16.

## Wiring

 - Shield fits on the board in the usual way.
 - DS3232:
  - GND to GND
  - VCC on the RTC to 5V on the shield
  - SDA on the RTC to A4 on the shield
  - SCL on the RTC to A5 on the shield

# Building

This project uses [sudar's Arduino Makefile
template](https://github.com/sudar/Arduino-Makefile); it's a submodule
of this repository, so make sure it's cloned before building.

```sh
export MONITOR_PORT=/path/to/your/device
export ARDUINO_DIR=/path/to/arduino/application/directory
cd src
make
make upload
```

## Dependencies

### Tools

 - avr-binutils
 - avr-gcc
 - avr-libc
 - avrdude
<commit_msg>Add note on multi-channel support<commit_after>This repository contains code for a datalogger based on the [Olimex
EKG-EMG shield](https://www.olimex.com/Products/Duino/Shields/SHIELD-EKG-EMG/)
on an Arduino-compatible atmega324 board.

Out of the box it should support up to four ECG channels (if you have
four EKG-EMG shields), but it's only been tested with one.

Work in progress, doesn't do much yet.

# Hardware

 - [Olimex EKG-EMG shield](https://www.olimex.com/Products/Duino/Shields/SHIELD-EKG-EMG/)
 - atmega328p-based Arduino with a μSD slot (I'm using the [Freetronics
   EtherTen](http://www.freetronics.com.au/products/etherten))
 - I2C real-time clock (DS1307 or DS3232)
 - μSD card

# Preparation

 - Format the SD card to FAT16.

## Wiring

 - Shield fits on the board in the usual way.
 - DS3232:
  - GND to GND
  - VCC on the RTC to 5V on the shield
  - SDA on the RTC to A4 on the shield
  - SCL on the RTC to A5 on the shield

# Building

This project uses [sudar's Arduino Makefile
template](https://github.com/sudar/Arduino-Makefile); it's a submodule
of this repository, so make sure it's cloned before building.

```sh
export MONITOR_PORT=/path/to/your/device
export ARDUINO_DIR=/path/to/arduino/application/directory
cd src
make
make upload
```

## Dependencies

### Tools

 - avr-binutils
 - avr-gcc
 - avr-libc
 - avrdude

{'fraction_non_alphanumeric': 0.10156862745098039, 'fraction_numerical': 0.018823529411764704, 'mean_word_length': 3.57168458781362, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7162246', 'n_tokens_mistral': 1013, 'n_tokens_neox': 902, 'n_words': 295}