Shop OBEX P1 Docs P2 Docs Learn Events
Interesting Project? — Parallax Forums

Interesting Project?

-Gary-Gary Posts: 6
edited 2008-12-12 22:06 in General Discussion
Hello All!
· I recently joined your informative forum and enjoy reading the posts. Looking to gain some more electronic
know-how from BasicStamps. I have yet to start buying components and this is my reason for this post.
· My other hobby is racing slot cars and I was looking for a project to tie the two together. Thought about a
motor dyno, so I designed and built one (see attached photos). Will try to give a description of what I would
like to eventually achieve, maybe someone can get me started in the right direction.
Sequence of Operation:
· The controller (BS2?) would:
·· 1a.) Turn on a (solid state?) relay to power up the motor from my 12vdc PS.
·· 1b.) Start the BS2? timer at the same moment.
·· 2.) Controller would read flywheel pulses from sensor.
·· 3.) Controller would drop power to relay after a set time span. 6.0vdc takes 5 seconds to get max rpm.
······ Max Flywheel rpm would be calculated and displayed on a 2x16 LCD
·
Future Additions:
·· 1.) Every 0.25 sec. the controller would read flywheel pulses and store time and rpm data.
·· 2.) Data would be transferred to my desktop and displayed in Excel graph or maybe a VB program graph.

· I looked at a both a photo interrupter and Hall effect sensor to get an input. The photo interruptor looks
more usable due to balancing issue with the magnet. Has anyone found a compatible model with the stamps?
The motors can run about 20,000 rpm under load @ 6 vdc. I am using a 5.4:1 gear ratio which will limit my
rpm count to less than 3700·inputs per minute or 62 per second max.
Thanks in advance for your help!
·· -Gary
800 x 600 - 148K
800 x 600 - 151K
800 x 600 - 123K
800 x 600 - 124K
800 x 600 - 114K

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-12-10 23:13
    The COUNT statement would give you both an accurate time interval and a total pulse count that you can divide to get an average speed. A PAUSE statement before the COUNT could also allow the motor to come up to speed after turning on the power.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-12-11 16:10
    With two consecutive COUNT commands you could be sure the motor has spun up (and is not stuck) before trying to get the full-speed RPM.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Engineering
  • -Gary-Gary Posts: 6
    edited 2008-12-11 16:48
    Mike and Chris, big thanks for your help so far! I believe the BS2-IC with the BOE has enough capacity to handle the project. What do you·think?

    · -Gary
  • AImanAIman Posts: 531
    edited 2008-12-11 17:28
    Yes the BS2 can handle what you want to do.

    One other option is PAUSE 6 seconds (or maybe a few more) to get the motor to speed and then COUNT.
  • -Gary-Gary Posts: 6
    edited 2008-12-12 22:06
    Thanks AIman,
    Got a Discovery Kit from the Daily Deal ordered today.
    Have you ever used a photo interrupter?

    · -Gary
Sign In or Register to comment.