Current measurement

Current Measurement with Hall-sensor WCS1800 and picaxe 08M2

’Propeller generator

’Current measurement with Picaxe 08m2 and hall-I-sensor WCS1800-8750

’can use in propellor generator  sailing yachts or windgenerators

’OLED display 20×4 or 16×2

   pause 1000                           ’start  pause

   serout C.1,N2400,(254,1)               ’display clean empty

   serout C.1,N2400,(254,129,”Prop generator   a”) ’write text to display

Main:

   readadc10 C.4,w1                       ’measurement    

   w1=15-w1                           ’negative will changes to positive  

   b2=b2/10                           ’given change to current A

   if b2>17 then                       ’remove unwanted numbers out

      b2=0

      endif

   w11=b2

   bintoascii w11,b14,b15,b16,b17,b18           ’remove to ascii    

   if b17=48 then                       ’delete extra zeros out

      b17=32

      endif

   serout C.1,N2400,(254,144,b17,b18)           ’show currents on display

   ’debug

   pause 200

   goto main