Latest update

- good way to horizontally align enumerate items
- Unicode encoding problem in ogo2ogr GeoJSON export from PostGIS
- Geoserver polygon labeling Arabic numbers using SLD
- Random selection of points in SpatialPointsDataFrame R object with distance constraint
- Heatmap of events, I can't get the right resolution
- How to wire switch for outside motion sensing light
- Reconstructing a non-$\omega$-categorical countable structure from its automorphism group
- Proof: if there is path independence in a vector field F on an open connected region D, then F is conservative ?
- Stirling numbers Sum
- How to prove isomorphism for rings in Galois Theory?
- Conditional Probability — Card Question
- Does the dynamics of this Fund follow a GBM?
- Is my transformation of (A∨B∨C)∧(¬A∨(¬C∧¬B) to get disjunctive NF (using distributive law) right?
- Select the suitable figure from the four alternatives that would complete the square matrix.
- curvature for metric $ds^2 = ydx^2 + xdy^2$
- How to prove that $\displaystyle f''(a)=\lim_{h \to 0}\frac{f(a+2h)-2f(a+h)+f(a)}{h^2}$
- Inertia coprime to degree implies Inertia cyclic?
- Right triangles with the same leg and intersecting hypotenuses
- Choices for 6-digit combination number
- Find g(0) and g'(0) given these two properties.

# Python3 for Max1416 Adc

2018-04-14 13:10:52

While trying to connect to a Max1416epe 16-bit Adc using "spidev", I changed the

r = spi.xfer2([1, 8 + adcnum << 4, 0])

adcout = ((r[1] & 3) << 8) + r[2]

for reading a Mcp3008 to

r = spi.xfer2([1, 8 + adcnum << 4, 0])

adcout = r[1] + r[2]

to collect the 16-bits. I have connected a variable resistor to "Ain+_pin 7" & Gnd to "Ain-_pin 8".

Before polling I set "Reset_pin5" to 0 for 1mSec then back to 1. No reading was collected. However in the datasheet:

https://datasheets.maximintegrated.com/en/ds/MAX1415-MAX1416.pdf

I notice that 2 channels for "adcnum" have to be identified to read "Ain+". See Table 8. How can I insert that into the

r = spi.xfer2([1, 8 + adcnum << 4, 0])

line? I have been using "0" for adcnum.