Jump to content

Ned

Members
  • Posts

    8481
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Ned

  1. i has a new car and no new scoot (as expected, as i was never looking to buy a new scoot TBH) but will def come along to this for the funsies, and will have vengaboys playing in the car for anyone that breaks down and needs a lift (looking at you here @sentra and @UTERUS ). I have a tow bar too, and can tow someones trailer along with me fo sho!
    I have accom etc sorted, so will be there!

    • Like 6
  2. you're creating 2 things called IDLE, one in warningStates_t and one in rpmState_t

    you're also cant mix enums and defines like that. an enum is a set of numbers that increase by 1, so

    enum test_t {STATEA, STATEB, STATEC, STATED};
    will mean STATEA = 0, STATEB = 1, STATEC = 2 and STATED = 3 etc

    so you're enums and defines wont work. What are you trying to do with them?

    you also cant have multiple variables with the same names... curState and oldState are douibles as you made one with rpmStates_t and one with warningStates_t.
    The compiler doesnt know/care that they are fifferent types, they have the same name, so it wont know which one you are talking about when you say oldState = IDLE; etc

    • Like 2
  3. 14 hours ago, ajg193 said:

    IMG-20190929-WA0005.thumb.jpeg.0da7bc9c164d472e5c1a0dec9be03df5.jpeg

     

    I managed to get my electronic leadscrew on the BarryLathe to cut its first thread today. The lathe probably hasn't cut a thread in 20 years. I still need to wire up a control panel so I can set the parameters without reprogramming it, but it is great being able to cut literally any thread pitch without changing a single gear. (Thread in image is a bodgy attempt at M16x1.5 with a random piece of HSS cutter)

    you seen this guy?

     

    • Like 1
  4. not the same as a KE, but in my KP i put a new feed and return into the stock plate, so tank is 100% original, just modified this bit
    IMG_20151112_115939.jpg

    Then i ran a filter and a pump externally, as well as some new lines for the feed and return. Another filter in the engine bay, and thats all really.
    works mint and was reasonably easy

    • Like 1
    • Thanks 1
  5. 'zactly. The bridge has 4 diodes to rectify the AC so adding another one is like putting 2 relays after each other on your fuel pump wiring... Will work, but not needed and adds extra complexity for zero good reason

    • Like 1
    • Thanks 1
  6. the pull up holds the line HIGH when the switch is open. Imagine the resistor is basically a spring holing the input signal high.

    Then when you press the switch, it pulls the line directly to ground, and the spring stretches. Then when you let go, the spring pulls it back high. So when you press the switch, it is the falling edge you want.

    • Like 2
  7. hey man. 3v3 does not go directly to ground, it goes to a resistor, which goes to a cap to ground, and to another resistor to ground. It doesnt go directly to ground. You understand what a resistor does right?

    thats a pretty simple circuit and should work just fine...? i think i'd prefer it without the 1k resistor myself, so when you press the switch the cap instantly discharges, and keeps the pin low during bouncing while the cap charges? but thats just a feeling without trying any of it myself with a scope to see if that actually works that way.

    that way will remove some weird noise and false triggering, and will do a bit for debouncing. It really just slows down the button press, which works as debouncing

    • Like 3
  8. why are you still dicking around with this? just buy a speeduino board, and start writing code... those ignition drivers all work etc as well as give you lots of other inputs you're going to need...

    or you doing it purely as an exercise on how to drive coils/learn something? I dont understand why you are using a fet to drive an IGBT to drive a coil, when you can just use a fet to drive the coil

    • Like 1
×
×
  • Create New...