So I have simple PCB, there is some power section (I need 12V and 5V), and the rest mostly is just to filter noise and separate PWM output.
http://s21.postimg.org/my0a9s9g7/Clipboard03.jpg
I made this schematic from my breadboards, whole project is working without any issues, but on PCB I can't get it working.
I cut whole software just to few lines to test outputs and LCD but LCD is in half black and on bottom empty (I can get it to state where I can see something, after regulation there are 2 states, black boxes or empty boxes).
Also Output isn't working at all. I tried to set high/low with some delay so I can see if it's working and I checked with oscilloscope that nothing is showing on.
#include <LiquidCrystal.h>
LiquidCrystal lcd(4, 5, 6, 7, 8 ,9);
int BACK = 12;
void setup(){
pinMode(BACK,OUTPUT);
lcd.begin(16,2);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("HIGH");
}
void loop(){
digitalWrite(BACK, HIGH);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("TEST1");
delay(1500);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("TEST2");
delay(1500);
lcd.clear();
lcd.setCursor(1,0);
lcd.print("TEST3");
digitalWrite(BACK, LOW);
delay(1500);
lcd.clear();
lcd.setCursor(1,0);
lcd.print("TEST4");
delay(1500);
}
If I will just use this uC on breadboard I will get HIGH/LOW on pin 12, but when I will install it on PCB it won't change states, it is just flat line on oscilloscope.
I'm sure that I made an error on PCB, but I have no idea where as I just copied my test project from breadboards.
I'm milling PCB on professional 4axis CNC, preparing code with Eagle Gcode script, and I already tested several PCB's...
Here is PCB