Project bikecomputer: multiple 7 segment displays
PlaneTeeR
Posts: 100
hello,
I'm starting a project on my school called bikecomputer.
Here I have to develope a computer to show te speed and show the distance and so on..
I'm building it on a board of eduction·with a javalin stamp.
For this project i'm displaying the speed and distance on 7 segment displays (minimum of 3)!
The board had 15 I/O ports, how can i connect those 3, 7 segment displays and use them?
Sorry voor my bad english
Thanks Johnny
Holland
I'm starting a project on my school called bikecomputer.
Here I have to develope a computer to show te speed and show the distance and so on..
I'm building it on a board of eduction·with a javalin stamp.
For this project i'm displaying the speed and distance on 7 segment displays (minimum of 3)!
The board had 15 I/O ports, how can i connect those 3, 7 segment displays and use them?
Sorry voor my bad english
Thanks Johnny
Holland
Comments
I've started a thread in "Basic Stamp" forum titled: "Adding a speedometer in my BoeBot". Guys that replied gave me an idea of what is possible to do. Check it out, if you can find anything that could help you, too.
Cu.
John.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
I've now connected 2 7 segment displays on my board for testing.
But when i read that code thats been made i don't understand how the do it.
I've got the technical part but don't understand te software part.
thanks
Johnny
Holland
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
Johnny
Holland
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
Ok this code should work for any 4 digit value stored in the array "value". DecDig is the illumination pattern for each of the digits 0-9. Each time the Show_Digit subroutine is called, it displays the next digit on the next LED. The first line resets the segments (turns them all off), the LOOKUP command activates the next segment for displaying it's digit, the READ command looks up the illumination pattern for the new digit by fetching the value at the base address of the illumination map plus the value of the digit to be displayed and updates the value output to the segment, finally the digit is incremeted with wrap around for the next time Show_Digit is called.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
http://www.parallax.com/detail.asp?product_id=27220
You will note that I explain this is simply to demonstrate multiplexing only, and that it's really not appropriate to integrate into programs that require a lot of other work going on.· I think you'll get very poor display results from this once you start trying to read the bicycle's speed.· But... there is a chapter later in the book that shows how to interface to the MC14489 (costs a few dollars) and let you display what you want without having to do the multiplexing yourself.· I also wrote about this chip in Nuts & Volts:
http://www.parallax.com/dl/docs/cols/nv/vol6/col/nv127.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
Sorry for my late reaction.
As I mentioned before, I'm working with the Javalin stamp. Will this chip do better or is it still to slow to get good results with multiplexing? I don't think so myself, so i'm going to find a source for that motorola chip. Thanks for the advise, and hopefully i can figure it out in Java :P.
Johnny Kuiper
Holland
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
offtopic:
Will there be more javalin example's in the future?
Johnny Kuiper
Holland
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Well our school went from Basic to Javalin, because we also have intensive Java programming.
We will see what the future brings...
When I finish this project, I will send it to you...
Johnny Kuiper
Holland