Skip to content

Instantly share code, notes, and snippets.

View PCJohn's full-sized avatar

Prithvijit Chakrabarty PCJohn

View GitHub Profile
@PCJohn
PCJohn / ServoScan.ino
Last active February 19, 2024 07:34
A processing and arduino sketch for 3D mapping with an ultrasonic sensor
/*
Arduino program to control a ultrasonic 3-D mapping sensor.
The programs controls an HC-SR04 ultrasonic sensor connected to the Arduino board.
A collaborating Processing sketch interacts with this program with serial communication to control the angle
Authors:Prithvijit Chakrabarty (prithvichakra@gmail.com)
Kartik S. Lovekar (kslovekar@gmail.com)
*/
#include <Servo.h>
#include <NewPing.h>
@PCJohn
PCJohn / AudioPlayer.java
Last active September 17, 2015 08:07
Processing sketch for a music player
/*
A Processing sketch for an audio player with frequency visualization.
Authors: Prithvijit Chakrabarty (prithvichakra@gmail.com)
Kartik Lovekar (kslovekar@gmail.com)
*/
import ddf.minim.*;
import java.io.*;
import java.util.*;