Arduino flashes blue light once and doesn't work

When i plug my Arduino MINI (with Wi-Fi module, but i don't use it) to my PC it flashes blue light once and then doesn't do anything. If i try to send my sketch to it, it seems to be working software-vise, but circuit doesn't work. I think i have all necessary drivers installed, but i might be mistaken.

Please help, i desperately need this issue solved, thank you.

Have you tried blink sketch? Make that work first to eliminate potential set up issues

Unfortunately i can't test it, i don't have anything apart a pre-cut circuit and a couple of servos

What does that mean?

You should probably post your code and a circuit diagram, and explain what "circuit doesn't work" means.

It means that Arduino receives the sketch i'm sending to it, but moving parts that are supposed to move don't

#include <Servo.h> 
int servoPin = 4; 
Servo Servo1; 

void setup() { 
   Servo1.attach(servoPin); 
}
void loop(){ 
   // Make servo go to 0 degrees 
   Servo1.write(0); 
   delay(1000); 
   // Make servo go to 90 degrees 
   Servo1.write(90); 
   delay(1000); 
   // Make servo go to 180 degrees 
   Servo1.write(180); 
   delay(1000); 
}

Here's the code, also while typing this i tried plugging in the arduino with blink sketch, and now it's light glows normally.

You can't tell that from the sketch you have given, unless the servo moves.

You should put at least a serial print in setup() to say "hello, this is setup" or similar, then you'll know the sketch is running.

You didn't actually say was a "pre-cut circuit" is :wink:

Hello marmonkin

Resolder these solder points.

grafik

Have a nice day and enjoy programming in C++ and learning.
MIND THE GAP

I should have probably already said that, this whole thing used to be working, but now i'm on a new PC, and i didn't do any Arduino stuff on it, so this could be the real issue to my problem, because the sketch apparently doesn't reach the arduino

Not related but for the future, you might want to consider using headers for MCUs

But you earlier said this:

What messages do you get when you try to upload the code?

And as I said add some serial prints which will prove if the newly (hopefully) uploaded code is working, or not.

An error occurred when i tried to open Serial Monitor

restart pc, if doesnt help, then you have installation problem or dodgy cable. Your sketch is not uploaded nothing to do with console

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.