 |
|
 |
| Parallax Forums > Public Forums > Propeller Chip > Book for absolute beginners. Propeller 101 | Forum Quick Jump
|
   |  Harprit Registered Member

       Date Joined Dec 2008 Total Posts : 62 | Posted 12/27/2008 6:59 PM (GMT -8) |   | Now that we have some of the skills we need to start working the the Propeller Chip behind us. I need to know which direction we should move the programming and the tutoring in.
Comments from both veterans and beginners are solicited. Comments from those familiar with problems area in learning about parallel processing with the Propeller would be especially useful.
I have about 60 pages done on the book. As it looks right now it will take between 200 and 250 pages.
Harprit | | Back to Top | | |
  |  Harprit Registered Member

       Date Joined Dec 2008 Total Posts : 62 | Posted 12/28/2008 10:05 AM (GMT -8) |   | Ill see what I can do about adding some bugs that are both easy and hard to fix.
My problem is that I too am new to the Propeller so it can hard for me to see the forest for the trees. I know a little bit about all this so I need your feed back.
Then again parallel processing techniques are new to me too so I am eager to listen to those that have gone before me. Most of you know a lot more than all this than I do so please do not hesitate to lead me in the right direction.
Harprit | | Back to Top | | |
 |  StefanL38 Registered Member
        Date Joined Sep 2006 Total Posts : 958 | Posted 12/29/2008 4:02 PM (GMT -8) |   | Hello,
there are different aspects of parallel processing.
trying to divide a big job into smaller pieces and work parallel on them to speed up the processing - no idea of how to do that.
Avoiding conflicts through accesses to variables at the same time or mixing up IO-signals could be a theme
the basic thing might be to dedicate a cog to something timecritical or randomly happening events that have to be recognized
or things that have to be updated fast and regurlarly like scanning a matrix-wired keyboard or updating an LED-matrix or more than one 7segment-displays by multiplexing them
code-examples for comparing "spaghetti-code" with well structured code showing the advanteges of well structured code
Developing philosophies:
My style of developing is to divide the code in small methods each method doing ONE thing. And testing new methods in its own test-sourcecode before adding it to a complex sourcecode Some execises with code-examples that show the advantage of this coding-style
Code-examples with small bugs causing problems that come up to the surface as strange behaviour or at complete different points than they are coded (Method "A" has a bug which causes problems in method "B" and with whih debug-methods you will find them quickly
other ideas:
software-debouncing of mechanical buttons and evaluating the limits of this method
software schmidt-triggering of analog signals and evaluating the limits of this method
software-comparator with hysteresis of analog signals and evaluating the limits of this method
low-high / high-low-transition-detecting methods
hardware-ideas:
IO-extension using shiftregisters
stepper-motor-driver
PLC-IO-picture-updater, PLC-IO-processing
creating a input-output-driver for more than one IO-Pin which is just using ONE cog with functions like: wait for input to go high-low with a timeout and if timeout occurs set a flag-variable that the main-program can on the flag make IO-Pins "blink" parameters blink-time, frequency
propeller-controlled accumulator discharge / charge with capacity measuring
cogs working as an oscilloscope or voltagemeter other cogs as DACs driving a transistors-base and alltogether showing the behavior of a transistor as measured voltages and currents displayed as numbers next to a transistor symbol or other electronic components
maybe the tricks and trap document
forums.parallax.com/forums/default.aspx?f=25&m=114128
could give themes with showing cases where the trap closes and code-examples how to avoid those traps
best regards
Stefan | | Back to Top | | |
 |  Harprit Registered Member

       Date Joined Dec 2008 Total Posts : 62 | Posted 1/5/2009 10:49 AM (GMT -8) |   | Sorry for the dead time folks I had some business that needed all my time to finish up Its done, I'll have the next program on line in the next few days Thanks you for your patience
HSS | | Back to Top | | |
  |  Harprit Registered Member

       Date Joined Dec 2008 Total Posts : 62 | Posted 1/12/2009 7:51 AM (GMT -8) |   | Here is the next program Reads a voltage into a Propeller
Thank you for the encouragement Sam
HSS | | Back to Top | | |
  |  Harprit Registered Member

       Date Joined Dec 2008 Total Posts : 62 | Posted 2/17/2009 11:53 AM (GMT -8) |   | I have had a query about problems with using a 4 line display with a propeller I do not have access to this display and so cannot provide specific help Can some one else help on this display
Harprit. | | Back to Top | | |
 |  bboy8012 Registered Member
        Date Joined Sep 2006 Total Posts : 133 | Posted 2/18/2009 3:23 PM (GMT -8) |   | | I think another aspect to cover for beginners (which I am one) is industrial control loops. Creating, making failsafe, and optimizating, as well as eliminating errors.
| | Back to Top | | |
  |  Will Eyeam Registered Member
        Date Joined Feb 2009 Total Posts : 16 | Posted 2/20/2009 12:08 AM (GMT -8) |   | | Can you make a stepper motor driver using a simple uln2003 darlington array | | Back to Top | | |
 |  Harprit Registered Member

       Date Joined Dec 2008 Total Posts : 62 | Posted 2/20/2009 2:23 AM (GMT -8) |   | Yes but it depends on a lot of other things too. like size of motor and how the array is used. My book "Running motors with PIC microprocessors" covers a lot of the tricks of the trade for beginners. Send me a private message if you want one.
HSS | | Back to Top | | |
 |  Harprit Registered Member

       Date Joined Dec 2008 Total Posts : 62 | Posted 2/20/2009 2:48 AM (GMT -8) |   | Though I have not posted a lot lately, I have been busy on the project Here is a preliminary table of contents for the book as it now sits. Its not set in concrete as yet. I welcome suggestions from beginners as regards additions and omissions. The book is a "learn by doing" effort as are all my books because I believe in learning by doing and not getting too theoretical (for beginners that is).
Proposed Table of contents
Part 1. Understanding the system Section 00 Preface Section 01 Introduction to the Propeller Chip Section 02 Understanding the Propeller Chip Section 03 The Hardware and Software Set Up Section 04 Writing programs, the Propeller tool Section 05 The shared memory Section 06 The eight cogs Section 07 Understanding one Cog in detail Section 08 The SPIN language Section 09 Special terms used in the software Section 10 The concept of shared memory Section 11 The use of flags Section 12 Why parallel processing and when is it better Section 13 Tasks which lend them selves to parallel processing
Part 2. Learning by doing. The Projects Section 14 Reading inputs into the system Section 15 Controlling outputs out of the system Section 16 Using Liquid Crystal Displays Section 17 Using LCD displays with a dedicated cog Section 18 Using a computer terminal Section 19 Motor Amplifiers Section 20 Running hobby, R/C servo motors Section 21 Running a R/C servo motor a shared task Section 22 Running small DC motors Section 23 Running motors, a preliminary discussion Section 24 Running a DC motor with multiple cogs Section 25 Running DC motors with quadrature encoders Section 25 Running a motor with an attached encoder with multiple cogs Section 27 Running bipolar stepper motors Section 16 Creating Timers and Counters Section 28 Managing Memory Section 29 Communicating with computers Section 30 Making a single set point controller Section 31 Debugging
Part 3 The appendices Appendix Sources of materials Parallel processing terms and ideas Epilogue
Publishing details Approximately 200 to 300 pages Approximately 2000 to 3000 lines of code Approximately 100 to 150 circuit diagrams and pictures Detailed introduction the Propeller Chip, a first in affordable parallel processing.
My casual resume I am not an academic though I did do all my coursework for a PhD in Ceramics (Materials). I am a hands on engineer. I started and ran Rhino Robots Inc for 20 years. We built and sold robots and CNC machines. I understand how to connect computers to the real world and do useful work with them by using sensors, motors and other hardware. | | Back to Top | | |
  |  Harprit Registered Member

       Date Joined Dec 2008 Total Posts : 62 | Posted 2/20/2009 4:31 PM (GMT -8) |   | COSMIC:
Thanks for the comments. I'm afraid filters will have to wait for a more advanced text. This one is for beginners. However I will keep your suggestions in mind.
Thanks HSS | | Back to Top | | |
  |  Harprit Registered Member

       Date Joined Dec 2008 Total Posts : 62 | Posted 2/20/2009 4:41 PM (GMT -8) |   | On the 4 line display I think the problem might be a lack of power from the Propeller. Make sure the display is getting full 5 volts Make sure the signals from the Propeller go through buffers to get them to 5 volts equivalents. If this does not fix it, please let us know again
HSS | | Back to Top | | |
 |  Harprit Registered Member

       Date Joined Dec 2008 Total Posts : 62 | Posted 8/11/2009 6:26 AM (GMT -8) |   | Here is the latest update on the beginners book I have been working on Accepted by publisher McGraw Hill will publishing it I will have finished verbiage turned in to them by Oct 31 this year, latest. It should be out early next year Thanks to all for all the feed back you provided HSS | | Back to Top | | |
   |  Harprit Registered Member

       Date Joined Dec 2008 Total Posts : 62 | Posted 8/11/2009 7:37 AM (GMT -8) |   | OBC Thanks for the comments
Mark If you followed the previous posts, you will see that I have tried to address your concerns. Hopefully this will be what you and others like you are looking for. Thanks
HSS | | Back to Top | | |
 | 93 posts in this thread. Viewing Page : 1 2 3 4 | | Forum Information | Currently it is Saturday, November 21, 2009 11:38 AM (GMT -8) There are a total of 393,861 posts in 55,536 threads. In the last 3 days there were 84 new threads and 712 reply posts. View Active Threads
| | Who's Online | This forum has 17693 registered members. Please welcome our newest member, Fosco. 48 Guest(s), 13 Registered Member(s) are currently online. Details Siri, Jay Kickliter, Jim Fouch, JRetSapDoog, Dogg, dMajo, hover1, ErNa, Harley, Sapieha, Electronegativity, Tubular, MicroDirk |
Forum powered by dotNetBB v2.42EC SP2.02 dotNetBB © 2000-2009 |
|
|