Mathsman 100
  • Member for 6 years, 9 months
  • Last seen more than 6 years ago
Difference between print() and println()
Accepted answer
6 votes

print() prints whatever you send in. println() does the same thing, only after using println, anything new that is printed gets printed in next line, I.e. a new line is formed.

View answer
How to precisely control servo motor by changing duty cycle?
Accepted answer
3 votes

The best is to use 10us Period, instead of 50us. That precision will be close to 1°

View answer
trying to delay between sequences
3 votes

Use Delay( ). Or this code long previousMillis; void setup(){ previousMillis = millis();//in void setup bool lS=LOW;//in void setup } void loop(){ long currentMillis= millis();//in void loop ...

View answer
Transistor for DC motor and 9v
1 votes

Firstly, I see no external power supply in your schematic. Secondly, you certainly CANNOT use a BC548 for controlling a motor. MOSFETS are the best.

View answer
How to increase the detection distance on Arduino KY-032 obstacle Avoidance sensor?
1 votes

These Obstacle sensors don't always work as expected.I bought 3 of them, but only 2 worked properly.The other only worked to a distance of about 6-7cm. By the way, the code seems to be fine, but there ...

View answer
How exactly is voltage measured on an Arduino?
1 votes

The Arduino uses a 10 bit Analog to Digital Converter(ADC). A good ADC is made such that it has only as many comparators as is the resolution of the ADC (in BITS) . Therefore the Arduino should have ...

View answer
Control Speed of DC FAN Using Arduino PID Library
1 votes

First try using external power source to power the motor, as only very small motors can be connected to an Arduino's power source.(Basically, the Motor is using most of the power, leaving too little ...

View answer
Use same ground with 2 wires?
1 votes

All ground is internal connected. But anyway, you CANNOT use the Arduino's power to power a motor, you will need an external power source.And again, you will connect the external power source's ground ...

View answer
7-Segment Common Anode
1 votes

Peter and Gerben have already said what is needed , but I wish to explain things even further. A normal small 7-Segment display consumes only 70-80mA when all segments are HIGH.So you can use the ...

View answer
Not able to upload any code to Arduino Uno
1 votes

Have you tried changing the Microprocessor in the Arduino Uno? An AtMega320P is much cheaper than new Arduino, and usually only the microprocessor gets spoilt, rest of the board remains intact.

View answer
Servo Keeps Trying to Turn
0 votes

A common reason is could be because your servo cannot operate at a PWM signal of 0ms. For conservative limits, you should stay between 100ms and 2800ms even for very high quality servos. With lower ...

View answer
Servo broken? Explanation, Solution
0 votes

Servo is probably broken, or fried. Same thing happened to me, that too twice! First time, I had fried the servo(overpowered it). Second time, one of the gears had broken.(finally I managed to salvage ...

View answer
How to power Arduino only when light is on
0 votes

Conserve energy? There are many ways to conserve energy in an Arduino(e.g. Use a USB adapter that does not waste energy as heat, instead of using Battery power) But if you want to save energy by only ...

View answer
Detect movement on moving robot? PIR Sensor
0 votes

Try using heat detectors(technically speaking, Infrared sensors) (along with >1 Ultrasonic sensors and PIR motion sensors for greater accuracy) with 1 ultrasonic sensor. Comment if you want more help.

View answer
What board to use to send a text message via an arduino board
0 votes

Actually, you should use a Raspberyy Pi if your project involves complex processing in it. But if the project is very simple, just use one of those Spark Core or Photon. Using an Arduino and a Sheild ...

View answer