Help Needed Programming
HelpMePlease
Posts: 4
First off I am sorry if this is the wrong board or the wrong way to post such a question, as you can see this is my first post.
So here is the short version of my problem, with a little background. I started college in 2000, it really didn't work out for me that well so I left. I than came back in the Spring of 2008 to finish up the last year and a half I had left. I am now down to my final class. It is an embedded systems class using the Propeller chip along with the propeller powered HYDRA. I am taking this class as an Independent Study, the teacher I have for it is no help at all. He basically gave me the materials and said I want this to happen with it. (best example I can give you is if I gave you a multidimensional block and asked you to draw it in ProE or CAD, without having any ProE or CAD experience and not giving you any guidance).
I am now stuck, the teacher wants the Propeller chip to be programed to work as a clock. He wants it to work with LED displays, but if I can get it to work on the TV I am sure he wouldn't have a problem with it. I have no idea where to start on this, and after reading these boards you all seem very knowledgeable and could prob figure something out within minutes. Any help you can provide would be very very very much appreciated. This being my last college class ever to graduate I am very ready to get it done.
Thanks in advance.
So here is the short version of my problem, with a little background. I started college in 2000, it really didn't work out for me that well so I left. I than came back in the Spring of 2008 to finish up the last year and a half I had left. I am now down to my final class. It is an embedded systems class using the Propeller chip along with the propeller powered HYDRA. I am taking this class as an Independent Study, the teacher I have for it is no help at all. He basically gave me the materials and said I want this to happen with it. (best example I can give you is if I gave you a multidimensional block and asked you to draw it in ProE or CAD, without having any ProE or CAD experience and not giving you any guidance).
I am now stuck, the teacher wants the Propeller chip to be programed to work as a clock. He wants it to work with LED displays, but if I can get it to work on the TV I am sure he wouldn't have a problem with it. I have no idea where to start on this, and after reading these boards you all seem very knowledgeable and could prob figure something out within minutes. Any help you can provide would be very very very much appreciated. This being my last college class ever to graduate I am very ready to get it done.
Thanks in advance.
Comments
This PDF has tons of info on it. If you don't have the Hydra book this is where I would go.
If you want to learn, this is the place to be asking for help. If you want someone to do it for you... good luck!
Rich H
2) Start with existing examples. There are some permanent threads at the top of the thread list in this forum. In the "Getting Started" thread, there's some very helpful information on getting started with the Propeller.
3) Browse the Propeller Object Exchange (obex.parallax.com). This has all sorts of I/O drivers for different displays including TVs and LEDs. They all come with demo programs with explanations or some documentation usually included in the source files. Have a look at anything that sounds useful for your project.
4) Download the application note on the cog counters. These can be set up to count system clock cycles and can be used for your clock timebase. That and other useful downloads are here: www.parallax.com/tabid/442/Default.aspx.
5) Look at the Propeller Education Kit tutorials on the last mentioned link.
6) Look at the "Spin Zone" articles here: www.parallax.com/tabid/272/Default.aspx
Post Edited (Mike Green) : 7/16/2009 5:06:43 AM GMT
Once again thanks again for your guidance and thanks in advance to anyone else who can help.
I think he would have a problem if you do it with TV output. Guess you have several 7 segment displays for displaying the time?! It's something completely different to drive those than simply starting a TV driver and print the time and I think that this is exactly part of the expectation! The 'problem' already starts with wiring the 7 segment displays. You can't connect displays for hh[noparse]:mm:[/noparse]ss with the propeller directly as you would need 42 I/O pins. Just a buzzword for you: Multiplexing.
I am pretty sure that if you stop with crying and start with studying you can solve the problem. A few weeks ago I showed my son (who is 11y/o) how to do multiplexing of several 7 segment displays with the propeller, so it's easy.
Whenever you have concrete questions a lot of people here in the forum are willing to help you.
I agree with MagIO2. I wish my professors would throw us to the wolves (so to speak...).
My first advice is "DON'T PANIC".
I think people here need a lot more information here before we can offer any sensible advice, most of it about you strangely enough. We need to know where you are starting from.
So:
Can you program? Any thing, in any language?
Can you build the LED hardware?
Do you comprehend seven segment displays (I assume by the stated requirement)?
Do you understand multiplexing.?
Have you read the Propeller manual and worked your way though and tried out the bits of code in there? Starting from flashing a single LED on a pin?
Do you have the Hydra book?
Do you have to build this "clock" hardware or does it already exist for you to program?
Getting that first LED flashing is always priority when I start playing with any new embedded micro or the circuit it sits in or its operating system. It goes a long way towards fixing the ""I just don't get this" I have become very frustrated." problem as you then have confidence that something works and you understand it and you can then build on that.
Small steps is the rule.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.
BTW I have simulated this display on the prop. But make an attempt first and post your code.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBladeProp, RamBlade, TwinBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: Micros eg Altair, and Terminals eg VT100 (Index) ZiCog (Z80), MoCog (6809)
· Search the Propeller forums (via Google)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
http://www.parallax.com/Portals/0/Downloads/docs/prod/prop/PELabsFunBook-v1.1.pdf
Page 62....also read that whole chapter..chapter 4
This is a good start point...
What is the name of your school....I am interested to see what colleges are
using the Propeller....
I think the Hydra is not the best thing for the course you are doing....they would have been
better off with the Education Kit instead.....but that is life.....
Sam
·
No I cannot program at all. I did have a visual basic class, but that was back in 2002 so I have no memory of that.
Can you build the LED hardware?
I have the diagram to build it, but even that is not working correctly.
Do you comprehend seven segment displays (I assume by the stated requirement)?
I kind of understand how they work, but to ask me how to explain it would be a mistake
Do you understand multiplexing.?
No
Have you read the Propeller manual and worked your way though and tried out the bits of code in there? Starting from flashing a single LED on a pin?
I have worked through those 10 examples in that book and had them all working, but that was mostly retyping what was in the book.
Do you have the Hydra book?
Yes I do, thats for the video game I have to make, I also have another propeller board just for this "clock" project
Do you have to build this "clock" hardware or does it already exist for you to program?
I have to wire it up on the board.
I go to Ohio Northern University. Its a very small school. This is the only class these items are used.
I will be headed out of town so if I dont reply dont think that I have lost track of the board. You all have been very helpful and I am very thankful for that.