An afternoon of decimal to hexadecimal conversions, mind-bending hex to binary conversions and Arduino C coding.

By Julian

Youtuber, shed dweller, solar charge controller aficionado

15 thoughts on “Project: penny organ – hand calculation of frequencies”
  1. Avataaar/Circle Created with python_avatars Carl Winchester says:

    Julian, what is function of the last 2 lines used in each case statement
    shiftOut(SDATA, SCLK, MSBFIRST, 0b01000000); // 0x40
    shiftOut(SDATA, SCLK, MSBFIRST, 0b00000000); // 0x00
    have something to do with 0x4000 Frequency Register 0 MSB ? Ref application note AN-1070…

  2. Avataaar/Circle Created with python_avatars Douglas Clulow says:

    Hi Julian, love your work, I'm working on a project using a couple of AD9833s, and so far you have saved me at least days of trying to understand how to make the thing work. I'm thinking that I might be able to modify your source code to suit my purposes and save myself even more days of struggling with the data sheet! Is your code available, and if so where can I get it?

  3. Avataaar/Circle Created with python_avatars Suraj Grewal says:

    try using an attiny13 for each of the key thus having each key function independently

  4. Avataaar/Circle Created with python_avatars T Komoski says:

    OH this is for the Vocoder…

  5. Avataaar/Circle Created with python_avatars nThanksForAllTheFish says:

    Why is there a click at the end of the note? Is it because of the absence or slowness of dc-blocking to the amp?

  6. Avataaar/Circle Created with python_avatars Angelo Pescarini says:

    I wonder… i think the ATmega328P has capacitive touch sensors already built in, so why not to use them? I've seen a library for it somewhere…

  7. Avataaar/Circle Created with python_avatars Bob3519 says:

    Fun project. Thanks for Sharing.

  8. Avataaar/Circle Created with python_avatars m8e says:

    Sponsored by DrayTek. ;P

  9. Avataaar/Circle Created with python_avatars andymouse123 says:

    hi what model scope do you use please?

  10. Avataaar/Circle Created with python_avatars Kyoudai Ken says:

    Julian, Windows 8 Calculator has a "Programmer" mode where you can convert HEX to BIN

  11. Avataaar/Circle Created with python_avatars MODIFRIED says:

    Have you put thought into adding octave switches? Considering that the frequencies would be doubled or halved, I'm sure it wouldn't be overly difficult, although I am quite new to Arduino. I could be wrong!

  12. Avataaar/Circle Created with python_avatars Barry Giblett says:

    play a tune…. doe a dear a female male dear…. cum on/….what are you thinking…..baz…

  13. Avataaar/Circle Created with python_avatars G6EJD - David says:

    In the Arduino IDE you can use the 0x prefix to represent HEX so in your example 20E2 becomes 0x20E2, no need to convert to binary for your function arguments.

  14. Avataaar/Circle Created with python_avatars Digger D says:

    Julian, the Windows Calculator can convert Hex to Binary (or Decimal to Hex to Binary).  You can cut and paste the result into your code.

  15. Avataaar/Circle Created with python_avatars Adam Ciolko says:

    This is very impressive Julian.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.