Building a Vib sensor with Nano

F

Building a Vib sensor with Nano

Setup and Initial Configuration

Overview

Working with Arduino Nano requires setting up the computer to upload sketches to the board. This setup can sometimes be frustrating, especially with budget boards.

Notes

  • Initial setup can be challenging with budget boards.

Resetting the Arduino Nano

Summary

There are two methods to reset the Arduino Nano: programmatically and electronically.

Programmatic Method

Steps

1. Use the following program to reset the Nano programmatically:

void(* resetFunc) (void) = 0;

void setup() {
  Serial.begin(9600);
  Serial.println("How to Reset Arduino Programmatically");
  Serial.println("www.TheEngineeringProjects.com");
  delay(200);
}

void loop() {
  Serial.println("A");
  delay(1000);
  Serial.println("B");
  delay(1000);
  Serial.println("Now we are Resetting Arduino Programmatically");
  Serial.println();
  delay(1000);
  resetFunc();
  Serial.println("Arrduino will never reach there.");
}

Notes

  • If the Nano is connected to the computer, the board will reset any time the connection is made.

Want to join the discussion? Create a free account to reply and post.

Join ForumLA Free →