PCB board program issue-Arduino mega board replica

Thread Starter

saifudeen rizal

Joined Jun 5, 2018
50
Hai.,

I have made my own Mega board with the the spec I need and i have checked the pcb it is perfect and there is no pwr issues either .,

The problem what i am facing is.,
The program is dumping on the board but the Board doesnt work.,
For example.,

I have dumped the basic arduino blink program .,The program successfully uploads but the LED doesnt blink.,

Do u guyz have any idea what would be the problem?!

Thanks in Advance.,

-Saif
 

Thread Starter

saifudeen rizal

Joined Jun 5, 2018
50
C:
void setup()
{
  pinMode(45, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(45, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(45, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}


I have used the 45th pin as my Dig. pin so i have given that.,
 

ericgibbs

Joined Jan 29, 2010
18,766
hi,
This is Arduino Blink prog.
Pin #6 is the BuiltIn LED
E

C:
 Blink
  Turns on an LED on for one second, then off for one second, repeatedly.

  Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
  it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
  the correct LED pin independent of which board is used.
  If you want to know what pin the on-board LED is connected to on your Arduino model, check
  the Technical Specs of your board

  This example code is in the public domain.

  modified 8 May 2014
  by Scott Fitzgerald

  modified 2 Sep 2016
  by Arturo Guadalupi

  modified 8 Sep 2016
  by Colby Newman
*/


// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}
 
Last edited by a moderator:

Thread Starter

saifudeen rizal

Joined Jun 5, 2018
50
hi,
This is Arduino Blink prog.
Pin #6 is the BuiltIn LED
E
Code (C):
Blink
Turns on an LED on for one second, then off for one second, repeatedly.

Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
the correct LED pin independent of which board is used.
If you want to know what pin the on-board LED is connected to on your Arduino model, check
the Technical Specs of your board

This example code is in the public domain.

modified 8 May 2014
by Scott Fitzgerald

modified 2 Sep 2016
by Arturo Guadalupi

modified 8 Sep 2016
by Colby Newman
*/


// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}/Code C:

I have checked and gave the correct pin for the program.,
The program uploads but my LED doesnt blink.,
 

ScottWang

Joined Aug 23, 2012
7,397
I just change the pin 45 to 5 and used Arduino LEONARDO to try and it is blinking slowly.

If you change to some other pins to try and they still don't blinking then the problem is on the circuit or pcb layout.
 
Last edited:

Thread Starter

saifudeen rizal

Joined Jun 5, 2018
50
I just change the pin 45 to 5 and used Arduino LEONARDO to try and it is blinking slowly.

If you change to some other pins to try and they still don't blinking then the problem is on the circuit or pcb layout.

OH if thats blinks slowly is there a issue a board or anything?
oh...!

willl check that
 

Thread Starter

saifudeen rizal

Joined Jun 5, 2018
50
I just change the pin 45 to 5 and used Arduino LEONARDO to try and it is blinking slowly.

If you change to some other pins to try and they still don't blinking then the problem is on the circuit or pcb layout.

Is there a chance that u guyz could help me to findout what would be the problem?
 

ScottWang

Joined Aug 23, 2012
7,397
Is there a chance that u guyz could help me to findout what would be the problem?
Please recheck the circuit first and then the pcb layout, when you check the pcb layout or just wiring then you should be use the multimeter at the Ohm range to measure each wiring, I will check the circuit.

Please upload the pcb.
 

Thread Starter

saifudeen rizal

Joined Jun 5, 2018
50
Hai.,

as u said .,there was a issue on pushbutton only.,

Normally it should be from high to low but here it doesn't .,
I think may be this can be a problem for this issue.,

-saif
 

bertus

Joined Apr 5, 2008
22,270
Hello,

When I look at the schematic I see the following things:
1) Pin 45 (RXD1/INT2) are (what I think inputs) is connected to the pin 10 of the 232 wich is also an input.
2) Pin 46 (TXD1/INT3) , in case of TXD1 the pin is an output, in case of INT3 the pin is input, is connected to pin 9 of the 232 wich is an output.
As Pin 45 is always input, the led will not blink.

Bertus
 
Top