I'm trying to use a potentiometer to control the thrust of two rotors. The goal is to use the Arduino Uno to control a hexrotor. Right now we're working on using it to control just two rotors in a demo version. I am accustomed to programming in pure C using AVR Studio, and I'm running into some difficulty using the A/D ports.
I understand that using the "Arduino" language for A/D conversion allows the user to make use of a 5V reference voltage without touching the ADMUX register in the ATMega328P. I would like to use the board's 5V for reference, but I want to avoid using Arduino shorthand. Is there a way to do this?