Shop OBEX P1 Docs P2 Docs Learn Events
Programming And Customizing theMulticore Propellor Microcontroller Lesson 1 WIP — Parallax Forums

Programming And Customizing theMulticore Propellor Microcontroller Lesson 1 WIP

Spinners

I've got the PPDB out.

First lesson is wiring up 8 leds.

Any tips?

Happy Holidays!

Comments

  • Run a wire from P0 (near the bottom right corner of the 40-pin prop to Led15 (the top led on the right side of the board).
    etc the P7 connected to LED8.

    Then download https://parallax.com/sites/default/files/downloads/122-32305-PE-Kit-Labs-Fundamentals-Text-v1.2.pdf this text book.

    Begin on page 33, except the resistors are built in and the switches are active low.
  • microcontrollerusermicrocontrolleruser Posts: 1,194
    edited 2016-12-20 18:43
    Tom

    Thank you.

    You read the part where we have that circuit built on PEKit in the other post?

    I sort of thought it sounded familiar and I've noticed how Parallax recycles

    some of their info.

    Happy Holidays!
  • Spinners

    Well no bank of LED's on PPDB. I guess that would be a little too simple minded.

    Why couldn't they start with 7 Segment LED experiment?:)

    Okay this is going to take some time.

    Happy Holidays!
  • Spinners

    Well no bank of LED's on PPDB. I guess that would be a little too simple minded.

    Why couldn't they start with 7 Segment LED experiment?:)

    Okay this is going to take some time.

    Happy Holidays!

    There is a bank of 16 LED's on the right side of the board ready to get lighted up.


  • Plubison

    This is a Rev A grey board.

    With Spinner hat emblem in upper right corner and external connectors along left edge of board.

    Upper right bank is 7 Segment led's, Three pairs of two. Six total.

    You say use those in place of single parts component led's?

    Happy Holidays!
  • ElectrodudeElectrodude Posts: 1,621
    edited 2016-12-21 00:10
    Plubison

    This is a Rev A grey board.

    With Spinner hat emblem in upper right corner and external connectors along left edge of board.

    Upper right bank is 7 Segment led's, Three pairs of two. Six total.

    You say use those in place of single parts component led's?

    Happy Holidays!

    Below the Propeller hat logo, there is a bank of 16 individual LEDs.

    PPDB_LEDs.jpeg
    152 x 296 - 24K
  • Look along the right side of the board with the "REV A"/Propeller Hat in the upper right corner. There are 16 LEDS; ahh never mind please look here: https://www.parallax.com/sites/default/files/downloads/32111-Propeller-Professional-Development-Board-v1.0.pdf for all the answers to your LED location question.
  • Spinners

    Thank you for your time and effort!

    I thought that was a blank spot on board.

    My board is a little filmy like someone smoked around it.

    Then it's gray and lights don't stand out and they're awfully small.

    Merry Christmas!
  • kwinnkwinn Posts: 8,697
    Spinners

    Well no bank of LED's on PPDB. I guess that would be a little too simple minded.

    Why couldn't they start with 7 Segment LED experiment?:)

    Okay this is going to take some time.

    Happy Holidays!

    You could always wire up a 7 segment display with a decimal point and treat it as 8 individual leds. That is what it is. Do your led experiment and leave it wired for the 7 segment experiment.

  • Kwinn

    It's under control now.

    Keeping 8 page PPDB user guide and scematic handy.

    Going to test LED's next before running experiment.

    Merry Christmas!
  • Propellor Developers

    I want to test led's first.

    Any tips on jumpering from 3.3 and 5 volt blocks to

    push button and then an led?

    Then there ought to be led ground to ground block but will check schematic.

    See if leds are just grounded. Think they are.

    Merry Christmas!
  • ElectrodudeElectrodude Posts: 1,621
    edited 2016-12-22 04:46
    The cathodes of the 16 LEDs are already grounded. Just run wires from Propeller pins to LED pins.

    You can test an LED without the Propeller by running a wire from +3.3V to the LED, which should turn it on.

    EDIT: Cathodes, not anodes.
  • Electrodude

    Thanks!

    Sort of came around to that. Tested push buttons and dip switches while I was at it.

    Where is this source code for book?

    Here's an old post.

    http://forums.parallax.com/discussion/142893/pcmprop-question

    Tried that link and got 550 error.

    Happy Holidays!
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    The anodes of the 16 LEDs are already grounded. Just run wires from Propeller pins to LED pins.

    Cathodes (K) are grounded.

    :innocent:
  • Publison

    Thank you for the effort!

    Unfortunately when you click on source code in Chap 1

    text readme says there isn't any.

    Happy Holidays!
  • Mr Savage

    I jumpered over from 3.3v to first pin on led bank.

    When nothing happened I stopped.

    Looked at 7 segment led datasheet but these seem different.

    Looked at PPDB schematic also.

    Seems like something I need to go through lesson with to get it.

    Happy Holidays!
  • Publison

    Thank you for the effort!

    Unfortunately when you click on source code in Chap 1

    text readme says there isn't any.

    Happy Holidays!

    That is because chap 1 doesn't have any source code. It is the prop manual. Read the readme at the top level.

  • Mr Savage

    I jumpered over from 3.3v to first pin on led bank.

    When nothing happened I stopped.

    Looked at 7 segment led datasheet but these seem different.

    Looked at PPDB schematic also.

    Seems like something I need to go through lesson with to get it.

    Happy Holidays!

    How about posting a photo clearly depicting how you jumpered.

    Can you measure 3.3v? With respect to the ground post at the top left corner.
  • In case it's not clear, the PPDB does not receive power over USB. You need to connect power to the barrel jack and turn the switch on for the 5V and 3.3V regulators to output power.

    You'll probably want to jumper the power rails on the breadboard. Each power rail is split in two. I use four small jumper wires between the four pairs of center power rail holes.
  • Propellor Developers

    1 This board is connected to Parallax 7.5v power supply. USB is for sending program to RAM on the board.

    Maybe the Propellor Proto board is USB powered if any on them. Would have to look.

    2 Ooops! In Chapter 2.

    I ran led program from Spin tutorial that came with Propellor Tool.

    Guess now that we found source code we'll start over and

    do it according to book.

    Happy Holidays!
  • Maybe the Propellor Proto board is USB powered if any on them. Would have to look.

    The early Propeller boards required external power but there have been a bunch of Propeller boards which can be powered from the USB connection.

    Here's few off the top of my head.
    Propeller Activity Board
    QuickStart Board
    Propeller Board of Education
    C3
    Propeller Project Board

    Some of the ones requiring external power include:
    Propeller Proto Board (USB and Prop Plug versions)
    Propeller Demo Board
    And as you're aware the PPDB

  • The anodes of the 16 LEDs are already grounded. Just run wires from Propeller pins to LED pins.

    Cathodes (K) are grounded.

    :innocent:

    Thanks. I updated my post. I thought I had finally gotten them straight, but I guess I was wrong...
  • Ya, when you look at the schematic symbol, one end looks like a K. That's how you remember.
    Not unlike the symbol for an NPN (bipolar) transistor. "Not Pointing iN"

  • Propellor Developers

    Finished running code on board. It worked.

    Did a little testing on the board it works fine.

    Giving it a break today.

    Thank you Tom. Thank you Duane.

    Merry Christmas!



Sign In or Register to comment.