Shop OBEX P1 Docs P2 Docs Learn Events
Is Goldbergian a word? — Parallax Forums

Is Goldbergian a word?

SpeakerSpeaker Posts: 34
edited 2006-10-06 23:25 in Robotics
Another external difficulty.· I need to convert 8-bit binary to a proportional freq.· 00000000 = 0Hz and 01100100 = 1000Hz approx.· I suppose that I could feed the 8-bit to a D/A and the resulting V to a VFC, but that seems clumsy.· Is there a more elegant solution?

Comments

  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-10-06 01:57
    "More elegant?"·

    I'll just steer you toward a little something called --·FREQOUT.

    FREQOUT Pin, Duration, Freq1

    Freq1 can be a variable, constant, or expression.

    In your example, you want 1000 Hz when x = $64 [noparse][[/noparse]and that's 100, decimal.]· If you multiply x by 10 then it's 1000 and you can figure out the rest (can't you?)

    Hint: x = Freq1



    Post Edit -- "Goldbergian".· I suppose.· Victorian, Edwardian, Hitlerian.· Why not Goldbergian?· Can you use it in a sentence?



    Post Edited (PJ Allen) : 10/6/2006 2:09:55 AM GMT
  • SpeakerSpeaker Posts: 34
    edited 2006-10-06 23:22
    Thanks PJ Allen.· Yes, I could easily implement a software solution.· But this is a very small part of a much larger project.· And I will admit that a large part of it is the fun of doing something different.· I am trying to reserve the processing for the higher level functions.· At this level I am trying to hardwire everything. ... And I have been thinking of using·a counter at a freq much higher than I need.· using a multibit·AND to reset.· Each AND input is an XOR.· One side of each XOR is a bit from the counter.· The other side of each XOR is my 8-bit input.· In essence the XORs will allow me to use the 8-bit input to select on-the-fly when the counter will reset.· The freq of the reset is my output freq.· I haven't tested it yet.
  • SpeakerSpeaker Posts: 34
    edited 2006-10-06 23:25
    Oh, BTW. Goldbergian, as in Rube.
Sign In or Register to comment.