Geoff Bunza geoffb

Model animation—bringing models to life—adds enormously to the interest and enjoyment of any layout or individual model!  Recently a fellow modeler (Rick Wade https://forum.mrhmag.com/post/my-operating-ho-scale-tv-on-my-richlawn-rr-layout-12199201) dreamed about building a working HO scale TV—and I wondered—is that possible?  Then I found Harry’s TV shop and stopped wondering…

fkowalick

@Fred

Geoff,

I tried what you suggested but all I get is that windows has determined that I already have the best drivers for the device.  I cannot get windows to use anything than the driver listed in my previous post.  With all due respect to Yaron I do not have enough computer knowledge to do what he suggests.  Did you also see my question about why when I try to open the .ino file my computer now treats it like I want to install the software? 

Reply 0
fkowalick

Driver installation

Geoff,

I finally got windows to allow me to install the driver from the Arduino directory, however it has not made any difference in my ability to upload to my pro mini.  The green led is no longer flashing and when I tried to upload the blink sketch as a test I got the error message can't open device com3 access is denied.  After I unplugged the cable and plugged it in again I get the device cannot start code 10 message in device manager.

Reply 0
Geoff Bunza geoffb

@Fred

Hi Fred,

When you double click a file, Windows looks at the 3 character extension and looks it up in a table to match it to a default application. If it does not find the application installed, it asks you if you want to install one. If you want to associate an extension (file type) with a specific application, open Control Panel-> Default Programs-> Associate a file type or protocol with a program-> click on the .ino extension in the list and Change Program to point to the right place.

Quote:

I tried what you suggested but all I get is that windows has determined that I already have the best drivers for the device.

You need to force it manually all the way-- do not let it do anything automatically. To wit:

Leave your USB cable plugged in, open device manager, find the COM3 USB port, right click on the port listing, and click on Update driver, Browse my computer-> Let me Pick from a list of drivers on my computer-> Have Disk-> type in the full path to the Arduino drivers folder in 1.6.4 or Browse to get to it & hit OK-> select the device and hit next, etc.

Have fun! 
Best regards,
Geoff Bunza
Reply 0
Geoff Bunza geoffb

@Fred

Hi Fred,

Quote:

I finally got windows to allow me to install the driver from the Arduino directory, however it has not made any difference in my ability to upload to my pro mini.  The green led is no longer flashing and when I tried to upload the blink sketch as a test I got the error message can't open device com3 access is denied.  After I unplugged the cable and plugged it in again I get the device cannot start code 10 message in device manager.

OK, back to basics. with the green LED no longer flashing there is a high likelihood that you downloaded something to your Pro Mini and/or corrupted the boot loader, possibly during an attempted download the power to the Pro Mini was interrupted -- which happened to me once. The start code 10 message came from Windows and says it received an error message from the communications driver to the USB hardware that Windows did not recognize, which could be caused for multiple reasons.

If you only plug your good USB cable in to your computer, not connected to the Pro Mini do you still get the Error 10 message? This should not happen if the cable is good and the driver is correct. Did you uninstall the old driver before updating the driver to the Arduino driver? Windows 10 has another (in my opinion) rotten property of performing auto updates to drivers without seeking user permission over the long haul.

Since we know for sure something bad happened to the Pro Mini, my course of action would be to replace the Pro Mini as the simplest cheapest remedy.

Have fun! 
Best regards,
Geoff Bunza
Reply 0
Geoff Bunza geoffb

@Fred

Hi Fred,

I just caught this:

Quote:

when I tried to upload the blink sketch as a test I got the error message can't open device com3 access is denied.

This can be caused if you forced the Arduino IDE to close abruptly, and it left the COM3 port open. When you restart the IDE it is still open and gives you this message. Try restarting your computer in this case and start the IDE and try to download blink.

Have fun! 
Best regards,
Geoff Bunza
Reply 0
fkowalick

Code 10 error

Geoff,

From my first attempts to upload the sketch I discovered that if I connected the cable to my computer without the pro mini attached device manager said it was working properly.  In fact I have never received the code 10 message, and still do not receive the code 10, message when connecting the cable without the pro mini attached. Connected by itself, the cable always says working properly.  From the beginning, however, whenever I connected the pro mini to the cable and then connected the cable to the computer I would either get the code 10 message in device manager, or a popup window on the right side of my screen saying that the device malfunctioned.   The only way I have tried to upload the sketch was to first connect the cable, with the device manager showing the com port and that it was working properly, then connected the pro mini to the cable, and then checked in tools in the ide to make sure the com port shown in device manager is the one showing in tools.

Reply 0
Geoff Bunza geoffb

@Fred

Hi Fred,

Thanks. The conclusion I draw from this is the Pro Mini is fried, and pulling the connection(s) to the USB interface so it can't communicate. I would not go further with this Pro Mini.Time to find a replacement.

Have fun! 
Best regards,
Geoff Bunza
Reply 0
fkowalick

@Fred

Geoff,

Thanks.  I don't think it ever worked properly, as from the start it gave the code 10 error when connected to the cable, then it stopped accepting power from the 9 volt battery and then the green led stopped flashing.  I do not live far from AllElectronics and can get a genuine Arduino pro mini there.  I have one more question concerning drivers.  I noticed that while I was able to get windows to accept Arduino's driver for the USB port, the driver listed under the USB Serial Converter is still FTDI 2.12.16.0 dated 3/9/2016.  The driver listed under the com port is FTDI 2.8.14.0 dated 3/18/2011.  Should they be the same or does it matter?

Reply 0
Geoff Bunza geoffb

@Fred

Hi Fred,

Quote:

Should they be the same or does it matter?

In a perfect world they should be the same. If you use your second, well formed USB cable, it should not matter.

Have fun! 
Best regards,
Geoff
Reply 0
Jim at BSME

Point for reference

Just for reference, when trying to help Fred I downloaded the latest IDE (1.6.12) from the arduino website and used the default windows drivers (i.e. the ones windows automatically loaded when I plugged in the cable) for my FTDI cable, (2.12.16.0 dated 3/9/2016). My laptop was running Windows 10 pro 64-bit. My FTDI cable was the TTL-232R-3V3-WE, the WE means wire ends so I had to figure out the correct hookup, which I referenced earlier.

I did at one point try the FTDI USB drivers supplied with the IDE, but could not get them to load at all. I also tried the latest driver from the FTDIchip website (2.12.24.0 windows dated 9/28/2016, website dated 10/10/2016).

In all cases for me everything worked as long as I had RX/TX crossed and RTS to DTR.

I did have different driver versions at one point between the entry under the Ports (LPT & COM) and under the Universal Serial Bus entries in Device Manager, but for me that did not make a difference. 

Reply 0
Pelsea

Moralizing...

The recent part of this discussion is why I always direct new users to buy their Arduinos from AdaFruit or other authorized source instead of flybynite@ebay. (Amazon is not an authorized source. In fact counterfeits there have made headlines recently.)  Use reliable components to build your confidence, then go dumpster diving if you like.

pqe

Reply 0
Kevin Rowbotham

Yes...

Quote:

I always direct new users to buy their Arduinos from AdaFruit

Agreed, users with beginner computer tech skills and/or who are new to Arduino and electronics would do well to stick with trusted sources to avoid issues that will complicate the process.  Also, Adafruit is very good about after sales support of their products and have their own support forum as well..

Regards,

 

 

Reply 0
fkowalick

Uploading

Geoff,

I purchased a brand new Sparkfun pro mini and am still having problems uploading the sketch.  I have tried to upload it using two different computers, my HP pc, and my Acer laptop.  Both computers have version 1.6.4 of the ide.  On my laptop I was able to force windows to allow me to load the Com port driver from the Arduino directory, but on my pc windows selects the driver before I am even able to select one from the computer.

On my pc, when the sketch didn't upload I simply got the message Using port COM3, using programmer Arduino, overriding baud rate 57600, and ser_send:  write error:  sorry no info available.

On my lap top I have been getting the error programmer not responding or can't open device COM3, access denied.

When I attempted to upload on either computer the device manager said COM3, COM3 was checked in the ide and the board was listed as the pro mini, 5volt 16mhz, and programmer as AVRISP mk 11.

My cable passes the loop back test and never has given me an error message when plugged in by itself.  Even with the new pro mini attached, however,  when I plug it into the computer I will get a yellow caution sign next to USB Serial Converter, or next to USB Serial Port, most often next to the serial port.  Only if I plug the cable into the computer first and the plug the pro mini it am I able to get the device manager message the device is working properly.  Of course when I then tried to upload to the pro mini I got the above results.

 

Reply 0
Geoff Bunza geoffb

@Fred

Hi Fred,

Quote:

On my lap top I have been getting the error programmer not responding or can't open device COM3, access denied.

Let's try sticking with your lap top for now. Please try: Close the IDE; Open the device manager with the USB cable plugged in and the Pro Mini disconnected; change the COM3 USB channel (right clock on Com3, select properties, port settings, advanced) to something like COM12;  Plug the Pro Mini in (remember to be VERY careful aligning the black wire in the correct orientation-- sometimes there are 2 GND or BLK labels- pay extra attention (a picture of it connected would be useful, and please verify exactly where you got the USB cable you are using); now start the IDE and see in the Tools Menu and select COM12 and try downloading Blink. If you get any messages in the download, copy them all and let me know exactly  what you get. Only use the 2nd cable you purchased.

Have fun! 
Best regards,
Geoff
Reply 0
Jim at BSME

Uploading

Fred,

I'll throw out a question or two that may be useful to know what error message do you get if trying to upload with no pro-mini attached?  That is just the cable, also are you using the cable through a hub or directly attached to the PC/laptop? I saw some people reported issues with using a hub between the computer and the USB cable.

Curious how are the programming pins on this pro-mini labeled?

Also did you ever measure the voltage between the GND and VCC lines on the USB cable?

Reply 0
fkowalick

@Fred

Geoff and Jim,

I haven't purchased a new cable yet because I was not, am still not certain the cable is the problem.  I did purchase a new pro mini because of the various problems I described that it had and I suspected it was the problem.  Now it may be the cable, but as I indicated before it passed the loop back test and has always reported as working properly when plugged in by itself.  The cable I purchased was from an ebay seller named Weisschang2011, and is described as "6pin FTDI FT232RL USB to Serial adapter modu USB to TTL RS232 Arduino cable M377."  I paid $7.50 for it but I notice that now it is being sold for $9.50.  Although the colored wires were in the wrong order in the connector, it was a simple process to rearrange them in the proper order, black, blue, red, green, white and yellow.  I have also disassembled the plastic around the plug and verified that black was labeled gnd, blue cts, red vcc, green txd, white rxd and yellow rts.  I tested the output and it was 5 volts.

I tried the test you suggested Geoff and I could not upload the blink sketch.  The error message I received was Avrdude: ser_send(): write error:  sorry no info avail.

I tried to upload the sketch without the pro mini attached and got the following:  Avrdude: stk500_getsync() attempt 1 of 10: not in sync:  resp=Oxe5.   Avrdude:  stk500_recv():  programmer is not responding.

I just happened to think of it, but the only other USB device I have used with my laptop is MRCs wireless computer interface for my DCC system, which I have not used in months.  I rembember reading however, the there is some sort of conflict set up with blue tooth devices.  I have never used it on my pc, however, so it would not have any effect on the ability to upload from the pc.

Reply 0
Jim at BSME

reponses

The error message "...programmer is not responding." is exactly what I would expect to see when the pro-mini is disconnected.

How are you wiring the cable to the new pro-mini, i.e. what name on the pro-mini is going to what name on the cable?

Also are you connecting the cable to a USB 2.0 port on your laptop?  They don't say it is not 3.0 compatible, but it is worth eliminating that.

Reply 0
Jim at BSME

another thought

Since from other messages it looks like the programmer is trying to use the cable at 57600 speed, try the loopback test with that speed. In putty just type in the new speed instead of 9600.

Reply 0
fkowalick

Connections

The connections from the cable to the pro mini are:  Black from cable to blk; Blue from cable to gnd; red from cable to vcc; green from cable (txd) to rxi; white from cable (rxd) to txo; and yellow from cable (rts) to grn. 

The ports on my laptop are not listed by number but three state USB Universal Host controller, which I understand means version 1.1 and one is listed as USB2 Enhanced Host controller, which I understand means version 2.0.

I tested the cable at 57,600 and it still passed the loop test.

Reply 0
Jim at BSME

Another thought on testing the cable

Fred,

You could try this to see if you can get the new pro-mini to upload, since we know the cable appears to send and receive data correctly and produces 5v.  Remove the Blue (CTS) and Yellow (RTS) wires from the pro-mini, put a piece of tape over them so they don't short anything out. With the rest of the wires hooked as you have stated, try to upload a sketch, but you need to hold the reset button until you see the uploading message in the IDE. You can start the compile, press and hold the reset button and then release when the IDE changes to Uploading, which happens right after you get messages in the bottom part of the IDE about the sketch size and global variables space used. You certainly could wait for the compiling to almost finish by the progress bar before pressing and holding the reset button.

Reply 0
fkowalick

Testing

Jim,

I removed the yellow and blue wires from the connector and taped them up.  Then I tried to upload the sketch but again failed, getting the message can't open device Com 12, access denied.  Before that is the message overriding baud rate 57,600.  Interestingly, I cannot release the reset button fast enough.  The instant the ide switches from compiling to uploading the error message appears.  It seems as if the ide is trying to upload while it is compiling.  Sometimes compiling takes about two minutes before uploading appears, but the error message pops up just as soon as it says uploading.

Reply 0
Jim at BSME

Access denied error

All I can find regarding this error point to a driver problem or some serial port device conflict. That is why Geoff had you change the port number.

I would try uninstalling all com ports listed in device manager and the USB serial converters under Universal Serial Bus controllers. Shutdown the computer. Remove your cable. Boot the computer and plugin your cable. Try having Windows search for the driver on the internet. once the com port is listed use that in the IDE and see what happens. Go ahead and put the two wires back where you had them.

Reply 0
Geoff Bunza geoffb

@Fred Summary Statement

Hi Fred,

First let me say I'll stay with you as long as you want-- this usually does not inflict this much pain and agony!

Let's recount: you have a new Pro mini and the original cable; without the Pro Mini you get no error when inserting the cable into your computer's USB port, and the IDE recognizes the port (and you set it to COM12); the loopback test Jim describes works; you get the avrdude error message when trying to upload Blink.

The Pro Mini DTR (GRN marker) is used to reset the Pro Mini to force the bootloader into operation and interrupt whatever sketch is running to prepare for a new upload to the Pro Mini via the IDE programmer (avrdude). I would have to say that somehow the DTR reset is not happening correctly, with with either a bad connection (broken wire, bad solder joint etc. or the interface inside the USB cable is bad. The loopback can work independently of the DTR. For a download to work, DTR must work. Jim is correct to try the manual reset, but the timing is tricky-- as you already found out.

I can't think of any other alternatives left. 

Best reagrds,
Geoff
Reply 0
Jim at BSME

Error messages

Geoff, just from my reading there are three (at least) different avrdude error messages that Fred reported, one was about can't open device COM12, access denied, the other was about Avrdude: stk500_recv(): programmer is not responding, and a third was Avrdude: ser_send(): write error: sorry no info avail.

The one about programmer is not responding was when I had him try the upload without the pro-mini attached to see if it would indicate a problem with the driver software.

Fred, I just noticed on the IDE 1.6.12 there is a button that reads "Copy error messages" to the left of the of the message "An error occurred while uploading the sketch." If you click that button and then go to a reply here you can paste that into your reply. This will give all the error messages exactly and any that have scrolled out out of view, might be a clue has scrolled off the output window. It also provides some of the IDE settings in the message.

Reply 0
Pelsea

Dumb question....

I've looked over the thread again, and don't immediately see an answer....

Is this by any chance a 3.3v board? They require a different cable.

pqe

Reply 0
Reply