People who code: we want your input. Take the Survey

Hadn't pushed the button all the way in lol


So you had: SCK frequency to 1500000 And I suggested lowering to the point where you: set it to 8k solved it:) Good deal. The thing that you were likely running afoul of is the maximum ISP clock rate, which according to the datasheet for the ATMega328P (or practically any other AVR for that matter) is determined by some rules: Low:> 2 CPU clock ...


If you want measuring a "battery level" in mAh for example, you must measure Voltage AND Current, so INA219 is a better deal (it is a I2C control).

Only top voted, non community-wiki answers of a minimum length are eligible