Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: CuriousOne; Keyword(s):

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Re: Controlling OG-4 Decathron with PBP in an efficient way.

    Here's fixed code. Besides code, you need also 10k pulldown resistors from transistor bases to GND.



    ;----[12F683 Hardware Configuration]--------------------------------------------
    #IF...
  2. Re: Controlling OG-4 Decathron with PBP in an efficient way.

    Thanks, this is so called "deluxe" version, with OG-4. I'm also developing simple version, with less brass and using simpler tubes. Will also make it's design plans public :)
  3. Re: Controlling OG-4 Decathron with PBP in an efficient way.

    8850

    Almost there :)
  4. Re: Controlling OG-4 Decathron with PBP in an efficient way.

    I think I've nailed it, and it appears to be both software and hardware issue. If input is activated, at startup, there is small pulse on random pin, which is short enough for not to be noticeable by...
  5. Re: Controlling OG-4 Decathron with PBP in an efficient way.

    Tried to change control pin to GPIO.3 (MCLR). No change, as long as reading of port occurs in software, the glitches come on.
  6. Re: Controlling OG-4 Decathron with PBP in an efficient way.

    Here is the main code, from which all this started. This is simple spinner, pausing at certain position after whole loop.



    '****************************************************************
    '* ...
  7. Re: Is it possible to make unidirectional serial port via 1 pin with PBP?

    If I had extra pins for external crystal, I'd find another ways for communication.

    As I think, FSK (Frequency shift keying) appears to be simplest and most efficient way.
  8. Re: Controlling OG-4 Decathron with PBP in an efficient way.

    Look a bit above: for cik=1 to sub 'amount needed for full loop
  9. Re: Controlling OG-4 Decathron with PBP in an efficient way.

    I potted it because it worked very fine, until I added that input parsing code :D
    I can build another one, that is not an issue...
  10. Re: Controlling OG-4 Decathron with PBP in an efficient way.

    sub9 'subroutine for spinning - it is there :)

    The whole circuit is assembled into box and potted with epoxy, so have no access to pins, except GPIO.5, I can check it with scope if needed.
  11. Re: Controlling OG-4 Decathron with PBP in an efficient way.

    Check for what?

    If I replace TRISIO=%00101000 with TRISIO=%00001000, it will also work fine (but without a button).
  12. Re: Controlling OG-4 Decathron with PBP in an efficient way.

    Here it is:

    if I change TRISIO config so port 5 is no longer input and directly launch the code, it works properly.



    '****************************************************************
    '* ...
  13. Re: Controlling OG-4 Decathron with PBP in an efficient way.

    OK one moment, let me finish this first, figured DS3231 error reason now, it was due to re-using variable. I need rest, serious rest :D
  14. Re: Controlling OG-4 Decathron with PBP in an efficient way.

    Code is posted above.

    Schematic is simple, there are 4 MPSA42 transistors, each of which is connected via 10K resistor to corresponding ports (ZERO, ONE, TWO, TRE) as shown in code. GPIO.5 is tied...
  15. Re: Controlling OG-4 Decathron with PBP in an efficient way.

    I decided to put it aside, to give my mind some rest, and back to DS3231.
    I found that it does not return seconds properly.

    Have two different example codes, they work fine for minutes and hours,...
  16. Re: Controlling OG-4 Decathron with PBP in an efficient way.

    If I swap chip with 12F1840, will problem still exist?
  17. Re: Controlling OG-4 Decathron with PBP in an efficient way.

    Yes tried new chip. Output pins are connected to MPSA42 transistor via 10K resistor.
  18. Re: Controlling OG-4 Decathron with PBP in an efficient way.

    I tried to replace HIGH/LOW statements with TRISIO.X=1 or 0, it does not helps. In fact, say TRISIO.0=1 does not make GPIO.0 pin high.
  19. Re: Controlling OG-4 Decathron with PBP in an efficient way.

    It does not helps. And I'm not using MCLR pin for anything except programming. Tried TRISIO=%00101000 but that does not helps. Tried disabling MCLR from config, also no change. Making a pin input...
  20. Re: Controlling OG-4 Decathron with PBP in an efficient way.

    Run into strange problem - setting GPIO.5 as input messes with GPIO.4 - it becomes high when GPIO.5 is read, so disrupts complete code routine. I'm using TRISIO=%00100000 to make GPIO.5 as input. If...
  21. Re: Is it possible to make unidirectional serial port via 1 pin with PBP?

    What about OWIN/OWOUT ?
  22. Replies
    8
    Views
    487

    Re: 4 -20mA Analogue input help

    Accidentally delivered 12VDC to GPIO.5 of 12F683. Port is now dead, but other ports and IC itself work properly.
  23. Re: Is it possible to make unidirectional serial port via 1 pin with PBP?

    Yeah, time to implement GPIB in PBP :D or FSK :)
  24. Re: Is it possible to make unidirectional serial port via 1 pin with PBP?

    Great. Thanks. The receiver will enter "config mode" upon power up, so user can adjust whatever he needs to be changed, after exiting it, it will operate independently.
  25. Re: Is it possible to make unidirectional serial port via 1 pin with PBP?

    Sender can "repeat" his "message" until user says him to stop -The idea is to allow users have various kinds of animation of OG-4 dekathron, which he selects from the setup menu. The receiver will be...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4