Propeller font problem

Hi
Was roaming around the forum looking at ping posts and came across what I suppose to be a circuit diagram using the prop font.
What I saw was
 ┌───────────────────┐
  │┌───┐         ┌───┐│    Connection To Propeller
  ││ ‣ │  SR04   │ ‣ ││    Remember SR04 Requires
  │└───┘         └───┘│    +5V Power Supply
  │ Vcc Trig Echo Gnd │
  └──┬────┬────┬───┬──┘
 5V  │    │    │   │
    │ 1K  10K   │           
 └───┘    │    │   │
          │    │   │
 trigger ┘    │   │
    echo ─────┘   │
                   

So I have the parallax font ok but maybe its not visible to 'ms edge' browser.
Its tucked away in...
C:\Program Files (x86)\Parallax Inc\Propeller Tool v1.3.2\Help\Content\Resources\Stylesheets\Parallax.ttf

What do you think I should do?
Dave

Comments

  • Do you have a link to the source?
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 22,627
    edited 2020-04-29 - 03:08:24
    Open a text editor, copy and paste the text, then enclose it in html tags, thus:
    <html>
     &#9484;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9488;
      &#9474;&#9484;&#9472;&#9472;&#9472;&#9488;         &#9484;&#9472;&#9472;&#9472;&#9488;&#9474;    Connection To Propeller
      &#9474;&#9474; &#8227; &#9474;  SR04   &#9474; &#8227; &#9474;&#9474;    Remember SR04 Requires
      &#9474;&#9492;&#9472;&#9472;&#9472;&#9496;         &#9492;&#9472;&#9472;&#9472;&#9496;&#9474;    +5V Power Supply
      &#9474; Vcc Trig Echo Gnd &#9474;
      &#9492;&#9472;&#9472;&#9516;&#9472;&#9472;&#9472;&#9472;&#9516;&#9472;&#9472;&#9472;&#9472;&#9516;&#9472;&#9472;&#9472;&#9516;&#9472;&#9472;&#9496;
     5V  &#9474;    &#9474;    &#9474;   &#9474;
     &#61463;   &#9474; 1K &#61628; 10K&#61628;   &#9474;           
     &#9492;&#9472;&#9472;&#9472;&#9496;    &#9474;    &#9474;   &#9474;
              &#9474;    &#9474;   &#9474;
     trigger &#61627;&#9496;    &#9474;   &#9474;
        echo &#61610;&#9472;&#9472;&#9472;&#9472;&#9472;&#9496;   &#9474;
                       &#61464;
    </html>
    

    Save the file as something.html, then open it in a web browser. Do a select-all (ctrl-A), then a copy (ctrl-C). Open the Propeller Tool, and paste (ctrl-V) what you just copied from the browser screen. From there, it's a matter of figuring out where the line breaks go, adding spaces, maybe duplicating or deleting some graphics, etc. Anyway, this is what I got when I did all that:

    schematic.png

    -Phil
    405 x 215 - 8K
  • tritoniumtritonium Posts: 303
    edited 2020-04-29 - 11:40:00
    Phil
    Thanks- that did the trick- still needed heavy correcting as you say for newlines and missing spaces; you must have spent some time correcting it- without your example I think I would be defeated.
    However it wasn't the circuit I was looking for- in a thread now lost, was mention of connecting six pings (I think) to six + 1 prop pins, (plus supply) and also only using one pin not two for one ping.
    I've figured out how I would do it but was wanting to check against other ideas.

    edit- to add this was not a parallax ping but sr04...
    Dave
  • Hi
    @Publison
    Do you have a link to the source?

    https://forums.parallax.com/discussion/135899/one-buck-ultrasonic-sensor/p3
    near top of page 3

    Dave
  • tritonium wrote: »
    Hi
    @Publison
    Do you have a link to the source?

    https://forums.parallax.com/discussion/135899/one-buck-ultrasonic-sensor/p3
    near top of page 3

    Dave

    Thanks!
  • IIRC the trigger and echo signals were connected connected together after the 1K and 10K resistors and then connected to one of the six propeller pins. The propeller pin would then be set as an output to trigger the SR04, then switched to input to measure the distance. Don't recall what the 7th pin was used for or see why it is needed.

  • tritoniumtritonium Posts: 303
    edited 2020-04-29 - 15:46:31
    Hi again-

    Well I've collected a few approaches......
    The two pins (Trig and Echo) get jumpered together.
    Once the device gets triggered then it's locked out from further triggering and during that time the echoes don't loop back as re-triggers. After emitting the trigger,
    the pin has to be re-configured as an Input.

    I/O pin direct to the Trigger and a 1.8K resister
    between Trigger and Echo. Worked like a charm.
    I found that I could use a resistor as high as 3.3K without any problems.

    yet to try

    Hmm... for some reason the thumbnail is clipped- click image to see whole
    still have trouble inserting image....

    Dave
    655 x 202 - 20K
Sign In or Register to comment.