PaintBall Stamp
Archiver
Posts: 46,084
Hey everyone,
I'm working on a project that counts how many shots from my paintball
gun are fired
and then displays them on four 7seg leds displays through a max 7219. I
have everything
wired up, but when I flip the switch I get a blip from the screen
usually a 5 and then nothing.
So I simplified it to one screen and a starter program which is "Using
the Max7219 display
Driver" from Parallax. I followed all the instructions except for
installing capacitors because
I'm running straight from the pwr supply which is in operational
voltages. If you could please
help I'd greatly appreciate it.
Thanks
-Mike
[noparse][[/noparse]Non-text portions of this message have been removed]
I'm working on a project that counts how many shots from my paintball
gun are fired
and then displays them on four 7seg leds displays through a max 7219. I
have everything
wired up, but when I flip the switch I get a blip from the screen
usually a 5 and then nothing.
So I simplified it to one screen and a starter program which is "Using
the Max7219 display
Driver" from Parallax. I followed all the instructions except for
installing capacitors because
I'm running straight from the pwr supply which is in operational
voltages. If you could please
help I'd greatly appreciate it.
Thanks
-Mike
[noparse][[/noparse]Non-text portions of this message have been removed]
Comments
decoding, I got a pattern of leds on the display to light up? Does
anyone know what this means?
-Mike
Original Message
From: Mike Dillon [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=rx31u5hnKOdgAY-hIq_62UIiXnKuuAtZnvHKgRTNNzqqPuBi_QSD09T7nwwoL95rt4BMfgoc4MmTNSoljGl5cw]laxboy687@e...[/url
Sent: Friday, July 18, 2003 7:05 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] PaintBall Stamp
Hey everyone,
I'm working on a project that counts how many shots from my paintball
gun are fired
and then displays them on four 7seg leds displays through a max 7219. I
have everything
wired up, but when I flip the switch I get a blip from the screen
usually a 5 and then nothing.
So I simplified it to one screen and a starter program which is "Using
the Max7219 display
Driver" from Parallax. I followed all the instructions except for
installing capacitors because
I'm running straight from the pwr supply which is in operational
voltages. If you could please
help I'd greatly appreciate it.
Thanks
-Mike
[noparse][[/noparse]Non-text portions of this message have been removed]
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
shift register) without problems. I think my driver chip is slightly
different than yours, though.
In the code below, simply set LED_DigitToChange to 0-7 to pick which digit
to change, and LED_DigitValue to 0-$F, then GOSUB LED_SetDigit.
I have Q0 through Q7 of the shift register going to D0 to D7 of the MAX7218
if I remember right. I have Q8 going to the MODE input of the MAX7218 as
well to save a stamp pin.
Here's the applicable code to update a digit:
LED_DigitToChange VAR Nib ' What digit to change
LED_DigitValue VAR Byte ' What to set it to
LED_WritePin PIN 12 ' Causes inputs on MAX7218 to get latched in
SP_SIPin PIN 0 ' Serial data input pin on 74F675
SP_StorePin PIN 1 ' Latches shift register into parallel out
register on 74F675
SP_ShiftPin PIN 2 ' Shifts one bit into shift register from
SP_SIPin
LED_SetDigit:
' Send command byte
LOW SP_StorePin
SHIFTOUT SP_SIPin, SP_ShiftPin, MSBFIRST, [noparse][[/noparse]%101011\6, LED_DigitToChange\3]
HIGH SP_StorePin
LOW LED_WritePin
HIGH LED_WritePin
' Send digit
LOW SP_StorePin
SHIFTOUT SP_SIPin, SP_ShiftPin, MSBFIRST, [noparse][[/noparse]%01\1, %000\3,
LED_DigitValue\4]
HIGH SP_StorePin
LOW LED_WritePin
HIGH LED_WritePin
RETURN
Original Message
From: "Mike Dillon" <laxboy687@e...>
To: <basicstamps@yahoogroups.com>
Sent: Saturday, July 19, 2003 2:05 AM
Subject: [noparse][[/noparse]basicstamps] PaintBall Stamp
> Hey everyone,
>
> I'm working on a project that counts how many shots from my paintball
> gun are fired
>
> and then displays them on four 7seg leds displays through a max 7219. I
> have everything
>
> wired up, but when I flip the switch I get a blip from the screen
> usually a 5 and then nothing.
>
> So I simplified it to one screen and a starter program which is "Using
> the Max7219 display
>
> Driver" from Parallax. I followed all the instructions except for
> installing capacitors because
>
> I'm running straight from the pwr supply which is in operational
> voltages. If you could please
>
> help I'd greatly appreciate it.
>
>
>
> Thanks
>
>
>
> -Mike
>
>
>
> [noparse][[/noparse]Non-text portions of this message have been removed]
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
doesn't show one.
Original Message
From: Steve Ziuchkovski [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=xrq5KTQwIIsESe1zlECzFs_F1RSY5mrRgUEty1N_sQvf_3Mc8R4cwfnbsJFmk9tE-doRivVFBZrvzeM0Vg]zman97211@y...[/url
Sent: Saturday, July 19, 2003 6:16 AM
To: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] PaintBall Stamp
I interface to 6 digits using a MAX7218 via a 74F675 (Serial in/Parallel
out
shift register) without problems. I think my driver chip is slightly
different than yours, though.
In the code below, simply set LED_DigitToChange to 0-7 to pick which
digit
to change, and LED_DigitValue to 0-$F, then GOSUB LED_SetDigit.
I have Q0 through Q7 of the shift register going to D0 to D7 of the
MAX7218
if I remember right. I have Q8 going to the MODE input of the MAX7218 as
well to save a stamp pin.
Here's the applicable code to update a digit:
LED_DigitToChange VAR Nib ' What digit to change
LED_DigitValue VAR Byte ' What to set it to
LED_WritePin PIN 12 ' Causes inputs on MAX7218 to get latched in
SP_SIPin PIN 0 ' Serial data input pin on 74F675
SP_StorePin PIN 1 ' Latches shift register into parallel out
register on 74F675
SP_ShiftPin PIN 2 ' Shifts one bit into shift register from
SP_SIPin
LED_SetDigit:
' Send command byte
LOW SP_StorePin
SHIFTOUT SP_SIPin, SP_ShiftPin, MSBFIRST, [noparse][[/noparse]%101011\6,
LED_DigitToChange\3]
HIGH SP_StorePin
LOW LED_WritePin
HIGH LED_WritePin
' Send digit
LOW SP_StorePin
SHIFTOUT SP_SIPin, SP_ShiftPin, MSBFIRST, [noparse][[/noparse]%01\1, %000\3,
LED_DigitValue\4]
HIGH SP_StorePin
LOW LED_WritePin
HIGH LED_WritePin
RETURN
Original Message
From: "Mike Dillon" <laxboy687@e...>
To: <basicstamps@yahoogroups.com>
Sent: Saturday, July 19, 2003 2:05 AM
Subject: [noparse][[/noparse]basicstamps] PaintBall Stamp
> Hey everyone,
>
> I'm working on a project that counts how many shots from my paintball
> gun are fired
>
> and then displays them on four 7seg leds displays through a max 7219.
I
> have everything
>
> wired up, but when I flip the switch I get a blip from the screen
> usually a 5 and then nothing.
>
> So I simplified it to one screen and a starter program which is "Using
> the Max7219 display
>
> Driver" from Parallax. I followed all the instructions except for
> installing capacitors because
>
> I'm running straight from the pwr supply which is in operational
> voltages. If you could please
>
> help I'd greatly appreciate it.
>
>
>
> Thanks
>
>
>
> -Mike
>
>
>
> [noparse][[/noparse]Non-text portions of this message have been removed]
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject
and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
>
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
BS2 interfacing to the driver chip directly, but this used something like 10
pins on the stamp. The driver IC has a MODE pin, a WRITE pin, and eight data
pins (at least on my MAX7218). I needed to set each of the data pins (either
called D0-D7 for loading a digit, or other names when sending a command
byte) and the mode pin, then toggle the WRITE pin to latch the data into the
driver. After I got it working, I put in the shift register, connected 9 of
the output from the register to 9 of the pins on the MAX7218. Now, all I
need to do is shift 9 bytes into the register and latch the serial data to
the parallel outputs, then latch thos into the driver, using 6 less pins
that originally needed (10).
Steve
Original Message
From: "Mike Dillon" <laxboy687@e...>
To: <basicstamps@yahoogroups.com>
Sent: Saturday, July 19, 2003 1:29 PM
Subject: RE: [noparse][[/noparse]basicstamps] PaintBall Stamp
> Thanks for the reply, do I need a shift register? On the code I have it
> doesn't show one.
>
>
Original Message
> From: Steve Ziuchkovski [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=Yr384zCoky19uSYhd1oBR4KxtPZuilb8ni1diU8rpcUOxq8gr-_oRKJlGI0MzOnQb9rUBBzXqtZTk10]zman97211@y...[/url
> Sent: Saturday, July 19, 2003 6:16 AM
> To: basicstamps@yahoogroups.com
> Subject: Re: [noparse][[/noparse]basicstamps] PaintBall Stamp
>
> I interface to 6 digits using a MAX7218 via a 74F675 (Serial in/Parallel
> out
> shift register) without problems. I think my driver chip is slightly
> different than yours, though.
>
> In the code below, simply set LED_DigitToChange to 0-7 to pick which
> digit
> to change, and LED_DigitValue to 0-$F, then GOSUB LED_SetDigit.
>
> I have Q0 through Q7 of the shift register going to D0 to D7 of the
> MAX7218
> if I remember right. I have Q8 going to the MODE input of the MAX7218 as
> well to save a stamp pin.
>
>
> Here's the applicable code to update a digit:
>
> LED_DigitToChange VAR Nib ' What digit to change
> LED_DigitValue VAR Byte ' What to set it to
> LED_WritePin PIN 12 ' Causes inputs on MAX7218 to get latched in
> SP_SIPin PIN 0 ' Serial data input pin on 74F675
> SP_StorePin PIN 1 ' Latches shift register into parallel out
> register on 74F675
> SP_ShiftPin PIN 2 ' Shifts one bit into shift register from
> SP_SIPin
>
> LED_SetDigit:
> ' Send command byte
> LOW SP_StorePin
> SHIFTOUT SP_SIPin, SP_ShiftPin, MSBFIRST, [noparse][[/noparse]%101011\6,
> LED_DigitToChange\3]
> HIGH SP_StorePin
> LOW LED_WritePin
> HIGH LED_WritePin
>
> ' Send digit
> LOW SP_StorePin
> SHIFTOUT SP_SIPin, SP_ShiftPin, MSBFIRST, [noparse][[/noparse]%01\1, %000\3,
> LED_DigitValue\4]
> HIGH SP_StorePin
> LOW LED_WritePin
> HIGH LED_WritePin
> RETURN
>
>
>
Original Message
> From: "Mike Dillon" <laxboy687@e...>
> To: <basicstamps@yahoogroups.com>
> Sent: Saturday, July 19, 2003 2:05 AM
> Subject: [noparse][[/noparse]basicstamps] PaintBall Stamp
>
>
> > Hey everyone,
> >
> > I'm working on a project that counts how many shots from my paintball
> > gun are fired
> >
> > and then displays them on four 7seg leds displays through a max 7219.
> I
> > have everything
> >
> > wired up, but when I flip the switch I get a blip from the screen
> > usually a 5 and then nothing.
> >
> > So I simplified it to one screen and a starter program which is "Using
> > the Max7219 display
> >
> > Driver" from Parallax. I followed all the instructions except for
> > installing capacitors because
> >
> > I'm running straight from the pwr supply which is in operational
> > voltages. If you could please
> >
> > help I'd greatly appreciate it.
> >
> >
> >
> > Thanks
> >
> >
> >
> > -Mike
> >
> >
> >
> > [noparse][[/noparse]Non-text portions of this message have been removed]
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the Subject
> and
> Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
> >
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject
> and Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
7218 drives common anode displays
and the 7219 doesn't require a 74F675 (the 7218 does)...the application
from parallax should work fine if everything is wired up properly
good luck
guy
At 07:29 AM 7/19/2003 -0400, you wrote:
>Thanks for the reply, do I need a shift register? On the code I have it
>doesn't show one.
>
>
Original Message
>From: Steve Ziuchkovski [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=6pt_WnQkvg4BeNZJCX-3CCpD2tYK8KzML7j0OaAX22yirRMg3ldJl3txz4yMb-KKTyR4XiUpLIcXbElLHSA]zman97211@y...[/url
>Sent: Saturday, July 19, 2003 6:16 AM
>To: basicstamps@yahoogroups.com
>Subject: Re: [noparse][[/noparse]basicstamps] PaintBall Stamp
>
>I interface to 6 digits using a MAX7218 via a 74F675 (Serial in/Parallel
>out
>shift register) without problems. I think my driver chip is slightly
>different than yours, though.
>
>In the code below, simply set LED_DigitToChange to 0-7 to pick which
>digit
>to change, and LED_DigitValue to 0-$F, then GOSUB LED_SetDigit.
>
>I have Q0 through Q7 of the shift register going to D0 to D7 of the
>MAX7218
>if I remember right. I have Q8 going to the MODE input of the MAX7218 as
>well to save a stamp pin.
>
>
>Here's the applicable code to update a digit:
>
>LED_DigitToChange VAR Nib ' What digit to change
>LED_DigitValue VAR Byte ' What to set it to
>LED_WritePin PIN 12 ' Causes inputs on MAX7218 to get latched in
>SP_SIPin PIN 0 ' Serial data input pin on 74F675
>SP_StorePin PIN 1 ' Latches shift register into parallel out
>register on 74F675
>SP_ShiftPin PIN 2 ' Shifts one bit into shift register from
>SP_SIPin
>
>LED_SetDigit:
> ' Send command byte
> LOW SP_StorePin
> SHIFTOUT SP_SIPin, SP_ShiftPin, MSBFIRST, [noparse][[/noparse]%101011\6,
>LED_DigitToChange\3]
> HIGH SP_StorePin
> LOW LED_WritePin
> HIGH LED_WritePin
>
> ' Send digit
> LOW SP_StorePin
> SHIFTOUT SP_SIPin, SP_ShiftPin, MSBFIRST, [noparse][[/noparse]%01\1, %000\3,
>LED_DigitValue\4]
> HIGH SP_StorePin
> LOW LED_WritePin
> HIGH LED_WritePin
>RETURN
>
>
>
Original Message
>From: "Mike Dillon" <laxboy687@e...>
>To: <basicstamps@yahoogroups.com>
>Sent: Saturday, July 19, 2003 2:05 AM
>Subject: [noparse][[/noparse]basicstamps] PaintBall Stamp
>
>
> > Hey everyone,
> >
> > I'm working on a project that counts how many shots from my paintball
> > gun are fired
> >
> > and then displays them on four 7seg leds displays through a max 7219.
>I
> > have everything
> >
> > wired up, but when I flip the switch I get a blip from the screen
> > usually a 5 and then nothing.
> >
> > So I simplified it to one screen and a starter program which is "Using
> > the Max7219 display
> >
> > Driver" from Parallax. I followed all the instructions except for
> > installing capacitors because
> >
> > I'm running straight from the pwr supply which is in operational
> > voltages. If you could please
> >
> > help I'd greatly appreciate it.
> >
> >
> >
> > Thanks
> >
> >
> >
> > -Mike
> >
> >
> >
> > [noparse][[/noparse]Non-text portions of this message have been removed]
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the Subject
>and
>Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
>http://docs.yahoo.com/info/terms/
> >
>
>
>To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
>from the same email address that you subscribed. Text in the Subject
>and Body of the message will be ignored.
>
>
>Your use of Yahoo! Groups is subject to
>http://docs.yahoo.com/info/terms/
>
>
>
>
>To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
>from the same email address that you subscribed. Text in the Subject and
>Body of the message will be ignored.
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
program, so I downloaded the docs and wrote my own code which was a lot
simpler than I thought to be. The display works fine and it records the
button presses as it should BUT when I pull the trigger on the gun the
recoil resets my stamp and display. Right now I'm checking for a loose
wire or something like that but I'm wondering can the stamp take a big
shock without reseting?
Thanks again guys.
-Mike
Original Message
From: Guy De Bievre [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=CLSEnNkritOe2m32oQiUXKa7kDVZQLWKV4JzR8vD0KmuTI4ldYxsyxm_M_ke4ZXxyhg0bQ]guydb@t...[/url
Sent: Sunday, July 20, 2003 3:25 PM
To: basicstamps@yahoogroups.com
Subject: RE: [noparse][[/noparse]basicstamps] PaintBall Stamp
7219 drives common cathode displays
7218 drives common anode displays
and the 7219 doesn't require a 74F675 (the 7218 does)...the application
from parallax should work fine if everything is wired up properly
good luck
guy
At 07:29 AM 7/19/2003 -0400, you wrote:
>Thanks for the reply, do I need a shift register? On the code I have it
>doesn't show one.
>
>
Original Message
>From: Steve Ziuchkovski [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=Gu1SgwR6nCDS14RY1pT709rjBwQ2yhdDLMFcoB8yR4W5XuMMBfVrZBtq4a1K6Scb3rAU_y2-isLAU7nIXg]zman97211@y...[/url
>Sent: Saturday, July 19, 2003 6:16 AM
>To: basicstamps@yahoogroups.com
>Subject: Re: [noparse][[/noparse]basicstamps] PaintBall Stamp
>
>I interface to 6 digits using a MAX7218 via a 74F675 (Serial
in/Parallel
>out
>shift register) without problems. I think my driver chip is slightly
>different than yours, though.
>
>In the code below, simply set LED_DigitToChange to 0-7 to pick which
>digit
>to change, and LED_DigitValue to 0-$F, then GOSUB LED_SetDigit.
>
>I have Q0 through Q7 of the shift register going to D0 to D7 of the
>MAX7218
>if I remember right. I have Q8 going to the MODE input of the MAX7218
as
>well to save a stamp pin.
>
>
>Here's the applicable code to update a digit:
>
>LED_DigitToChange VAR Nib ' What digit to change
>LED_DigitValue VAR Byte ' What to set it to
>LED_WritePin PIN 12 ' Causes inputs on MAX7218 to get latched in
>SP_SIPin PIN 0 ' Serial data input pin on 74F675
>SP_StorePin PIN 1 ' Latches shift register into parallel out
>register on 74F675
>SP_ShiftPin PIN 2 ' Shifts one bit into shift register from
>SP_SIPin
>
>LED_SetDigit:
> ' Send command byte
> LOW SP_StorePin
> SHIFTOUT SP_SIPin, SP_ShiftPin, MSBFIRST, [noparse][[/noparse]%101011\6,
>LED_DigitToChange\3]
> HIGH SP_StorePin
> LOW LED_WritePin
> HIGH LED_WritePin
>
> ' Send digit
> LOW SP_StorePin
> SHIFTOUT SP_SIPin, SP_ShiftPin, MSBFIRST, [noparse][[/noparse]%01\1, %000\3,
>LED_DigitValue\4]
> HIGH SP_StorePin
> LOW LED_WritePin
> HIGH LED_WritePin
>RETURN
>
>
>
Original Message
>From: "Mike Dillon" <laxboy687@e...>
>To: <basicstamps@yahoogroups.com>
>Sent: Saturday, July 19, 2003 2:05 AM
>Subject: [noparse][[/noparse]basicstamps] PaintBall Stamp
>
>
> > Hey everyone,
> >
> > I'm working on a project that counts how many shots from my
paintball
> > gun are fired
> >
> > and then displays them on four 7seg leds displays through a max
7219.
>I
> > have everything
> >
> > wired up, but when I flip the switch I get a blip from the screen
> > usually a 5 and then nothing.
> >
> > So I simplified it to one screen and a starter program which is
"Using
> > the Max7219 display
> >
> > Driver" from Parallax. I followed all the instructions except for
> > installing capacitors because
> >
> > I'm running straight from the pwr supply which is in operational
> > voltages. If you could please
> >
> > help I'd greatly appreciate it.
> >
> >
> >
> > Thanks
> >
> >
> >
> > -Mike
> >
> >
> >
> > [noparse][[/noparse]Non-text portions of this message have been removed]
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the
Subject
>and
>Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
>http://docs.yahoo.com/info/terms/
> >
>
>
>To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
>from the same email address that you subscribed. Text in the Subject
>and Body of the message will be ignored.
>
>
>Your use of Yahoo! Groups is subject to
>http://docs.yahoo.com/info/terms/
>
>
>
>
>To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
>from the same email address that you subscribed. Text in the Subject
and
>Body of the message will be ignored.
>
>
>Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/