Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 73
61  Using Arduino / Project Guidance / Re: ABC - Arduino Basic Connections on: March 31, 2014, 09:18:21 pm
Does anyone have the URL of pighixxx's website? The one in his profile just has a page saying "See you soon." and a twitter account. Not much use as a reference for newbies asking "How do I connect...."
62  Using Arduino / Project Guidance / Re: 3 way switching 230v on: March 31, 2014, 09:03:31 pm
What you want to do is possible you would need 2 * 2 way 230V switches, 1 * 2 way 230 volt relay (everything rated to the load of your circuit also taking into account the power factor)
Unless he wants a 3 way arrangement (with a centre crossover) he only needs one 230V 2 way switch and a single pole double throw relay to take the place of the second switch.
Everything else you wrote, I heartily agree with.
63  Using Arduino / General Electronics / Re: FYI: Mounting your PCBS etc. to the inside of an encloser on: March 30, 2014, 09:50:58 pm
compared to my 'natural' spelling, any speal cheacker is wonderful

just load one up and Bob's your Uncle !
I have a smell chukker on my worm processor, but I can't fit won two my tripe writer.
64  Using Arduino / Programming Questions / Re: Help in while, if & else on: March 30, 2014, 09:13:50 pm
I have to say that I'm with Henry_Best on this one.
Thanks.
Quote
It might be because I'm coming at programming from a hardware basis, so I think that
Code:
if(digitalRead(pin))
is perfectly reasonable to test for a Logic1 on a pin, as is
Code:
if(!digitalRead(pin))
to test for a Logic0.
I'm coming from an assembler/machine code basis where everything is 1 or 0.
Quote
0b0 == FALSE == LOW and 0b1 == TRUE == HIGH
Not quite, as anything !0 == true, so for example, -31429 == true.
65  Using Arduino / General Electronics / Re: potting? silicone? epoxy coating? specifics on weather proofing Arduino circuit on: March 29, 2014, 10:44:32 pm
There's also fingernail polish, if you prefer that to Type UR (urethane) conformal coat which is what industry uses.
You can get it in pretty colours, too!  smiley
66  Using Arduino / General Electronics / Re: FYI: Mounting your PCBS etc. to the inside of an encloser on: March 29, 2014, 10:34:46 pm
Yes, plastic
Quote
washers between any nuts and the PCB

There are 6-32 nylon screws available, and nylon standoffs.
Here, in the UK, we use M3 or the old 4BA. There's a hardware shop [store] about a mile from me that sells nuts and bolts loose, so I can buy 10 M3*20mm for 60p (about US $1.00). They don't have nylon ones, though, and ordering them online will cost more in shipping than the cost of the parts!

I have plenty of fibre washers from old motherboard mounting kits, but plastic ones would do the same job.

I usually 'double insulate' by using 2mm thick styrene sheet (available from model shops). The bolts holding the styrene sheet to the metal case are not used to mount the PCB. The bolts holding the PCB are only through the styrene sheet and don't touch the metal case.
67  Using Arduino / General Electronics / Re: FYI: Mounting your PCBS etc. to the inside of an encloser on: March 29, 2014, 10:03:40 pm
Hi
What colour....color  fibre...fiber   washers?

Tom......... smiley
It doesn't matter, as long as they're not aluminium... smiley-razz
68  Using Arduino / Programming Questions / Re: Help in while, if & else on: March 29, 2014, 09:54:41 pm
Just because two constants happen to compare equal doesn't mean that that they are interchangeable. There are lots of constants and macro definitions that have the values 0 and 1, but that doesn't mean they're appropriate for testing the return value from digitalRead(). The following are all functionally equivalent but only the first one is right:

Code:
if(digitalRead(pin) == HIGH)
if(digitalRead(pin) == true)
if(digitalRead(pin) == OUTPUT)
if(digitalRead(pin) == DISPLAY)
if(digitalRead(pin) == CHANGE)
...

How about?
Code:
if(digitalRead(pin))
which is what PaulS is complaining about.
69  Using Arduino / Project Guidance / Re: arduiono code for fire detecting on: March 29, 2014, 09:31:37 pm
Ready the sticky note at the top of the  forum list.
1) Don't cross post.
2) Your circuit diagram is not shown.
3) Your code is not shown.
70  Using Arduino / General Electronics / Re: FYI: Mounting your PCBS etc. to the inside of an encloser on: March 28, 2014, 10:12:19 pm
When using metal nuts and bolts, it's a good idea to use fibre washers between any nuts and the PCB.
Damned US spelling checker wants me to write fiber!
71  Using Arduino / Programming Questions / Re: Help in while, if & else on: March 28, 2014, 09:47:47 pm
HIGH and LOW are concepts related to pin states.
true and false are concepts related to boolean variables/states.

While the VALUES are the same, the thought processes involved in using each are NOT. I do not like reading code written by people who can not think logically. To me, part of expressing that ability to think logically is not to interchange boolean states and pin states. Instead, make it clear that you KNOW that you are dealing with a pin state OR a boolean state. YMMV.
digitalRead(pinX) doesn't make it clear that you're reading the state of pinX????
My Arduino doesn't seem to know the difference between digital pin states and boolean/logic states.
Both are either 0 or !0.
72  Community / Bar Sport / Re: [HELP] Helping a friend winning a contest on: March 28, 2014, 12:45:49 am
How advanced is the robot head? Does the head have enough intelligence not to spam random forums with Facebook competitions?
Apparently it doesn't have that capability.
73  Community / Bar Sport / Re: Forum site Vs windows 8.1 /IE version 11 ? on: March 28, 2014, 12:33:42 am
Just got a new laptop last week and been having problems with just the arduino site. I can log in and out and see my posting and unread postings, etc but as soon as I try respond I get a blank white screen returned and can no longer open the forum site, just the arduino home site? Now google chrome appears does not have that problem as we may see when I post this one.
Any one have info on possible windows 8.1/IE-11 problems with the arduino forum site?
Lefty
Posted from my Win 8.1 laptop using IE11.
Go to the forum but don't sign in. Add the page to your favourites. Restart IE11 and click on Index - Arduino Forum.
Sign in and check the "remember me" box. Works every time for me.
74  Using Arduino / Programming Questions / Re: Arduino Uno seperate Tasks on: March 27, 2014, 11:59:07 pm

Look up the 'blink without delay' example in the IDE and look up Finite State Machine.
75  Using Arduino / Programming Questions / Re: Help in while, if & else on: March 27, 2014, 11:32:29 pm
Quote
Then what does it return?
I'm sure that you can find the reference page and see for yourself.
That says it returns HIGH or LOW. If I Serial.print(digitalRead(pinX)); do I get the word HIGH or the word LOW appearing on the serial monitor screen or do I get a 1 or a 0?
Likewise, if I Serial.print a boolean variable, do I get the word true or the word false appearing on the serial monitor screen or do I get a 1 or a 0?
Pages: 1 ... 3 4 [5] 6 7 ... 73