Newbie Question-Best way to play with a Propeller
ElectricAye
Posts: 4,561
Greetings, I'm totally new to this Propeller phenomenon and I'm feeling a bit lost with this object-oriented approach to programming.· I learned how to use the Basic Stamp to a limited degree years ago and found that the Debug feature made it easy for me to learn by trial and error.· With the Propellor I can't seem to find anything I can easily "plug and hug" like the Debug system for the Stamp.· There seems to be an endless varieity of possibilities for the Propeller - TV outputs, VGA, LCDs, etc. - but I get the impression I first have to learn heaps and heaps before I can confidently implement any of the objects for those interfaces.· So my question is this - is there anything kinda like the Debug that I can use without knowing so much?· The PE kit exercises, which employ flashing LEDs, are easy for me to follow, but I'm having a hard time making the leap to things like the DS18B20, etc. without something Debug-like to play with.· Any suggestions?· Many thanks, Mark
Comments
Starts UART object in a cog at specified baud rate for debug, using FullDuplex.spin.
obex.parallax.com/objects/44/
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Aka: CosmicBob
May I suggest you download the "Objects Lab and Code v1.1 (zip)" from here:
www.parallax.com/tabid/442/Default.aspx
In this lab you will find the Parallax Serial Terminal (PST) which is sometimes called the Propeller Serial Terminal. PST will let you interact with propeller without the need for any other hardware, I found PST very useful for debugging when I started out.
Basically, PST allows you to bring up a serial debug terminal on your PC that communicates with the propeller over the same USB or serial cable you use to program the propeller. It is automatically aware of when the propeller is being programmed and gets out of the way! In the propeller, you use the FullDuplexSerialPlus object (also included in the lab's .zip file) to communicate with PST. In the lab's .pdf file, the PST is described in great detail starting on page 13.
Good luck Mark, and welcome!
David
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Concentrate on understanding the problem, not applying the tool
thanks for the tip about the PST. I had not seen that until you suggested it. I haven't gotten that far in my adventures with the PE lab kit, so I was starting to panic that I might not ever have something Debuglike to play with - without first learning far more than I want to. I'm a nuts and bolts Mech-E trying to get by with what I can, so when electronic geniuses like Bob Lawrence say things like "Simple Debug Starts UART object in a cog at specified baud rate for debug, using FullDuplex.spin"... uh, well, I'm grateful he's taken the time but, uh, I'm, uh, like uh..... duh.....
Thanks everyone for your kind responses!
Mark
Include the object ...
OBJ
tv : "TV_Text"
In your PUB Main let the object know what pin the hardware is connected to ...
tv.Start(12)
When you want to debug / display something ...
tv.Str(String("This is easy!"))
tv.Dec(123456)
tv.Hex($12345678,8)
and so on.
thanks again!
Mark
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
Post Edited (Leon) : 7/26/2008 3:13:05 PM GMT
http://www.parallax.com/Portals/0/Downloads/docs/prod/prop/PropDemoDschem.pdf
Now all I need are some part numbers for the jacks, etc. I'm guessing these are the kinds of things one can find at Radio Shack???
Also, is this TV output from the propeller the kind of signal that can be piped directly into the little thingy on the back on my TV where my cable connection normally goes?
Is my profound and unblissful ignorance showing here?
a thousand thanks for your indefatigable patience,
Mark
I used a phono (RCA) socket on one of my boards. On another I just used a two-pin Molex header connected to an in-line phono socket with a couple of wire leads. You are presumably in the USA and I don't know much about US TVs. UK ones have a multi-way SCART socket and I simply bought a SCART to phono adapter. You will need to connect the video output to a baseband composite video input on your TV, I don't know if that is the same as the cable connection.
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
Post Edited (Leon) : 7/26/2008 3:53:28 PM GMT
It will help you getting started with the hardware basics.
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Getting started with the Protoboard? - Propeller Cookbook 1.4
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
Got an SD card? - PropDOS
Need a part? Got spare electronics? - The Electronics Exchange
TV output is indeed easy provided you are NTSC compatible (PAL is a bit more troublesome but there has been great work done recently - links/sticky anyone I've lost the thread). Never-mind about PAL, your profile says you're in the US, so default NTSC TV output should work for you just fine. Do take into consideration that the TV driver objects use up memory and cog(s), so if your apps are memory intensive and in the end don't require TV out, you may want to use PST which needs very little in terms of resources from the prop.
For example, I'm working on a clock-generator with variable frequency register data (based on user frequency input; yes this is the Si570/1 part) that is stored in RAM (lots of data). There's no way I could run the TV driver in this case natively the video memory mapping is too large. PST allows me to generate and use the tables in almost all RAM available due to the small serial driver footprint. Yes I could use a larger EEPROM or second EEPROM for the tables, eventually that may be the case; but that's not where I am in the development-cycle at the moment. PST runs on the PC and requires a small resource footprint on the propeller to allow me to debug the complex register generation algorithms for the clock generator.
In summary - I don't think PST gets a fair-shake here, I see little reference to it. PST is god in terms of: (1) Newbie initial experience with propeller, PST doesn't require any LEDs or buttons for a hello-world (and more) intro to propeller, and (2) a very useful tool as a small footprint debug terminal that really helps when your data-space is large compared to your code-space. Let's not forget, for anyone that travels a lot and wants to work with the propeller, there are the likes of the Propstick (I think now deprecated and maybe I got the name wrong) and Propstick USB that when used in conjunction with PST allow you to continue coding with Propeller in a hotel room, for-example.
BTW, for TV out consider buying a cheap-small DVD player with video-in (ebaY, amazon?). I use one for TV out display, but it is only PAL (I'm in Jakarta). Cost me around $50 USD. But I still fall-back to PST for quick-lean debug. I've seen a thread on this Forum about buying "broken" LCD DVD players at very low-cost, the DVD drive doesn't work but the display works. Hmmm... YMMV IMHO.
Regards, David
You can then take your development anywhere with ease.
Have you considered the VGA connector to a pc screen? - also a cheap option although unless you get the connector from parallax (or their distributor) you will have to butcher a connector to make it fit (without the ps2 ports I mean). Lots of people have old pc screens because they updated to LCD.
Drone, you've even given me a good idea on what to do with my broken portable DVD player!
beauty to all,
Mark
Here's a shot of mine. (picked up from Fleabay for $14 with a broken DVD mech.)
I can run over 3 hours on the battery.
bp1.blogger.com/_BIrFr7xyNV0/SCpQcAxN0JI/AAAAAAAAAGA/NOfhNJ7fW6k/s1600-h/GEDC0002.JPG
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Getting started with the Protoboard? - Propeller Cookbook 1.4
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
Got an SD card? - PropDOS
Need a part? Got spare electronics? - The Electronics Exchange
That rescued DVD concept is totally cool. It's just the kind of thing drives my wife crazy seeing piled up on the dining table. I can't wait to make it happen.
And furthermore, I love your avatar... but tell me... how in hell did you get a photo of me as a kid???
peace,
Mark
Does anyone have a clue as to what circuitry is required for portable DVD players that do NOT have a TV-IN jack?
Seems all the ones I've been looking at do not have TV-IN. Maybe because I'm looking for lower $/inch pricing.
Also, might a digital photo frame also utilize the same circuitry to display TV-IN?
Seems an LCD being digital would require some sort of conversion from NTSC to digital plus line and frame sync ability.
Not meaning to hi-jack this thread. Just seemed appropriate to ask; if new thread s/b done, just say so. Thanks.
(edit)
I also meant to say that is one beautiful picture of your DVD player display. Crisp and clear. Looks to be around 26 lines of 40 characters, or so. What driver provided that? Using TV_text object only provides some 13 lines; adequate for my present use, though not as crisp on an analog monitor (5" b/w). Thanks for that photo. (/edit)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Harley Shanko
Post Edited (Harley) : 7/27/2008 7:23:12 PM GMT
(Thats is what I've done here: www.warrantyvoid.us/cyberhomedvdplayer.html )
But keep in mind its hardware hacking and there is always chance of failure.
The video driver I use is AI_Generic, you can download it here.
http://forums.parallax.com/showthread.php?p=704974
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Getting started with the Protoboard? - Propeller Cookbook 1.4
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
Got an SD card? - PropDOS
Need a part? Got spare electronics? - The Electronics Exchange