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
pert
June 22, 2021, 7:31am
2
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:
Arduino core for ATtiny 1634, 828, x313, x4, x41, x5, x61, x7 and x8 - GitHub - SpenceKonde/ATTinyCore: Arduino core for ATtiny 1634, 828, x313, x4, x41, x5, x61, x7 and x8
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
PaulRB
June 22, 2021, 7:33am
3
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
system
Closed
October 21, 2021, 4:46am
6
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.