Announcement

Collapse
No announcement yet.

VDI-RODERICO

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

  • this is a test firmware that was missing for PIC16F886 with a LCD, I added the following changes:

    - VDI lower and upper limits for each VDI interval
    - backlight control (on/off/SW3/ 0 < VDI < VDI_upper_limit)
    - change style of strength bars for better readability

    to test it with the sample pcb:

    - Y1, C12, C13 are not necessary for PIC16F886
    - short R15 for LCD contrast to work
    - pins VEE, CS1, CS2 and RST are not used for LCD
    - 78L05, R11 and Q1 depend on the LCD model
    - SW4 (for reset) and the pin header (ICSP) are optional
    Attached Files

    Comment


    • great, ordered PIC16F886 and PIC18F25K22 should be next week, I will try to do and test in my IDX

      Comment


      • I made a record, but it does not work when I program PIC16F886 ... result

        Connecting to MPLAB PICkit 3...


        Currently loaded firmware on PICkit 3
        Firmware Suite Version.....01.51.06
        Firmware type..............Midrange


        Target voltage detected
        Target device PIC16F886 found.
        Device ID Revision = 2
        2018-08-04 11:56:29 +0200 - Erasing...


        Erasing...
        Erase successful
        2018-08-04 11:56:33 +0200 - Erase device complete


        2018-08-04 11:56:37 +0200 - Blank checking...


        Blank Checking...
        Blank check complete, device is blank.
        2018-08-04 11:56:42 +0200 - Device is blank


        2018-08-04 11:56:46 +0200 - Programming...


        Device Erased...


        Programming...


        The following memory area(s) will be programmed:
        program memory: start address = 0x0, end address = 0x17ff
        configuration memory
        EEData memory
        Programming/Verify complete
        2018-08-04 11:56:59 +0200 - Programming complete
        Pass Count: 66


        2018-08-04 11:57:03 +0200 - Verifying...


        Verifying...


        The following memory areas(s) will be verified:
        program memory: start address = 0x0, end address = 0x1fff
        configuration memory
        EEData memory
        User Id Memory


        EEData memory
        Address: 0 Expected Value: 1 Received Value: 0
        Verify failed
        2018-08-04 11:57:11 +0200 - Verify failed

        Comment


        • measurements showed that the V1 oscillator does not work

          Comment


          • in the log file you copied I cannot see any message where the test firmware is loaded, if you are using MPLAB IPE after connecting the device you need select the firmware where it says "source" and then push program... I tested it with a pic16f886 I have and it worked fine, however I haven't tested it on the fields, could you try again and/or if you already managed to program it could you show your pcb?

            Comment


            • I will program it again ... this is what my PCB looks likeClick image for larger version

Name:	DSC01528.jpg
Views:	1
Size:	791.3 KB
ID:	351986Click image for larger version

Name:	DSC01537.jpg
Views:	1
Size:	592.7 KB
ID:	351987Click image for larger version

Name:	DSC01534.jpg
Views:	1
Size:	740.3 KB
ID:	351988Click image for larger version

Name:	VDI.jpg
Views:	1
Size:	445.5 KB
ID:	351989Click image for larger version

Name:	VDI_.jpg
Views:	1
Size:	345.6 KB
ID:	351990

              Comment


              • I programmed again using PICKIT3 and MPLAB IPE as well as JDM and WinPICPgm and each time the same ... you can see that it runs, but the lack of content on the screen I designed PCB based on the scheme may be an error in the diagram

                Comment


                • very nice pcb, I guess the problem is related to the lcd connections (e.g. lcd contrast), you don't have any measurements in the external oscillator because it is not used (you could have saved the components but it won't stop the vdi for working), would it be possible for you to attach an image like VDI.jpg or VDI_.jpg but with the components labels, i.e. R1, R2, etc for an easier comparison with the schematics?

                  Comment


                  • LCDs that I have do not require RT1 enough one 2k resistor to GND .. but I connected RT1 to the contrast on the pins .. this display worked well with previous VDI on PIC16F690 .. on the pictures you can see when PIC16F886 clean and programmedClick image for larger version

Name:	not programmed.jpg
Views:	1
Size:	489.5 KB
ID:	351991Click image for larger version

Name:	programmed.jpg
Views:	1
Size:	512.8 KB
ID:	351992
                    -
                    R1 and R2 have changed values, it is a voltage divider for measuring BAT voltage, such values have been checked in an earlier version of VDI on PIC16F690

                    Comment


                    • I see from the last two pictures that you do not connect all LCD pins as in the schematics, i.e. it looks like that there are some pins that are not connected to the pcb, if it is so it won't work becasue this version drives the LCD in 8-bit mode for lower latency since there was enoungh free pins in the pic16f886, could you connect all the pins of the LCD as in the schematics and try again?

                      Comment


                      • it works! After connecting to the LCD DB0-DB3 it was still necessary to connect the R / W on my PCB there is an error R / W is shorted to GND
                        I will write tests how it works during the weekenClick image for larger version

Name:	DSC01547.jpg
Views:	1
Size:	541.5 KB
ID:	351993
                        -
                        great project .. words of appreciation .. LCD backlight works under SW3 just as I wanted
                        Regards

                        Comment


                        • that's very good news I'm glad that it finally worked, in any case you might need a new pcb for the pic18f25k22, the idea is that it can be used either with a LCD or with a GLCD without changing the pcb but only upgrading the firmware. It would be very good if you could test it in the fields and/or if find any other problem...

                          Comment


                          • new PCB will be ... better to do with GLCD on PIC18F25K22 more memory .. I bought a few more PIC18F25k22

                            Comment


                            • VDI works like the previous version 1.4 .. good sensitivity in my system I increased the gain U1 R4 and R6 instead of 1M are 3M ... for the test I used IDX my modification with X and Y channels shifted by 90 degrees VDI calibrated on aluminum foil VDI: 0
                              money nickel + 8- + 12, gold rings +20, yellow coins +49, fine iron -37 <> -55, magnetic stones +84, detachment from the ground - 88, with this turn on the backlight SW3 will not always work sometimes after the third press but the interesting thing is that the VDI setting only shines on positive indications
                              Click image for larger version

Name:	DSC01551.jpg
Views:	1
Size:	395.6 KB
ID:	352003

                              Comment


                              • I made a short video of the VDI action
                                https://youtu.be/8tQKQLIypVQ

                                Comment

                                Working...
                                X