Shield Code 6.0
Loading...
Searching...
No Matches
Pip.hpp File Reference

Header file for the Pip library for Dartmouth's 317 Lab. More...

#include <Arduino.h>
#include <Wire.h>
#include <Max1148.hpp>
Include dependency graph for Pip.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Pip
 Manages the Pip sensor sweep and associated data. More...
 

Macros

#define SWEEP_DEFAULT_DELAY   1000
 
#define SWEEP_DEFAULT_AVG_NUM   25
 
#define SWEEP_DEFAULT_SAMPLES   28
 
#define SWEEP_DEFAULT_MIN   0
 
#define SWEEP_DEFAULT_MAX   4095
 
#define SWEEP_MAX_SAMPLES   256
 
#define DEFAULT_ADC_CHANNEL   0;
 
#define DAC_PIN   DAC0
 

Detailed Description

Header file for the Pip library for Dartmouth's 317 Lab.

This library manages the voltage sweep on the PIP sensors using the Arduino Due's onboard DAC. It is basically a vastly simplified version of the Pip, DAC, and Max1147 libraries in the Isinglass/Apophis shield code. Written by Max Roberts in 2015. We are able to use this simplified version because of how nice the Due is :)

Author
Sean Wallace
Date
2024-06-20

Definition in file Pip.hpp.

Macro Definition Documentation

◆ DAC_PIN

#define DAC_PIN   DAC0

Definition at line 28 of file Pip.hpp.

◆ DEFAULT_ADC_CHANNEL

#define DEFAULT_ADC_CHANNEL   0;

Definition at line 26 of file Pip.hpp.

◆ SWEEP_DEFAULT_AVG_NUM

#define SWEEP_DEFAULT_AVG_NUM   25

Definition at line 21 of file Pip.hpp.

◆ SWEEP_DEFAULT_DELAY

#define SWEEP_DEFAULT_DELAY   1000

Definition at line 20 of file Pip.hpp.

◆ SWEEP_DEFAULT_MAX

#define SWEEP_DEFAULT_MAX   4095

Definition at line 24 of file Pip.hpp.

◆ SWEEP_DEFAULT_MIN

#define SWEEP_DEFAULT_MIN   0

Definition at line 23 of file Pip.hpp.

◆ SWEEP_DEFAULT_SAMPLES

#define SWEEP_DEFAULT_SAMPLES   28

Definition at line 22 of file Pip.hpp.

◆ SWEEP_MAX_SAMPLES

#define SWEEP_MAX_SAMPLES   256

Definition at line 25 of file Pip.hpp.