Get Time Series Data from a GPIO Device
![]() |
Configure GPIO pin 17 on a Raspberry Pi for input.
| In[1]:= | 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]:= | X |
| Out[2]= |
Disconnecting the power source gives a digital low on pin 17.
| In[3]:= | 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]:= | X |
| Out[4]= |
| In[5]:= | X |
| Out[5]= | ![]() |

