Skip to content

Instantly share code, notes, and snippets.

//**************************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 June 17, 2020 15:08
Processing_FileChooser_CSVread_PowerCaluculation
//**************************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;
// 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 ;
// 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 July 10, 2020 11:57
Processing pallav.Matrix for Moore-Penrose InverseMatrix
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
//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];
@dj1711572002
dj1711572002 / gist:2a78dd3e55905c8c4b83ecd0f899b71e
Created July 29, 2020 18:36
M5Stick_SCP_1JikuAngle_rev02.ino
#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 / ESP32_git_SPIFFS_TEST
Created August 11, 2020 09:18
M5StickC_SPIFFS_TEST_org
#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){
@dj1711572002
dj1711572002 / ESP32_git_SPIFFS_TEST_LIST00.ino
Created August 11, 2020 09:32
M5StickC SPIFFS List function
#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){
#include <Arduino.h>
#include <M5StickC.h>
#include <BLEDevice.h>
#include <BLEUtils.h>
#include <BLEScan.h>
#include <BLEAdvertisedDevice.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