Show Posts
Pages: 1 2 [3] 4 5 ... 16
31  Using Arduino / Programming Questions / Reading and writing to a single digital pin on: February 11, 2013, 12:57:17 pm
Hi,
I am trying to read and write to a single digital pin. Is it something which is possible with a full success rate? I am trying to read a switch output and drive an LED via the same pin. (Schematic attached)
It seemed working with one unit (switch + LED) on a single pin. Code which I used is given below. Tried to comment wherever possible in the code based on my understanding. What it did does is that reads the switch and turns on the LED for 2sec and turns it off and loops..

Code:
/*
Single Digital pin Read and Write
*/

// Pushbutton 1 end to 5V, other end to digital pin(7)
// Same digital pin(7) connected to 10k to ground
// in parallel to 10k connect led positive + 1k resistor to ground

int pushButton = 7;


void setup() {
  // initialize serial communication at 9600 bits per second:
  Serial.begin(9600);
  // Enable pushbutton's pins internal pull up resistor(20k) to 5V:
  pinMode(pushButton,INPUT_PULLUP);
    // Same can be achieved by the following two lines
       // pinMode(pushButton, INPUT);
       // digitalWrite(pushButton,HIGH);
}


void loop() {
 
  int buttonState = digitalRead(pushButton);  // Read the push button pin. Usually its zero, when pressed it goes to HIGH or 1
  Serial.println(buttonState);  // Printing on serial monitor the status
  if(buttonState==1)  // When button is pressed
  {
    pinMode(pushButton, OUTPUT);  // Changing to OUTPUT mode creates low impedance path from pin (and deactivates the pullup) it gives +5V which makes LED glow.
    delay(2000);
    pinMode(pushButton,INPUT_PULLUP);  // Turn on the pullup again, thereby turning off the LED.
      //  OR
      //    pinMode(pushButton, INPUT);
      //    digitalWrite(pushButton,HIGH);
  } 
  delay(50);       
}



But is it suppossed work like this? Because when I tried to do it with multiple units(switch + LED) on 2 different pins it was not working. What I wanted to do was when a press the switch that unit need to light up turning out the any other LEDs if they were ON. Here is a crude code I tried and it wasnt working properly.

Code:
/*
Multiple Digital pin Read and Write
*/

// Pushbutton 1 end to 5V, other end to digital pin(7)
// Same digital pin(7) connected to 10k to ground
// in parallel to 10k connect led positive + 1k resistor to ground
//Same with digital pin (8)

int pushButton_1 = 8;
int pushButton_2 = 7;

int buttonState_1, buttonState_2;

// the setup routine runs once when you press reset:
void setup() {
  // initialize serial communication at 9600 bits per second:
  Serial.begin(9600);
  // Enable pushbutton's pins internal pull up resistor(20k) to 5V:
  pinMode(pushButton_1,INPUT_PULLUP);
  pinMode(pushButton_2,INPUT_PULLUP);
    // Same can be achieved by the following two lines
       // pinMode(pushButton, INPUT);
       // digitalWrite(pushButton,HIGH);
}

// the loop routine runs over and over again forever:
void loop() {
 
  buttonState_1 = digitalRead(pushButton_1);  // Read the push button pin. Usually its zero, when pressed it goes to HIGH or 1
  buttonState_2 = digitalRead(pushButton_2);
  Serial.print("buttonState_1 = "); Serial.println(buttonState_1);  // Printing on serial monitor the status
  Serial.print("buttonState_2 = "); Serial.println(buttonState_2);
  if(buttonState_1==1)  // When button is pressed
  {
    //digitalWrite(pushButton_2,LOW);
    pinMode(pushButton_2,INPUT_PULLUP);
    pinMode(pushButton_1, OUTPUT);  // Changing to OUTPUT mode creates low impedance path from pin (and deactivates the pullup) it gives +5V which makes LED glow.
   

  } 
  if(buttonState_2==1)
  {
    //digitalWrite(pushButton_1,LOW);
    pinMode(pushButton_1,INPUT_PULLUP);
    pinMode(pushButton_2, OUTPUT);
   
  }
  delay(50);       
}



Can anyone please help me figure out the problem? Is it a code issue or a schematic issue or is it just plain impossible do with arduino?

New code and circuit here : http://arduino.cc/forum/index.php/topic,148314.msg1116872.html#msg1116872
32  Using Arduino / Programming Questions / Re: How can I mask the individual digits from a integer? on: June 04, 2012, 11:18:37 am
Integer division... 1234/1000 = 1
remainder of 1234/1000 = 234 (U can use % to get remainder)
again divide remainder by 100 to get 2 etc..
Hope u get the idea..
33  Using Arduino / Microcontrollers / Re: ATmega1284P: End to End using 1.0 IDE on: May 30, 2012, 07:41:14 pm
@theloon
You are using MCP1702 regulator. Data sheet says 250 mA Output Current for Output Voltages >= 2.5V
So wont that be a problem when say output pins starts providing more current? Please correct me if I am wrong.. smiley
34  Using Arduino / Microcontrollers / Re: Solving problems with uploading programs to your Arduino on: May 17, 2012, 01:32:41 pm
Good one Nick... smiley Always wanted to know what fuses were and what it does smiley
35  Using Arduino / Microcontrollers / Re: Uploading troubles to 1284p on: May 14, 2012, 04:14:23 am
Idiot... I am an idiot... found the problem I forgot to change the boards to Atmega1284 in IDE last time I uploaded. thats why this time I got sync errors... I was toggling between Duemolanove and Atmega1284 so last time I forgot to change it back... SO new bootloader has actually solved the problem... smiley-grin I am so relieved now!!! smiley-grin
Thanx again for Nick and Crossroads for your helps... smiley
36  Using Arduino / Microcontrollers / Re: Uploading troubles to 1284p on: May 14, 2012, 02:42:26 am
Oh... God!!! Why me???  smiley-cry The issue is back... smiley-sad

Code:
avrdude: stk500_getsync(): not in sync: resp=0x00

and I am back to square one... smiley-sad 
It was fun while it worked... smiley-sad
37  Using Arduino / Microcontrollers / Re: Uploading troubles to 1284p on: May 14, 2012, 02:22:12 am
@ Nick that could have been the problem I guess... Anyways mine is working nicely now... smiley-grin Thanks a lot again...
@ All I would suggest Nick hex file for bootloaders on ATmega1284p smiley
38  Using Arduino / Microcontrollers / Re: Uploading troubles to 1284p on: May 14, 2012, 02:05:19 am
And Nicks bootloader (Working..)

Code:
Atmega chip detector.
Entered programming mode OK.
Signature = 1E 97 05
Processor = ATmega1284P
Flash memory size = 131072
LFuse = FF
HFuse = DE
EFuse = FD
Lock byte = EF
Bootloader in use: Yes
EEPROM preserved through erase: No
Watchdog timer always on: No
Bootloader is 1024 bytes starting at 1FC00

Bootloader:

1FC00: 0F 92 CD B7 DE B7 11 24 84 B7 14 BE 81 FF F1 D0
1FC10: 85 E0 80 93 81 00 82 E0 80 93 C0 00 88 E1 80 93
1FC20: C1 00 86 E0 80 93 C2 00 80 E1 80 93 C4 00 8E E0
1FC30: CA D0 20 9A 26 E0 80 E3 9C EF 31 E0 90 93 85 00
1FC40: 80 93 84 00 36 BB B0 9B FE CF 18 9A A8 95 21 50
1FC50: A9 F7 00 E0 10 E0 EE 24 E3 94 E1 E1 DE 2E F3 E0
1FC60: FF 2E A5 D0 81 34 71 F4 A2 D0 89 83 B2 D0 89 81
1FC70: 82 38 09 F4 8B C0 81 38 11 F4 84 E0 01 C0 83 E0
1FC80: 8F D0 8B C0 82 34 11 F4 84 E1 03 C0 85 34 19 F4
1FC90: 85 E0 A7 D0 82 C0 85 35 91 F4 89 D0 A8 2E BB 24
1FCA0: 86 D0 08 2F 10 E0 10 2F 00 27 0A 29 1B 29 81 2F
1FCB0: 88 1F 88 27 88 1F 8B BF 00 0F 11 1F 6D C0 86 35
1FCC0: 21 F4 84 E0 8E D0 80 E0 DB CF 84 36 09 F0 40 C0
1FCD0: 6E D0 6D D0 C8 2E 6B D0 80 EE 00 30 18 07 18 F4
1FCE0: F8 01 F7 BE E8 95 A1 2C 51 E0 B5 2E 60 D0 F5 01
1FCF0: 81 93 5F 01 CE 16 D1 F7 F0 EE 00 30 1F 07 18 F0
1FD00: F8 01 F7 BE E8 95 65 D0 07 B6 00 FC FD CF F8 01
1FD10: A0 E0 B1 E0 2C 91 30 E0 11 96 8C 91 11 97 90 E0
1FD20: 98 2F 88 27 82 2B 93 2B 12 96 0C 01 E7 BE E8 95
1FD30: 11 24 32 96 82 E0 A0 30 B8 07 61 F7 85 E0 F8 01
1FD40: 87 BF E8 95 07 B6 00 FC FD CF D7 BE E8 95 25 C0
1FD50: 84 37 A9 F4 2C D0 2B D0 B8 2E 29 D0 3A D0 CB 2C
1FD60: 48 01 F4 01 86 91 1C D0 08 94 81 1C 91 1C CA 94
1FD70: C1 F7 0F 5F 1F 4F BA 94 0B 0D 11 1D 0E C0 85 37
1FD80: 39 F4 27 D0 8E E1 0C D0 87 E9 0A D0 85 E0 78 CF
1FD90: 81 35 11 F4 88 E0 17 D0 1C D0 80 E1 01 D0 61 CF
1FDA0: 90 91 C0 00 95 FF FC CF 80 93 C6 00 08 95 80 91
1FDB0: C0 00 87 FF FC CF 80 91 C0 00 84 FD 01 C0 A8 95
1FDC0: 80 91 C6 00 08 95 E0 E6 F0 E0 98 E1 90 83 80 83
1FDD0: 08 95 ED DF 80 32 19 F0 88 E0 F5 DF FF CF 84 E1
1FDE0: DF CF CF 93 C8 2F E3 DF C1 50 E9 F7 F2 DF CF 91
1FDF0: 08 95 80 E0 E8 DF EE 27 FF 27 09 94 FF FF FF FF
1FE00: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FE10: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FE20: 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FE30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FE40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FE50: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FE60: 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FE70: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FE80: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FE90: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FEA0: 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FEB0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FEC0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FED0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FEE0: 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FEF0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FF00: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FF10: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FF20: 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FF30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FF40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FF50: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FF60: 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FF70: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FF80: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FF90: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FFA0: 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FFB0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FFC0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FFD0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FFE0: 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
1FFF0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF

MD5 sum of bootloader = 77 2F 81 F1 7F 1E 46 93 97 B4 54 23 4C 44 72 68

First 256 bytes of program memory:

0: 0C 94 85 00 0C 94 A5 00 0C 94 A5 00 0C 94 A5 00
10: 0C 94 A5 00 0C 94 A5 00 0C 94 A5 00 0C 94 A5 00
20: 0C 94 A5 00 0C 94 A5 00 0C 94 A5 00 0C 94 A5 00
30: 0C 94 A5 00 0C 94 A5 00 0C 94 A5 00 0C 94 A5 00
40: 0C 94 A5 00 0C 94 A5 00 0C 94 C1 00 0C 94 A5 00
50: 0C 94 A5 00 0C 94 A5 00 0C 94 A5 00 0C 94 A5 00
60: 0C 94 A5 00 0C 94 A5 00 0C 94 A5 00 0C 94 A5 00
70: 0C 94 A5 00 0C 94 A5 00 0C 94 A5 00 0C 94 A5 00
80: 0C 94 A5 00 0C 94 A5 00 0C 94 A5 00 00 00 21 00
90: 24 00 27 00 2A 00 00 00 22 00 25 00 28 00 2B 00
A0: 00 00 20 00 23 00 26 00 29 00 02 02 02 02 02 02
B0: 02 02 04 04 04 04 04 04 04 04 03 03 03 03 03 03
C0: 03 03 01 01 01 01 01 01 01 01 01 02 04 08 10 20
D0: 40 80 01 02 04 08 10 20 40 80 01 02 04 08 10 20
E0: 40 80 01 02 04 08 10 20 40 80 00 00 00 01 02 00
F0: 08 09 00 00 00 00 04 03 07 06 00 00 00 00 00 00

Quote
It is the file optiboot_atmega1284p.hex from maniacbug's GitHub page. Slightly modified to change some of the consecutive 0xFF bytes to be 0x00 because of the problem with uploading a lot of consecutive 0xFFs to the Uno using the standard Optiboot (known bug there).

Maybe this was the problem?? or Fuse settings difference was also there in Lock byte and Flash memory sizes smiley
39  Using Arduino / Microcontrollers / Re: Uploading troubles to 1284p on: May 14, 2012, 02:03:53 am
Board detector output files Comparison

With Maniac bugs bootloader
Code:
Atmega chip detector.
Entered programming mode OK.
Signature = 1E 97 05
Processor = ATmega1284P
Flash memory size = 262144
LFuse = FF
HFuse = DE
EFuse = FD
Lock byte = CF
Bootloader in use: Yes
EEPROM preserved through erase: No
Watchdog timer always on: No
Bootloader is 1024 bytes starting at 3FC00

Bootloader:

3FC00: 0F 92 CD B7 DE B7 11 24 84 B7 14 BE 81 FF F1 D0
3FC10: 85 E0 80 93 81 00 82 E0 80 93 C0 00 88 E1 80 93
3FC20: C1 00 86 E0 80 93 C2 00 80 E1 80 93 C4 00 8E E0
3FC30: CA D0 20 9A 26 E0 80 E3 9C EF 31 E0 90 93 85 00
3FC40: 80 93 84 00 36 BB B0 9B FE CF 18 9A A8 95 21 50
3FC50: A9 F7 00 E0 10 E0 EE 24 E3 94 E1 E1 DE 2E F3 E0
3FC60: FF 2E A5 D0 81 34 71 F4 A2 D0 89 83 B2 D0 89 81
3FC70: 82 38 09 F4 8B C0 81 38 11 F4 84 E0 01 C0 83 E0
3FC80: 8F D0 8B C0 82 34 11 F4 84 E1 03 C0 85 34 19 F4
3FC90: 85 E0 A7 D0 82 C0 85 35 91 F4 89 D0 A8 2E BB 24
3FCA0: 86 D0 08 2F 10 E0 10 2F 00 27 0A 29 1B 29 81 2F
3FCB0: 88 1F 88 27 88 1F 8B BF 00 0F 11 1F 6D C0 86 35
3FCC0: 21 F4 84 E0 8E D0 80 E0 DB CF 84 36 09 F0 40 C0
3FCD0: 6E D0 6D D0 C8 2E 6B D0 80 EE 00 30 18 07 18 F4
3FCE0: F8 01 F7 BE E8 95 A1 2C 51 E0 B5 2E 60 D0 F5 01
3FCF0: 81 93 5F 01 CE 16 D1 F7 F0 EE 00 30 1F 07 18 F0
3FD00: F8 01 F7 BE E8 95 65 D0 07 B6 00 FC FD CF F8 01
3FD10: A0 E0 B1 E0 2C 91 30 E0 11 96 8C 91 11 97 90 E0
3FD20: 98 2F 88 27 82 2B 93 2B 12 96 0C 01 E7 BE E8 95
3FD30: 11 24 32 96 82 E0 A0 30 B8 07 61 F7 85 E0 F8 01
3FD40: 87 BF E8 95 07 B6 00 FC FD CF D7 BE E8 95 25 C0
3FD50: 84 37 A9 F4 2C D0 2B D0 B8 2E 29 D0 3A D0 CB 2C
3FD60: 48 01 F4 01 86 91 1C D0 08 94 81 1C 91 1C CA 94
3FD70: C1 F7 0F 5F 1F 4F BA 94 0B 0D 11 1D 0E C0 85 37
3FD80: 39 F4 27 D0 8E E1 0C D0 87 E9 0A D0 85 E0 78 CF
3FD90: 81 35 11 F4 88 E0 17 D0 1C D0 80 E1 01 D0 61 CF
3FDA0: 90 91 C0 00 95 FF FC CF 80 93 C6 00 08 95 80 91
3FDB0: C0 00 87 FF FC CF 80 91 C0 00 84 FD 01 C0 A8 95
3FDC0: 80 91 C6 00 08 95 E0 E6 F0 E0 98 E1 90 83 80 83
3FDD0: 08 95 ED DF 80 32 19 F0 88 E0 F5 DF FF CF 84 E1
3FDE0: DF CF CF 93 C8 2F E3 DF C1 50 E9 F7 F2 DF CF 91
3FDF0: 08 95 80 E0 E8 DF EE 27 FF 27 09 94 FF FF FF FF
3FE00: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FE10: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FE20: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FE30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FE40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FE50: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FE60: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FE70: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FE80: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FE90: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FEA0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FEB0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FEC0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FED0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FEE0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FEF0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FF00: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FF10: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FF20: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FF30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FF40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FF50: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FF60: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FF70: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FF80: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FF90: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FFA0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FFB0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FFC0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FFD0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FFE0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FFF0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF

MD5 sum of bootloader = 71 DD C2 84 64 C4 73 27 D2 33 01 1E FA E1 24 4B

First 256 bytes of program memory:

0: 0C 94 87 00 0C 94 B2 00 0C 94 B2 00 0C 94 B2 00
10: 0C 94 B2 00 0C 94 B2 00 0C 94 B2 00 0C 94 B2 00
20: 0C 94 B2 00 0C 94 B2 00 0C 94 B2 00 0C 94 B2 00
30: 0C 94 B2 00 0C 94 B2 00 0C 94 B2 00 0C 94 B2 00
40: 0C 94 B2 00 0C 94 B2 00 0C 94 7B 12 0C 94 B2 00
50: 0C 94 66 14 0C 94 FC 14 0C 94 B2 00 0C 94 B2 00
60: 0C 94 B2 00 0C 94 B2 00 0C 94 B2 00 0C 94 B2 00
70: 0C 94 9F 14 0C 94 49 15 0C 94 B2 00 0C 94 B2 00
80: 0C 94 B2 00 0C 94 B2 00 0C 94 B2 00 00 00 21 00
90: 24 00 27 00 2A 00 00 00 22 00 25 00 28 00 2B 00
A0: 00 00 20 00 23 00 26 00 29 00 02 02 02 02 02 02
B0: 02 02 04 04 04 04 04 04 04 04 03 03 03 03 03 03
C0: 03 03 01 01 01 01 01 01 01 01 01 02 04 08 10 20
D0: 40 80 01 02 04 08 10 20 40 80 01 02 04 08 10 20
E0: 40 80 01 02 04 08 10 20 40 80 00 00 00 01 02 00
F0: 08 09 00 00 00 00 04 03 07 06 00 00 00 00 00 00

continued onto next post (Char limit)  smiley
40  Using Arduino / Microcontrollers / Re: Uploading troubles to 1284p on: May 14, 2012, 02:01:06 am
@Nick Was comparing the chip fuse with maniacbugs (which I did earlier) and yours

Maniacbug
Code:
Atmega fuse calculator.
Written by Nick Gammon.
Entered programming mode OK.
Signature = 0x1E 0x97 0x05
Processor = ATmega1284P
Flash memory size = 262144
LFuse = 0xFF
HFuse = 0xDE
EFuse = 0xFD
Lock byte = 0xCF
OCD Enable.............................. [ ]
JTAG Enable............................. [ ]
Enable Serial (ICSP) Programming........ [X]
Watchdog Timer Always On................ [ ]
Preserve EEPROM through chip erase...... [ ]
Boot into bootloader.................... [X]
Divide clock by 8....................... [ ]
Clock output............................ [ ]
Bootloader size: 1024 bytes.
Start-up time: SUT0: [X]  SUT1: [X] (see datasheet)
Clock source: low-power crystal.
Brownout detection at: 2.7V.

Nicks Bootloader
Code:
Atmega fuse calculator.
Written by Nick Gammon.
Entered programming mode OK.
Signature = 0x1E 0x97 0x05
Processor = ATmega1284P
Flash memory size = 131072
LFuse = 0xFF
HFuse = 0xDE
EFuse = 0xFD
Lock byte = 0xEF
OCD Enable.............................. [ ]
JTAG Enable............................. [ ]
Enable Serial (ICSP) Programming........ [X]
Watchdog Timer Always On................ [ ]
Preserve EEPROM through chip erase...... [ ]
Boot into bootloader.................... [X]
Divide clock by 8....................... [ ]
Clock output............................ [ ]
Bootloader size: 1024 bytes.
Start-up time: SUT0: [X]  SUT1: [X] (see datasheet)
Clock source: low-power crystal.
Brownout detection at: 2.7V.


Lock byte and Flash memory sizes are different..
41  Using Arduino / Microcontrollers / Re: Uploading troubles to 1284p on: May 14, 2012, 01:36:56 am
@nick
Freaking Hell!!! Ur bootloader hex file worked  smiley-lol
did 10 uploads no troubles watsover.... smiley-grin U are real life saver... smiley-grin U solved the thing which was driving me nuts...
Did u change the bootloader?

One more thing... smiley
Quote
Now we'll install the bootloader upload sketch onto the Uno and run it (set the serial monitor to 115200 baud).

http://gammon.com.au/Arduino/Atmega_Board_Detector.zip

Plz edit the given link with the bootloader one in your tutorial page... smiley
42  Using Arduino / Microcontrollers / Re: Uploading troubles to 1284p on: May 14, 2012, 12:43:29 am
Good work nick... smiley Seems you to have got it working properly..  smiley Any troubles uploading til now?
I seem to have done all of these stuff mentioned earlier but still my problem still remains... smiley-sad Anyways let me try doing it ditto as u mentioned in your tutorial...
@ nick
Tried uploading larger sketches? and Is the bootloader uploaded by your https://github.com/nickgammon/arduino_sketches/tree/master/Atmega_Board_Programmer same as the one provided by maniacbug?


Sorry Wrong link edited... smiley
43  Using Arduino / Project Guidance / Re: Hollywood Transporter 3 problem on: May 11, 2012, 09:13:40 am
Wont the range be affected say if the device is placed inside luggage or so? Distance fluctuation might be problematic right?
44  Using Arduino / Project Guidance / Hollywood Transporter 3 problem on: May 11, 2012, 08:47:45 am
Just had one of those crazy ideas again...  smiley-mr-green
If u have watched transporter 3 movie, u would know of device put in the actors wrists.
From wiki http://en.wikipedia.org/wiki/Transporter_3  smiley-grin
Quote
Both have a device attached to their wrists which is wired to explode if the person concerned strays more than 75 feet (22.86 metres) away from the car

I was thinking in the same lines whether its possible to create such a device in real life? if its possible it could solve lots of problems in real life say in case of luggage theft or so. (Say the distance fine tuned to around 5m from the person carrying the luggage)
Is something like this possible? If so what sensors can be used?
I was thinking RF txr and a reciever but there are issues of distances involved right?
Are there any sensor available which does non LOS distance measurements?
If this can materialise it would be one helpful social project around where I live (in regards to luggage thefts in train... smiley-grin )

Any ideas for a almost hypothetical project? smiley-grin
45  Using Arduino / Microcontrollers / Re: Uploading troubles to 1284p on: May 11, 2012, 02:13:36 am
Thanx smiley
Tried it out... Still getting not in sync errors... smiley-sad
Pages: 1 2 [3] 4 5 ... 16