Burnt Arduino Uno?
hi! created project, , lcd , servo started glitch, , error written on lcd, flashing pins 3 , 4 switched... sorry don't remember said. anyways, after that, arduino hot, not smoking. unplugged power wouldn't worse. there wrong code or short circuit? if was, how can tell how bad was?
sorry if wrong forum section... fit under few...
also, here code, no errors:
thanks! not in rush!
jonah l
sorry if wrong forum section... fit under few...

also, here code, no errors:
code: [select]
#include <servo.h>
#include <liquidcrystal.h>
liquidcrystal lcd(12, 11, 5, 4, 3, 2);
int temp;
float f = 0;
float deg = 0;
servo myservo;
void setup()
{
lcd.begin(16, 2);
myservo.attach(a5);
serial.begin(9600);
pinmode(a0, input);
}
void loop()
{
temp = analogread(a0);
f = map (temp, 0.0, 1000.0, -52.0, 820.0);
serial.println(f);
delay(1000);
lcd.print("the temp is:");
delay(1000);
lcd.setcursor(0,1);
lcd.print(f);
lcd.print(" degrees f");
if (f > 50 && f < 90)
{
myservo.write(90);
}
else if (f < 59)
{
myservo.write(0);
}
else
{
myservo.write(179);
}
delay(200);
lcd.setcursor(0,0);
}
thanks! not in rush!
jonah l
how powering servo?
Arduino Forum > Using Arduino > Installation & Troubleshooting > Burnt Arduino Uno?
arduino
Comments
Post a Comment