Skip to content

Latest commit

 

History

History
88 lines (78 loc) · 2.79 KB

File metadata and controls

88 lines (78 loc) · 2.79 KB

Scale_Simulator

Mock a scale via COM-Port (Arduino)

A simple simulator to test COM-Port applications. Several things can be setup on the device, like:

  • 12 different Modes
  • Min./Max. values
  • No. of decimal places
  • Baudrate, Parity, ect.
  • Delimeter
  • Start-/Endchar

Hardware

  • Arduino Duemilanove
  • LCD Keypad Shield

Libraries

Menu

UP & Down: changes the value.

Select: Confirms the current menu entry or sends the command

Left: Go back

  • Listen (Waits for command)
  • Send (Shows last command to send)
  • Setup
    • Values
      • Min. places
      • Max. places
      • Min. dec. places
      • Max. dec. places
    • Line End
      • None
      • CarriageReturn
      • Linefeed
      • CR+LF
      • LF+CR
    • Start/End
      • None
      • STX / ETX
      • < / >
    • Delimiter
      • . (Dot)
      • , (Comma)
    • Com-Port Baud
    • Com-Port Setup
    • Send Bytedelay
      • Maximum random number between sending single bytes (0 = Off/send all at once)

Commands

  • S, SI, SIR, SR, SX, SXI, SXI, RN, RM, FP0, GB1, P, FP
  • D -> Prints everything followed on the display (DHello World!)

Sample Outputs

S S     4.08 kg
SI A011        8.1 kg   A012        0.0 kg   A013        8.1 kg   A310        A311                                          A312                 A019
SIR A011        6.8 kg   A012        3.7 kg   A013        3.1 kg   A310        A311                                          A312                 A019
SR A011        7.7 kg   A012        4.3 kg   A013        3.4 kg   A310        A311                                          A312                 A019
SX A011        6.1 kg   A012        3.0 kg   A013        3.1 kg   A310        A311                                          A312                 A019
SXI A011        4.6 kg   A012        3.0 kg   A013        1.6 kg   A310        A311                                          A312                 A019
RN:
000013.16.1813:37   11    8.07    7.04    1.03kg T 001   45678
RM:
000013.16.1813:37   11    5.01    5.01    0.00kg T 001   45678
 FP0         1.01 kg         0.00 kg         1.01 kg
GB1:
 1.02<GB>
P:
  Date:    18.05.03
  Time:    16:28:42
  Gross      2.02kg
FP ;     54993;13.06.2021;13:37:11;1;1;       0;kg;     4.07;     1.06;     4.07;
<FP>

Arduino Duemilanove - LCD Keypad Shield

3D printed case from Thingiverse: 3D printed Case