Notifications
Clear all

Building a Vib sensor with Nano

2 Posts
1 Users
0 Reactions
623 Views
(@admin)
Member Admin
Joined: 6 years ago
Posts: 447
Topic starter  
wpf-cross-image

Working with Nano

 

First thing you have to get the computer able to upload to your specific board. This is where you start to regret buying a 3 dollar board


This topic was modified 3 years ago 2 times by admin

   
Quote
(@admin)
Member Admin
Joined: 6 years ago
Posts: 447
Topic starter  

How to reset the Arduino Nano?

Basically, there are two ways to reset the Arduino Nano: programmatically and electronically.

Programmatical method:

The Arduino Nano comes with an in-built RESET function. The board will reset automatically once this function is called. To reset the Nano programmatically, you can upload the following program:

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.”);

}

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


   
ReplyQuote