SVAB Hydraulik HECR II Thumb Roller

hippy

Technical Support
Staff member
#1
Just in case anyone else comes across one of these, happens to be chopping a backhoe or excavator in their yard ...
Code:
; SVAB Hydraulik HECR II Hall-Effect Proportional Thumb Roller
;                         _________
;                        /         |
;           5V --.--    |___       |\           U = 4.5V
;                |          |      | \    Up    D = 0.5V
;                `--------O |      |  |  ____
;    UP ADC <-------------O |      |  |  \  /   U = 2.5V
;  DOWN ADC <-------------O |      |  |   \/    D = 2.5V
;                .--------O |      |  |
;                |       ___|      | /   Down   U = 0.5V
;           0V --^--    |          |/           D = 4.5V
;                        \_________|
;
; http://svab.se/en/produkter/l8/tumrulle-hecr
; http://svab.se/download/en/products/joysticks/thumb-roller/Data_sheet_HECRII_C.pdf

#Picaxe 20X2
#Terminal 9600

#Define UP_ADC B.0
#Define DN_ADC B.1

Symbol up    = w1
Symbol down  = w2
Symbol added = w3
Symbol last  = w4

Do
  ReadAdc UP_ADC, up
  ReadAdc DN_ADC, down
  If up <> last Then
    added = up + down
    SerTxd( "U=", #up,    TAB    )
    SerTxd( "D=", #down,  TAB    )
    SerTxd( "A=", #added, CR, LF )
    last = up
  End If
  Pause 100
Loop
 
Top