20
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 ...
16
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 ...
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 ...
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, ...
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.
...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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(...
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 ...
5
votes
declared variable inside void setup is forgotten in void loop
Yes, that is how C and C++ (and most other C-like languages) work. Variables have "scope". Any variable define inside a pair of curly braces (between a { and a }) is only visible inside those braces.
...
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 ...
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 ...
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).
...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
servo × 528arduino-uno × 222
motor × 70
power × 46
pwm × 39
programming × 34
arduino-mega × 32
arduino-nano × 29
sensors × 27
serial × 20
button × 19
c++ × 17
arduino-motor-shield × 17
battery × 16
arduino-ide × 14
adafruit × 14
code-review × 14
robotics × 14
esp8266 × 13
i2c × 11
bluetooth × 11
potentiometer × 11
led × 9
stepper × 9
shields × 8