Announcement

Collapse
No announcement yet.

PIC16F628 Microcontroller with adjustable controls and LCD

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PIC16F628 Microcontroller with adjustable controls and LCD

    Hi All,

    I managed to write the code for a PIC16F628A running at 20MHz that can generate variable parameters for the pulses in Hammerhead circuits. I can adjust everything with a resolution of 1us. Pulse Width for coil is adjustable from 2us to 255us, the first sample can be taken after 2...255us, the two sample widths are adjustable from 2...255us. The Second Delay (SD) is adjustable between 5 to 65535 us and it is automatically adjusted when changing some parameters to keep Pulse Repetition Interval constant.
    The adjustments are made from four push-buttons and there is a self-repetition rate and variable incrementing in time (it increments in units, tens and hundreds). It also stores the set values to the EEPROM, so that they will automatically appear at startup.

    Here are some photos. I will build a board for it at some stage later, I am really curious how it will perform.

    Regards,
    Nicolae
    Attached Files

  • #2
    Nice work
    good clean pulses,
    please keep us posted.
    I am very envious of you fellas that can write code
    and you can get them at Jaycar.

    Comment


    • #3
      Nicolae,
      congratulations for the excellent work.

      Tinkerer

      Comment


      • #4
        Originally posted by Tinkerer View Post
        Nicolae,
        congratulations for the excellent work.

        Tinkerer
        Hi Tinkerer,

        Thank you very much. If you think it would be useful for you, I can send you the hex file (on the condition not to be distributed).

        Regards,
        Nicolae

        Comment


        • #5
          Originally posted by nick_f View Post
          Hi All,

          I managed to write the code for a PIC16F628A running at 20MHz that can generate variable parameters for the pulses in Hammerhead circuits. I can adjust everything with a resolution of 1us. Pulse Width for coil is adjustable from 2us to 255us, the first sample can be taken after 2...255us, ......................

          Regards,
          Nicolae
          Nice work. But i not see a schemat (circuit). If I am right in version hh2 all parameters is not adjustable. Which LCD You use? If is possible send for me full schemat and code (for C or assembler). 45 jears ago I was programmer in assembler, later in PLI, Delphi, Fortran etc. May be I can learn programming for PIC.
          Have a nice weekend.
          I. Wus
          Last edited by cko47; 10-28-2012, 09:31 AM. Reason: change text

          Comment


          • #6
            Originally posted by cko47 View Post
            Nice work. But i not see a schemat (circuit). If I am right in version hh2 all parameters is not adjustable. Which LCD You use? If is possible send for me full schemat and code (for C or assembler). 45 jears ago I was programmer in assembler, later in PLI, Delphi, Fortran etc. May be I can learn programming for PIC.
            Have a nice weekend.
            I. Wus
            Additional here is placed hex code for my variant (pic16f88 MCU)
            Attached Files

            Comment


            • #7
              Hi Wus,

              I still need to implement some features in the code and test it on a real board. I don't have the schematics anymore, I will have to get it out from the actual circuit.
              Unfortunately, it will be some time until I will have the code ready. I had in mind to finish before Dec 2012, but until now I didn't even start the changes.
              My intention is not to release the code, but to sell the completed microcontroller for a small fee, perhaps even a PCB as well. But it's still too far from that stage.

              Regards,
              Nicolae


              Originally posted by cko47 View Post
              Nice work. But i not see a schemat (circuit). If I am right in version hh2 all parameters is not adjustable. Which LCD You use? If is possible send for me full schemat and code (for C or assembler). 45 jears ago I was programmer in assembler, later in PLI, Delphi, Fortran etc. May be I can learn programming for PIC.
              Have a nice weekend.
              I. Wus

              Comment


              • #8
                Originally posted by cko47 View Post
                Additional here is placed hex code for my variant (pic16f88 MCU)
                + PCB for Sprint layout 5.0
                Here is PCB for my variant of LCD+pic16f88+3xpushbutton (for mode and adjusting).
                LCD 1602 or 20x02 with uart controller (ardujno, bought in eBay 12USD) for download click here PButton.zip
                Last edited by cko47; 02-23-2013, 10:56 AM. Reason: error

                Comment


                • #9
                  HEY you have a Tek 2236 just like mine. They rock though those VFD's can play up with age. I just fixed mine after the display dies was two transistors in the 5MHz oscillator chain gone low gain. Also they benefit from a 20 year PSU cap replacement too.

                  Well done on the excellent work too.

                  Comment

                  Working...