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

    #61
    Originally posted by JTGS850GL View Post
    The Arduino NANO is a good platform for a project like this. Both analog and digital I/O and pretty easy to program. Any micro controller will require some amount of a learning curve but they're pretty basic. Language support will vary but most of these will use some form of a "C"ish language. Tiny BASIC is ported to a lot of hardware platforms as well.

    There's even an event driven programming platform that might be very applicable to a project like this. The benefits of programming using an event driven software platform is pretty obvious in an environment where switch/pulse input capture is beneficial. Should make programming a bit easier.
    Thanks for the information.

    I've been doing a little bit of reading the last couple of hours and it looks like the Arduino may be a better choice than the Pi. What I was worried about was trying to multitask several operations at once. Maybe I should just stick with using interrupt handling.

    I've a bit of learning to do...
    De-stinking Penelope http://thegsresources.com/_forum/sho...d.php?t=179245

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

    Comment


      #62
      Originally posted by JTGS850GL View Post
      The Arduino NANO is a good platform for a project like this. Both analog and digital I/O and pretty easy to program. Any micro controller will require some amount of a learning curve but they're pretty basic. Language support will vary but most of these will use some form of a "C"ish language. Tiny BASIC is ported to a lot of hardware platforms as well.

      There's even an event driven programming platform that might be very applicable to a project like this. The benefits of programming using an event driven software platform is pretty obvious in an environment where switch/pulse input capture is beneficial. Should make programming a bit easier.
      I have not even played with the few Arduinos (two UNOS and two NANOS) I have and probably will not do much other than kick the tires on them. I will use them to boot strap into the Atmel development platform.

      However, since you linked the QL website, I'll mention that I have been wanting to do a project using QF but it has been on my long term to do list (since 2004 infact). I have looked at and watched this product mature and it is very impressive. I have even come to the conclusion that most embedded engineers should immerse themselves into it just to see what "best practices" look like for embedded code development.

      In the meantime I have using UML from the first version of Rational Rose (V1.0). to do OOD code design (refactoring legacy C with OOD and C++). Once integration is completed I'm going to go back and try and clean up the diagrams and autocode the C++ headers. With that done, I'll be able to slide into the various versions of QF. I have been a strong proponent of model based design and state diagram implementation for a very long time. Back in the 1980's this stuff did not exist and you did it all by hand. The QF tools are amazing. There are others but the cost is through the roof not to mention the learning curves. The Rational Rose stuff has now been aquired by IBM who have created a tool suite that is truly a Tower of Babel.

      Comment


        #63
        Originally posted by rustybronco View Post
        Thanks for the information.

        I've been doing a little bit of reading the last couple of hours and it looks like the Arduino may be a better choice than the Pi. What I was worried about was trying to multitask several operations at once. Maybe I should just stick with using interrupt handling.

        I've a bit of learning to do...
        If you need Multi-tasking you are making it too complicated. A single infinite loop is all you need and will be easier to do and harder to screw up. If you want to learn about multitasking or RTOSs then go for it, but certainly not necessary. You will probably need(read prefer) a timer interrupt for the Speed input but I doubt it is absolutely necessary. The rest of the inputs are slow switches.

        Comment


          #64
          Originally posted by JTGS850GL View Post
          There's even an event driven programming platform that might be very applicable to a project like this. The benefits of programming using an event driven software platform is pretty obvious in an environment where switch/pulse input capture is beneficial. Should make programming a bit easier.
          Which is what I originally had in mind.

          I would like to take three differing events, the initial event, is from the operation of the turn signal switch. The second event, exceeding a low level frequency threshold, will be used to trigger a third event, one that counts a certain number of pulses (distance), before pulling an output high or low to cancel the turn signal operation.


          Compare/Match Registers

          Compare registers (sometimes also called match registers) hold a value against which the current timer value is automatically and continuously compared. A compare register is used to trigger an event when the value in the timer register matches the value in the compare register. If the timer/counter is configured as a timer, using compare registers will let you generate events (output pin changes and/or interrupts and/or timer resets) at known and precise times. If the T/C is configured as a counter, the compare registers can generate events based on preset counts being achieved.
          All the rest of the components will be discreet except for the above used to cancel turn signal operation by time, speed or distance. That way someone can build a replacement unit with just manual operation, or add on the self cancelling operation as the factory had intended.

          Place holder. http://www.mikroe.com/products/view/...gramming-in-c/
          Last edited by rustybronco; 12-03-2015, 04:50 PM.
          De-stinking Penelope http://thegsresources.com/_forum/sho...d.php?t=179245

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

          Comment


            #65
            This gonna be a plug and play right to the original harness plugs????
            MY BIKES..1977 GS 750 B, 1978 GS 1000 C (X2)
            1978 GS 1000 E, 1979 GS 1000 S, 1973 Yamaha TX 750, 1977 Kawasaki KZ 650B1, 1975 Honda GL1000 Goldwing, 1983 CB 650SC Nighthawk, 1972 Honda CB 350K4, 74 Honda CB550

            NEVER SNEAK UP ON A SLEEPING DOG..NOT EVEN YOUR OWN.


            I would rather trust my bike to a "QUACK" that KNOWS how to fix it rather than a book worm that THINKS HE KNOWS how to fix it.

            Comment


              #66
              That is the intent.

              The enclosure and possibly having to populate the board yourself is an entirely different matter.
              De-stinking Penelope http://thegsresources.com/_forum/sho...d.php?t=179245

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

              Comment


                #67
                My big push is over for a while ; at least till next year but I'm still wound up so I powered up one of the knock off nanos I have. 5 minutes for the driver to install, me to find an install I had done sometime back, and compile the sketch and download it .you do have to setup the board , chip and com port but this is pretty easy. In fact it is usually harder to install the drivers but this uno seemed to use a real FTDI chip for USB so not a hickup.

                Comment


                  #68
                  Well after being motivated with the nano the other night, I powered up the three UNO's I bought off of ebay (well over a year ago ) and they all worked as well. Funny I was expecting these to all be cheap knock offs with no preloaded loaders. Well now I'm really motivated to see how hard it is going to be to get the wireless connected over Bluetooth using an HC-5 (Arduino NANO to Win 7 and Hyperterminal over Bluetooth). Windows was much more trouble that the HC-5. It works well, at least at 9600 baud. I have not tried anything faster.

                  All the mods I did we just like writing "C" so that familiarity was comforting.


                  I also kicked around the Atmel Studio 6.1. It does use VS API but certainly has a different set of tools.
                  Last edited by posplayr; 12-11-2015, 04:32 AM.

                  Comment


                    #69
                    Originally posted by posplayr View Post
                    Well after being motivated with the nano the other night, I powered up the three UNO's I bought off of ebay (well over a year ago ) and they all worked as well. Funny I was expecting these to all be cheap knock offs with no preloaded loaders. Well now I'm really motivated to see how hard it is going to be to get the wireless connected over Bluetooth using an HC-5 (Arduino NANO to Win 7 and Hyperterminal over Bluetooth). Windows was much more trouble that the HC-5. It works well, at least at 9600 baud. I have not tried anything faster.

                    All the mods I did we just like writing "C" so that familiarity was comforting.


                    I also kicked around the Atmel Studio 6.1. It does use VS API but certainly has a different set of tools.
                    This is just making me want to pull out all of my old AVR based dev boards to play with... Maybe time for some IoT projects

                    Comment


                      #70
                      Originally posted by huntb View Post
                      This is just making me want to pull out all of my old AVR based dev boards to play with... Maybe time for some IoT projects
                      Finally got my account setup on the Atmel website(the server was not sending my email confirmation). I was browsing some of the code last night and it certainly seems to be written much better than some other examples I have seen (like the code for NXP which is built includes an entire ARM development suite without using CMSIS).

                      I'm downloading this and the GNU tool chain in the Atmel Studio now.

                      Arduino IDE for Atmel Studio
                      Last edited by posplayr; 12-11-2015, 02:19 PM.

                      Comment


                        #71
                        Bump... Would like this thread to keep going. I've been doing some research on the Arduino and the Raspberry PI. I have both and am working on some projects with implementing both. Working on interfacing both to create a Homebrew automation platform but would still like to see the Arduino as a an easy solution to a turn signal controller. If this doesn't progress then I'll go ahead and implement a solution myself. These micro controllers are so much fun to work with and are very low cost. I'm amazed at how cost effective they are.

                        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


                          #72
                          Love the Pi and would love to implement something with them as well. Even something as simple as an eye catching "chasing" LED signal array and/or a modulated brake like flash. Sure there are off the shelf available units that do this, but half the fun is the tinkering!
                          ----------------------------------------------------------------
                          2014 BMW F800GSA | 1981 GS850GX | 1982 GS750T (now the son-in-laws) | 1983 GS750ES | 1983 Honda V45 Magna (needs some love) | 1980 Yamaha GT80 and LB80 "Chappy" | 1973 and 1975 Honda XL250 projects

                          Comment


                            #73
                            While this would be overkill for a TSCU, I just got it yesterday and I'm pretty blown away as well. It is $50 but will replace what I would spend $1000 on 10 years ago and $2500 20 years ago. An size is no comparison (36x36mm with 30x30mm mounting holes). This is based on teh newer Cortex M4 which is supposed to be 50% faster than the not so old M3

                            Compare the STM32 F1 (M3) to the STM32 F3 (M4)!!


                            spracingf3,drone,quadcopter,racing,fpv,flight controller,cleanflight,baseflight,circuit board,open-source,gpl,led,sbus,frsky,futaba,graupner,telemetry,smartport,voltage,current,led-strip,ws2812


                            A primary issue with productizing anything is the packaging. Sure the microcontrollers are super mini but you need to still attach it. The SP Racing F3 would be 1/2 the size (or less) if it was not for all the connectors on it. So packaging includes respinning the open source Arduino or whatever platform you are using to get rid of connectors and achieve higher integration.

                            Then you have to get to a certain threshold on volume and before you just send in your Gerbers and BOM and get assembled PCBs back.
                            Last edited by posplayr; 01-01-2016, 12:10 AM.

                            Comment


                              #74
                              Here are a couple of scaled down versions of the Arduino that are "connectorless" that are interesting as well:

                              Arduino Pro Mini

                              Arduino Pro Trinket

                              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


                                #75
                                Been off the forum for a while... Too many things happening to mention here but was curious if this project ever got built? If not, I may go ahead and take it on for the fun of it. Been working with the Adafruit Pro Trinket for a while and it seems like a good match for this. Very compact, lots of I/O and easy to program.

                                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

                                Working...
                                X