This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clc | |
close all | |
clearvars | |
N = 10000; | |
n = (0:N-1)'; | |
fs = 80000; | |
fc = [20, 80]; | |
amp = [0.5, 0.25]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clc | |
close all | |
clearvars | |
% load('dados.mat'); | |
load('resposta_degrau.mat'); | |
% N = size(dados,1); | |
% ni = 5500; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clc | |
close all | |
clearvars | |
% function handles | |
Rel = @(rho,Lh,Dh) rho./(2*pi*Lh).*log(400/2.54*Lh./Dh); | |
Rem = @(rho,Lh,Dem) 0.183*rho./Lh.* ... | |
log10( ((sqrt(Lh.^2+Dem.^2) + Lh).^2 - Dem.^2)./ ... | |
(Dem.^2 - (sqrt(Lh.^2+Dem.^2) - Lh).^2)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clc | |
clearvars | |
close all | |
% resistividade aparente do solo [ohm*m] | |
rhoa = 448; | |
% resistividade da camada superior do solo [ohm*m] | |
rhoi = 472; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pathlib import Path | |
from glob import glob | |
import os | |
import math | |
def batchRename(folderPath='.', preffix='p'): | |
if isinstance(folderPath, str): | |
folderPath = Path(folderPath) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clc | |
close all | |
clearvars | |
%% %% Water Dynamics | |
%% Surface water runoff | |
% USDA Soil Conservation Service runoff curve number |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <AutoAnalogAudio.h> | |
AutoAnalog aaAudio; | |
//int32_t bufferSize = MAX_BUFFER_SIZE; | |
int32_t bufferSize = 32; | |
uint8_t dacChannel = 0; // Use DAC0 for output | |
// uint8_t dacChannel = 1; // Use DAC1 for output | |
// uint8_t dacChannel = 2; // Use both DAC0 and DAC1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Passo a passo de instalações do Python: | |
1 - Miniconda: https://conda.io/miniconda.html | |
Python 3.6 -> https://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86_64.exe | |
Na instalação, escolher colocar o caminho do Miniconda/Anaconda no PATH (garante acesso ao python e ipython via cmd) | |
2 - Instalar o último driver da placa de vídeo: http://www.nvidia.com.br/Download/index.aspx | |
3 - Instalar o CUDA Toolkit 9.0: https://developer.nvidia.com/cuda-90-download-archive |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() | |
{ | |
// open serial port, set the baud rate to 9600 bps | |
Serial.begin(115200); | |
} | |
void loop() | |
{ | |
float UVIndex; | |
// Connect UV sensors to Analog 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import serial | |
import sys | |
import csv | |
import pathlib | |
from datetime import datetime | |
def list_serial_ports(): | |
""" Lists serial port names |