New Book - Propeller Education Kit Labs: Fundamentals

Hi Folks,

Thanks to all of you who submitted suggestions and requests for the individually posted Propeller Education (PE) Kit Labs.· We have now compiled them into a book that will be released as a printed text early next year.· The book includes updated versions of all the labs along with front matter and some introductions.· Here are links to the full .pdf text and zipped source code:

Propeller Education Kit Labs - Fundamentals
···· Full Text (.pdf)···· Source Code (.zip)

Please send feedback/suggestions to editor@parallax.com.· You·can also contact me directly·using·the PM or email buttons to the left of this post.

Have a great New Year everyone!

Regards, Andy

P.S. There are some references to a couple of web PE Kit applications that have not been posted yet in the book.· They will be out soon, definitely before the printed text is released.


▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Andy Lindsay

Education Department
Parallax, Inc.

Post Edited (Andy Lindsay (Parallax)) : 12/26/2008 11:14:22 PM GMT
Tagged:

Comments

  • 24 Comments sorted by Votes Date Added
  • edited May 2011 Posts: 0Vote Up0Vote Down
    hi Andy, I got a trouble in using PEkit. the detail is troubleshooting entry(9) on page 43. after changing code to pll8x LED flash,but changing back to pll16x it dosen't work. why?
  • edited May 2011 Posts: 0Vote Up0Vote Down
    Andy,

    Things like this is why I love Parallax! Even though I was trained as an EE, I had no idea how to work with microcontrollers at first, and very nice examples like these you' ve provided are defininetly the key to getting started. I think with normal places, you'd have to buy the book to get the code, and I'm very grateful to you and Parallax for providing it for free here.
    I think it will get many more people into this world...

    Ray

    Ok, I was up late that thought this was a new post!
    Sorry Daniel, I hope somebody gets to your question
  • edited May 2011 Posts: 0Vote Up0Vote Down
    Daniel, Sorry if my late night love note distracted from your question to this old thread...

    Can you please post the code you're having trouble with?

    I tried looking on p.43, but don't see the code you're referring to...
  • edited September 2011 Posts: 0Vote Up0Vote Down
    Rayman,thanks for your kindness though I have already figure it out。

    Can you tell me why not set parameters “pwm” and “DIR” to 6 and 7 directly but set as belows. thanks!
    “BRK = 5
    PWM = BRK + 1
    DIR = PWM + 2”
  • edited September 2011 Posts: 0Vote Up0Vote Down
    moreover, Raman, Can you tell or show me how to display the system time on lcd 16X2. thanks a lot!
  • edited September 2011 Posts: 0Vote Up0Vote Down
    Daniel,

    Have you gotten the LCD to display characters yet? have you Gotten an RTC? Try looking into this object. Even though it is designed for a 4x20, it works quite well for these displays:

    http://obex.parallax.com/objects/704/

    and look into Kye's RTC object here:

    http://obex.parallax.com/objects/420/

    Take them one step at a time. I have integrated both of these in a few projects, and after some tinkering, you should be able to mesh them together to get what you are looking for.
  • edited September 2011 Posts: 0Vote Up0Vote Down
    I get an error 404 when I try to open the text
  • edited September 2011 Posts: 0Vote Up0Vote Down
    Having trouble downloading new book. Get cannot find page error. Oh well I am patient.
  • edited September 2011 Posts: 0Vote Up0Vote Down
    Andy,

    When I try to download the Propeller ]Education Kit Labs - Fundamentals[/B .pdf file I get a "The page cannot be found" error. I'm on a iMac; but that shouldn't make a difference. Has anyone else with a iMac been able to download
    Harley Shanko
  • edited September 2011 Posts: 0Vote Up0Vote Down
    Sariel,
    Thanks a lot, I have already downloaded your object. After while I will study it.

    I really appreciate your kindness and help.

    Thanks from a students of China
  • edited September 2011 Posts: 0Vote Up0Vote Down
    Hi everyone who can tell me why the “potline” has the same pin with “chipsel” in the following codes. The codes come from Utilities.spin.
    high =1
    low =0
    PotLine =19
    PotLine2 =20
    repval =2
    repval2 =2
    BitsRead =12
    BitsRead2=12
    BitsRead3 =12
    BitsRead4=12
    chipSel = 19
    chipClk = chipSel+1
    chipDout = chipSel+2
    chipDin = chipSel+3
    chipSel2 = 23
    chipClk2 = chipSel2+1
    chipDout2 = chipSel2+2
    chipDin2 = chipSel2+3
    
                
  • edited September 2011 Posts: 0Vote Up0Vote Down
    Not sure, we would need to see the rest of the code. But, I suggest starting a new thread. We are really starting to hijack this one.
  • edited September 2011 Posts: 0Vote Up0Vote Down
    Hi Andy,

    the link in the first posting is wrong

    http://www.parallax.com/Portals/0/Downloads/docs/prod/prop/PELabsFunBook-v1.1.pdf

    you are already on version 1.1
    keep the documents coming
    best regards

    Stefan
    [x] <== SLAM in nail here to hook up the new screen! :lol:
  • edited September 2011 Posts: 0Vote Up0Vote Down
    Thanks, Stefan

    Finally can download the PE labs book. Wow, over 200 pages. Lot of effort to get all that in place. Thank you Parallax.
    Harley Shanko
  • edited June 2012 Posts: 0Vote Up0Vote Down
    Question about square wave program from exercises at end of chapter 5. Calling SquareWave with tHigh = 2717 and tCycle much larger than tHigh makes an LED glow dimly. Calling it with tHigh = 2716 makes the LED glow constantly at full on. This happens regardless of the exact value of tCycle or the clock frequency chosen. Why?
  • edited June 2012 Posts: 0Vote Up0Vote Down
    Gwolfe wrote: »
    Calling it with tHigh = 2716 makes the LED glow constantly at full on. This happens regardless of the exact value of tCycle or the clock frequency chosen. Why?
    The version coming with PropTool 1.3 takes a smaller value (~2k4) to lock up but assuming your version doesn't differ significantly, it's down to waitcnt missing its (initial) target. IOW the cycle count between sampling cnt and then waiting for tH exceeds tHigh. HTH
  • edited June 2012 Posts: 0Vote Up0Vote Down
    Makes sense. Thanks.
  • edited June 2012 Posts: 0Vote Up0Vote Down
    Another basic question. Suppose method1 is contained in object1 and object1's start method launches method1 into cog1. Method1 appears to have direct access to object1's global variables (i.e. without needing to pass addresses as would be necessary to transfer information to or from another object). Do object 1's global variables still reside in main RAM and not cog1's RAM? What happens if the start method launches method1 into cog1 and method2 into cog2? Do both methods now have access to object1's global variables? How are conflicts resolved?

    I couldn't find an answer to this one in the propeller manual or elsewhere. Would also like to know where else to look in the future for similar questions.
  • edited June 2012 Posts: 0Vote Up0Vote Down
    Gwolfe wrote: »
    Do object 1's global variables still reside in main RAM and not cog1's RAM? What happens if the start method launches method1 into cog1 and method2 into cog2? Do both methods now have access to object1's global variables? How are conflicts resolved?
    From context you seem to use SPIN. IOW global variables stay in hub RAM. Which also means both cogs have access. As for conflicts, built-in type access (byte/word/long) is atomic. Anything more exotic is your responsibility.
  • edited June 2012 Posts: 0Vote Up0Vote Down
    I think the problem was with my mental imagery of what was happening. I had pictured cog0 initially running object1, and copying method1 and sending it to cog1 to execute, as if by analogy cog0 and cog1 were physically separate computers and the code just got copied to be run on a different computer. Anything method1 did on the second computer would then only alter that computer's memory. Instead, I've shifted to an image of separate processors both scanning the same main memory with object1 in it. Launching method1 simply tells cog1 to start scanning object1 at method1. But if so directed, it can scan elsewhere in main memory, including the global variables. Don't know if others find mental imagery of the process helpful, and mine probably still needs more revision, but this is helping me for now.
  • edited April 2014 Posts: 0Vote Up0Vote Down
    I've looked at the text and I noticed that many of the Spin commands resemble PBASIC.
    Is there a chart or something that shows which commands are just like in PBASIC and which commands are different?
  • edited April 2014 Posts: 0Vote Up0Vote Down
    Well, this is another old thread that has been revived.

    Comparision of PBasic comands to Spin? I have not seen anything. I actually cloned PBasic i/o commands in Forth to make things easier for myself as it certainly is easier to work that way.

    You might have to just set up a speadsheet with PBasic in one column and Spin in another and see what you come up with. There are some big differences as Spin was based on Pascal. But you are always going to see some things that look similar in any two languges as logical tests and looping are ever present.

    Being provided with a list is likely not going to help you learn as much as a DIY investigation. So I really encourage you to make your own.
    Hwang Xian Shen, Puddleby-on-the-Marsh.
    WTF? --- just may mean "Was That Funny?" , or maybe something else.
  • edited April 2014 Posts: 0Vote Up0Vote Down
    There is and object in the OBEX:

    http://obex.parallax.com/object/16

    that emulates a few of the BS2 functions in SPIN.

    It may give you some ideas.
    Infernal Machine
Sign In or Register to comment.