|
1066
|
Using Arduino / Project Guidance / Re: Single shot
|
on: January 03, 2013, 10:55:15 am
|
|
just replace switch == HIGH with sensorValue<400 and replace (do this if TRUE) with digitalWrite(13, HIGH) and likewise for (do this if false).
We only provide examples, the rest is up to you.
|
|
|
|
|
1067
|
Using Arduino / Project Guidance / Re: Single shot
|
on: January 03, 2013, 10:25:40 am
|
|
Pseudo example:
byte latch = 0; //initial variable If(switch == HIGH) { //looks at the switch, if it is high for the first time, LED is ON. If the switch changes then goes high again, LED is OFF
!latch; // This detects whether the switch changed or not.
latch ? (do this if TRUE) : (do this if FALSE); //conditional statement, compressed IF/ELSE statement }
|
|
|
|
|
1079
|
Using Arduino / Project Guidance / Re: simple motor question
|
on: January 02, 2013, 11:39:47 am
|
|
It's just to mount the motor in certain brackets. Its usually used to save some space and not need to use screws or other bulky clips to hold the motor in. Actually I have some cars that use it as a vibration damper. Motor clips don't hold onto the motor too well, so that part is used to reduce some of the motor vibration. Screws work just as well thou.
|
|
|
|
|