This tutorial make used of a Raspberry Pi model B and the AD/DA converter PCF8591T from SUNFOUNDER to gather analog signals, following the book "Raspberry pi Cookbook for python programmers" in its chapter 7.
Please feel free to read first the file DOCUMENT TUTORIAL before starting working with the scripts.
Summary
- Use "log_adc.py" to collect data from the PCF8591 input pins and to writing this data to a LogFile
- Use "log_graph.py" to use the data recorded into a "data.log" and plot this data.
- Use "data_adc.py" to work with I2C bus using wiringpi
- Use "data_local.py" to gather analog data without hardware.
Modify by:
Kevin Machado Gamboa
Biomedical Engineering Student
Member of Biomedical Engineering Research Group
Autonomous University of the West (Universidad Autónoma de Occidente)
Cali, Colombia
Cl. 25 # 115 - 85, Km 2 vía Cali - Jamundí
Contact: + 57 (310) – 434 8314