mandulaj / PZEM-004T-v30

Arduino library for the Updated PZEM-004T v3.0 Power and Energy meter
MIT License
259 stars 109 forks source link

'Serial3' was not declared in this scope #10

Closed SimoneProvasio closed 4 years ago

SimoneProvasio commented 4 years ago

Hi, I copied and pasted the code, but the error console is " 'Serial3' was not declared in this scope ".. i using: Arduino uno, pzem-004T-v30

Thank you!

image

sergiocntr commented 4 years ago

Serial3 is not available on Arduino Uno,you can use Serial instead. You can follow two routes,the first ,use hardware serial,second use software serial. I prefer to leave hardware serial for debugging and software serial for pzem interfacing. Each two are easy to implement.

SimoneProvasio commented 4 years ago

Oh thanks for the reply. Do you have some links to explain this to me? Thanx so much!

sergiocntr commented 4 years ago

You are welcome! That so easy....don't be scared ! Personal thoughts and sorry to say that there are tons of tutorial ,instruction , diy about that and this is not the right place where to ask this question. I know that first steps are hard but you have to do by yourself,I hope you understand. Look on youtube, instructables...You'll find what you are looking for and much more else!!!

SimoneProvasio commented 4 years ago

I don't want a link with a code to copy and paste, I wanted a string to search on google! I wanted an explanation, not the code.

sergiocntr commented 4 years ago

"Software serial arduino uno" maybe? Have you tried? Is this so hard? Explain what? The hot water?

SimoneProvasio commented 4 years ago

I tried to search but it didn't specifically deal with the topic ... I'm sorry I'll try better

mandulaj commented 4 years ago

I see you guys figured it out. Closing this