Show Posts
Pages: 1 ... 33 34 [35] 36 37 ... 86
511  Using Arduino / General Electronics / Re: Need help with 9 servos. on: March 08, 2013, 10:50:23 am
I wont rant about the poor search system on this site, but just point you to a post where a long time ago I helped someone else with this problem - lots of servos.

http://arduino.cc/forum/index.php/topic,59530.msg430572.html#msg430572
512  Community / Bar Sport / Re: Solving the problem of reading values on smd resistors on: March 07, 2013, 04:58:00 pm
so suddenly from the K9 chassis, the CRT would weaken after 3 years, like everyone elses, no more circuit/schematc in the back cover, no helpful access for repairing.
Ahhh - conspiracy theory ....

Except it seems painfully true. Total lack of spare parts for ANYTHING. The economy is booming, people have something to use their earned money on - the enviroment is suffering.

I agree:
Old farts bar talk,  who's round is it anyway ?
Oh... I can take then next one. Just enjoyed a slightly out-of-date Christmas beer (full strength, large bottle)
513  Community / Bar Sport / Re: Youtube bar jokes series: on: March 07, 2013, 04:49:37 pm
You have to be a U.S. ham radio operator is get it,
You have to be a database admin/developer to get it:
A table walks in a bar and sees another table : "Mind if I join you?"
514  Community / Bar Sport / Re: Are you a generalist or specialist? on: March 07, 2013, 04:47:14 pm
My dear friends - Generalist like the rest of you. Except Arduino where I strive to be .... well, maybe I'll stick to generalist smiley-wink

But a techno-generalist. I cant write a sonnet, play improvised music or be a politician.

Know your limits. No need to push them, but improve inside of them (assuming they're far enough apart smiley-wink )

(ohh, that was way to much philosophy for this eveing. Time to go to bd)
515  Community / Bar Sport / Re: Your latest purchase on: March 07, 2013, 04:40:00 pm
http://dx.com/p/diy-10x120mm-3w-270lm-3200k-warm-white-rectangle-light-strip-white-orange-dc-12-13v-191321
http://dx.com/p/diy-5w-14v-3300k-475lm-warm-white-light-cob-led-rectangle-strip-white-yellow-186201
Just one of each, so I wont be making a LED cube of them smiley
516  Using Arduino / Project Guidance / Re: Pinball Project on: March 06, 2013, 05:56:24 pm
OK, let me paraphrase your situation. You have 4 combinations and have only reported on two.

You send a signal from pin11 to pin12, and use pin13/LED to verify it comes through. This works if the connection is very close (Why did you use a diode? What do you think happens if you reverse the diode? I think it will "fail"). You do not say if things work as expected if you do not connect the two.

This fails if you have long wires which go "somewhere", claiming there is a connection although your Ohm meter says they have no connection. (Somewhere is a switch matrix, or circuit or ?) Does it work as expected if the switchmatrix-circuit-whatever is closed?

The observation that if you wait "delay(1)" between setting pin 11 and sampling it on pin 12, it yields correct result (you only say on the open, not the closed state). Have you tried delayMicroseconds(100), (50), .. (four is the minimum)?  You code without the delay will turn the pin on and sample it on/off the other approximatly 300-500 nanoseconds later (I have not worked out the precise timing) or 15 meters at lightspeed. Any capacitance/inductance will drastically reduce the speed. The pinball components work in deci or centiseconds for most stuff. Your Arduino is working in sub-microseconds.

Lastly what makes it "scan one set of switches on LOW and another on HIGH"? A circuit? Diode? Relay?

Good luck on the continuing bug-hunt smiley-wink
517  Using Arduino / Project Guidance / Re: Pinball Project on: March 06, 2013, 11:31:12 am
Post the whole sketch - the one you had where it "triggered" even though the switch was open. The fragment you showed gives no clue why it should flash, even though that is what you wanted/expected. So there may be other things "lurking".

An Arduino input pin is High Impedance, meaning that a long attached wire (and no defined voltages) results in "random input". So you must have a pullup or down, and the closing of the switch pulls it in the opposite direction.
518  Using Arduino / Installation & Troubleshooting / Re: IDE fails to find system libraries? on: March 05, 2013, 05:56:58 pm
Thanks. I do not have access to that machine unless I travel accross town which is a hassle so it will be some time before I get the verbose output. But IIRC it simply says that in a given submodule it fails to find the file "LiquidCrystal.h". Then come all the following errors due to the missing header/prototypes.

I took along my laptop, compiled and uploaded to the Arduino, and then moved the USB to the mystery machine to drive it from the printerapplication (Pronterface). Its not a good solution. (I forgot to snapshot the error messages smiley-sad but it still fails compile)

I'll return as soon as I have more info. Anyone have some suggestion what to try or workaround?

Msquare
519  Community / Website and Forum / Re: Forum Website Down on: March 04, 2013, 10:36:09 pm
@Msquare, you're a late night programmer, it must be just after 04h00 for you there!
No, an early riser smiley

I am impressed. How did you work out at 04h00 ?
...Now, at 0400 ...
smiley
520  Community / Website and Forum / Re: Forum Website Down on: March 04, 2013, 10:13:54 pm
For me at 1900 CET it was painfully slow - I even got timeouts on the browser. Now, at 0400 it is lightning fast. (I did not use it in the intervening time)
521  Using Arduino / Installation & Troubleshooting / IDE fails to find system libraries? on: March 04, 2013, 02:21:51 pm
Compilation (Verify) fails saying it can not find LiquidCrystal.h (also tried Stepper.h - same problem).

I have downloaded the Merlin package to drive 3D printers. It compiles fine on my WIN XP, my laptop with Win7(Enterprise) but fails on another Win7(Pro) machine. OK, the Merlin is a large package, so I tried with a sketch from Examples-LiquidCrystal. Same problem/symptoms.

Fresh download of the Arduino software did not help.  If I mess with the keywords.txt file in the LiquidCrystal system library (and restart) then it correctly fails to color keywords I have removed - so it can find&read the library-directory.

I've done this lots of times on other machines so I am looking for a clue what to check for. Out of ideas....

(As a workaround - what would be a simple way to copy the .hex file from the working machine and upload on the nonworking one?)
522  Using Arduino / Project Guidance / Re: Pinball Project on: March 03, 2013, 03:36:06 pm
What are you worried about - noise on signal lines (causing the wrong signal to be read/sent) or a voltage spike (all those heavy solenoids) ruining you electronics or a fatal short (like getting 24V on a 5V line)?

The ground has to be common - else there is no meaning to voltage levels. This is true also with several power supplies.

Unless you choose to galvanically seperate the two, in which case all signals have to go through optocouplers, and of course you have seperate power supplies.

The spikes should already been absorbed by diodes (the driver board contains electronics I see). Spurious signal on the input side can be compensated for in the software, it is akin to debounce a switch. To guard against a fatal short you need galvanic isolation, but if you have nothing more than 24V then you "only" need to replace the AVR microchip (or some driver chip you may have) in "the unlikely event" of disaster
523  Using Arduino / Programming Questions / Re: Organizing growing sketch on: February 28, 2013, 10:05:20 am
Going back to the original question: When a sketch grows too large there are several things one can do. You already seem to have divided up a potential huge loop() into several functions (which is the C/C++ name for a "subroutine" in other languages).

A simpler "split up" is to place one or more functions in seperate files with the ".pde", ".ino" extension in the same directory as your main file. You need not do anything else - all files are compiled together as one large file. In the IDE each file gets its own tab.

Then there is putting functions in ".cpp" files, they are compiled seperatly, and you need to have common prototypes and defines in ".h" files and #include them if you have them in folders under the library folder

Lastly you can take a bunch of related functions (that use the same data) and put them in a class. You can do that if you spilt the main file or not. It is then usual that such a class is placed in its own ".cpp" file, with the prototype/header in the ".h". This is the most "complicated" way

(Edited an ommission after #include)
524  Using Arduino / Programming Questions / Re: reverse pow on: February 28, 2013, 09:15:09 am
Quote
I think programs should be written as nativly as possibly.
Native to the people who develop/maintain it I assume
yeah... it is not something I have a strong opinion on. If you're a developer in a large company then English is probably dictated anyhow (and necessary for multinational cooperation). In a one-person-hobby program, you write what makes sense to yourself. And everything in between correspondingly. (And now, back to the original programming problem smiley-wink )
525  Using Arduino / Programming Questions / Re: reverse pow on: February 27, 2013, 09:14:18 am
On the contrary - I think programs should be written as nativly as possibly.  In fact in C/C++ I could do a number of #defines so even "if", "else", "void" etc was translated to f.eks. Danish. smiley-eek
Code:
#define hvis if
#define intet void
intet loop() { hvis ( x == 3 ) x++ }
  I have just been using English (my 3rd language) for so long now it just comes naturally to do english with the english programming keywords.  smiley-surprise

Now, when trying to get help in an international community it helps it is in english. smiley  But even that could be argued - if the variable names are nonsense to me, then I will only look at the structure and syntax and not be "fooled" into thinking it does something because of the function name or comment. On the other hand, the speed at which I understand the code will be much reduced, precisly because of that - I cant skip any sections because name/comments indicate the function to be trivial.
Pages: 1 ... 33 34 [35] 36 37 ... 86