Thursday, February 11, 2021

learn this month



image source: https://businessdiary.com.ph/2464/how-to-debone-a-milkfish-deboned-bangus/



 

Saturday, February 6, 2021

old project

Just posting this here for record purposes.

This code will break down a decimal value to individual digits by getting its base, e.g. 125 (decimal value) to 1, 2, and 5.



valin    equ 0x1C
hundreds equ 0x1D
hpasses  equ 0x1E
tpasses  equ 0x1F
tens     equ 0x0C
ones     equ 0x20

start     movlw 0x1F  ;example value coming from lm35 to
        movwf valin      ;adc0804 and finally to 16f84
        movf  valin,w
        movwf hundreds

mainhundreds movlw 0x64             
  subwf hundreds
  btfsc STATUS, C
  goto  counthundred
        movlw 0x64
        addwf hundreds
starttens movf  hundreds,w
        movwf tens
tenspoint movlw 0x0A
        subwf tens
        btfsc STATUS, C
        goto counttens
        movlw 0x0A
        addwf tens
        movf  tens,w        
        movwf ones
        return
counthundred movlw 0x01
        addwf hpasses
        goto mainhundreds
counttens movlw 0x01
        addwf tpasses
        goto tenspoint
























 


end



 

rice cooker shematic diagram

Photo credit to that guy in youtube, however I already forgot the link and or his name... sorry man and thanks if ever you ran into this

Note to self need addressed: noticed some strange connection going on with the "cook" bulb the way they were connected; I might do more research about newer bulbs able to light up when there was current flowing through them (paralleled not series [like anode side of diode facing load]); because this is not how "other" bulbs/LED operate from conventional standpoint. Either my eyes were trying to trick me because I might be really tired, or there're actually bulbs like that NOW -out in the market. I am very skeptic. But it's a hanabishi cooker. I'll post the photo of the pcb soon ... I'm seeing things that are not there :D

          ---------------------------------------------
          |                                                          |
keep warm bulb   ___  cook bulb                |
      |                      |         |                              |
      |                      |         |---------------------- |
      |                  magnetic switch                   |
      |                                                               |    
    hot                                                             |     
                                                                      |
      ________________________________|_

      neutral



I will report here once the answer became known to me or perhaps you knew the explanation and that you'd be very kind to share this to me.

Best regards,
Hans.