-
Notifications
You must be signed in to change notification settings - Fork 1
/
honeywell_spi-help.pd
37 lines (37 loc) · 1.33 KB
/
honeywell_spi-help.pd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#N canvas 391 123 694 586 10;
#X msg 26 262 open;
#X msg 202 262 close;
#X floatatom 26 412 5 0 0 0 - - -;
#X msg 69 262 open /dev/spidev0.0;
#X obj 209 327 metro 100;
#X obj 209 303 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X floatatom 98 415 5 0 0 0 - - -;
#X floatatom 195 419 5 0 0 0 - - -;
#X floatatom 334 422 5 0 0 0 - - -;
#X text 231 303 toggle metro on to get updates;
#X text 27 432 pressure;
#X text 99 436 temp;
#X text 197 442 sensor status;
#X text 342 448 spi status;
#X obj 26 356 honeywell_spi;
#X text 23 140;
#X text 23 20 The honeywell_spi object retrieves pressure \, temperature
and status readings from a Honeywell HSC pressure sensor with an SPI
interface. Tested on the 1Psi HSCDANT001PGSA3 but should work with
other Honeywell SPI sensors. No calculations or adjustments are done
and the output provided is the pure digital data coming the sensor's
onboard analog to digital converter. Outputs from left to right: 1
Pressure reading 2 Temperature reading 3 Sensor status reading 4 SPI
status To open the device simply press open (the implied devicename
is /dev/spidev0.0) or do open <devicename>. To close device press close.
;
#X connect 0 0 14 0;
#X connect 1 0 14 0;
#X connect 3 0 14 0;
#X connect 4 0 14 0;
#X connect 5 0 4 0;
#X connect 14 0 2 0;
#X connect 14 1 6 0;
#X connect 14 2 7 0;
#X connect 14 3 8 0;