Ultrasonic Theremin

A Theremin utilizing a passive buzzer using tone(); and the SR04 ultrasonic distance sensor

Dec 31, 2019

8398 views

7 respects

Components and supplies

1

Buzzer

1

Ultrasonic Sensor - HC-SR04 (Generic)

1

Arduino Mega 2560

Apps and platforms

1

TinkerCAD - Free!

Project description

Code

SR04.h

c_cpp

theremin.ino

arduino

Here's the code. You're going to need the library, as well. Paste it in your global "libraries" folder (C:\ProgramFiles (x86)\Arduino\libraries or something).

SR04.cpp

c_cpp

SR04.cpp

c_cpp

SR04.h

c_cpp

Downloadable files

Wiring diagram

The distance sensor here only has one output wire but pretend it has another going to PWM12

Wiring diagram

Wiring diagram

The distance sensor here only has one output wire but pretend it has another going to PWM12

Wiring diagram

Comments

Only logged in users can leave comments

squrril

0 Followers

0 Projects

Table of contents

Intro

7

0