Hello, I am working on a keyboard (The musical kind) to embed into a piano belt. I was considering just using a simple 555/opamp circuit with buttons and resistors in parallel, but I figured a microcontroller would be better to avoid all the wiry messes of resistors. I decided to first write the program in a basic C as an outline for what the MCU program will look like. I figured it would save me thinking time when I get all my supplies. So I just have a couple questions:
1. What is the function and it's library for generating a tone in C (not ++)? I've looked on countless pages and can't find anything to generate a tone at x hertz. Also, is there a way to specify a type of wave?
2. What is the best Freeware (for mac) for programming, compiling and sending programs to the MCU.
3. Anybody know of the cheapest AVR connections, I believe they're called, to connect the MCU to a USB port? Or even an alternative, such as how to build a decent one yourself or a place where you could borrow one?
Thanks a lot!!!! in advance
1. What is the function and it's library for generating a tone in C (not ++)? I've looked on countless pages and can't find anything to generate a tone at x hertz. Also, is there a way to specify a type of wave?
2. What is the best Freeware (for mac) for programming, compiling and sending programs to the MCU.
3. Anybody know of the cheapest AVR connections, I believe they're called, to connect the MCU to a USB port? Or even an alternative, such as how to build a decent one yourself or a place where you could borrow one?
Thanks a lot!!!! in advance