Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
test-and-measurement:analog-discovery-pro-3x50:linux-thingspeak-demo [2021/05/14 23:04] – ↷ Page moved from reference:test-and-measurement:analog-discovery-pro-3x50:linux-thingspeak-demo to test-and-measurement:analog-discovery-pro-3x50:linux-thingspeak-demo Arthur Browntest-and-measurement:analog-discovery-pro-3x50:linux-thingspeak-demo [2022/10/04 11:38] (current) – external edit 127.0.0.1
Line 6: Line 6:
 ThingSpeak, created by MathWorks, is an online platform for collecting, viewing, and analyzing data in the cloud. This guide runs through the steps required to send data captured by the Analog Discovery Pro (ADP3450/ADP3250) up to ThingSpeak and ends with an example, which uses the Pmod MIC3 to capture a sound wave, then, from the measurements, the Analog Discovery Pro calculates the noise level. The noise level measurements are visualized in four different ways on the ThingSpeak channel. ThingSpeak, created by MathWorks, is an online platform for collecting, viewing, and analyzing data in the cloud. This guide runs through the steps required to send data captured by the Analog Discovery Pro (ADP3450/ADP3250) up to ThingSpeak and ends with an example, which uses the Pmod MIC3 to capture a sound wave, then, from the measurements, the Analog Discovery Pro calculates the noise level. The noise level measurements are visualized in four different ways on the ThingSpeak channel.
  
-To view examples for uploading data to ThingSpeak with other Test & Measurement devices, or with Analog Discovery Pro in Standard mode, check this guide: [[reference:software:waveforms:waveforms-sdk:thingspeak|]].+To view examples for uploading data to ThingSpeak with other Test & Measurement devices, or with Analog Discovery Pro in Standard mode, check this guide: [[software:waveforms:waveforms-sdk:thingspeak]].
  
 To take measurements and to upload data to ThingSpeak without the help of a PC, one can use the Analog Discovery Pro (ADP3450/ADP3250) in Linux mode. In this mode, the Test & Measurement device will run the script independently and can accept commands from any connected terminal. To take measurements and to upload data to ThingSpeak without the help of a PC, one can use the Analog Discovery Pro (ADP3450/ADP3250) in Linux mode. In this mode, the Test & Measurement device will run the script independently and can accept commands from any connected terminal.
  
-To successfully run this example, you will need the latest Linux version for your device. To update the ADP3450/ADP3250 Linux image, follow this guide: [[reference:test-and-measurement:analog-discovery-pro-3x50:recover-linux-mode]].+To successfully run this example, you will need the latest Linux version for your device. To update the ADP3450/ADP3250 Linux image, follow this guide: [[test-and-measurement:analog-discovery-pro-3x50:recover-linux-mode]].
 ---- ----
  
Line 16: Line 16:
 <WRAP group> <WRAP group>
 == Hardware == == Hardware ==
-  * [[reference:test-and-measurement:analog-discovery-pro-3x50:start|Analog Discovery Pro (ADP3450/ADP3250)]] +  * [[test-and-measurement:analog-discovery-pro-3x50:start|Analog Discovery Pro (ADP3450/ADP3250)]] 
-  * [[https://store.digilentinc.com/pmod-mic3-mems-microphone-with-adjustable-gain/|Pmod MIC3]]+  * [[https://digilent.com/shop/pmod-mic3-mems-microphone-with-adjustable-gain/|Pmod MIC3]]
   * A FAT/FAT32 USB drive   * A FAT/FAT32 USB drive
 == Software == == Software ==
 <WRAP group><WRAP half column> <WRAP group><WRAP half column>
   * On PC:   * On PC:
-    * [[reference:software:waveforms:waveforms-3:start|]]+    * [[software:waveforms:waveforms-3:start]]
     * [[https://ttssh2.osdn.jp/|Tera Term]], or any other terminal emulator of your choice     * [[https://ttssh2.osdn.jp/|Tera Term]], or any other terminal emulator of your choice
     * [[https://code.visualstudio.com/|Visual Studio Code]], or any other editor of your choice (you can choose to use a text editor on the Analog Discovery Pro instead).     * [[https://code.visualstudio.com/|Visual Studio Code]], or any other editor of your choice (you can choose to use a text editor on the Analog Discovery Pro instead).
Line 33: Line 33:
 </WRAP> </WRAP>
  
-**Note:** //WaveForms can be installed by following the [[reference:software:waveforms:waveforms-3:getting-started-guide]].//+**Note:** //WaveForms can be installed by following the [[software:waveforms:waveforms-3:getting-started-guide]].//
  
 **Note:** //In this guide, the Python script will be created and edited on the PC, then copied to an USB drive to move it on the Analog Discovery Pro. If you choose to edit the script directly on your Test & Measurement device, the steps are similar.// **Note:** //In this guide, the Python script will be created and edited on the PC, then copied to an USB drive to move it on the Analog Discovery Pro. If you choose to edit the script directly on your Test & Measurement device, the steps are similar.//
Line 45: Line 45:
 --> Connect the Analog Discovery Pro (ADP3450/ADP3250) to the Internet # --> Connect the Analog Discovery Pro (ADP3450/ADP3250) to the Internet #
 <WRAP group> <WRAP group>
-{{section>reference:test-and-measurement:analog-discovery-pro-3x50:connect-to-the-internet#setting_up_the_connection&noheader}}+{{section>test-and-measurement:analog-discovery-pro-3x50:connect-to-the-internet#setting_up_the_connection&noheader}}
 </WRAP> </WRAP>
 <-- <--
Line 119: Line 119:
 The complete source code of this project can be downloaded from here: {{ :reference:software:waveforms:waveforms-sdk:pmodmic3_to_thingspeak.zip |PmodMIC3_to_ThingSpeak.zip}}. It contains the Python script used to control the Pmod MIC3, to convert the measured data, and to upload the results to ThingSpeak. The complete source code of this project can be downloaded from here: {{ :reference:software:waveforms:waveforms-sdk:pmodmic3_to_thingspeak.zip |PmodMIC3_to_ThingSpeak.zip}}. It contains the Python script used to control the Pmod MIC3, to convert the measured data, and to upload the results to ThingSpeak.
  
-Discussing in detail the usage of the WaveForms SDK is beyond the scope of this project. For more information about it, check [[reference:test-and-measurement:digital-discovery:controlling-digital-discovery-with-labview:start]], [[reference:test-and-measurement:analog-discovery-2:ad2-motor-debugger:start]], the [[reference:software:waveforms:waveforms-sdk:reference-manual|]], and the examples available in the WaveForms installation directory.+Discussing in detail the usage of the WaveForms SDK is beyond the scope of this project. For more information about it, check [[test-and-measurement:digital-discovery:controlling-digital-discovery-with-labview:start]], [[test-and-measurement:analog-discovery-2:ad2-motor-debugger:start]], the [[software:waveforms:waveforms-sdk:reference-manual]], and the examples available in the WaveForms installation directory.
  
 For a demo project with Pmod MIC3, check [[https://projects.digilentinc.com/56469/using-the-pmod-mic3-with-arduino-uno-fc0daa|Using the Pmod MIC3 with Arduino Uno]]. For a demo project with Pmod MIC3, check [[https://projects.digilentinc.com/56469/using-the-pmod-mic3-with-arduino-uno-fc0daa|Using the Pmod MIC3 with Arduino Uno]].
Line 445: Line 445:
 Now that data can be transferred between the Analog Discovery Pro and ThingSpeak, the script can be modified as needed for your project. Now that data can be transferred between the Analog Discovery Pro and ThingSpeak, the script can be modified as needed for your project.
  
-For more information on WaveForms SDK, see its [[reference:software:waveforms:waveforms-sdk:start|Resource Center]].+For more information on WaveForms SDK, see its [[software:waveforms:waveforms-sdk:start|Resource Center]].
  
 For technical support, please visit the [[https://forum.digilentinc.com/forum/8-test-and-measurement/|Test and Measurement]] section of the Digilent Forums. For technical support, please visit the [[https://forum.digilentinc.com/forum/8-test-and-measurement/|Test and Measurement]] section of the Digilent Forums.