Heartbeat
MacGeek117
Posts: 747
I'm developing this project for my brother. This is the parts list:
I'd like to have feedback and any advice you can give·on this project. Here is the schematic:
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There are 10 kinds of people in the world,
those that know binary and those that don't.
www.goldmine-elec.com
www.parallax.com
www.expresspcb.com
www.startrek.com
I'd like to have feedback and any advice you can give·on this project. Here is the schematic:
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There are 10 kinds of people in the world,
those that know binary and those that don't.
www.goldmine-elec.com
www.parallax.com
www.expresspcb.com
www.startrek.com
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Steve
"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There are 10 kinds of people in the world,
those that know binary and those that don't.
www.goldmine-elec.com
www.parallax.com
www.expresspcb.com
www.startrek.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
engineer, fireman, bowler, father, WoW addict [noparse];)[/noparse]
bugg
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There are 10 kinds of people in the world,
those that know binary and those that don't.
www.goldmine-elec.com
www.parallax.com
www.expresspcb.com
www.startrek.com
also i use usually use fets to switch ground. Like so
V+ <---/\/\/\/
|>|
DGS
>Ground
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
engineer, fireman, bowler, father, WoW addict [noparse];)[/noparse]
Post Edited (nick bernard) : 9/22/2005 1:02:35 PM GMT
bugg
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There are 10 kinds of people in the world,
those that know binary and those that don't.
www.goldmine-elec.com
www.parallax.com
www.expresspcb.com
www.startrek.com
RoboGeek
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There are·3 kinds of people in the world,
the dreamers, the do-ers, and the "Oh, what's this button do"-ers.
Formerly bugg.
www.parallax.com
www.goldmine-elec.com
www.expresspcb.com
www.startrek.com
be avoided. With a +5V supply you can place 2LED's in series with a current limiting resistor, or you might be able to
get away with 3LED's in series if the Vled is less than 1.6V with a small current limiting resistor. If you choose to use
the +Vsupply instead of +5V, then you might be able to get away with more LED's in series.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
RoboGeek
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There are·3 kinds of people in the world,
the dreamers, the do-ers, and the "Oh, what's this button do"-ers.
Formerly bugg.
www.parallax.com
www.goldmine-elec.com
www.expresspcb.com
www.startrek.com
·
Even better if you are using the FET to ground the LEDs.
You can put 6 LEDs in series with a resistor and connect the + to the battery (+12 to +14) and use the FET to ground the "-" end.
Make two strings (controlled by the same FET) and you have your 12 LEDs with no strain on the regulator.
Also 50Mhz is kinda overkill 4MHz would work fine and draw less current. Although your probably not worried being powered by a motorcycle battery.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module" Now available from Parallax for only·$49.95
http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
"If I was king for just one day...I don't think I could screw things up any worse [noparse];)[/noparse]"
·
>>Even better if you are using the FET to ground the LEDs.<< Oversight when making the schematic.
I will be using more that 12 LEDs, more like ~15-20.
RoboGeek
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There are·3 kinds of people in the world,
the dreamers, the do-ers, and the "Oh, what's this button do"-ers.
Formerly bugg.
www.parallax.com
www.goldmine-elec.com
www.expresspcb.com
www.startrek.com
·
www.parallax.com/detail.asp?product_id=28099
RoboGeek
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There are·3 kinds of people in the world,
the dreamers, the do-ers, and the "Oh, what's this button do"-ers.
Formerly bugg.
www.parallax.com
www.goldmine-elec.com
www.expresspcb.com
www.startrek.com
·
P.S. I will have two active-high pushbuttons connected to RB.1 and RB.2.
RoboGeek
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There are·3 kinds of people in the world,
the dreamers, the do-ers, and the "Oh, what's this button do"-ers.
Formerly bugg.
www.parallax.com
www.goldmine-elec.com
www.expresspcb.com
www.startrek.com
RoboGeek
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There are·3 kinds of people in the world,
the dreamers, the do-ers, and the "Oh, what's this button do"-ers.
Formerly bugg.
www.parallax.com
www.goldmine-elec.com
www.expresspcb.com
www.startrek.com
·
RoboGeek
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There are·3 kinds of people in the world,
the dreamers, the do-ers, and the "Oh, what's this button do"-ers.
Formerly bugg.
www.parallax.com
www.goldmine-elec.com
www.expresspcb.com
www.startrek.com
·
To help you gain experience, and partly for fun and promoting a simple minded RTOS, I thought I would help you and write some code to do what I think you're trying to accomplish.
The attached code is a schedule driven state machine that tests every 100 mSec for changing the on-time and off-time for the "heartbeat", as well as drives the beat in 100 mSec increments.
Buttons rb.0, and rb.1 respectively decrease and increase the OFF duration, and buttons rb.2 and rb.3 respectively decrease and increase the ON duration. The LED drive output is rb.7
All quite simple really; the beat duration, it's on-time load value and it's off-time load value are all adjusted independently.
Step through it with Guenther's simulator, and run it single step with she SX-Key to gain a full appreciation of what is going on. Then experiment to your heart's content!
P.S. I have not yet run this code, but I believe it to be OK. I'll check it tomorrow when I get to my bench.
post edit;· ooops... I·saw a couple of errors; hope this now works...check tomorrow!
Cheers,
Peter (pjv)
Post Edited (pjv) : 1/12/2006 5:16:48 AM GMT
Peter, snagged the download on that one too, I can use all the examples I can get, looks like its going to be quite a while before I get a grasp though.
Chris