Propeller Newb questions
Dgswaner
Posts: 795
Ok I haven't had the prop for even a week so I'm a Newb, I'll have plenty of time to prove I'm a noob later.
I have the prop. demo board, what is the Max current an I/o pin can handle.
I want to drive some 5v relays, so I'm guessing I'll have to use transistors, will the 5v, pin be sufficient to handle 4 relays at once? or do I need to incorporate an additional power supply.
Can some one provide a link or spin code for controlling a servo, or preferably a demo on how to connect and operate, I've looked at the object exchange and downloaded the 4 servo controller as well as the 32 servo controller, but I want a strip down version of it, I want to figure out how it works and what is required, being new to all of this the many layers of "features" are a little hard to plow through. It just seems odd that what can be done on a stamp in 2 line takes a hundred for the prop. I know thats not comparing apples to apples but for a beginner it seems a bit much.
thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
I have the prop. demo board, what is the Max current an I/o pin can handle.
I want to drive some 5v relays, so I'm guessing I'll have to use transistors, will the 5v, pin be sufficient to handle 4 relays at once? or do I need to incorporate an additional power supply.
Can some one provide a link or spin code for controlling a servo, or preferably a demo on how to connect and operate, I've looked at the object exchange and downloaded the 4 servo controller as well as the 32 servo controller, but I want a strip down version of it, I want to figure out how it works and what is required, being new to all of this the many layers of "features" are a little hard to plow through. It just seems odd that what can be done on a stamp in 2 line takes a hundred for the prop. I know thats not comparing apples to apples but for a beginner it seems a bit much.
thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
Comments
- read the Data Sheet
- thoroughly read the first 4 Chapters of the Manual
- work yourself through the Educational Examples.
Believe me - it will pay! Do advanced things later.
I hate to say this but, that does not help answer the simple and understandably important questions any newb would have. One of the reasons why we have these forums is "ask away". Sometimes, that is the easiest and best route for quickly ramping up. When you start saying things that sound like, do THIS first THEN you can think about THAT later (not the first time), has (in my case) and might switch people off. And, that is not a good motivational catalyst.
I love the great work you're doing on propeller and contributing; I appreciate all of that. But, please note there are folks who will need ground level to-the-question help and guidance.
I have read thru the Manual - it is good material - not sufficient enough to help ramp people up. BS-II Manual is a lot better starter document than the Prop manual is from a beginner perspective. That's my honest feedback to the Parallax Prop teams. I have always voiced the limited content in the maual - it is mostly a command reference (which is good to have) than it is a starter manual.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"any small object, accidentally dropped, goes and hides behind a larger object."
·
ALIBE - Artificial LIfe BEing. In search of building autonoumous land robot
Many of the "questions" in this forum can be answered by RTFM. If the answer IS plainly that, I personally think you should give it, maybe also giving the section or page number. I know this a very personal opinion, but I do not think you can DO programming or electronics by following receipes: You have to UNDERSTAND.
My reason for posting here for monthes now is to further this UNDERSTANDING, as I notices that over and over the same problems were addressed and incompletely answered.... I have no problems in being tacit in case of what I called "simple specific requests"....
@ALIBI: I appreciate your posting, and I must say I have not fully been aware of possible touchinesses, although I met this issues before in this forum as you also remarked.
But please note: I did not recommend "the Manual" but "the first four chapters or the Manual"
I also ask myself, why YOU did not give Dgswaner the mA he was asking for??
From pages 15 and 16 of the Propeller Manual (version 1.01), each I/O pin can source or sink 30mA.
There's also a stated limit for each group of 8 pins ( P0-P7, P8-P15 etc ) of 100mA, so if one pin is sinking 30mA, the rest can only sink 70mA between them, and so on. If you needed a number of higher current sinking or sourcing pins you might have to spread them across the four sets of eight pins.
However ... from page 4 of the Propeller Datasheet (Rev 0.3 5/17/2007), the figure there is given as 40mA per pin. On page 25, that 40mA is repeated as an Absolute Maximum Rating.
The Spin Stamp Manual (v1.0 04/2007), also repeats the 40mA figure, and also adds "all output pins together must not exceed 300 mA when in sink and source states", referring to P0-P15, suggesting 150mA max per eight pins, not the 100mA given in the Propeller Manual.
So, good question, no easy answer.
I did get the servo4 object working, got to love objects! so I guess at this point I don't need any more info on servos.
I do miss the debug to a serial port feature of the stamps, as I have no extra Tv, monitor or LCD's handy. so for reading inputs I'm going to have to rely on LED's to let me know what's going on.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
No, You have not
There are (at least) two very good helpers:
- Ariba's "PropTerminal"
- The fancy "ViewPort"
It's unfortunate in this world of "instant gratification", that there is so little patience. For many people, picking up the manual and reading it through before you begin is a daunting task. They need help understanding that the big fat book is nothing to be afraid of. I read the Propeller Manual from beginning to end (well...mostly) before I even bought one, but I'm weird that way.
I believe the best approach is this:
1. Give them a short answer to their question, but do not do any design for them (unless you really want to).
2. Tell them where they can learn more "for more about this, read pp. 12-15 in the manual".
3. Give them strong, but polite encouragement to study the books before trying to solve complicated problems.
Don't forget: a good teacher is also a good listener!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The more I know, the more I know I don't know.· Is this what they call Wisdom?
I must have been up too late when I tried to access the Education pages, I swear it downloaded a something.PE file and I figured that it was only for educators... I will go through those lesson before I try anything on my own.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
The Propeller Education Kit Labs aren't for educators only, they are for anyone who wants to be educated!· Andy has written them for a college-level audience·with some·programming and electronics experience, but no prior knowlege about the Propeller.· By following the labs you can learn by doing, though you will have to adapt them to the Propeller Demo Board, since the labs are written for the fully-breadboard PE Kit.· You can access a thread about each of the labs from the PE Kit sticky at the top of this forum, and if you have questions or feedback on any of them just post them there and the author will reply.
-Stephanie Lindsay
Editor, Parallax Inc.
P.S. to Alibe,
Thanks for your feedback about the BASIC Stamp and Propeller manuals; your points are well taken.· While they share the same primary author, the BASIC Stamp Manual has been revised, expanded and refined several times over many years.· Were we to have tried to make the Propeller Manual everything we want it to be in its first edition, it would not be published yet!·· There are plans for revisions in the works but no dates at this time.
thanks for all your work on them.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.