Skip to content

Commit

Permalink
Adjust the reading settings
Browse files Browse the repository at this point in the history
MAX6675 needs 200 ms to convert the analog value to digital. Take that into account, increase the reading period, decrease the number of readings to be averaged.
  • Loading branch information
tlecomte committed Oct 14, 2019
1 parent 5591b3d commit 8e84282
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions user.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@
// Delay time between temperature readings
// from the temperature sensor (ms).
// (must be larger than LOOP_PERIOD_MS)
#define READING_PERIOD_MS 10
// MAX6675 takes about 200 ms to convert
#define READING_PERIOD_MS 200

// How many readings are taken to determine a mean temperature.
// accounts for the thermocouple noise
#define NUMREADINGS 100
#define NUMREADINGS 10

// delay between 2 control updates
// (must be larger than LOOP_PERIOD_MS)
Expand Down

0 comments on commit 8e84282

Please sign in to comment.