Serial.begin(9600); 'Serial' was not declared in this scope attiny85

i'm just getting started with attiny85

i want to make 4 relay ir base project with attiny85 but i'm getting error while debugging

i got an error of
'Serial' was not declared in this scope

void setup()
{
  Serial.begin(9600);
}
void loop()
{
  Serial.print("hello world");
}

i know the code is not for ir but in ir code same error showing so i make an basic code to check what is exact issu is so i found problem with serial.begin(9600) ;
help me out how can i solve this particular problem ....

thank you

The ATtiny85 doesn't have a hardware serial port, so this makes sense.

ATTinyCore provides a Serial object that does software serial, so you might like that one:

Otherwise, it will be helpful if you provide more information about what you're doing. How do you expect to get the serial communication?

1 Like

Which Arduino core for tiny 85 are you using? I would recommend

https://github.com/SpenceKonde/ATTinyCore

Edit: @pert beat me to it.

1 Like

I'm making an ac dimmer base on ir remote control using triac and optocoupler and 3 relays i want to use serial for ir remote

If ir value match with serial monito value than turn on relay or diming the light

it's solve my problem thank you so much

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.