Shop OBEX P1 Docs P2 Docs Learn Events
#32812-PropellerProtoBoard + 4 ServoPorts — Parallax Forums

#32812-PropellerProtoBoard + 4 ServoPorts

nomadnomad Posts: 276
edited 2012-07-10 04:48 in Propeller 1
hi
the PPB have 4-ServoPorts on the right side
i work on my quadcopter (in the moment i have some troubles with my C3 (restricted pins (16-18))
for testing i move to the ppb
now i have 2 Questions:

1) which connections have this port

X up = signalPin
x middle = +5volt
x down = gnd

2) how i can control the signalPin

thanks for hints and tips
regards nomad

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2012-07-07 07:45
    Please look at the Propeller Protoboard documentation for specifics. If you look at the schematic, you'll see that the "upper" servo pin is connected to a hole in the board just below the servo connector. The "middle" servo pin is connected through a filter to either Vin or +5V (jumper selected) and the "lower" servo pin is connected to ground. You have to make some kind of connection between the signal pin and some Propeller I/O pin. I suggest using a 1K resistor between the hole in the board just below the servo connector and the hole below that with the resistor mounted vertically, then a wire soldered to the resistor on one end and the Propeller I/O pin you want to use (preferably not I/O pins 28-31).
  • nomadnomad Posts: 276
    edited 2012-07-07 08:53
    hi mike
    many many thanks for reply.
    my original idea was working with C3:
    on this servo-port of the on my project on a sitting not servos, it's Brushless-ESCs i send only servoValues with to this ESCs with Servo32v7.spin as
    PIN:
    escPower1 = 4
    escPower2 = 5
    escPower3 = 6
    escPower4 = 7

    CODE: SERVO.Set(escPower1,2_000)

    but i have trouble with the output of the GPS-BMB-648 the output was tested with p07 of the C3 OK , with p22 - Failure... then i will make a test with the ppb....

    question can i do this with the ppb too ?
    same pins as p3-p7 (servos) and p7 = GPS output ?

    thanks for hints and tips
    and a nice weekend
    regard nomad
  • Duane DegnDuane Degn Posts: 10,588
    edited 2012-07-07 09:26
    nomad,

    The C3 uses 33 Ohm resistors on its I/O lines connected to P4 through P7.

    All the I/O pins are pretty much created equal. P28 - P31 are used during boot up and servos connected to these lines durning boot up will cause problems.

    Do you understand the way servo headers work on the PProtoBoard? As Mike said, the signal pin isn't connected to anythink initially. You need to solder wires (and possibly resistors) between I/O pins and the signal lines of the servo header. You might want to stick with the 33 Ohm resistors used by the C3. I've had some servos that wouldn't work with a 1K resistor on the signal line.

    Your GPS unit should work on any I/O pin. You could add a 33 Ohm resistor to your GPS line to give it the same characteristics as P7 on the C3.

    The main concern when moving a project from the C3 to a different Propeller board is the way SPI devices are used since the C3 uses some tricks to save on the number of pins required to control the CS lines.

    Which version of the PPB are you using? If it's the USB version, you'll want to learn the tricks required to keep it from resetting when sending debug statements without it being plugged into a USB cable.
  • Mike GreenMike Green Posts: 23,101
    edited 2012-07-07 09:34
    On the C3, only I/O pins 0-7 are completely unused and pins 4-7 are set up to use for servos or sensors that use servo-like connectors. On the Protoboard, I/O pins 0-27 are not assigned (unless you populate the PS/2 and VGA connectors and the associated resistors on the board). Even then, I/O pins 0-15 are completely unassigned (and not connected anywhere).

    You can certainly use I/O pins 4-7 on the Protoboard for your servo connectors. You have to run wires between them (and I'd recommend 1K series resistors). The GPS output should be connected to a different I/O pin. I'd suggest one of the I/O pins in the range 0-3. If the GPS output is not a 3.3V logic level, you may need a series resistor there (3.3K preferably).
  • nomadnomad Posts: 276
    edited 2012-07-08 01:44
    hi mike and Duane,
    thanks for your answers.

    1) i send you a picture of the PPB-Servo-Stuff (USB-Version)
    -> ppb-servoPort.jpg
    is this correct ?

    2) a picture of my Pins on C3
    -> C3-PinRev_02.jpg
    is this possible with C3

    3) The GPS
    @Mike:
    you write
    The GPS output should be connected to a different I/O pin.
    I'd suggest one of the I/O pins in the range 0-3.
    If the GPS output is not a 3.3V logic level,
    you may need a series resistor there (3.3K preferably).
    excuse my stupid questions:
    in the moment GPS works on C3 on P7 with +5v
    1) if i set the power to 3.3v must i have a restor 3.3K ?
    2) can i set the GPS-Output to p21/p22/p23
    see on my C3-PinRev_02.jpg

    4) C3-Power: on my laptop i have not HighPower USB-Connections
    so, for the Developments i work with the PPDB with PST
    and for Hardware testing on the quadcopter i work with the C3 (EEPROM no PST)

    5) the c3-board have only 2xGnd, 1x5.ov 1x3.3volt
    to power the sensors i make a little platine
    see on c3-powerSensor.jpg

    6) on sunday i make some first tests with many troubles.

    1) on my PropBoard (C3 or PPB) should be run some SensorDevices
    - No. 1) on p0/p1 = LaserRangeFinder 5.0v
    - No. 2) on p2/p3 = L3G4200D 3AxisGyroscope 3.3v
    - No. 3) on p4-p7 = Brushless ESC (ServoPorts) no Load only send Pulses +5v
    - No. 4) on p16-p21 = Input from a R/C-system 6xchannels (gnd)
    - No. 5) on p23 = Ping +5v

    - No. 6) GPS (p7)

    for the tests i work with PPDB / PPB / C3
    Tests: at 08.00 in the morning

    Results: PPDB No.1 + No. 5 ok
    PPB 1 + 5 not ok
    C3 1 + 5 OK

    in the moment i think, it's better to work with C3 and PPDB
    more experience with ppdb and for the C3 speaks:
    - servoports, sd-card,.....

    please excuse my questions.... in my bad english
    thanks for hints and tips
    regards nomad
    720 x 540 - 38K
    1024 x 768 - 59K
    720 x 540 - 51K
  • Duane DegnDuane Degn Posts: 10,588
    edited 2012-07-08 06:32
    nomad wrote: »
    3) The GPS
    @Mike:
    you write
    The GPS output should be connected to a different I/O pin.
    I'd suggest one of the I/O pins in the range 0-3.
    If the GPS output is not a 3.3V logic level,
    you may need a series resistor there (3.3K preferably).
    excuse my stupid questions:
    in the moment GPS works on C3 on P7 with +5v
    1) if i set the power to 3.3v must i have a restor 3.3K ?
    2) can i set the GPS-Output to p21/p22/p23
    see on my C3-PinRev_02.jpg

    Since your GPS unit is a 5V device, it likely uses 5V for its logic level.

    Whenever you use the Propeller with 5V logic, you should make sure to use a resistor of 3.3K or more to limit the current.

    The servo ports on the C3 only have 33 Ohm resistors. If you continue to use your GPS with only the 33 Ohm resistor you will likely damage the Propeller chip.

    I think Mike recommended P3 since it is one of the I/O pins available on the C3. You'd need to use a 3.3K resistor or higher on the logic line.

    You can use the GPS on any I/O pin (preferably not P28-P31) on the PPB USB. You will need the 3.3K resistor.

    Any device with 5V logic needs a 3.3K resistor between it and the Propeller's I/O pin.

    I think the LRF uses 5V logic, so it also needs a 3.3K resistor.

    The RC receiver lines also need at least 3.3K resistors on each channel. (I personally use 10K resistors on 5V input lines since I have a lot of 10K resistors.)

    Do you have an object you're using with your RC receiver?

    I have several projects which use a RC receiver. I've been using an object Jason Dorie has posted (I think he modified someone elses object). This object needs to used the lowest number I/O pins (P0-P5). Unless you have a different object for your RC receiver, you might want to use P0 - P5 for your RC receiver.

    If it's a problem to use P0 - P5 for your RC receiver and you don't have an object to use, let me know. I've been meaning to modify Jason's object to use higher pin numbers but I haven't had a need to yet. I'd like to think it wouldn't be too hard for me to modify it to use higher numbered I/O pins so if you need it modified, I'll give it a try. (Someone might have already done this.)

    The PPB USB has a problem with resetting if you have debug statements and use the board without the USB connection. I'll try to find the thread discussing the problem and post a link here.
  • Duane DegnDuane Degn Posts: 10,588
    edited 2012-07-08 06:51
  • nomadnomad Posts: 276
    edited 2012-07-09 01:51
    hi duane & mike,
    thanks for your replys.

    on sunday i make some tests:
    in the moment i think the C3 is good board for my project

    to your answers:
    1) Since your GPS unit is a 5V device, it likely uses 5V for its logic level.
    Whenever you use the Propeller with 5V logic, you should make sure to use a resistor of 3.3K or more to limit the current.
    >>> on the C3: its correct if i take one of this Pins:P23, or p26 or p27:
    i can work with the GRS-pmb-648 (yellow wire) with a 33 Ohm resitor?

    2) The servo ports on the C3 only have 33 Ohm resistors. If you continue to use your GPS with only the 33 Ohm resistor you will likely damage the Propeller chip.
    >>>> on the C3: i work with the Servo-ports on P4-P7 ( on the other end iS NO Servo) i send only pulses to the Brushless-ESC (it's running)

    3) So i think: for my Sensors( LaserRangeFinder, 3AxisGyroscope, Ping, GPS) i use a restor 3.3k
    is this correct ???

    4) RC_Receivers: 6 channels on C3 with Pin
    >>>
    p16 = ReceiverPins rch_1
    p17 = rch_2
    p18 = rch_3
    p19 = rch_4
    p20 = rch_5
    p21 = rch_6
    its running on C3 with no problems

    other pins
    - p0,p1 = LRF
    - p2,p3 = L3G4200D
    - p4-p7 = ESC
    - p16-p21 = receiver 6xchannel
    - p22 = ping
    - p23 = gps

    i know the work of JasonDorie...
    and i have all program from jason....

    as attachment i post some ProtoTypes:
    - c3-integrations-10.spin
    - c3-receiver-6channel_2.spin

    many thanks for your help
    regards nomad
  • nomadnomad Posts: 276
    edited 2012-07-09 03:50
    hi all
    in the meantime i would buy the resistors 33ohm, 4.4Kohm, 3.3Kohm
    and working on a quadcopter-simulations.
    as attachment. bildschirmfoto.png
    it's on realtime with openGL + SDL + CPP
    1024 x 576 - 83K
  • nomadnomad Posts: 276
    edited 2012-07-10 04:48
    hi duane and mike

    excuse my chaotic posting in the last time....
    and many thanks...

    today tuesday i have tested on the PPB the gps-module pmb-648 with
    Pin 7 and a 33ohm resistor on the signal line
    result verry ok , its running
    thanks.

    i make a restart of my project on the PPB.

    :-) a question: are the conections of the servoport on PPB correct ?
    please have a look on ppb-servoPort.jpg as attachment.

    thanks for help
    regards nomad
    720 x 540 - 51K
Sign In or Register to comment.