Show Posts
Pages: 1 [2] 3
16  Using Arduino / General Electronics / Re: Eagle autorouter fail on: January 02, 2014, 06:08:14 am
Most likely your DRC rules specify a minimum clearance between pads and tracks which make routing the trace up and between those 2 pads (The one Through-holr on the left and the smd pad on the right) impossible.

You can check by manually routing the trace that way and then execute a DRC check.

Hope this helps,
17  Using Arduino / Programming Questions / Re: Completly stumped on why this will not work on: December 30, 2013, 05:29:10 am
Assuming you use a normal Arduino like a uno or so, there is a led and a resistor connected to PIN 13 on the pcb.
This makes it harder to use as input. I usually avoid using pin 13 as an input.

First thing i would do is move the button to another pin, define the new pin as input with pullup and have the button switch to ground (As you detect button == LOW).

See if that fixes things. (I did not look in detail at the rest of the code).

18  Using Arduino / Microcontrollers / Re: Code not functioning correctly (inputs toggling without change in voltage) on: December 26, 2013, 06:20:02 am
Sounds like the input pin is floating when the button is not pressed. I assume (as the code does not turn on the internal pullup on A5) that there is a external pull-down resistor on that pin?

Hope this helps,
19  Using Arduino / Sensors / Re: Current measuring problem using ACS712 - no change in readings when plug load on: December 14, 2013, 06:11:19 am
What readings do you get? Also, what load are you trying to detect?
As far as i can tell, you should get 2,5 volts (half Vcc) when no current detected.
According to the datasheet the reading should change ~185mV per A, so if you are drawing +1A, the reading should go to 2,685V.

20  General Category / General Discussion / Re: PCB with Eagle Cadsoft!! Help!! on: December 06, 2013, 03:50:15 pm
Can you answer me for another question please?
I want to cover all PCB bottom and Top with GND and to do this I cover the area with a polygon and rename it with GND name..but a warning occur and advise me that " Signal name 'GND' already exist! use the NAME command to combine signals" and then the PCB's area is cover but NOt connected to GND...How can I solve this?

I think you are changing the name of the polygon using the info (i symbol in the toolbar) tool? That indeed will generate this error.
To change the name of the polygon use the name (r2 over resistor symbol in the toolbar) tool , click on the polygon and change the name to GND. It may ask if you want to merge the net with the GND net, which we indeed want.

That you can use the ratsnets tool to show the ground-plane.

Hope this helps,
21  General Category / General Discussion / Re: PCB with Eagle Cadsoft!! Help!! on: December 06, 2013, 08:47:11 am
From the question i assume you are going to make the boards yourself, otherwise the holes would be through plated and you would only have to solder on the bottom.

You could place a restrict rectangle or polygon on the top of the board where you do not want any tracks. So this would be on top of the pins of the connector. This way the autorouter knows it cannot put a trace there on the top and is forced to use the bottom only.

See this picture, where i placed a top-restict (layer 41) rectangle on the top connector, which forces the auto-router to only place vias where i can reach them.

Hope this helps,

22  Community / Website and Forum / Re: New messages since last login on: October 05, 2013, 06:08:46 am
Seems i did overlook it, as far as i can tell it is now the 'unread posts' link in the main page. (Unless that does something else, but it looks to show the new posts since last login).
23  Community / Website and Forum / New messages since last login on: October 05, 2013, 05:53:37 am
Hello All.

I may be overlooking it in the new forum layout but the 'show all new posts since last login' feature seems to have gone? Is the feature still available?

I used this a lot to get a quick list of all new messages since last time, to scan to to see if anything catches my eye. Now it looks like i have to click each orange 'plus' to see the new posts per section.

Also, is there still no RSS feed for all posts? As this would solve the issue also.

24  Using Arduino / General Electronics / Re: 74hc595 shift reg - Turn off all outputs on arduino reset/startup/shutdown? on: April 07, 2013, 03:11:44 pm
When the Arduino goes into reset (Reset pin is activated or reset button pressed) the outputs should go into input/High-Z mode. So if the OE pin of the 74HC595 is pulled-up, it will also disable (High-Z) those outputs.

If you also want to catch a 'hung' Arduino you will have to use the watchdog timer to force a reset if the program is not running normally anymore.

Hope this helps,
25  Using Arduino / Microcontrollers / Re: Output high at bootup (need to stay low) on: December 01, 2012, 08:21:41 am
Do you use pull-down resistors on those 2 pins?

When the MCU resets, all i/o pins go into Tri-State (High Impedance) and then default to input pins (Also high input resistance) until your sketch defines them as output pins.

Using a resistor (one for each pin, 10K/47K or so) to ground will make sure the pin stays LOW unless explicitly driven HIGH by the output.

Hope this helps,
26  Using Arduino / Programming Questions / Re: How program a filter IIR with Arduino? on: November 09, 2012, 07:55:25 am
Maybe this will help :
27  International / Deutsch / Re: IRLZ34N geht kaputt on: November 05, 2012, 06:59:38 am
Versuch mall ein wiederstand and der Gate (Zwissen gate und pin, 10-47 ohm oder so etwas).
Es koennte sein dass das MOSFET durch ringing die gate uberlasstet.
(Die wiederstand wird die turn-on/off-time etwas langer machen, sollte aber kein problem sein).

Hope this helps,
28  Using Arduino / Programming Questions / Re: Serial data always -1 when nothing happening on: November 01, 2012, 11:00:10 am
Do you get actual/meaningfull values when you print pulseDuration_0 & pulseDuration_1. The average beeing always -1 sounds like a overflow because of divide_by_0 or something like that.

Hope this helps,
29  Using Arduino / Programming Questions / Re: Serial.available acting funny on: October 22, 2012, 10:59:16 am
Couple of remarks, hope they can help.

First, the line '  //}' seems weird, with the comment marks it does NOT compile. Taking out the '//' compiles ok.

Next, does it actually print the "length" string? If x is not inside your range, nothing is done, whatever you receive.

Then, the line 'float distance = analogRead(1);', again hmm, analogRead returns a int, not a float. Not critical, but not clean.

But, most critical, you are not looping yourself, but using the Arduino background code to repeatedly call loop(). This means you are not in full control over what the system is doing. Even in the Arduino the microcontroller 'rule' the main function never exits is still a good one to follow.

Now, i am not sure, but it looks like the serial buffer is reset upon entering loop().

If i place the main block in a while(true) { .. } loop, it seems to work; at least it sees the incoming data etc.

Oh, and finally, the lines
        // say what you got:
        Serial.print("I received: ");
        Serial.println(incomingByte, DEC);
make no sense, inComingByte is initialise to 0 and never set.

30  Using Arduino / Programming Questions / Re: sprintf ? on: October 06, 2012, 06:35:32 pm
As AWOL indicated, the stdlib (i think it is stdlib) linked in by Arduino does not support floats in the sprintf.
One way around this would be to tinker with Arduino IDE to include the full/extended stdlib to get the float working in sprintf.
Another way is to convert the float using :
    dtostrf(floatVar, minStringWidthIncDecimalPoint, numVarsAfterDecimal, charBuf);

Example :
  void setup() {

  void loop() {
    float F = 1.25;
    char buffer[16];
    Serial.print("Float : ");
    //Do not loop
    while(true) {};
Pages: 1 [2] 3