Show Posts
Pages: 1 ... 4 5 [6] 7 8 ... 73
76  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
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.
77  Using Arduino / General Electronics / Re: FYI: Mounting your PCBS etc. to the inside of an encloser on: March 29, 2014, 10:03:40 pm
What colour....color  fibre...fiber   washers?

Tom......... smiley
It doesn't matter, as long as they're not aluminium... smiley-razz
78  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:

if(digitalRead(pin) == HIGH)
if(digitalRead(pin) == true)
if(digitalRead(pin) == OUTPUT)
if(digitalRead(pin) == DISPLAY)
if(digitalRead(pin) == CHANGE)

How about?
which is what PaulS is complaining about.
79  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.
80  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!
81  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.
82  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.
83  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?
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.
84  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.
85  Using Arduino / Programming Questions / Re: Help in while, if & else on: March 27, 2014, 11:32:29 pm
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?
86  Using Arduino / Programming Questions / Re: Problem with serial read and swiches? on: March 27, 2014, 10:57:35 pm
I tried something similar and had no success yet. I am trying to figure out how to receive a midi message from a switch that can act as a menu/option to toggle from 1 function to another.
I tried using if statements amongst a few other things but the program locks up. I can get menuA working on its own and menuB on its own but i can't combine them together to get that midi switch to toggle between the 2 functions and stay within that selected function/block of code. I am guessing i need some sort of variable to detect when it last received that midi message below.
You need another flag, used in the same way, to keep track of which menu you're on.
87  Using Arduino / Programming Questions / Re: Programming help on: March 27, 2014, 10:30:11 pm
Where in your code do you call intake()?
During all those delays your Arduino just sits there doing nothing, so it won't read any inputs.
To overcome this, see the 'blink without delay' example in the IDE.
Also look up 'switch case' in the reference section and Finite State Machine to get rid of those ugly 'go to' statements.
88  Using Arduino / Programming Questions / Re: I am having problems writing the code for a temp controlled fan on: March 27, 2014, 10:06:57 pm
int tempPin = 0;   // Attach vout to analog pin.
You're attaching DIGITAL PIN 0 here. Try:
int tempPin = A0;   // Attach vout to analog pin.
89  Using Arduino / Programming Questions / Re: Running multiple commands together on: March 27, 2014, 09:42:01 pm
I tried making it with state machine but I think what I am doing is wrong, can someone please help me out
Look up 'switch case' in the reference section.
90  Using Arduino / Project Guidance / Re: pvc film thickness: i need to measure pvc (plastic) film thickness !!!! on: March 27, 2014, 09:21:47 pm
Is the film transparent? If so, what are its optical properties?
Pages: 1 ... 4 5 [6] 7 8 ... 73