Arduino pro mini not accepting new code

I have a slight problem with my Arduino pro mini, I was using the built in LED, and the generic blink program yesterday(when it arrived), and I used a ch340g adaptor to do so. But when I went to program it today, it wouldn't update or change the program, even if the Arduino 1.6.10 claimed it had successfully been uploaded, any idea how to fix this/reset the board?

This sounds like the "load once, but no more" problem.

Show us the CH340 adapter - it needs to have a RTS or DTR pin to connect to the "GRN" terminal on the Pro Mini to provide reset in order to program it - if there is a sketch already loaded; if there is no sketch it resets itself. :grinning:

Some faulty adapters have a totally useless "RST" pin instead.

https://www.amazon.co.uk/Seeedstudio-Compatible-Loopback-Available-Directly/dp/B01AD62OPE/ref=sr_1_1?ie=UTF8&qid=1466341131&sr=8-1&keywords=ch340g
This is the adaptor I purchased, I'm not completely sure if the problem is board related or adaptor related, but here you go. I am relatively new to Arduino btw

This particular adaptor has a DTR pin, but it was perfectly able to reset before (I could change the blink program delays), so I'm unsure what's gone wrong.

OK, here's the (usual) underside:

It has 5V, VCC, 3V3, TXD, RXD and GND. These adapters are missing the DTR and/ or RTS pinouts (they can be modified with some difficulty) that you need to easily program the Pro Mini.

To download, you need to watch the blue status bar at the bottom of the IDE and press and release the reset button on the Pro Mini as soon as you see the "Done Compiling" message on that status bar. It takes a little practice.


Callumleasky:
This particular adaptor has a DTR pin, but it was perfectly able to reset before (I could change the blink program delays), so I'm unsure what's gone wrong.

It has a DTR pin? Not the same model then. Which is it? And you have it connected to "GRN" on the Pro Mini?


Hmmm. Here's the original Seeedstudio version. Can't see a DTR pin.

Huh, that's the one I purchased, but it is slightly different, give me a moment and i'll send a picture of mine

Sorry, sent the wrong link, this is the one I purchased

Ah, I've just attempted to upload a new sketch again, but I got the 'invalid library' error, could that somehow be stopping it?

OK, that looks like a proper adapter, so if you have all six pins directly connected to the Pro Mini, it should work.

If you have an "invalid library", you have a problem in the code.

As for me, I'm off to bed, far too late to do this.

Ah, I'm in the UK, so different timezones and whatnot, anyway, the problems not with the code, because I'm using the generic blink program, so theres something going wrong, but I'll look into it

Wait, all 6 pins? From what I've heard you should only use 5, is that what I'm doing wrong?
Ok, I've checked, that doesn't help, anyways, see ya

Callumleasky:
Wait, all 6 pins? From what I've heard you should only use 5, is that what I'm doing wrong?
Ok, I've checked, that doesn't help, anyways, see ya

I have a USB-to-TTL adapter with the FTDI driver chip and one with the CP2102 driver chip.
And I have a Arduino Pro Mini clone.
I have the DTR, TX, RX, VCC, GND pins connected to the adapter, and it works fine.

Have you selected the right board from Tools->Board?

I havent used Pro Mini, but I programmed several Standalone Atmeg's using USB to TTL with FTDI chip.

According to what I've read, you set it to the Arduino Deumilanove one for a 5v pro mini, so maybe that's wrong?

In Arduino 1.6.7 i can see a board for Arduino pro or Pro mini. May be you select Pro mini board and try again.

OK, I've tried setting it as the pro mini, but it had no effect. But I did try programming it using a USB to micro USB cable and an Arduino programming app for android. When I did this, the error I got instead was: 'Programmer not responding', and I'm assuming that means the ch340g?

Oh, but it still powers the pro mini, so the ch340g isn't completely busted