Skip to content

Instantly share code, notes, and snippets.

View SerialTest_Basic1port
//**************************Processing Serial Recive & PlotGraph MultiCH data Sample ***************************
//*************************Shinshu-Makers 2020/06/01**************************************************
import processing.serial.*;//USB Serial library
PrintWriter output;//Filing library
int lf = 10; // Linefeed in ASCII
int cr=13; //Carriage Return in ASCII
String myString1 = null;//Recieved data as string 1st
Serial myPort1; // 1st serial port
int i,j;
String [] mystringArry1=new String[600000];//1stArray declaration Buffer memory recived 600K data
@dj1711572002
dj1711572002 / PM2020__JavaSwing_getFile_CSVFile_Basic2_rev050
Created Jun 17, 2020
Processing_FileChooser_CSVread_PowerCaluculation
View PM2020__JavaSwing_getFile_CSVFile_Basic2_rev050
//**************************Processing PowerCalculation from CSV File ***************************
//*************************Shinshu-Makers 2020/06/18**************************************************
import processing.serial.*;//USB Serial library
//---JAVA SWING FIle read----
import javax.swing.*;
int MAX_LINE =69000;
int MAX_CUE = 7;
int readN=0;
String getFile = null;
String[] datalines;
View AD7194_SPI_Test_rev00_L432KC
// AD7194 EVAL Board mbed NUCLEO 432KC SPIIF Program
// Differential 1Ch AIN1(+) AIN2(-)
//2019/03/23 Shinshu-Makers
#include "mbed.h"
SPI ad7194 (PA_7,PA_6,PA_5); //NUCLEO L432KC MOSI, MISO, SCLK
DigitalOut CS(PA_4); // Chip select
//DigitalOut ADReset(p15); // Pin 15 is reset line for AD9850
Serial pc(USBTX, USBRX); // tx, rx for debug terminal
Timer t;
int data,data0,data1,data2 ;
View AD7194_SPI_Test3ch_rev02_L432KC
// AD7194 EVAL Board mbed NUCLEO 432KC SPIIF Program
// Differential 1Ch AIN1(+) AIN2(-)
//2019/03/23 Shinshu-Makers
#include "mbed.h"
SPI ad7194 (PA_7,PA_6,PA_5); //NUCLEO L432KC MOSI, MISO, SCLK
DigitalOut CS(PA_4); // Chip select
//DigitalOut ADReset(p15); // Pin 15 is reset line for AD9850
Serial pc(USBTX, USBRX); // tx, rx for debug terminal
Timer t;
int i,j,k;
@dj1711572002
dj1711572002 / MatrixTEST02_3LineExample_pallav_Matrix_asampleUseCases.pde
Created Jul 10, 2020
Processing pallav.Matrix for Moore-Penrose InverseMatrix
View MatrixTEST02_3LineExample_pallav_Matrix_asampleUseCases.pde
import pallav.Matrix.*;
//Processing Matrix Libraly
//Demonstrating use of some of the static Methods of library
// MatrixTEST00_pallav_Matrix_asampleUseCases.pde
// ==========Shinshu-Makers MatrixLibrary Study no1=============================
int m = 3, n = 2;
float[][] A={{1,1},{1,-1},{0,1}}; //A data array
float[][]B={ {4},{0},{1} }; //B const array
float[][] At=new float [n][m];
float[][] AtA=new float[n][n];// Square Matrix
View SCP_IMU_AD7193_BTSerial_rev11.ino
//AD7193 M5StickC SPI test ArduinoIDE
//"SCP_IMU_AD7193_BTSerial_rev11.ino"
//2020.07.20 Shinshu-Makers
#include <M5StickC.h>
#include <SPI.h>
#include <BluetoothSerial.h>
BluetoothSerial SerialBT;
uint64_t chipid;
char chipname[256];
View gist:2a78dd3e55905c8c4b83ecd0f899b71e
#include <M5StickC.h>
#include <BluetoothSerial.h>
BluetoothSerial SerialBT;
uint64_t chipid;
char chipname[256];
//====IMU=============
float accX = 0.0F;
float accY = 0.0F;
float accZ = 0.0F;
double AngX,AngY,AngZ;
@dj1711572002
dj1711572002 / VB_To_Excel_DataArray.vb
Created Aug 8, 2020
VB.NET Data array to Excel Sheet
View VB_To_Excel_DataArray.vb
Imports Microsoft.Office.Interop
Public Class Form1
'Keep the application object and the workbook object global, so you can
'retrieve the data in Button2_Click that was set in Button1_Click.
Dim objApp As Excel.Application
Dim objBook As Excel._Workbook
Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click
View ESP32_git_SPIFFS_TEST
#include <M5StickC.h>
#include "FS.h"
#include "SPIFFS.h"
/* You only need to format SPIFFS the first time you run a
test or else use the SPIFFS plugin to create a partition
https://github.com/me-no-dev/arduino-esp32fs-plugin */
#define FORMAT_SPIFFS_IF_FAILED true
void listDir(fs::FS &fs, const char * dirname, uint8_t levels){
View ESP32_git_SPIFFS_TEST_LIST00.ino
#include <M5StickC.h>
#include "FS.h"
#include "SPIFFS.h"
/* You only need to format SPIFFS the first time you run a
test or else use the SPIFFS plugin to create a partition
https://github.com/me-no-dev/arduino-esp32fs-plugin */
#define FORMAT_SPIFFS_IF_FAILED true
void listDir(fs::FS &fs, const char * dirname, uint8_t levels){
You can’t perform that action at this time.