Shop OBEX P1 Docs P2 Docs Learn Events
Having issues with this code — Parallax Forums

Having issues with this code

pilot00pilot00 Posts: 30
edited 2009-04-02 16:28 in Propeller 1
I am having issues with this code. I am attempting to use the Ping sensor and simply simulate a tracked robot to go forward and stop a particular distance from an object, reverse, turn right and left then go forward again.
I have the lcd in place and am also using the serial terminal to monitor the simulation. After a couple of passes in front of the ping sensor, the lcd goes out and the
code stops.
Anybody got any ideas as to what I am missing?

The code is attached.

Post Edited By Moderator (Joshua Donelson (Parallax)) : 4/2/2009 9:17:57 PM GMT

Comments

  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2009-04-02 00:55
    One thing I have found with the Propeller is that it just seems to operate reliably and consistently.
    Could this be a simple hardware problem such as low voltage under load when running off batteries or a small power supply?
    Perhaps if you added an LED indicator to the supply and even measured it when it failed.

    BTW, in general we are not forum Nazis but we will summon the Gestapo if you fail to add a subject line to your post shocked.gif

    *Peter*
  • QuattroRS4QuattroRS4 Posts: 916
    edited 2009-04-02 00:59
    Agree with Peter on all fronts !

    Regards,
    John Twomey

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    'Necessity is the mother of invention'

    Those who can, do.Those who can’t, teach.
  • pilot00pilot00 Posts: 30
    edited 2009-04-02 01:09
    Thanks. Sorry for the lack of subject line I will remember that next time.
    I am using a seven volt power supply that was suggested by the tech guys at Parallax and will check the voltage.
    Three servos from Parallax are onboard, lcd screen and the Ping. I will look at the total current also.

    Thanks
  • potatoheadpotatohead Posts: 10,261
    edited 2009-04-02 01:16
    You can fix it!

    Just go and edit your first post. That's the one that holds the title meta-data. The icon is at your upper right.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Propeller Wiki: Share the coolness!
    Chat in real time with other Propellerheads on IRC #propeller @ freenode.net
    Safety Tip: Life is as good as YOU think it is!
  • Carl HayesCarl Hayes Posts: 841
    edited 2009-04-02 01:49
    Peter Jakacki said...

    BTW, in general we are not forum Nazis but we will summon the Gestapo if you fail to add a subject line to your post shocked.gif
    Ist ,,Jakacki'' deutsche Name?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    · -- Carl, nn5i@arrl.net
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2009-04-02 02:03
    Carl Hayes said...
    Peter Jakacki said...


    BTW, in general we are not forum Nazis but we will summon the Gestapo if you fail to add a subject line to your post shocked.gif
    Ist ,,Jakacki'' deutsche Name?

    The name is Polish but my mother is German.
    Perhaps I needn't summon the Gestapo then? I will just summon my mother freaked.gif

    Ich kann verstehen mehr als ich sprechen

    *Peter*

    Post Edited (Peter Jakacki) : 4/2/2009 2:08:27 AM GMT
  • WNedWNed Posts: 157
    edited 2009-04-02 02:56
    Are you using a separate power supply for the servos? This issue and answer tend to come up fairly frequently in this forum. If you are feeding the 7vdc power into your Prop board, then tapping off of it for everything, you'll probably find that the servo draw is killing you. The servos would like very much for you to provide a 6vdc power supply just for them.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "They may have computers, and other weapons of mass destruction." - Janet Reno
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2009-04-02 16:28
    Peter,

    Das ist besser als mehr sprechend, als Sie verstehen!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Engineering
Sign In or Register to comment.