Project tutorial

Scaling an Image in Processing with Ultrasonic Sensor © GPL3+

In this project, we are taking the distance value from an ultrasonic sensor and scaling the dimension of an image accordingly.

  • 2,327 views
  • 0 comments
  • 15 respects

Components and supplies

Apps and online services

About this project

Introduction

In this project we are going to scale the size of an image using the distance value acquired from an HC-SR04 ultrasonic sensor. The lower the distance, smaller the image size; farther the distance, bigger the image size.

Construction

As you can see in the circuit connect the trigger pin of HC-SR04 sensor to digital pin 12, echo pin to digital pin 11 and VCC of sensor to 5v of arduino and GND to GND of arduino.

  • Digital 12 to Trigger
  • Digital 11 to Echo
  • 5V to VCC
  • GND to GND

https://playground.arduino.cc/Code/NewPing#Download

Code

Arduino & Processing code

Schematics

schematic-hcsr04-1024x583-1024x583_1Gy18Ko03V.png
Schematic hcsr04 1024x583 1024x583 1gy18ko03v

Comments

Similar projects you might like

Ultrasonic Rangefinder with Processing

Project showcase by TEAM DIY

  • 7,385 views
  • 4 comments
  • 16 respects

Visualising sensor data using Arduino and Processing

Project tutorial by sowmith mandadi

  • 36,485 views
  • 3 comments
  • 34 respects

IOT - Smart Jar Using ESP8266, Arduino and Ultrasonic Sensor

Project tutorial by Team Smazee

  • 6,449 views
  • 4 comments
  • 13 respects

Ultrasonic Sensor with Alarm, LCD and Temperature

Project tutorial by MichDragstar

  • 4,658 views
  • 7 comments
  • 19 respects

Ultrasonic Sensor with LCD Display Using 433MHz

Project tutorial by mcharrison500

  • 3,525 views
  • 0 comments
  • 17 respects
Add projectSign up / Login