Announcement

Collapse
No announcement yet.

1st generation AUTO cancel TSCU "banging the bits"

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    1st generation AUTO cancel TSCU "banging the bits"

    Has begun...




    (I still haven't decided what to do with the serial in/out pins yet. It's either tie them to 0V or connect them a 3.5mm jack so the Picaxe can be programmed in place.)

    How it works

    The combination of R1-R2-C1-C2 form a 2nd order low pass filter which attenuates (reduces) frequencies above 338'ish Hz. (design centers around a maximum reed switch frequency of 290 Hz @120 Mph)

    D6 is a voltage 'dropping' diode which lowers the supply voltage (5.0V) by .4 or so volts (it all depends on the amount of current flowing).

    D3-D4 are used as transient suppressors. (can't have static destroying components can we!) When the reed switch in the speedometer is closed, diodes D3 and D4 conduct whenever the voltage tries to go over 5.0V OR below -.4V (current flows in a loop) When the reed switch is open those same diodes conduct at approximately .4V OR -.4V (Rail voltage 4.6V OR .0V depending on if the reed switch is open or closed)

    R3-R4-C3-C4 are 2nd order low pass filters for the cancel circuit (there are low pass filters at the input of Q1 and Q2 as well), keeping 'noise' from false triggering the Right, Left and Cancel circuits.
    (hey! I didn't push that switch, why are the turn signals on?) D1 and D2 are the transient suppressors for the cancel circuit.

    U1 is the microcontroller (µC) that takes the input from the reed switch, right, left and cancel switches and uses those inputs to pull either the reset (RST) or trigger (TRIG) lines of U3 low (near 0 Volts) turning on or off the signals.

    U3 (U3.1-2-3) is a bi-stable flip flop (stable in the 'on or off' condition until triggered in the opposite state)

    Q3 and Q5 (Q4-Q6 also) are nothing more than an electronic relay allowing current to flow from turn signal flasher to the turn signals.

    U2 is a 5 volt regulator which powers the device.

    D8 is to protect from a battery being connected backwards.

    D5-D7-D9-D10 are also transient suppressors to protect their associated circuits.

    *******

    A BIG thanks to Duanage for his help getting this portion of the project started and to Robert Barr and Wallogreen (Martin) for their input and help as well.

    'Banging the bits' software design in progress.

    Wish me luck!



    EDIT*** Uploaded latest iteration 05-17-14
    Last edited by rustybronco; 05-17-2014, 08:34 PM.
    De-stinking Penelope http://thegsresources.com/_forum/sho...d.php?t=179245

    http://www.thegsresources.com/_forum...35#post1625535

    #2
    I am sure I wont understand all this but I am subscribed
    82 gs1100e FAUX Skunk
    80 gs1000s

    Comment


      #3
      Actually its pretty simple if you look at it in stages.

      You have a device, the NA556, which is a dual 555 timer in one package configured as a bi-stable flip-flop (stable either in the on or off state). When you apply a voltage, 5 volts in this case to either trigger pin, the NA556 outputs a voltage to the 2N3904 that is kept turned on until it is turned off by pulling the RST line low, which in turn pulls the 'gate' of either FQP27P06 Mosfet low (near 0V), turning on the Mosfet ( held high (off) by R7.1 and R7.3), allowing current to flow from flasher to signal lamps.

      R7.2 and R7.4 are in place to limit the current going to the 2N3904. Those two devices, the 2N3904 and FQP27P06, in the way they are paired up, are nothing more than an 'electrically' operated light switch used to turn your house lights on and off.

      Most of the diodes are in place to protect all the inputs from Electro Static Discharge (ESD).

      The lone exception, D8, near the LM7805 (a 5 volt regulator), is in place to keep the whole mess from frying if someone connects the battery up backwards.


      The BS170's, also Mosfets, are in place so you can use the 12 volts coming from the right and left turn signal switches without cooking the µController as it can only handle a maximum of 5.5 volts on it's inputs. Go to 5.6 volts and it will fry.

      The Picaxe (20X2) was selected for it's internal timer, two 'hardware interrupts', and because the dummy trying to write the code MAY have a chance at making it all work.

      It's not like I've ever done this before...
      Last edited by rustybronco; 05-17-2014, 08:35 PM.
      De-stinking Penelope http://thegsresources.com/_forum/sho...d.php?t=179245

      http://www.thegsresources.com/_forum...35#post1625535

      Comment


        #4
        It's cheating to read the directions. You realize this?

        I look forward to seeing the physical result. Mine's pretty primitive, with no attractive-looking PCB. Never did figure out a reasonable way to provide strain relief for a harness / board interface.
        and God said, "Let there be air compressors!"
        __________________________________________________ ______________________
        2009 Suzuki DL650 V-Strom, 2004 HondaPotamus sigpic Git'cha O-ring Kits Here!

        Comment


          #5
          Originally posted by robertbarr View Post
          It's cheating to read the directions. You realize this?
          It is? Now you go and tell me!

          Mine's pretty primitive, with no attractive-looking PCB. Never did figure out a reasonable way to provide strain relief for a harness / board interface.
          Well there is always eagle cad or diptrace to start you on the path to a professional looking PCB from OSHpark. Shouldn't be to hard with the low parts count your design has.

          De-stinking Penelope http://thegsresources.com/_forum/sho...d.php?t=179245

          http://www.thegsresources.com/_forum...35#post1625535

          Comment


            #6
            RB, did you mention you'd mocked up the first circuit (the one you sent me) without the uP? If so did you try hooking it into a bike and testing it with the engine running?

            At the expense of throwing a damper on things, it'd be nice to know how that worked out...
            It's smoke that make electronic components work.
            Every time I've let the smoke out by mistake, they never work again.
            '80 GS250T... long gone... And back!
            '86 Honda Bol D'Or... very sadly long gone
            '82 GS1000SZ
            '82 GS1100GL
            '01 Honda CBR1100XX BlackBird

            Comment


              #7
              Martin, I did breadboard it up but I don't have a working bike to test it out on. I guess I could run three wires under the fuel tank of the 80 GS850 and see what it does under those conditions or, I could get my butt in gear and finish the '78.

              I'm waiting on the TVS diodes. Maybe I'll connect it up as soon as those arrive.
              Don't know if that's a proper test or not because of the jumpers on the breadboard. ??

              Making the engine stand for it this week!
              Last edited by rustybronco; 05-13-2014, 03:34 PM.
              De-stinking Penelope http://thegsresources.com/_forum/sho...d.php?t=179245

              http://www.thegsresources.com/_forum...35#post1625535

              Comment


                #8
                Are you using the BASIC software development tool or the graphical flow charting tool to write the software?

                1980 GS1000GT (Daily rider with a 1983 1100G engine)
                1998 Honda ST1100 (Daily long distance rider)
                1982 GS850GLZ (Daily rider when the weather is crap)

                Darn, with so many daily riders it's hard to decide which one to jump on next.

                JTGS850GL aka Julius

                GS Resource Greetings

                Comment


                  #9
                  I had a note cross the local hackerspace mailing list about a guy doing small-batch circuitboards online at circuitboards.com

                  If enough people are interested in (and can agree upon) a board solution, apparently you can get that guys to make you a few. I havn't checked out his site yet, so proceed with caution.

                  Comment


                    #10
                    JTGS850GL, Neither.

                    I'm roughly figuring out all the steps necessary to implement the different functions and going through all the Basic commands trying to make it all work without having to make the processor wait for an unreasonable amount of time, and cover all the inputs and flags. Basically I've got a bunch of sheets with all the goto gosub interupts timer3 etc printed out and sitting down with them until I can understand how to put all the different 'calls and functions' together.

                    I've got to understand it first.
                    Last edited by rustybronco; 05-13-2014, 12:19 PM.
                    De-stinking Penelope http://thegsresources.com/_forum/sho...d.php?t=179245

                    http://www.thegsresources.com/_forum...35#post1625535

                    Comment


                      #11
                      Originally posted by rustybronco View Post
                      Martin, I did breadboard it up but I don't have working bike to test it out on. I guess I could run three wires under the fuel tank of the 80 GS850 and see what it does under those conditions or, I could get my butt in gear and finish the '78.

                      I'm waiting on the TVS diodes. Maybe I'll connect it up as soon as those arrive.
                      Don't know if that's a proper test or not because of the jumpers on the breadboard. ??

                      Making the engine stand for it this week!
                      Well from the experience with my effort, don't forget my design around the inputs changed drastically when I connected it in to the bike after working flawlessly on the bench. All because of the environment the thing has to work in. Not sure what the noise immunity is going to be like with your input configuration but be wary it's likely to need some help there to eliminate false detection.
                      It's smoke that make electronic components work.
                      Every time I've let the smoke out by mistake, they never work again.
                      '80 GS250T... long gone... And back!
                      '86 Honda Bol D'Or... very sadly long gone
                      '82 GS1000SZ
                      '82 GS1100GL
                      '01 Honda CBR1100XX BlackBird

                      Comment


                        #12
                        Στην πραγματικότητα αρκετά απλή του , αν το δει κανείς σε στάδια .

                        Έχετε μια συσκευή , η NA556 , η οποία είναι μια διπλή 555 χρονόμετρο σε ένα πακέτο διαμορφώνεται ως bi - σταθερή flip- flop ( σταθερό είτε σε εντός ή εκτός του κράτους ) . Όταν εφαρμόζετε μια τάση , 5 βολτ σε αυτή την περίπτωση είτε να pin ενεργοποίησης, η NA556 εξάγει μία τάση προς το 2N3904 που παραμένει ενεργοποιημένος μέχρι να απενεργοποιηθεί από το τράβηγμα της γραμμής RST χαμηλά , η οποία με τη σειρά της έλκει την «πύλη» του είτε FQP27P06 Mosfet χαμηλή (κοντά 0V ) , την ενεργοποίηση του Mosfet ( ψηλά ( εκτός) από R7.1 και R7.3 ) , που επιτρέπει τη ροή ρεύματος από το καζανάκι για να επισημάνει τους λαμπτήρες .

                        R7.2 και R7.4 είναι σε θέση να περιορίσει το ρεύμα πηγαίνει στο 2N3904 . Οι δύο αυτές συσκευές , η 2N3904 και FQP27P06 , με τον τρόπο που δούλεψαν μαζί , δεν είναι τίποτα περισσότερο από ένα ελαφρύ διακόπτη « ηλεκτρικά » λειτουργία χρησιμοποιείται για να μετατρέψει τα φώτα του σπιτιού σας και να σβήνουν .

                        Οι περισσότερες από τις διόδους είναι σε θέση να προστατεύσει όλες τις εισόδους από Electro Static Απαλλαγή ( ESD ) .

                        Η μοναδική εξαίρεση , D7 , κοντά στο LM7805 ( ρυθμιστής 5 volt ) , είναι σε θέση να κρατήσει ολόκληρο το χάος από το τηγάνισμα , αν κάποιος συνδέει την μπαταρία μέχρι πίσω .

                        Το BS170 του , επίσης Mosfets , είναι στη θέση τους , ώστε να μπορείτε να χρησιμοποιήσετε τα 12 βολτ που προέρχονται από τα δεξιά και αριστερά διακόπτες φλας χωρίς μαγείρεμα το μController , δεδομένου ότι μπορεί να χειριστεί μόνο ένα μέγιστο των 5,5 βολτ για τις εισόδους του . Πηγαίνετε στο 5,6 βολτ και θα τηγανίζουμε .

                        Η Picaxe ( 20Χ2) επιλέχθηκε για αυτό είναι εσωτερικό χρονόμετρο , δύο « διακόπτει υλικού » , και επειδή το ομοίωμα προσπαθεί να γράψει τον κώδικα μπορεί να έχει μια ευκαιρία να κάνει όλες τις εργασίες .

                        Δεν είναι σαν να έχω κάνει ποτέ αυτό ...
                        Means about the same to me.
                        But I know it will work and work well.

                        Comment


                          #13
                          Originally posted by Wallowgreen View Post
                          Not sure what the noise immunity is going to be like with your input configuration but be wary it's likely to need some help there to eliminate false detection.
                          I figured there might be an issue with the inputs, especially the cancel line as it's not isolated like the Right and Left inputs are. Not saying those won't wont be without issue either.

                          Might need to take a look at your design in the future If I have an issue I can't easily over come. Trying to do this with as little input as I can...
                          Last edited by rustybronco; 05-13-2014, 03:09 PM.
                          De-stinking Penelope http://thegsresources.com/_forum/sho...d.php?t=179245

                          http://www.thegsresources.com/_forum...35#post1625535

                          Comment


                            #14
                            Am I not looking at this right or are your Left and Right switch's wired into output lines? Or is the bus on the 20M2 bidirectional?

                            Edit: Never mind... I just verified that the 20M2's bus is programmably bidirectional
                            Last edited by JTGS850GL; 05-13-2014, 03:09 PM.

                            1980 GS1000GT (Daily rider with a 1983 1100G engine)
                            1998 Honda ST1100 (Daily long distance rider)
                            1982 GS850GLZ (Daily rider when the weather is crap)

                            Darn, with so many daily riders it's hard to decide which one to jump on next.

                            JTGS850GL aka Julius

                            GS Resource Greetings

                            Comment


                              #15
                              Originally posted by Flyboy View Post
                              But I know it will work and work well.
                              I wouldn't go betting the farm on it!
                              De-stinking Penelope http://thegsresources.com/_forum/sho...d.php?t=179245

                              http://www.thegsresources.com/_forum...35#post1625535

                              Comment

                              Working...
                              X