BasicMicro - Forums

www.basicmicro.com
It is currently Mon May 21, 2012 12:28 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Nano Problems
PostPosted: Tue Dec 21, 2010 7:14 am 
Offline
Citizen

Joined: Tue Sep 09, 2008 4:46 pm
Posts: 22
I am having 2 problems with my Nano chips.

Problem 1;
I have developed a Nano 18 mini board (printed circuit). The wiring for the programing circuit was done per the schematics on the Nano 18 data sheet and the Nano Development Board using the Nano USB Serial Adapter. The IDE recognizes the chip, programs it, and verifies it. However, when I run the program, it is running a previous program and not the new one indicating that the new program was not really uploaded. I can program the chip on the Nano Development Board and it runs fine on the mini board. In trouble shooting the problem, I noticed that the text from the Nano 18 data sheet differ from the schematic on the data sheet and the schematic for the Nano Developement Board. (I am aware that the pin out for the USB adapter are wrong) Which are correct? Any other suggestions? I suspect that the problem is with the USB adapter. What driver files should the adapter be using?

Problem 2;
The IDE does not recognize a Nano 28 when using either the Development Board or the USB adapter. When using the adapter, bread board wiring was done according to the circuit on the data sheet and schematic for the Development Board. As noted above, the Developement Board works fine with the Nano 18. Also note that the chips I ordered were the 28x (but they appear to be of the std Nano variety per pictures on your web site). I initially wired one of the chips with the xtal and associated parts. No luck. I tried using both the USB adapter and the Nano Development board. Don't know wwhat questions to ask on this one. Though I suspect one problem is the USB adapter.

Also, I have been having problems writing this topic. When I select text, the whole page disapears and I can't get it back.

Jim


Top
 Profile  
 
 Post subject: Re: Nano Problems
PostPosted: Tue Dec 21, 2010 12:36 pm 
Offline
Site Admin
User avatar

Joined: Thu Mar 01, 2001 11:00 am
Posts: 903
Location: Temecula, CA
First what version of Studio are you using?

1. If the chip programs and verifies(the progress bar is moving) and you get no error message boxes the chip is being rewritten. Its not possible for one to happen without the other. If you have 2 basic files open in Studio the one that will be programmed is the one in BOLD in the Workspace window to the left of the open Files. Depending on what version of Studio you are using the active program file may automatically be set when you select that programs tab(older versions of Studio do not do this). It sounds to me like you have your old basic program open along side the new program and the old program is the one being programmed instead of the new one.

2. The Nano 28X chips require an external resonator(20mhz), they won't run/program without it. The regular Nano28 does not. The current Nano Dev Board does no support the X chips directly. You have to add a resonator circuit. Open the regular Nano 28 datasheet.

A resonator has three pins. osc1,osc2 and ground. The ground pin is usually the center pin(has been on everyone I've ever seen). Plug the 20mhz resonator into the bread board near the P21 and P22 pin header. Connect the osc pins of the resonator to P21 and P22. In some cases you will need a 1megaohm resistor between the osc1 and osc2 pins as well.

If you didn't really want the external osc version of the nano we can swap it out.

_________________
Tech Support
Basic Micro - Robotic Technology Evolved


Top
 Profile  
 
 Post subject: Re: Nano Problems
PostPosted: Tue Dec 21, 2010 2:38 pm 
Offline
Citizen

Joined: Tue Sep 09, 2008 4:46 pm
Posts: 22
Nathan

Thank you for your reply.
The Studio version that I am using is 2.0.0.5.

I ordered the 28x version due to its speed. I am aware that the development board does not support the 28x. The limited documentation I have on the chip indicated that pin outs were the same except for the xtal(3 lead resonator) I used the 28 pin socket for the 28x chip and wired the resonator on the bread board using the header to access the proper pins. This should have gave me access to the boards FTDI chip to handle the programing. No luck. I also wired the chip with resonator circuitry on the bread board. I used the Nano USB adapter to access the chip. No luck. In all cases, Studio recognized the proper serial port but could not find the chip.

As noted in my previous post, I ordered the 28x chips but the ones that I have recieved look like the pictures of the Nano 28 and not the pictures of 28x. So I tried to access the chip without the resonator circuitry. No luck.

Give me some time to look at the Nano 18 problem again.

Jim


Top
 Profile  
 
 Post subject: Re: Nano Problems
PostPosted: Tue Dec 21, 2010 2:52 pm 
Offline
Master

Joined: Tue Jun 22, 2010 1:15 pm
Posts: 203
A crystal and a pair of 22pF caps will also work. Might be necessary at the higher baud rates. I recall a PIC18F4620 board that would not communicate reliably with a resonator.

Alan KM6VV

_________________
Visit:
http://groups.yahoo.com/group/SherlineCNC/
http://tech.groups.yahoo.com/group/HexapodRobotIK/


Top
 Profile  
 
 Post subject: Re: Nano Problems
PostPosted: Tue Dec 21, 2010 6:32 pm 
Offline
Master
User avatar

Joined: Tue Jul 07, 2009 9:06 am
Posts: 120
Location: Wisconsin USA
I just tested my nano 28x.
To program it i had to set it to Basic Atom (standard)
Atom 28 Rev.D
It programmed fine on both the usb nano programmer, and using my prolific usb->serial->pololuRS-232 to TTL converter.

I'm using the normal 3 pin resonator.
I confirmed it working by simply running a blinking LED. 1s on, 1s off, repeat.

Basic Micro Protoboard (modified into devboard by attaching header pins and a breadboard)
USB Nano programmer, and RS-232 to TTL converter Programmer.
20mhz resonator.
Studio version 2.0.0.7
Basic Atom ->Atom 28 Rev.D

PS i wrote an X on my NanoX chips. Just a small X right over the 28 on the sticker.

_________________
Image
Basic Micro Blog
Universal Robot Controller


Top
 Profile  
 
 Post subject: Re: Nano Problems
PostPosted: Wed Dec 22, 2010 4:36 am 
Offline
Citizen

Joined: Tue Sep 09, 2008 4:46 pm
Posts: 22
The problem with the Nano 18 Mini Board not overwriting a previous program seems to have been solved.
What I had done was to write a simple program that blinked an LED on 7 pins. I programed the chip on the Nano Development board and then inserted the chip in my mini board. The reason I did it that way was to gradually confirm that the various functions of the boadr were working. Confirming that all 7 pins were blinking an LED, I then deleted the blinking of 4 LEDs from the program. When I hit the program button, I was asked if I wanted to save the new program. I said no. It would seem that the compiler compiles the program that is on the disk and not the one on the screen. Now that I am using "Saved" programs the problem seems to have been solved :D
Nathan, I am pretty sure that is what my problem was, can you confirm this?

Now to find out what the problem is with the 28x chip. Fallentine has given me a few suggestions to try out.

By the way, the Nano 18 mini board was designed with ExpressPCB. Although it is almost a generic design, 3 pins go through a resistor before going to a 2 pin header and the hard serial is wired to a 3 pin header). The purpose of the board is to control 3 sonars, 3 servos, (through a servo control board) status LEDs for the mini board, drive a LCD and communicte with the main processing board. All this stuff is fairly slow, so I thought it best to handle with a co-processor. I plan on using the 28x as the main processor. The software has been tested for individual functions on the Development board and now needs to be merged into one program for the mini board. Once I figure out how to get the 28x working, I plan on developing a board for this chip also.

Jim


Top
 Profile  
 
 Post subject: Re: Nano Problems
PostPosted: Wed Dec 22, 2010 10:04 am 
Offline
Citizen

Joined: Tue Sep 09, 2008 4:46 pm
Posts: 22
I have re-breadboarded the 28x. Wiring is based on the limited documentation I have and is as follows:

1) Legs 9 and 10 go to opposite sides of the resonator. Center leg of resonator goes to ground.
2) Pin 6 goes to the serial pin for the USB serial adapter.
3) Pin 1 goes to the reset pin for the USB serial adapter.
4) Ground on the USB serial adapter goes to ground.
5) Pins 8 and 19 goto ground.
6) Pin 20 goes to ground.
7) I have a 1 meg res accross the outer 2 legs of the resonator. I have tried to access the chip with and without the resistor.

I have tried to access the chip with the above wiring using both Studio 2.0.0.5 and Studio 2.0.0.7.
No luck.
I have 2 chips, have tried both.

Jim


Top
 Profile  
 
 Post subject: Re: Nano Problems
PostPosted: Wed Dec 22, 2010 11:47 am 
Offline
Site Admin
User avatar

Joined: Thu Mar 01, 2001 11:00 am
Posts: 903
Location: Temecula, CA
On the saved file issue, that could be the problem, but you should have gotten a warning message box that the file should be saved, yes or no.

On the 28X can you add a 1meg ohm resistor between pin9 and 10? Resonators sometimes won't start without it. Also make sure Studio is set for BasicAtom or BasicNano and Auto. If it is set to BasicAtomPro and Auto it will not auto detect Atom or Nano processors. If none of that works then we will probably have to take the chip back to see whats wrong with it.

Also as for the labeling of the X chips I beleive we are still waiting for the new stickers so X and regular Nanos stiull have the same stickers.

_________________
Tech Support
Basic Micro - Robotic Technology Evolved


Top
 Profile  
 
 Post subject: Re: Nano Problems
PostPosted: Wed Dec 22, 2010 4:22 pm 
Offline
Citizen

Joined: Tue Sep 09, 2008 4:46 pm
Posts: 22
Nathan

On the saved file issue, I did get the message to save the file but chose no on each occasion. I did that for what I thought was a time saver. The one that I had on screen was a shorter version of the one that was saved. After I programed the shorter version, I had planned on re-programming it with the longer version, to double check the boards ability to accept a program. What appears to have happened is that I was constantly uploading the longer program and not the shorter one on screen. :roll: I was really worried that I had made an error on the printed circuit layout and could not trace down the problem.

I have tried using the 1 meg resistor between pins 9 and 10 (outer legs of resonator) and without it. Didn't make a difference.
Does my written discription of the wiring on my bread board appear correct?

Jim


Top
 Profile  
 
 Post subject: Re: Nano Problems
PostPosted: Wed Dec 22, 2010 5:31 pm 
Offline
Master

Joined: Sun Aug 17, 2008 5:26 pm
Posts: 798
Location: CA bay Area
muskyhuntr wrote:
I have re-breadboarded the 28x. Wiring is based on the limited documentation I have and is as follows:

1) Legs 9 and 10 go to opposite sides of the resonator. Center leg of resonator goes to ground.
2) Pin 6 goes to the serial pin for the USB serial adapter.
3) Pin 1 goes to the reset pin for the USB serial adapter.
4) Ground on the USB serial adapter goes to ground.
5) Pins 8 and 19 goto ground.
6) Pin 20 goes to ground.
7) I have a 1 meg res accross the outer 2 legs of the resonator. I have tried to access the chip with and without the resistor.

I have tried to access the chip with the above wiring using both Studio 2.0.0.5 and Studio 2.0.0.7.
No luck.
I have 2 chips, have tried both.

Jim

Hi. Pin 20 should go to Vcc, 5 Volts in your case.
By the way, put a 10K pullup on pin 6 also. It's been found that leaving the USB programmer connected without it being connected to the USB port may cause problems. What happens is, after disonnecting it from USB, the power is dropped, and the SER output of the programmer may go low. IIRC, this leads the bootloader to think there is a serial stream starting and holds up the processor. So, add the resistor, or remember to unplug the USB completely when you go to remove it from the USB port or hub.
Happy Holidays!

_________________
kenjj
http://blog.basicmicro.com/
http://kjennejohn.wordpress.com/


Top
 Profile  
 
 Post subject: Re: Nano Problems
PostPosted: Wed Dec 22, 2010 6:41 pm 
Offline
Citizen

Joined: Tue Sep 09, 2008 4:46 pm
Posts: 22
Kenjj

My mistake, pin 20 was connected to 5V. Sorry. :oops:

The 10K on pin 6 is a great idea, I will use that on the printed circuit I am working on.

Once again, sorry for the confusion.
Jim


Top
 Profile  
 
 Post subject: Re: Nano Problems
PostPosted: Sun Dec 26, 2010 5:14 pm 
Offline
Citizen

Joined: Tue Sep 09, 2008 4:46 pm
Posts: 22
I have solved the problem with the 28x chip. I tried a different resonator and that did the trick. My problem was a bad resonator. My thanks to all those who helped me in solving my problem. As usual, with me, its usually something stupid.

Jim


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO