Get Time Series Data from a GPIO Device 

Configure GPIO pin 17 on a Raspberry Pi for input.

In[1]:=
Click for copyable input
X

Attach a resistor to a bread board and connect one of its terminals to a voltage source and the other terminal to the GPIO input pin. Verify a digital high on the GPIO pin 17.

In[2]:=
Click for copyable input
X
Out[2]=

Disconnecting the power source gives a digital low on pin 17.

In[3]:=
Click for copyable input
X
Out[3]=

Record a time series of high and low states for 10 seconds at 0.1-second intervals by alternately connecting and disconnecting the power cable.

In[4]:=
Click for copyable input
X
Out[4]=
In[5]:=
Click for copyable input
X
Out[5]=
de es ja pt-br zh