Show Posts
Pages: 1 ... 1295 1296 [1297] 1298 1299 ... 1862
19441  Community / Website and Forum / Re: Logged in as... whaaaat? on: August 17, 2011, 09:00:56 am
Quote
. my biggest problem with this number is it is the same number as on my housephone...
So, They have finally tracked you down.   smiley-yell

Sorry, mere moderators can't help - I can see your IPs, host and email, but nothing to suggest a phone number - one for the uber-gods - try PMing Massimo.
19442  Using Arduino / Sensors / Re: Wii nunchuck acceleromter calibration to G force on: August 17, 2011, 08:45:11 am
Quote
So it cant be a linear relationship.
It is.
Can you post your code, and a sample of your output?
How are you powering the device?
19443  Using Arduino / Programming Questions / Re: Is there a limit to the depth of library nesting? on: August 17, 2011, 08:35:36 am
Quote
t seems I have had weird errors due to memorey where strings are placed overflowing..
Although you may think of things like strings as being constant, they are actually stored in RAM (unless you explicitly store them in PROGMEM and handle them as such), so if you have a few strings and maybe a few large arrays, you can very quickly run out of RAM.

Like the man said, we need to see code.
19444  Using Arduino / General Electronics / Re: Looking to maximize the range of my Lego IR Remote controller. on: August 17, 2011, 02:05:01 am
Quote
The general question is one of how one maximizes the range of an IR remote control
More power (multiple emitters), more directionality (reflector/lens).
19445  Using Arduino / Programming Questions / Re: coding problem... need help.. on: August 17, 2011, 01:38:00 am
Quote
can i remove a 1V bias by puting a 4V in to the AnaLog REF?
No, you simply reduce the range from 0...5V to 0...4V, so 4V now reads 1023 instead of 5V reading 1023.
You could remove the bias by subtracting 1023/5 from each reading.
19446  Using Arduino / Programming Questions / Re: Only Execute Once on: August 16, 2011, 04:44:35 pm
Code:
val = digitalRead(inPin);
    if (val == HIGH)
    {
      digitalWrite(green, LOW);
      digitalWrite(amber, HIGH);                //amber LED on
      digitalWrite(relayPin, HIGH);
      if ( 0 == shutDownTime)                 // <<< changed
        shutDownTime = relay_on_time + 30000; // <<< changed
    }
    if (val == LOW)
If "val" isn't HIGH as a result of a digitalRead, it is unlikely to be anything other than LOW, so retesting it is a bit of a waste of time.
A simple "else" would suffice
19447  Community / Website and Forum / Re: The moral responsibility in giving help? on: August 16, 2011, 03:33:52 pm
Quote
Sometime I blame GB for most of whats wrong in the world
I blame the Romans.
How can you have blame culture without culture?
19448  Community / Website and Forum / Re: The moral responsibility in giving help? on: August 16, 2011, 03:25:24 pm
I'm with Mike on this - whenever I see posts like "I want to modify my anti-lock brakes/mains-powered water heater/rocket roller skates", I usually reply "could you tell me where you live, please, so I'll know where to avoid and possibly where to send the flowers"

There have been several cases in the UK recently of people who thought that robbing copper from an unattended electricity sub-station was a route to easy riches.
Now, even my teenage son recognised that this was akin to stealing a petrol pump with an acetylene torch.
These poor sods are on an intellectual level with the benighted souls in Nigeria who steal products from pipelines, and seem to be regularly killed in droves in doing so.
As a child, it was instilled in to me by my family that you don't mess with electricity, or any energy storage or transmission system.
This simple education seems not to be available to many, despite the middle-class health-and-safety culture (or possibly, simply because of it!)
How far are we from people cutting down distribution pylons for scrap steel?

Unfortunately now, for us, even the relatively uneducated can type stuff into Google.

(I should add, that like many of my generation as a teenager, I was no angel, and my activities with simple garden chemicals (now unavailable), and inflammable substances would now lead now, to someone of my age then, to an ASBO at best, or detention at worst. However, I did take considerable care, and would have been horrified if anything higher than invertibrates had been damaged by my experiments)



Quote
the Nobel Prize was essentially created as an apology to the planet for creating TNT
That would be dynamite, surely?
19449  Using Arduino / Programming Questions / Re: Better Coding Technique? on: August 16, 2011, 02:33:41 pm
You could combine the button states into an integer.
So, button C is bit 0, button Z is bit 1 etc.
If you're not sure about bit manipulation, use "bitWrite"
19450  Using Arduino / Programming Questions / Re: Better Coding Technique? on: August 16, 2011, 02:21:41 pm
Code:
if (chuck.cPressed()) {
    lcd.print("C");
  }
  else if (chuck.zPressed()) {
The "else" implies that cPressed and zPressed are mutually exclusive, but you have told us that they are not:
Code:
if (chuck.cPressed()) {
    lcd.print("C");
}
if (chuck.zPressed()) {
    lcd.print("Z");
}
19451  Using Arduino / Project Guidance / Re: Ultrasonic parking sensor on: August 16, 2011, 02:15:16 pm
Quote
this sensor has only two wires,
Isn't that just a bare transducer?

Why not buy a Devantech or a Ping?
If you're having to ask these questions, you're probably not going to be able to build a working solution from scratch.
19452  Using Arduino / General Electronics / Re: Possible solutions for reducing current load on: August 16, 2011, 02:10:31 pm
Quote
'load'
sp. "gain"
19453  Using Arduino / Project Guidance / Re: Decoding phase shifted signal in 198kHz LW radio carrier on: August 16, 2011, 02:08:41 pm
It should be a pretty reliable service - it is said that if the UK Trident fleet cannot receive Radio 4 on 198 long wave for three consecutive days, they are to follow their orders.   smiley-sad
19454  Using Arduino / Programming Questions / Re: millis help needed on: August 16, 2011, 01:16:19 pm
Quote
but that is ok for the random led it is the time on that does not make sense
No, it isn't alright.

"millis" just returns the number of milliseconds since the Arduino last reset - think of it like a telephone speaking clock service.
19455  Using Arduino / Programming Questions / Re: scrolling colors with two buttons up and down (RGB LED) HELP on: August 16, 2011, 01:13:59 pm
If you press ctrl-t in the IDE,it will auto-format for you.
Pages: 1 ... 1295 1296 [1297] 1298 1299 ... 1862