Git Product home page Git Product logo

robo-bat's Introduction

Robo-bat

In this activity, you will learn how sound waves interact with objects, and with different types of materials. You and a friend can experiment with different items and materials to see how a bat’s echolocation interacts with them.

Getting Started

To get started, make sure that the ultrasonic sensor is appropriately connected to the Ardunio Uno.

To run the Arduino code, connect the Arduino’s Pin 12 to the sensor’s Trig Pin and connect the Arduino’s Pin ~11 to the sensor’s Echo Pin.

Prerequisites

Clone or download the files. To download the files, click on the Clone or Download button. Then, download the files as a Zip and extract the Zip file.

Executing Arduino code

  1. Download the Arduino IDE available at https://www.arduino.cc/en/Main/Software
  2. Install the IDE
  3. Open robo-bat-arduino.ino available in the robo-bat-arduino folder
  4. From the Tools menu, navigate to Port and select the serial port for the Arduino Uno
  5. Upload the code to your microcontroller by clicking on the Upload button

Testing Arduino

To make sure that the Arduino code is running, follow the following steps:

  1. Go to Tools
  2. Click on Serial Monitor If you see the arduino output, then you have successfully executed the code.

Now make sure that you close the Serial Monitor before running the processing code.

If you cannot see the output, go to the Prerequisites section and make sure that you have followed the instructions.

Executing Processing code

  1. Download the Processing IDE available at https://processing.org/download/
  2. Install the IDE
  3. Open robo-bat-processing.pde available in the robo-bat-processing folder
  4. Go to line 4 and make sure that ARDUINO_SERIAL_PORT_INDEX is has the correct value of the Arduino port based on your computer/laptop.

final int ARDUINO_SERIAL_PORT_INDEX = 7;

  1. Run the code

Demo

You should be able to see the following interface if you successfully execute the code. If not, please make sure that you have followed the instructions.

hi

robo-bat's People

Contributors

sayena-mjlsn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.