Hey guys.
I'm trying to design a data acquisition system into my electric panel, so i can get power consumption data. (yes i know there's a bunch of other setups on the net, but i'm designing my own).
I'm trying to keep what actually get's installed into my panel as minimal as possible. I was thinking of using am ATtiny, since really all i need is 2 ADC pins and a UART TX pin to send the data to something else. An ATmega seems way overkill for this.
But i'm lost on how the mega-multiplexing works on the pins.
Ok, So i assume i'll connect a capacitor to PB0 and VCC for AREF, and use PB3 and PB4 for my two analog input pins.
I get mixed results when googling how a UART works on this, if it even has one. Which pin would TX be?
Would hard wiring a cap to PB0 and VCC interfere with a hardware programmer since PB0 is also MOSI? my gut says yes, and i'll have to pop the chip in and out of a flasher socket to my circuit's socket every time i want to flash a program.
EDIT:
ADMUX |= (0 << REFS0) | (0 << REFS1); //Sets ref. voltage to VCC +5v
Ok, so it looks like i don't have to use external AREF pin if i don't want to, as i can set AREF internally, right?