Hi, im making a school project with arduino uno r3, where i put a visual terminal show the temperature and luminousity showing in the screen.
I put it on the loop, and it shows like "Temperature: 30 (ln) Luminosity: 300 (ln)Temperature: 30 (ln) Luminosity: 300 (ln)Temperature: 30 (ln) Luminosity: 300 (ln) (...)".
I was wondering if theres any way to make only the values change and not the whole scene repeating. I thought i could just clear de visual terminal and rewrite so it appears only the numbers a re changing, but i didn't find any answers on how to clear a visual terminal. Can someone help?
Don't use the Serial monitor, use a terminal emulator, and ANSI controls (or simply carriage-return)
Is it easier to use a LCD display?
Define "easier"
Also, I'm using Proteus 8 Professional***
I have no idea what that is.
I mean, does the LiquidCrystal library has easier functions to use like clear screen?
Yes, of course
But you'd have to wire up an LCD
circuit software
Oxymoron?
thanks
you are on a lonesome luxury island if you use proteus professional.
If everything of your project has been finished. Will it still be just a simulation
or will it be real hardware?
I'm planning on do a real one. I'm basically doing a smart greenhouse whit temperature and light sensors.
Change to WOKWI as to WOKWI everybody can have free access.
Though not everybody likes simulators.
best regards Stefan
Edit: about oxymoron: If you change from simulator to real world hardware
bear in mind that you will need another 4 weeks to learn all the pitfalls of real-world electronics
like onewire only works good in linetopology. I²C-wires should be kept pretty short or use wide-distance tranceiver chips. Use an extra power-supply for relays etc.
Really kind! Thanks a lot.
not kind. Just gind kindly found be qoogling
you could build a GUI, e.g. using Visual Studio Community programming in C#, VB, etc or Netbeans IDE programming in Java
there are usually libraries which support serial port access (COM ports under Windows) which can communicate with an Arduino, ESP32, etc
The cheap workaround is to use 115200 baud to have it real quick and then have a for-loop that prints out 50 empty lines. This will have effect of "clearing" the screen.
After the 50 empty lines print the values.
best regards Stefan
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.