Menu

WS2812 LED Ring

Help
Paul Haug
2017-07-10
2017-07-10
  • Paul Haug

    Paul Haug - 2017-07-10

    Looking thru some YouTube vids of GCB examples I came across Anobium demo of of the LED ring. This is what I need for the basis of a visual tachometer. I wonder if this example code is available as a down load to provide a beginning foundation for my tach (motorcycle).

     

    Last edit: Paul Haug 2017-07-10
  • Anobium

    Anobium - 2017-07-10

    The demos you are looking for are in the ..\GCB@Syn\GreatCowBasic\Demos\LED Solutions\LED - WS2812 folder.

    Let us know how you get on.

     
  • Paul Haug

    Paul Haug - 2017-07-10

    Thanks, I will let you know.

     
  • Paul Haug

    Paul Haug - 2017-07-11

    Well, it turns out I have a string of programable LED which will work great as I can size the circle to fit around the chrome spedo bezel. This string is run with two inputs, data and clock.
    I'll probably start with some sort of 8 bit shift out routine whith clockind added.
    I had this string running with Picaxe so I know it works.
    It is based on APA102C control.

     

    Last edit: Paul Haug 2017-07-11
  • stan cartwright

    stan cartwright - 2017-07-11

    Off topic. Couldn't you use a £1 0-999digit voltmeter and convert revs to voltage? Dunno what a bike revs at...15000 rpm. My last was a CD250 that blew up at 1200.

     
  • Paul Haug

    Paul Haug - 2017-07-11

    Stan,
    Yes, but where is the fun in that. This is for a Harley 1600 cc, so revs will be pretty low. A light ring around the spedo bezel doesn't take up any room and doesn't show when off. I'm old school biker so I don't want to add stuff that shows. The electronics will be in my saddle bag and will perform several functions, drive the circular tach, temperature head logging, delayed fan shutoff and anything else I might think of later.
    Bike is shown below. I don't push the revs, it's just something to combine my love of motorcycles and GCB..

     

    Last edit: Paul Haug 2017-07-11
  • stan cartwright

    stan cartwright - 2017-07-12

    As the the bad terminator who always wanted to be a cop said in the film..."Nice Bike"
    I get your point. I can see it now.Cool idea. Revs to voltage has been done before brit cars or bikes caught up with japanese as standard stuff. Obviosly use a fuse :)
    Happy trails.

     
  • Paul Haug

    Paul Haug - 2017-07-17

    The ring tach is partly fabricated and the software is working, except I am controlling it with an A/D and pot for now. Next I will work on a frequency counter as the timing is taken from a gear, so a series of pulses who's frequency is the rpm.
    See the vid below the picture of my BB.

    In the vid below the camera does not do well with bright colors, The first half of the ring will be bright green, then aprox 1/4 will be yellow as a warning, the maximum bright red as over speed.

     

    Last edit: Paul Haug 2017-07-17

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.