Results 1 to 13 of 13

Thread: PWM Electric Water Pump control

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Fuel Injected! gregs78cam's Avatar
    Join Date
    May 2011
    Location
    N. Idaho
    Posts
    767
    I was finally able to spend some time (not a whole lot) on trying my hand at writing code a few weeks ago. I didn't really write anything original, just combined a few of the tutorials to simulate what I want to accomplish. It takes a little getting used to writing a set of instructions that don't run concurrently. Like if you write a delay for 3 seconds, nothing else happens until the delay is up. So I have to start thinking about using counters? Where with every cycle it ads 1 to a counter, then causes function to occur at 'x' count and reset the counter right? But then doesn't the rate that the counter counts at depend on the number of instructions? Oh, so much to learn.

    Unfortunately I won't have much time in the near future to get much more done, just too much going on right now to really devote a lot of time to my own stuff. Oh well.
    1978 Camaro Type LT, 383, Dual TBI, '7427, 4L80E
    1981 Camaro Z-28 Clone, T-Tops, 350/TH350
    1981 Camaro Berlinetta, V-6, 3spd
    1974 Chevy/GMC Truck, '90 TBI 350, '7427, TH350, NP203, 6" lift, 35s

  2. #2
    Super Moderator Six_Shooter's Avatar
    Join Date
    Feb 2011
    Posts
    2,968
    You're talking about a for loop.

    But what you really want when you want more than one operation or set of instructions to run at a time (Technically they always do, but that's nitty gritty details), look at the blink without delay example. I recently learned how to use it and it's great, I can have the serial monitor update once a second, so that I can actually catch the values being displayed while the something else that uses the same input can update instantly without affecting the other operation.
    The man who says something is impossible, is usually interrupted by the man doing it.

Similar Threads

  1. EFI Fuel Pump Upgrade
    By gregs78cam in forum Fuel Injection Writeups Articles and How to New and Old
    Replies: 35
    Last Post: 04-24-2014, 10:22 AM
  2. ECM and fuel pump relay control
    By belaw in forum GM EFI Systems
    Replies: 12
    Last Post: 04-26-2013, 04:13 AM
  3. $0E fan control XDF
    By CDeeZ in forum GM EFI Systems
    Replies: 5
    Last Post: 08-04-2012, 05:58 AM
  4. 7427 $OD EGR to control electric fans
    By 96lt4c4 in forum GM EFI Systems
    Replies: 5
    Last Post: 06-28-2012, 03:37 AM
  5. Replies: 0
    Last Post: 03-21-2012, 08:41 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •