Show Posts
Pages: [1] 2 3 ... 1906
1  Using Arduino / Programming Questions / Re: Irregular time on: Today at 03:21:43 pm
You also don't need the return values from your other functions, which you ignore anyway.
2  Using Arduino / Programming Questions / Re: Irregular time on: Today at 03:07:58 pm
Try here

Yellow on white is hard to read - please use code tags.
3  Community / Bar Sport / Re: Who hasn't accidentally touched a mains voltage once or twice? on: Today at 02:46:05 pm
Once spent a weekend helping move office.
The place we were moving from had a custom mains plug designed for shallow underfloor boxes, and the place we were moving to had standard UK square 13 amp plugs, so nearly every item of electrical gear had to have the old plugs taken off, and new ones put on. Over the weekend we worked two twelve hour days - we moved gear and furniture, stripped out network cable and rewired mains leads.

Came Monday morning, there was still cabling to do and to this day, I can only assume it was extreme tiredness that caused me to strip down a live extension block.

It made me jump and tingled for a while - no big deal.

On the other hand, I used to work for BT, and the horror stories told as part of safety training there stay with me today.
The exchange bus bars were typically bare (only 50V) but consisted of copper plates about 8mm thick and 15 to 20 cm wide, stacked five or six deep.
Currents of 800 amps were not uncommon, enough to melt a wedding ring or metal watch strap, or in one story, vapourise a paint can placed across the bars by an unwary painter.
4  Using Arduino / Motors, Mechanics, and Power / Re: Question from a really new Newbie :) on: Today at 02:12:37 pm
Quote
Can these be directly connected to Arduino or need some controller in-between?
You couldn't safely connect even the tiny vibra motor in your phone directly to an Arduino.
Yes, you need a buffer.
5  Using Arduino / Programming Questions / Re: 3 DC motors on: Today at 06:36:56 am
What measure the angle?
6  Using Arduino / Programming Questions / Re: <insert tech term here> Does this really matter which way I use this? on: Today at 06:28:09 am
A word of warning - don't try to get all cutesy and symmetrical with comments like
Code:
//   this is a dangerous thing to do \\
x++;
7  Using Arduino / Programming Questions / Re: millis(), timings, timer on: Today at 03:12:02 am
Try auto-formatting your code and losing the excess parentheses and see if that throws up any clues.
8  Using Arduino / Project Guidance / Re: need programming help on: Today at 03:04:39 am
Ah I understand now...

http://arduino.cc/en/Tutorial/ReadAnalogVoltage


The A is redundant then
No, the A is optional in this case.
9  Using Arduino / Project Guidance / Re: need programming help on: Today at 02:03:29 am
int potPin = 2;    // select the analog input pin for the potentiometer


Pin 2 is not an analog pin though? analogRead requires A0, A1 etc.
Analogue pin 2 is an analogue pin.
analogRead does not require A0, A1 etc.
10  Using Arduino / Programming Questions / Re: Arexx AAR Robot need help on: Today at 02:01:18 am
Open the IDE.
Click on "Examples".
Click on "NewPing".
There are four of them.
11  Using Arduino / Programming Questions / Re: Have run into a wall on: September 15, 2014, 02:54:42 pm
Post your code.
12  Using Arduino / Programming Questions / Re: Have run into a wall on: September 15, 2014, 01:47:04 pm
Code:
else (brightness1 == 255);
What's that?

Code:
// wait for 30 milliseconds to see the dimming effect    
  delay(1000);                        
30, you say?

Code:
analogWrite(led, brightness);
  //analogWrite(led, brightness);
  analogWrite(led, brightness1);
Why write a value that varies, then immediately one that overwrites it?
13  Using Arduino / Programming Questions / Re: Arexx AAR Robot need help on: September 15, 2014, 09:25:39 am
could you pls write a exsample for me ..only if possible ??
The NewPing library includes example programs, as you'd know, if you'd downloaded it.
14  Using Arduino / Programming Questions / Re: Arexx AAR Robot need help on: September 15, 2014, 09:16:53 am
I can't help you because you haven't shown me what you've done so far.

Quote
i want to start with Alkohol stuff.
Me too. Cheers!
15  Using Arduino / Programming Questions / Re: Arexx AAR Robot need help on: September 15, 2014, 09:12:03 am
Quote
but the next preblem is that i need a pregramm for HC-SR04.
Don't think of it as a problem, but rather as an opportunity to learn.
As I said earlier, there are plenty of examples of how to use the HC-SR04.

Quote
.now it works
But it isn't very good code, and you would benefit by spending some more time on making it more legible and maintainable.
Pages: [1] 2 3 ... 1906