Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 13
61  Using Arduino / Programming Questions / Re: Leonardo bootloader won't program on: January 12, 2013, 05:22:50 am
Hard to understand what you want to say.

Is there any bug? How will we help you.

Or you want to tell us about some problem which may be we face during using Leonardo in any project.
62  Using Arduino / Programming Questions / Re: Isolating SPI while uploading new code on: January 12, 2013, 12:58:24 am
I don't know how to add picture here but i attach a schematic. If we can turn on and off the motor then we can also do that. If there is some thing wrong please let me know.
63  Using Arduino / Programming Questions / Re: Isolating SPI while uploading new code on: January 12, 2013, 12:41:50 am
One more thing calculate all values of resistors RB RE RC etc for switching according to your case. smiley-cool
64  Using Arduino / Programming Questions / Re: Isolating SPI while uploading new code on: January 12, 2013, 12:37:45 am
>>that's kinda hard to do in an enclosure.

Add a transistor between VCC and power source. Turn the transistor in Saturation through software but in that case one PIN resource need.  
65  Using Arduino / Programming Questions / Re: Isolating SPI while uploading new code on: January 12, 2013, 12:23:55 am
So my question is, is there a way to isolate whatever is connected to the SPI bus from getting affected by the programmer as it's uploading code?

Yes, by dip switch/any manual switch.

Which LED strings you are using?
66  Using Arduino / Programming Questions / Re: UDP Write anomaly on: January 12, 2013, 12:02:13 am
Why does Udp behave as I described above?

Answer: Udp is unreliable connection-less protocol. UDP sockets or Datagram sockets are different from the TCP sockets in a number of ways. The most important difference is that UDP sockets are not connection oriented. A UDP server does not have to listen for and accept client connections, and a UDP client does not have to connect to a server.

What is the proper way to correct his behavior? Knowing that I really cannot guarantee that there will always be a device connected the Ethernet Shield to receive UDP packets at power up.

Answer: Simple ask your Receiving Device are you connected if yes send me  "I am connected" just kidding smiley-cool. Means receiving Device acknowledged the sender by some mechanism on application layer.

Is my solution to the problem appropriate, that is, is it going to cause some issues down the road since I am calling Udp.begin() in the main loop instead of Setup()?

Answer: NO(Actually i don't understand what you want to say in last question).
67  Using Arduino / Programming Questions / Re: Software Reset with WiFi Shield on: January 11, 2013, 11:00:30 pm
Without seeing your code it's really difficult to help you. smiley-cool

Did you call WiFi.disconnect() before calling the reset function.
68  Using Arduino / Programming Questions / Re: Software Reset with WiFi Shield on: January 11, 2013, 06:42:32 am
Try this

void(* resetFunc) (void) = 0

call
resetFunc();

Software reset not reliable in arduino case. You can also do it by WDT
69  Using Arduino / Programming Questions / Re: Slight bug in my code? on: December 05, 2012, 10:52:48 pm
Code:
lcd.write((uint8_t)0);

in this line is there really need of (uint8_t).

Code:
lcd.write(0);
70  Using Arduino / Programming Questions / Re: need help to compile the bootloader on: December 03, 2012, 11:59:29 pm
Quote
Jack Christensen says
Depends on the usage, but if the bootloader were an obstacle, I might think it better to simply eliminate the bootloader.

Can you guide me how to eliminate in case of Zigduino board.

Quote
Lefty says
Or find a copy of mega bootloader that has the WDT problem fixed. Sorry I can't locate it for you but it has been available for over a year now somewhere.

May be it cannot support Zigduino board.
71  Using Arduino / Programming Questions / Re: need help to compile the bootloader on: December 03, 2012, 10:52:40 pm
Quote
holmes4 says
Why not leave the bootloader alone and put your bits where they belong in setup(). The name setup() is a hint as to its function and use.

Quote
Lefty says
I agree that there is nothing to gain by putting user setup code into the bootloader space. The proper place for such functions is in the setup function of the sketch. But perhaps you could explain why you think it would be best to go with your idea?

but in case of watchdog timer?
72  Using Arduino / Programming Questions / Re: Looping 15 times on: December 03, 2012, 10:44:02 pm
Code:
float KWH;
      KWH=(float) pow/1000/60;
      Serial.print("Total energy usage for 1 min=");
      Serial.println(KWH,2);
      
    
      
      datastore= datastore + KWH;
      //float finaldata=datastore+KWH;
      Serial.print("DATA=");
      Serial.println(datastore,2);
      
      if(15==i)
      {
       datastore=0;
       i=0;
      }
      i++;

declare i global
73  Using Arduino / Programming Questions / Re: Looping 15 times on: December 03, 2012, 10:38:02 pm
Code:
i = 0
    while(i < 15)
    {
        stuff();
        i++;
    }
74  Using Arduino / Programming Questions / Re: Looping 15 times on: December 03, 2012, 10:34:13 pm
Code:
void loop()
{
i++;
if(15==i)
{

    i=0;
}
}
75  Using Arduino / Programming Questions / Re: need help to compile the bootloader on: December 03, 2012, 10:12:49 pm
Quote
OMG - I'm starting to sound like PaulS !

 smiley-cool But it will not make you like PaulS
Pages: 1 ... 3 4 [5] 6 7 ... 13