On my Mac OS (El Capitan v10.11.1) using Arduino IDE 1.6.6 and Mac USB to Serial PL-2303 Driver (V2.5.0) from here (https://www.mac-usb-serial.com/dashboard/)
Arduino IDE Tools menu > Board: Arduino Mini, Processor: ATmega328, Port: /dev/cu.Repleo-PL2303-00001004, Programmer: Arduino as ISP
Programmer cable (from http://store.cutedigi.com/ttl-uart-to-usb-cable-serial-usb-debug-cable/): Pin 1: not used, Pin 2: RxD, Pin 3: TxD, Pin 4: VCC, Pin 5: not used, Pin 6: ground
Trying to upload this ino file to enable pulse counting on the TH unit (https://github.com/openenergymonitor/emonTH/blob/master/emonTH_DHT22_DS1...)
Getting errors:
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
However, I can successfully upload any ino file to the emonPi and/or Tx units with success. I've researched the hell out of this and still cannot find the answer. Anyone know what's going on?
Re: avrdude: stk500_recv(): programmer is not responding
That leads appears to have no 'reset' line so it is more surprising that you have programmed anything successfully than not. You could try grounding pin 1 briefly as the upload commences but as timing is pretty crucial I'm not sure how easy/successful that would be, you probably need a new programming lead/adapter.
Paul
Re: avrdude: stk500_recv(): programmer is not responding
To clarify, I have never been able to upload any sketch to the emonTh. However, I can upload sketches to the emonTx and emonPi without issue. And yes, I did reboot my computer after installing the USB to Serial device drivers (for those who will ask that question).
Re: avrdude: stk500_recv(): programmer is not responding
The processor RESET is (or should be) driven by DTR - pin 1 - from your programmer, and barring variations in stray capacitance and inductance due to the different board layouts and the addition of a reset pushbutton on the later emonTx's, the reset circuit is identical between the emonTH and the emonTx.
We know the programmer from the shop works with the emonTH, even though the emonTH
iswas not listed on the programmer page in the shop.