I was looking at Chapter 7 - Controlling a robot with computer vision, and on page 260, figure 7-3 , can someone please verify the wiring is correct? If you look at the code on page 261, I do not see how that would work.
The diagram on page 260 shows D0..D7(MSB) of the ADC connected to P16..P23 of the Propeller. This was my setup for the DanceBot. However, the default configuration of the adc-only program on page 261 (which is tutorial #9 in ViewPort) expects D0..D7 of the ADC to be connected to P0..P7 of the Propeller. Charley has since been successful grabbing video- see here: http://forums.parallax.com/showthread.php?p=879037 Thanks for pointing this out!
Hanno
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Co-author of the official Propeller Guide- available at Amazon
Developer of ViewPort, the premier visual debugger for the Propeller (read the review here, thread here), 12Blocks, the block-based programming environment (thread here)
and PropScope, the multi-function USB oscilloscope/function generator/logic analyzer
Is there any place in Europe where i can buy this book? The parallax dealers still have "pre-order" instead of "buy" on their site.
Amazon.co.uk as well...
Hey i have a question the sample code on page 172 for intefacing the gyro. Im new and i really like the section because it finally explains to me how to use the timing diagrams in spec sheets, to code that gets data from devices. This is the part that is confusing me, i thought i had it but im not following too well. heres the code
Im new, so I feel like im understanding this wrong, i thought the "repeat 16" loop was supposed to clock the cycles and read in the next bit only. Which what the first 3 lines do right? But looking at this code i would of put the last 2 lines out of the repeat loop, but as its in there its in the loop.
You are correct.· The last two·commands should only be executed after the loop is finished with its 16 iterations.· So they (the last two commands) should be outdented by two spaces in the book·(three spaces in your copy of the text above) to align with the "r" in the·repeat command.
atlstang said...
...explains to me how to use the timing diagrams in spec sheets, to code that gets data from devices. ...
If your goal was to learn how to develop applications from datasheets, I'd say you've got it down.· Excellent work.
Sorry about the typo.· The publisher's preprocessing software made a lot of indentation adjustments to the draft I submitted.· Man, after all the iterations of proofs and copyedits, I was sure all those gotchas were fixed.
If in doubt, try downloading the actual code from the FTP site:
and thanks for the reply! I really like the book, like everyone else. The explanations in the first few chapters fills in a lot of the gaps between what ya guys probably take for granted and the stuff i barely seen or slightly confused on. Seeing an explanation + timing diagram + spin code + viewport view next to each other, ya cant really get much clearer then that . Its really so simple
Should of checked that gyro file, didnt think of that since i didnt have a gyro module. Ill probably try it on some other components i have that use the same method when i get time. Thanks!!!
The more I read and re-read the book, the better it gets. I have worked on small projects off and on, but now I am taking on a wireless datalogger to capture RC truck data for students to use in my physics classes. The whole thing is making sense, and the book is a perfect fit to the project. The book is an excellent companion to the PE kit labs. When I go back to the labs, the coding is really coming together and making sense.
I am certainly happy for whoever came up with a great idea to put the book together with various authors and practical, easy to follow projects. Superb.
I have been through most portions of the book now and would say that I am pleasantly surprised at the tidbits I pick up in each chapter. When I first got the book there were a couple chapters I dismissed and put lower on my priority to read list. As I have gone through those chapters I wasn't disappointed though my expectation level was lower. For instance, Andre's chapter on a media peripheral use of the Propeller. The title didn't sound interesting and I don't have a particular use for that project. I can see how some would use this project, it just isn't for me. The last two nights I read through Andre's chapter and the bit about a terminal and parsing user commands was great. I was recently writing a terminal app and the tips and seeing how Andre did the same thing was exactly what I needed to get my mental block free to finish the work. Main point: Be sure to read every chapter - there is something to learn even if the chapter's project doesn't fit your taste.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter, E.I. www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" LCD Composite video display, eProto for SunSPOT www.tdswieter.com
Help, Please see Page 43,· Paragraph labled "Running The Stack Test" in "The Official Guide" (Item code 32316)· gives directions which appear not to work if you follow the directions as explained. This exercise involves running· Flash_Stack_Test.spin found at·( ftp://ftp.propeller-chip.com/PCMProp ) with Parallax Serial Terminal. Specifically I am not getting the indicated prompt no matter how fast I Click enable on the Parallax Serial Terminal's Enable button. instead i get a sort of·y character after the led P(16) completes its flashing.
Please can you verify you can run as directed and get the results that are indicated in the text.
I have done some troubleshooting on this problem as follows, I have tested my setup by successfully running: a similar exercise found on page 59, i.e. "Test Float32.spin" also at (ftp://ftp.propeller-chip.com/PCMProp). I am using the Propeller Demo Board: Item code 32100 . Now, This exercise works correctly with The· "Parallax Serial Termina"l·when you follow the directions as described, hopefully this proves my setup is correct.
Can you turn to page 43 in this book (Item code 32316) and follow the instructions as directed and tell me if it works for you?
Comments
Thank You
·
Hanno
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Co-author of the official Propeller Guide- available at Amazon
Developer of ViewPort, the premier visual debugger for the Propeller (read the review here, thread here),
12Blocks, the block-based programming environment (thread here)
and PropScope, the multi-function USB oscilloscope/function generator/logic analyzer
Amazon.co.uk as well...
Post Edited (mugur) : 2/7/2010 8:59:50 AM GMT
I got notification on Friday (2 days ago) that they were shipping mine as it had been 'released'.
HTH
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
=================
The future is in our hands.
Which way to the future?
=================
3 min later: I BOUGHT IT !
Post Edited (mugur) : 2/7/2010 7:20:55 PM GMT
Im new, so I feel like im understanding this wrong, i thought the "repeat 16" loop was supposed to clock the cycles and read in the next bit only. Which what the first 3 lines do right? But looking at this code i would of put the last 2 lines out of the repeat loop, but as its in there its in the loop.
Post Edited (atlstang) : 2/8/2010 2:31:24 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter, E.I.
www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" LCD Composite video display, eProto for SunSPOT
www.tdswieter.com
That's a·typo; nice catch!
You are correct.· The last two·commands should only be executed after the loop is finished with its 16 iterations.· So they (the last two commands) should be outdented by two spaces in the book·(three spaces in your copy of the text above) to align with the "r" in the·repeat command. If your goal was to learn how to develop applications from datasheets, I'd say you've got it down.· Excellent work.
Sorry about the typo.· The publisher's preprocessing software made a lot of indentation adjustments to the draft I submitted.· Man, after all the iterations of proofs and copyedits, I was sure all those gotchas were fixed.
If in doubt, try downloading the actual code from the FTP site:
ftp://ftp.propeller-chip.com/PCMProp/
For example, you can get Test_Gyro.spin out of the /Chapter_04/Source directory, which has the correct indentation.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Andy Lindsay
Education Department
Parallax, Inc.
Post Edited (Andy Lindsay (Parallax)) : 2/8/2010 7:37:33 PM GMT
Cool thats crystal clear now i know that.
and thanks for the reply! I really like the book, like everyone else. The explanations in the first few chapters fills in a lot of the gaps between what ya guys probably take for granted and the stuff i barely seen or slightly confused on. Seeing an explanation + timing diagram + spin code + viewport view next to each other, ya cant really get much clearer then that . Its really so simple
Should of checked that gyro file, didnt think of that since i didnt have a gyro module. Ill probably try it on some other components i have that use the same method when i get time. Thanks!!!
I am certainly happy for whoever came up with a great idea to put the book together with various authors and practical, easy to follow projects. Superb.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter, E.I.
www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" LCD Composite video display, eProto for SunSPOT
www.tdswieter.com
Help, Please see Page 43,· Paragraph labled "Running The Stack Test" in "The Official Guide" (Item code 32316)· gives directions which appear not to work if you follow the directions as explained. This exercise involves running· Flash_Stack_Test.spin found at·( ftp://ftp.propeller-chip.com/PCMProp ) with Parallax Serial Terminal. Specifically I am not getting the indicated prompt no matter how fast I Click enable on the Parallax Serial Terminal's Enable button. instead i get a sort of·y character after the led P(16) completes its flashing.
Please can you verify you can run as directed and get the results that are indicated in the text.
I have done some troubleshooting on this problem as follows, I have tested my setup by successfully running: a similar exercise found on page 59, i.e. "Test Float32.spin" also at (ftp://ftp.propeller-chip.com/PCMProp). I am using the Propeller Demo Board: Item code 32100 . Now, This exercise works correctly with The· "Parallax Serial Termina"l·when you follow the directions as described, hopefully this proves my setup is correct.
Can you turn to page 43 in this book (Item code 32316) and follow the instructions as directed and tell me if it works for you?
Registered user : johnsoperV52 Email johnsoperV5@starband.net 432-352-2298
ftp://ftp.propeller-chip.com/PCMProp