Pages: [1] 2   Go Down
Author Topic: New Mini-uino  (Read 2051 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Edison Member
*
Karma: 8
Posts: 1341
If you're not living on the Edge, you're taking up too much space!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've been working with Robert trying to get this running, he's been very helpful, but I'm still stuck.
http://www.crossroadsfencing.com/Mini-uino-DTR-ICSP-GND.jpg
Optiloader was loaded successfully.

I connected
GND,+5,RST,TX,RX to
GND,+5,RST,TX,RX on my Uno.
Removed the 328 chip.
Still it will not load sketches.

L light does not come on (UNO).
The TX LED does not come on.
The RX LED flashes a few times 1 second apart.

Please can you tell me what steps to follow to troubleshoot?
If you ask me questions it would be very helpful.
I'm not sure what more information I need to include.
I get the same error as if nothing were connected (chip removed).
Logged

If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8860
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What does the boards.txt entry for the Mini-duino look like?  Does it have the right baud rate for the Mini-duino optiboot bootloader?
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Edison Member
*
Karma: 8
Posts: 1341
If you're not living on the Edge, you're taking up too much space!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Great question!  There is no entry for this board.  I was told to use the same choice as the existing chip in the Uno, which is now removed.  What is the baud rate for Tools/Board/Arduino Uno?  What is the right baud for Mini-uino Optiboot?  I used this Sketch to load it following the instructions.  I did not modify the sketch.
https://github.com/WestfW/OptiLoader
Logged

If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8860
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Looks like it should have worked, assuming the selected UNO and the Mini-duino use the same processor. Sorry I can't be of more help.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Upstate NY
Offline Offline
Full Member
***
Karma: 2
Posts: 184
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

1) How do you know that the optiloader was loaded correctly?

2) How about posting some pictures of your setup.

3) What did you use for an oscillator/crystal?
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 205
Check twice, etch once
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Try reversing RX and TX on your Uno
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27144
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Here's the mini-uino design.
Same '328 processor as the Uno. Different package, same device signature.
Same pinout used as an Arduino.
Connecting +5, Gnd, Reset, D0, D1 to Uno should let it look like a '328 is plugged into the board.
I can't see where the issue is here, we've traded several e-mails on this already.
I figured he'd be golden after loading the optiloader worked.


* MiniFlatpackRev2.jpg (108.49 KB, 960x720 - viewed 27 times.)
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Edison Member
*
Karma: 8
Posts: 1341
If you're not living on the Edge, you're taking up too much space!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

1) There were no error messages when I ran the Sketch.  Every line looked good and it said success or something.  I wish I had saved the text.

2) Will post pictures.  There are 5 wires and 9 components soldered to the PCB.  I have not yet done anything different on the PC.  Just tried to upload a sketch like I always do.  Removed the DIP chip on Uno.

3) I used the Xtal that Robert provided A160LOX.  He's been great at helping me BTW!

I tried reversing the TX/RX pins anyway.  Although we thought carefully about which is correct.
"D1" to "TX"
"D0" to "RX"

What about using DTR instead on Mini like was mentioned on the other thread above mine?
Logged

If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

Offline Offline
Edison Member
*
Karma: 8
Posts: 1341
If you're not living on the Edge, you're taking up too much space!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Why is there a "1" next to "D0" on PCB printed in white?
Looks almost like "D01" except 1 is upside down.
There is also a "1" next to D5.

Also tried:
D10 to Mini-uino Reset,
D11 to D11,
D12 to D12,
D13 to D13,
+5 to +5,
Gnd to Gnd
using Sparkfun USB Xbee dongle.
Same error.
« Last Edit: November 24, 2011, 09:35:35 am by sbright33 » Logged

If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

Offline Offline
Edison Member
*
Karma: 8
Posts: 1341
If you're not living on the Edge, you're taking up too much space!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Just tried again like this:


* IMG_7052.JPG (150.33 KB, 1024x683 - viewed 30 times.)

* IMG_7053.JPG (124.82 KB, 683x1024 - viewed 22 times.)
Logged

If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27144
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The extra digits are part of the symbol around the connector, I'm terrible at manipulating symbols so I just left them there.

I wonder if there is some fuse setting thing that needs to be done as part of the optiload boot loader?
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Edison Member
*
Karma: 8
Posts: 1341
If you're not living on the Edge, you're taking up too much space!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Didn't you do this process with the same PCB?
How is my setup different?
I've tried 2 different methods, different pins, different hardware.
So it can't be just 1 bad solder joint.
The only thing they have in common is our PCB.
Maybe I have a soldering defect.
How do I troubleshoot?
Keep in mind the Optiloader process was a success.
Maybe I have made a stupid mistake, I'm new to Arduino.
Something so obvious to everyone they forgot to tell me?
That's why I need your questions!  No question is stupid or insulting.
Did you remember to plug in the USB cable?  smiley-wink

When I press reset with my old DIP 328 the lights do a sequence.
Shouldn't I expect a similar response even without a Sketch in the new chip?
This does not require a good solder connection to RX.
Does it prove the problem is with TX or Reset? 
(I tested power and GND)
Certainly we can eliminate anything related to the PC as suspect.

Let's assume I made a soldering mistake.
Which connections would fit the symptoms?
Works with Optiloader but not IDE loading sketches.
Seems there are only 3 possibilities?

The correct caps are marked 4x 104
2x 22
Res Brown Black Orange.
Getting desperate...

Thanks everyone for your time and effort so far,
especially Crossroads!
Steve
Logged

If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8860
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Let's assume I made a soldering mistake.
Which connections would fit the symptoms?
Works with Optiloader but not IDE loading sketches.

Serial Programming uses the SPI pins and regular uploading uses the serial port.  Perhaps something is causing the serial port to not work properly. If the crystal or associated capacitors are bad that might cause the clock rate to be off.  Just a guess.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27144
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

John, I think you mean bootloader programming uses SPI and sketch (regular) uploading uses the serial port.

This should be no different than uploading to a promini.

With +5, Gnd, and D0 to D0, D1 to D1 and Reset to Reset, and having its own xtal/caps/reset pullup resistor,
the board should look & act just like a chip that was plugged in as far as the USB/Serial interface is concerned.

Jerry,
if you use a meter and buzz from D0 to D1, D0 to Gnd, and D1 to Gnd, you're not seeing any shorts are you?
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Edison Member
*
Karma: 8
Posts: 1341
If you're not living on the Edge, you're taking up too much space!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No shorts.
I can see 3 problems according to this tutorial:
http://arduino.cc/en/Tutorial/ArduinoToBreadboard

It says NOT the Uno, at the top, in bold.
It says to select a different controller in the Board menu.
I have 4 extra caps in my circuit.
Which one of these is a problem?
Logged

If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

Pages: [1] 2   Go Up
Jump to: