User manual

temperature value to the PC. The circuit remains the same, but
the program is changed as follows:
001 Serial.flush()
002 highbyte=ADC_raw/256
003 lowbyte=ADC_raw%256
004 Serial.write(highbyte)
005 Serial.write(lowbyte)
006 crc=170^highbyte^lowbyte
007 Serial.write(crc)
As you can see, we transfer the temperature value like the
measured value of the voltage in the digital USB-Voltmeter. You
can find the complete program on the enclosed CD-ROM. It is called
»TEMP_PLOT“. The program code does not need to be listed beyond
this, because it corresponds to the predecessor program.
However, some things have changed in theVB.NET-program. It has
been expanded by a graphical output. For this, a control element
with the name »AutoRedraw« has been programmed that draws a
continuous line in the X and Y directions, depending on the input
variable, and serves as a temperature plotter. This program is
enclosed as source code and can be used for your own experiments.
A detailed description of the drawing functions would, however,
exceed the scope of this learning package. Relevant websites such
as www.vb-paradise.de and VB.NET-text books can be used to learn
more about VB.NET-programming.
WEBSYNCHRONOUS
CLOCK
We have already programmed a clock in this learning package.
Since it is not very precise and subject to a very large deviation
in the course of the operating time, we now program a
web-synchronous clock, knowing about the serial transmission
between PC and Arduino™. It is websynchronous, because the
Windows time is by default automatically reconciled with an
online time server in the background. In this VB.NET-program,
we will now send the time of the PC to Arduino™ and output it
on the LCD. The VB.NET-program is enclosed as an executable EXE
file and as source code.