Ingeimaks Ingeimaks
Published

Therarduino the belt that keeps us at a distance

Therarduino a belt that helps us in social distancing, as you can guess from the name this project is inspired by the Theremin project.

ExpertWork in progress20 hours514
Therarduino the belt that keeps us at a distance

Things used in this project

Hardware components

Arduino Nano 33 BLE Sense
Arduino Nano 33 BLE Sense
×1
Custom PCB
Custom PCB
×1
BNC Oscilloscope x1/x10 Probes (Pair)
Digilent BNC Oscilloscope x1/x10 Probes (Pair)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Theremin_ARDUINO

Code

Code

C/C++
The code is still "WORK IN PROGRESS"
// pulseIn Example

const byte INPIN = 13;

void setup() {
   Serial.begin(9600);
   pinMode(INPIN, INPUT);
}

void loop() {
unsigned long res;

  Serial.print("Time: ");
  Serial.println(millis());
  Serial.println("Measuring...");
  Serial.flush(); // Needed since serial requires interrupts to operate.

  noInterrupts();
  res = pulseIn(INPIN, HIGH, 3000000UL);
  interrupts();

  if (res) {
     Serial.print("Time high (us): ");
     Serial.println(res);
  } else
     Serial.println("No signal present");

}

Credits

Ingeimaks Ingeimaks

Ingeimaks Ingeimaks

14 projects • 33 followers
Giovanni Mannara is a Maker. Thanks to Massimo Banzi I have traversed this path of Digital Creator ... I LOVE ARDUINO !!!

Comments

Add projectSign up / Login