Close
0%
0%

Using red pitaya for long time data logging

Using red pitaya to create calibration tables

Similar projects worth following
I want to use a red pitaya as a data logging device to capture events that are emitted from a sensor. These events come every 10 minutes and I can't use the single shot of my DSO to capture them.
So I got out the RP and started developing a little script to do it for me.
I used PyRPL to access the fast analog channel of the RP, with the SCPI interface you can only read the slow analog inputs.

Another example I created is to create calibration tables for a homemade power supply.
I used a serial interface to set the PSU to a specific voltage like 1.45 and then the RP measures the output and stores it in a CSV table. So it is possible to calculate the drift of the control loop in the power supply.

arduino_calibration_table.ino

sketch to control the mcp4922 dac over serial using the calotage_cal.py

ino - 1.54 kB - 01/01/2019 at 16:25

Download

10_min_capture.py

capture the fast analog input all x minutes

x-python-script - 1.44 kB - 01/01/2019 at 16:22

Download

voltage_cal.py

to generate calibration table with an Arduino and the RP

x-python-script - 2.35 kB - 01/01/2019 at 16:22

Download

Figure_3.png

example data plot

Portable Network Graphics (PNG) - 53.14 kB - 01/01/2019 at 16:22

Preview
Download

3_cal_data.csv

csv from data plot

Comma-Separated Values - 822.00 bytes - 01/01/2019 at 16:22

Download

  • 1 × Red. Pitaya
  • 1 × Arduino for calibration example
  • 1 × MCP4922 DAC for calibration example

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates