This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

12
Can't run sketch without serial (and resets)
Post Body

Hello,

I just bought my very first Arduino so I'm a totally new at this. The board is an Arduino Pro Micro (bought here).

I'm using the default Blink example to test it. When I upload the sketch to the Arduino it doesn't start by itself, but when I open the serial monitor it does start blinking. The moment I close the serial monitor it stops.

Also when I disconnect the USB and reconnect it it doesn't blink anymore.

How can I make the sketch run immediately after uploading, without the need for a serial port connection, and run immediately when connected to the power?

The end goal is to have a motion detector that just turns on an LED on motion detection (I already have the hardware for this).

Author
Account Strength
100%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
5,418
Link Karma
869
Comment Karma
4,549
Profile updated: 10 hours ago
Posts updated: 5 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
6 years ago