EFX-TEK

TEK Talk => Prop-1 => JonnyMac's Prop-1 Programming Attack! => Topic started by: JonnyMac on February 04, 2013, 09:33:44 AM

Title: JonnyMac's Prop-1 Programming Attack!
Post by: JonnyMac on February 04, 2013, 09:33:44 AM
This sub-forum is for discussion of my book, "JonnyMac's Prop-1 Programming Attack!" General questions may be posted in this forum. I will create separate threads per chapter to keep everything neatly organized. Thanks in advance for your input and patience -- this book has been rattling around in my head for a long time and it's nice to let it out!
Title: Re: JonnyMac's Prop-1 Programming Attack!
Post by: bsnut on February 04, 2013, 09:41:59 AM
That's great to hear. I will glad to read another good book.
Title: Re: JonnyMac's Prop-1 Programming Attack!
Post by: JonnyMac on February 12, 2013, 01:58:30 PM
I will create chapter-by-chapter threads for input, but will maintain a single, updated document. That document will be posted in the last-available thread, with a link here for convenience.

JonnyMac's Prop-1 Programming Attack
-- http://www.efx-tek.com/php/smf/index.php?action=dlattach;topic=2017.0;attach=851
Title: Re: JonnyMac's Prop-1 Programming Attack!
Post by: HauntedWolf on February 14, 2013, 08:38:48 AM
Awesome!  Can't wait to see the final product!  Of course I'll be reading as you go too....   
Title: Re: JonnyMac's Prop-1 Programming Attack!
Post by: JonnyMac on February 14, 2013, 09:10:44 AM
And asking questions and making suggestions, too, I hope. Of course, I appreciate any feedback, even the minor typos kind of thing.

The reason I'm doing this online before going to print is that as a guy who has been programming the BS1 for 18+ years, it's easy for me to take things for granted. If there is something I can explain (like Jeff suggesting I explain why the headers are marked WRB) or clarify, please chime in.

The book will be filled with code samples. If you have requests for specific programs or techniques, please ask.
Title: Re: JonnyMac's Prop-1 Programming Attack!
Post by: HauntedWolf on February 14, 2013, 09:40:58 AM
I think a chapter (or appendix?) about servos would be helpful.  That seems to be one of the biggest topics that gets talked about in the Rocky Mountain Haunters group when we talk about controllers.  Some code samples showing servo control would be great.

Along the same lines, practical examples of haunt uses is another ideas.   Things like how to trigger (using PIR vs Pressure Mat vs breaker beam vs button), how to turn on an LED light, servos, firing a pneumatic valve, etc.  Playing music (dare I say VMusic2?)    ;)

Having the programming concepts is great, but some practical examples would take it to another level.  Some simple and some complex....

Not sure if that is the direction you want to go, but I would love it.
Title: Re: JonnyMac's Prop-1 Programming Attack!
Post by: JonnyMac on February 14, 2013, 10:44:41 AM
All of the code concepts will be backed up with practical examples. Lots of them.

As far as using other products... we'll see. At the risk of offending, we've driven a lot of business by recommending other companies that haven't responded in kind. That's fine -- but I don't have to keep recommending companies that would not do the same for John and me, and I certainly don't have to do it in a book with my name on it.

On the VMUSIC: No. It sucks. That company's support system (for VMUSIC) sucks. When I needed assistance with their product (we thought about using the core in our audio player) they blew me off. And then, about a week later, their sales staff had the nerve to call me and ask how many thousand units a year we would be buying. I responded, "Zero!" and then hung up the phone.

If I do my job well those that want to subject themselves to the crap that is VMUSIC will be well-equipped to write the code to do so.  ;)
Title: Re: JonnyMac's Prop-1 Programming Attack!
Post by: HauntedWolf on February 14, 2013, 10:52:29 AM
I totally agree with you about not promoting specific non-EFX-TEK products, the VMUSIC was a definite tongue-in-cheek comment...I know how much the VMUSIC is a pain to work with.

My other suggestions were simply a off the top of my head posting...generic reference would be great.
Title: Re: JonnyMac's Prop-1 Programming Attack!
Post by: JonnyMac on February 14, 2013, 11:02:32 AM
I was speaking to a publisher about another book like this called "JonnyMac's Propeller Programming Attack!" (it's in process, too). When he asked me about the tone I replied, "Imagine if Ricky Gervais could write a book on embedded programming -- that's the tone I want to take." He smiled and liked the idea.

I will be cheeky, perhaps brash, in my JonnyMac Attacks books, in a deliberate attempt to shake readers out of what can be a thick subject.

After your comment I wondered, what should I call the chapter on servos. I've decided to call it "Surviving Servos" because using a standard servo with a Prop-1 or Prop-2 is darned difficult to do correctly. Keeping servos refreshed in a single-threaded system requires a different framework and mentality; this is why Scott Edwards invented the serial servo controller (SSC) after the BS1 became popular.
Title: Re: JonnyMac's Prop-1 Programming Attack!
Post by: Jeff Haas on February 14, 2013, 11:52:25 PM
I think one section should help the user understand how to interface with another piece of hardware.  How does it hook up?  What does the data sheet say about how to communicate to it?  Etc.  In other words, the general principles of figuring it out, since there will always be new stuff released after the book comes out.

You could use EFX hardware for an example, which would avoid referring to boards from other companies.  "Let's pretend we didn't know anything about this board, how would we go about using it?"
Title: Re: JonnyMac's Prop-1 Programming Attack!
Post by: JackMan on February 15, 2013, 10:17:33 AM
 
QuoteIn other words, the general principles of figuring it out, since there will always be new stuff released after the book comes out.

Let's be honest, there's ALWAYS gonna be these types of questions no matter how you cut it. I think Jon has and will continue to do an excellent job of explaining what each of the connections do and what gets connected to them for various situations/devices. At some point the end user should be able to figure out how to connect their own devices.  8)
Title: Re: JonnyMac's Prop-1 Programming Attack!
Post by: JonnyMac on February 15, 2013, 10:36:22 AM
I was having a conversation with John B last night and something to point out is that the final product will have LOTS of illustrations. I don't have them now because they take a long time.  I will start inserting markers in the text where an illustration will be.

Part of my challenge, too, is having to explain a bit of electrical/electronics theory through the course of the text. I'm sure this is an area where the "live feedback while the book is written" will get very active.

Please feel free to ask for specific examples and projects. I may not be able to accommodate them all, yet I will do my best. The examples should help explain programming concepts and what I want to do is make sure I have two or more examples of every concept.

There will be an index of PBASIC 1.0 keywords with the normal definition text (Parallax has given me permission to use text from their help file -- which I helped build while I worked there). In addition to the normal stuff, each keyword will get a usefulness rating from me, as well as some commentary.

Other index ideas:
  -- electrical basics (VERY basic)
  -- resistor color codes
  -- working with LEDs (putting Ohm's Law to use)
  -- understanding "open collector" devices
  -- understanding electrical specs on relays and valves

Please submit other ideas for other indices.
Title: Re: JonnyMac's Prop-1 Programming Attack!
Post by: leving on February 21, 2013, 07:15:00 AM
How about -- Connecting to external devices
                    -- Controllers and Audio
                    -- Relays motors
                    -- 3rd party (vmusic)
Title: Re: JonnyMac's Prop-1 Programming Attack!
Post by: livinlowe on February 21, 2013, 01:41:20 PM
Quote from: leving on February 21, 2013, 07:15:00 AM
How about -- Connecting to external devices
                    -- Controllers and Audio
                    -- Relays motors
                    -- 3rd party (vmusic)
Yeah, Jon has already said No Vmusic, because it sucks. I fried one, and bought another and havent played yet. With the rogue robotics MP3 player I havent wanted to.
Title: Re: JonnyMac's Prop-1 Programming Attack!
Post by: leving on February 22, 2013, 07:54:00 AM
Well, not so much vmusic but other such 3rd party devices that could be controlled.  Tips and advice.
Title: Re: JonnyMac's Prop-1 Programming Attack!
Post by: HauntedWolf on February 22, 2013, 08:00:49 AM
Maybe a list of 3rd party components that really work well with the Prop-1?

Obviously some discussion of how other EFX-Tek products could be used would be a nice touch....
Title: Re: JonnyMac's Prop-1 Programming Attack!
Post by: livinlowe on February 22, 2013, 11:29:47 AM
Quote from: leving on February 22, 2013, 07:54:00 AM
Well, not so much vmusic but other such 3rd party devices that could be controlled.  Tips and advice.
Ahh! Gotcha, and I agree!
Title: Re: JonnyMac's Prop-1 Programming Attack!
Post by: JonnyMac on February 22, 2013, 06:25:46 PM
I will -- as I have one -- use the Rogue uMP3 as one of the 3rd party devices; it works, and it uses two wires for serial versus the one-wire comms on the AP-16+.

My goal is to teach you to fish, not just hand a basket of fishes. You'll get the basket, of course, I just want to give you the knowledge to keep filling it yourself!
Title: Re: JonnyMac's Prop-1 Programming Attack!
Post by: Jeff Haas on April 11, 2013, 08:08:30 PM
Hey, when's our next fishing lesson?
Title: Re: JonnyMac's Prop-1 Programming Attack!
Post by: JonnyMac on April 12, 2013, 01:21:09 AM
Sorry, I'm not a very linear writer. When I finish the second chapter ("Programming: It's a Numbers Game") I will post it. In the mean time I've been working on material all over the book, and I've recently purchased a screen cap program so that I can make videos with narration going through various programs.
Title: Re: JonnyMac's Prop-1 Programming Attack!
Post by: bsnut on April 12, 2013, 02:55:24 AM
That's OK Jon I do some of my projects the same way.
Title: Re: JonnyMac's Prop-1 Programming Attack!
Post by: Jeff Haas on April 12, 2013, 11:07:52 AM
OK, we'll just have to be patient.  Thanks for letting me know.
Title: Re: JonnyMac's Prop-1 Programming Attack!
Post by: jukingeo on August 31, 2013, 12:04:46 PM
Great news Jon!

I been away from the forums for a while...but I always come back around Halloween.  Then I saw his post on your new book.  I am CERTAINLY going to get a copy once you have it done.   As it is, I been doing much more work with the Prop-1 than the Prop-2 lately.  (Yeah, I am kind of working backwards, I know).   It is just that for most work with the prop controllers, I find the Prop-1 to be more than enough.

I do have a Propeller learning board though, so I am working on that as well.

I will keep an ear to the ground waiting for when the book is released.

Geo
Title: Re: JonnyMac's Prop-1 Programming Attack!
Post by: JonnyMac on August 31, 2013, 01:01:38 PM
I've been away from this project for a while -- so, were even! I'll be back at it and am working on some multi-media materials as well to get people going as we get into the prop control and decorating season (Halloween, Thanksgiving, Hannukkah, Christmas, New Years).
Title: Re: JonnyMac's Prop-1 Programming Attack!
Post by: michilson on August 27, 2014, 02:42:08 PM
Jon,

Cant wait for this to come out I'm excited to see more about what your controllers will do. I'd love to see a bigger collection of terms the controllers understand that control variables.

I know you have helped me in the past on some codes and I think that would be a huge help to have a better definition of what the terms mean and what they do in the Codes.

Keep up the Great work cant wait to see this.
Title: Re: JonnyMac's Prop-1 Programming Attack!
Post by: JonnyMac on August 27, 2014, 03:27:10 PM
I didn't do anybody any favors by announcing it WAY before I should have. I thought that I could keep my normal schedule, EFX-TEK development, support, and writing schedule, personal writing schedule (book, screenplays, etc), and personal life. I was wrong. And then even more custom development work (by EFX-TEK for other companies) showed up.

This will find life. My sincerest wish is that anyone who wants to be as comfortable with the Prop-1/BS1 as I am can be.