1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

HT12D and HT12E encoder/decoder issues

Discussion in 'Electronic Projects Design/Ideas/Reviews' started by MrDEB, Dec 4, 2012.

  1. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,364
    Likes:
    22
    will try just using the DIPTRACE preview. I tried several different things but will give it a go.
    THANKS
     
  2. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,364
    Likes:
    22
    Here is a description of this bike project.

    need to reorganize the schematics and upload in diptrace preview format as per BeBe suggestion. Seems I tried this before??

     
  3. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,364
    Likes:
    22
    lets try this schematic upload

    using DIPTRACE PREVIEW at 200%
    diddn't look good?? in preview
    Need to try a different setting?
     

    Attached Files:

  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,807
    Likes:
    135
    Location:
    morristown,tn

    MrDeb that's better you just need two unclick the two boxes and save as jpg at 600% and you'll be good to go Not 200%
     
  6. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,364
    Likes:
    22
    Didn't have any boxes checked but go to 600!! boy that's got to be big.
    Will give it a go in the morning.
     
  7. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,364
    Likes:
    22
    Tried 600% saving as bitmap

    but tried uploading and it never did finish after 4 minutes.
    Lets try 600% in a jpeg?
     

    Attached Files:

  8. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,364
    Likes:
    22
    boy after clicking it it is really big
    TOO big
    next time jepeg at 300%
     
  9. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,364
    Likes:
    22
    Got my order of 18F25K20 and 18F13K22 pics as well as found sleep.bas.
    Waiting for switches then assemble a complete transmitter prototype and hopefully experiment by doing the sleep routine.
    PLAN = assemble a Tap-28 development board w/o the external osc (final project will not use)board with LEDs and run the SLEEP routine to test.
    Then just plug the 18F25K20 into the perf-board w/ matrix and test code with present connections.
    Want to see just how low I can get the current draw down to. Found a reference to power management in the tricks and tips I think I downloaded from Microchip last year ??
     
  10. JonSea

    JonSea Well-Known Member

    Joined:
    Oct 1, 2012
    Messages:
    1,118
    Likes:
    90
    Location:
    Seattle, WA
    Ummmm...you have a problem. The PIC18F25K20 is a 3.6V max part. Your Junebug programmer doesn't have variable Vdd, so it's not going to work to program this part. The PIC18F25K22 would be a better choice, as it will handle 5 volts max.

    Also, depending on which Swordfish modules you're using, changes have to be made to some of the include modules.
     
  11. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,364
    Likes:
    22
    I purchased a PICKIT2 several months ago and find that it works better in that it dosen't lose communication with the project like the Junebug did.
    As far as Swordfish modules, I hope to not have to change any. At present only utilis and convert.
    Been reading the compiler tips and tricks from microchip about power budgeting, voltage regulators etc.
    I think I located some 3.6v lithium batteries that are soldered into the project (LI SOC12).
    As I mentioned, on the Matrix end of things, I need 9-12v as the matrix goes dim at 4.3v while in operation and the receiver requires 2.4v so a 5v battery won't give me much "head room", that's why I am looking at 9-12v and a LDO regulator. If I go with the soldered in batteries then the P-Mosfet is replaced by the Regulator.
     
  12. JonSea

    JonSea Well-Known Member

    Joined:
    Oct 1, 2012
    Messages:
    1,118
    Likes:
    90
    Location:
    Seattle, WA
    Utile.bas is probably not going to work. Look on that other site the ElectroMaster fears/hates for "setalldigital.bas" or something similar to that by Jerry.

    You're also using shift.bas which may have issues.

    Geez oh grief, how do I get sucked into this?
     
  13. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,364
    Likes:
    22
    The shift.bas is being used in the matrix code not the transmitter code I wrote. Will look at the setalldigital.bas.
    Curious why do you feel it won't work?
    And the last post about the batteries, I used the wrong battery. It was late last night and I have lots of notes and picked the wrong on.
     
  14. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,807
    Likes:
    135
    Location:
    morristown,tn
    It's no big deal setalldigital didn't work all the time anyway that why you have to set the register's your self sometimes. It took me about 1 minute to get 18f 25K20 to work after I downloaded the datasheet.
     
  15. JonSea

    JonSea Well-Known Member

    Joined:
    Oct 1, 2012
    Messages:
    1,118
    Likes:
    90
    Location:
    Seattle, WA
    "Why I feel it doesn't work"?!?!?

    I feel it doesn't work because IT DOES NOT WORK.. The k-series chips (all) have differences from the previous 18F-series chips and were not yet developed when most of the modules were written. Primarily, there are differences in port configurations for periferals, number of UARTS, ADC channels and so on.

    My discussions regarding the TAP-20 USB board using the PIC18F14K50 cover some problems you'll have with the 18F13K20.

    I presume you are using the 18F25K20 to control the matrix. K-series. Likely will need changes to modules.
     
  16. JonSea

    JonSea Well-Known Member

    Joined:
    Oct 1, 2012
    Messages:
    1,118
    Likes:
    90
    Location:
    Seattle, WA
    Yes indeed. If you recognize why something stopped working, it's usually not too difficult to fix. But does this describe MrDEB's style? Really?
     
  17. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,364
    Likes:
    22
    YES I am using the 189F25K20 on the matrix board as well (need to conserve as much battery power as possiable)
    Will read the issues using this pic. Need to look at the TAP20 board issue with this pic as well.
    In mean time assembling a Tap 28, needed to find socket, switches etc.
     
  18. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,807
    Likes:
    135
    Location:
    morristown,tn
    This is so funny have you read the data sheet for the 18F2420 it clearly show that power use is the same or less then a 18f25k20
     
  19. JonSea

    JonSea Well-Known Member

    Joined:
    Oct 1, 2012
    Messages:
    1,118
    Likes:
    90
    Location:
    Seattle, WA
    I realize you don't always recognize the finer points of language, but.... the issue is not with the TAP-20 board. The issue is that the K-series PICs have changed the way certain features are implemented and/or in the peripheral configuration, so some of the Swordfish modules need modifications to work correctly on the K-series.

    Yes, there is a discussion of some of these issues under the TAP-20 topics, because the TAP-20 is designed to use K-series parts.
     
  20. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,807
    Likes:
    135
    Location:
    morristown,tn
    Whats the board got to do with it? It's not the compiler, The problem is Swordfish is not keeping up with newer chips and that's that.

    It's no big deal just change the setting to use what you want. Read about the ADC and Usart and make the changes pointing to the right registers. And you'll be picking in no time flat. If you get really lost and can't figure it out ask Jerry
     
  21. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,364
    Likes:
    22
    I just might stay with the 2420 to avoid ANY issues.
    I am going to see if I can get an LED to blink but it might avoid a train wreck if I stay with the 2420. COST was another factor but it might be offset by not having to use a regulator.
    Going to reaccesse this. Battery choice enters the game as well.
    YES I read the data sheet but need to look deeper.
    I know it has nothing to do with the Tap-20 board, which I looked into for some advice on using the 18F24K20.
     

Share This Page