21 votes

How do I extract code from an arduino?

The short answer: You don't. With enough know-how, you could probably extract the executable binary from the Arduino, but the source code is not installed on the device. You would need to run a ...
Duncan C's user avatar
  • 5,682
15 votes
Accepted

Is Arduino stable enough to use it for a door lock?

I'm not sure if the platform is stable enough to use it for something like this. Absolutely it is. As I describe in my post about an RFID door lock I use a Uno (and some additional parts) to unlock ...
Nick Gammon's user avatar
  • 38.2k
12 votes

How do I extract code from an arduino?

You never can get the actual code back ... by reading the flash you might be able to get the executable/runtime code, but this doesn't look at all similar as your code, although it's functionally the ...
Michel Keijzers's user avatar
11 votes

Is Arduino stable enough to use it for a door lock?

If you want to use an Arduino in this sort of environment, there are a few things to watch out for: Heat (usually from sunlight striking the enclosure). This could be relevant for your project, ...
toxicantidote's user avatar
10 votes
Accepted

What does the term "9g" in servo's rating mean?

According to Flite Test web site, the 9g reference is the weight without the wire lead. They measured one model at 8 grams rounded down. I suspect the weight also ignores the horn as well as the wire. ...
fred_dot_u's user avatar
9 votes

How do I extract code from an arduino?

You read the contents of flash and save it to a file. It can then be re-flashed if your need is not to edit, but duplicate. This reads all flash, including the bootloader, and also PROGMEM data. Use ...
mckenzm's user avatar
  • 191
7 votes

Is Arduino stable enough to use it for a door lock?

If you can guarantee that your hardware and software skills are impeccable then you can certainly trust the MCU on the board. After all, the ATMega chips aren't toys, even though many people around ...
Majenko's user avatar
  • 105k
7 votes
Accepted

How long does it take for a servo to change rotation?

Normal servos don't provide any feedback. Their speed depends on the servo's specs and the load. You could measure the time it takes to rotate a certain angle and use that to calculate the time, then ...
gre_gor's user avatar
  • 1,682
7 votes
Accepted

Implement two processes at the same time

Think of an Arduino as a circus clown spinning plates. It has to spend very little time on any one plate, and then it can keep a lot of plates spinning, moving quickly from one to the next. That's how ...
Duncan C's user avatar
  • 5,682
6 votes

What is commonly done to stop a servo after reaching desired position?

myservo.detach(); is what you are looking for. Moving it to a location than detaching. This is good when you want to use it to control a servo and not have it continue to take power like when using a ...
Kendall Bennett's user avatar
6 votes
Accepted

Why can't most servos rotate more than around 180°

Fundamentally, because the systems they were designed for convert rotary motion to linear, typically with a range substantially less than 180 degrees (probably more like 120 degrees). Next, because ...
Chris Stratton's user avatar
6 votes

What power supply should I use?

I am wondering about what voltage my external power will need to be to control all of them at 6v Well that would be 6V then wouldn't it? You're asking the wrong question. The question you should be ...
Majenko's user avatar
  • 105k
6 votes

error: stray '\' in program with servo

You have bad Unicode characters in your code. All your semicolons are something completely different and need replacing with real semicolons.
Majenko's user avatar
  • 105k
6 votes
Accepted

Arduino: Reading DS18B20 interferes with servo

Arduino's Servo library on AVR uses interrupts; if interrupts are disabled for any amount of time, the servos will twitch. 1-Wire protocol (used by DS18B20) needs to disable interrupts for the ...
theamk's user avatar
  • 176
6 votes

How to move a servo quickly and without delay function

The quickest way possible from LightON to LightOFF is simply servo1.write(lightOFF); without loops or delays, in one go; no need to do it degree by degree. For example: int lightON = 180; int lightOFF ...
ocrdu's user avatar
  • 1,775
5 votes

How to make servo rotate for angle bigger than 180°

No. The continuous rotation servo rotates continuously and you can not control where to stop. You can control the rotation direction and the speed at a little. What you need is either a special 270 ...
Gee Bee's user avatar
  • 771
5 votes
Accepted

Burning servos like crazy, what am I doing wrong?

Some servos are actually not able to do full 0..180 rotation - or to rephrase it better, the standard 0.5ms and 1.5ms pulse will force them to a position which can not be reached. Therefore the motor ...
Gee Bee's user avatar
  • 771
5 votes
Accepted

Is it possible to move a servo without knowing it's current position?

A normal servo is an absolute positioning device. The position of the servo is directly proportional to the length in time of the sync pulse. This means if you tell the servo to be in a given ...
st2000's user avatar
  • 7,325
5 votes

Smooth servo control library

Infortunately, I did not find any library but I found that the method shown below could work quite well for small projects. By adding a small delay, it helps the servo run a little smoother. It is not ...
Dat Ha's user avatar
  • 2,913
5 votes

Smooth servo control library

After searching via a different angle (using "easing" as a keyword), I found this excellent library. Apparently this task is more commonly known as "servo easing", not smoothing. I've tested it with a ...
Cerin's user avatar
  • 1,628
5 votes
Accepted

Can I connect a servo directly to arduino uno without a transistor?

The Arduino's GPIO pins can drive the signal of most model servos directly, without any extra transistors. Driving a model servo signal input is not the main problem with driving servos from an ...
gbulmer's user avatar
  • 901
5 votes
Accepted

Why is the loop() stopping?

Just a small mistake! Not much big of a deal :D In the move function void move(int from, int to) { // initiate the move to the new angle servoMain.write(to); // wait for the movement to ...
Manav's user avatar
  • 426
5 votes
Accepted

Serial.parseInt value always goes back to 0

This code will work IF you set the Serial Monitor to "No Line Ending" (OSX 10.6.8. IDE Version 1.0.6.2). parseInt() doesn't like the NL + CR chars. unsigned int val; void setup(){ Serial.begin(...
VE7JRO's user avatar
  • 2,566
5 votes

Connecting an Arduino to a servo with an external power supply

Your question is not very concise, but I'll try to hit the main points. I'm going with the assumption that your "Arduino" is the Sparkfun Redboard. The Redboard has a current limit of <800mA (heat ...
AJ_Smoothie's user avatar
5 votes

Arduino UNO won't move servo

You have not connected the supply pin properly. here is the connection diagram for the standard basic Arduino example I also verified this on the video you have linked. Connect the 5V and you should ...
ArduinoFan's user avatar
  • 1,059
4 votes

Do external battery packs need to connect to ground on the arduino?

Ground is merely a label. It is a logical point in the circuit relative to which you measure all other voltages against. For instance the 5V pin on the Arduino is actually 5V relative to the ground ...
Majenko's user avatar
  • 105k
4 votes

Is Arduino stable enough to use it for a door lock?

Replying to Majenko's answer with more depth. The limits of the Arduino hardware depend on the ATmega CPU it's built around (I suspect you'll be directly migrating from Arduino to the final PCB). ...
RS2322016's user avatar
  • 384
4 votes
Accepted

`servo.attach()` paralyzing (one) motor on L298N

The Servo library uses Timer 1 to create the servo control signal. That means it can run the servo on any pin or combination of pins, and at the 50Hz speed that a servo likes best. However, pins 9 ...
Majenko's user avatar
  • 105k
4 votes
Accepted

How to execute commands on Arduino (via PC) without touching the current sketch?

The simple thing would be for your sketch to read from the serial port continuously. If it finds something it stores it and when a newline arrives it sees if that happens to be a password known only ...
Nick Gammon's user avatar
  • 38.2k
4 votes

unexpected primary-expression before ';' token

1) You should be using: myservo.write(pos); instead of servo.write(pos); for all of your methods. 2) Change: include #include<Servo.h> to #include <Servo.h> This code only ...
L. Paw 's user avatar
  • 131

Only top scored, non community-wiki answers of a minimum length are eligible