Tell us about yourself!

Complete Your Profile
  • DeC12 commented on maewert's instructable Gray Codes2 years ago
    Gray Codes

    many thanks! just 2 compiler errors now (C is getting so darned picky about typing) -- wants the %8d in the printfs to be %8ld, easy peasy fix.I have been trying to wrap my head around the 2 kinds of gray code -- concentric rings vs single track. I visited http://www.piclist.com/techref/stgc.aspbut am unable to figure out what the lists of integers represent. note also this handy linkhttp://www.dgkelectronics.com/inkscape-optical-rot...to an inkscape extension that generates svg graphics for optical encoder purposes, including linear gray code. what I'm looking for now is code to generate the lookup table (optical sensor bitmask to rotational position). almost there... and if I have to, I can discover that table empirically (tedious but do-able)

    View Instructable »
  • DeC12 commented on maewert's instructable Gray Codes2 years ago
    Gray Codes

    Thanks maewert, great article. Alas the C code seems to be slightly mangled, doesn't compile because 2 of the for loops are partially missing: for (i=0;i gray_scale[i] = '0'; for (index=1;index {I tried viewing page source but the code looks broken in the source, unfortunately I am not intelligent enough to guess what the missing code should be (just trying to make an absolute encoder).

    View Instructable »