Pages: [1] 2   Go Down
Author Topic: Setting up a really bare bones arduino  (Read 1618 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 67
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have been trying to set up a really bare bones Arduino.

I used as a base
http://www.instructables.com/id/The-RRRRRRRRRRBA-or-What-They-Dont-Teach-You-in-/step6/There-you-have-it/

and I used a redboard bootloader. I have loaded the blink onto the microcontroller.

I hooked it up on the breadboard as shown in the diagram but I can't get any voltage from digital pin to turn the LED on.

For power I am using the 5V and Gnd from an arduino as power supply to handle any problems with not having a voltage regulator. My multimeter says 5.07 volts is running through it.

I just can't get anything to come out of digital pin 13. Could someone tell me if there is a trick?

Also I am using the right pins on the microcontroller because it has a nice sticker on it to make sure I use the right ones smiley
Logged

Montreal
Offline Offline
Edison Member
*
Karma: 23
Posts: 2486
Per aspera ad astra.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you read this page: http://www.instructables.com/id/The-RRRRRRRRRRBA-or-What-They-Dont-Teach-You-in-/step5/Some-Caveats/ ?
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 67
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have read them. Should any of them apply to me?
Logged

California
Offline Offline
God Member
*****
Karma: 13
Posts: 629
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

A picture of your project would go a long ways..
Logged


Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.gammon.com.au/forum/?id=11637
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 67
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I will make a picture tonight.

Thanks for the link Gammon. Your tutorial looks great however I am using the redboard to do all the bootloading so I don't have to set it up manually! The initial picture is the sort of thing I am trying to do. I don't have the pull up resistor on the resistor on the reset so I guess I should try that.

Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 67
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://i1065.photobucket.com/albums/u398/DestinedDotCom/BareArduino.jpg

Here is a picture. Do I need to include the cystal for it to work.

Currently it is programmed to just blink pin 13.

I used the redboard from sparkfun to laod the program onto the microcontroller.

Any help would be much appreciated. ( i want this to be as bare as possible)
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Add the crystal and caps.
Not sure if the redborard bootloader uses the internal clock.
Logged

California
Offline Offline
God Member
*****
Karma: 13
Posts: 629
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

And, if you do not have a crystal on hand, you can use Nick's bootloader with 8MHz signal on pin 9:
http://www.gammon.com.au/forum/?id=11635

If you like working with the Arduino IDE, this one has an 8MHz signal too:
https://github.com/adafruit/ArduinoISP
Logged


Atlanta, USA
Offline Offline
Edison Member
*
Karma: 33
Posts: 1424
AKA: Ray Burne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

My Opinion:

Barebone <anything> is simply not for those without sufficient experience with the non-bare product(s).  Even for us old timers, it can be stressful getting such projects to perform.

There is simply not enough $aving$ to warrant going this route.  I have 3 such projects on my bench right now - but, I'm designing small singke-purpose chips to frontend signal processing for a downstream Mega2560.

ADDED: 20130613 ...
Extreme bareboard (EBB) No Crystal... just chip.
Quote
How does this no-crystal thing work?  Essentially, we are simply going to run the 16MHz Atmel328P at 8MHz-ish (RC oscillators are not as accurate as crystals) and the Arduino programming environment will set all the timing constants at compile time.  This means that such things as tone() will continue to work at the correct frequency as with functions such as millis().  To make this magic happen, we need to provide the Arduino environment with some information about our new hardware configuration.  Such information is provide to the client Arduino software on your PC/Mac/Linux box via a file named boards.txt.  The following article explains how to install the file:
http://arduino.cc/en/Tutorial/ArduinoToBreadboard please refer to the section titled: Minimal Circuit (Eliminating the External Clock)  The screen-capture of the settings used by the 8MHz RC fuse configuration is shown in the second graphic.

The no crystal approach may be a great way to save a few cents on your next barebones project or lower the power requirements for battery operated projects.  Most things will work OK with the lower frequency; however, please remember that timing-critical stuff such as serial communications to the PC or other devices (say, reading a GPS) are likely NOT the proper place to save the price of a crystal.  That being said, you may still wish to consider the lowering of the standard 16MHz frequency to a lower crystal frequency of 8MHz to lower the power requirements.



- Ray


* IMG433.jpg (1011.23 KB, 2592x1944 - viewed 13 times.)
« Last Edit: June 13, 2013, 08:43:14 am by mrburnette » Logged

California
Offline Offline
God Member
*****
Karma: 13
Posts: 629
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

My Opinion:

Barebone <anything> is simply not for those without sufficient experience with the non-bare product(s).  Even for us old timers, it can be stressful getting such projects to perform.

There is simply not enough $aving$ to warrant going this route.  I have 3 such projects on my bench right now - but, I'm designing small singke-purpose chips to frontend signal processing for a downstream Mega2560.

- Ray

True enough.  But, I do not think it is really the $aving$ that attracts most people, whereas the education is what you pay for with headache currency smiley-wink
Logged


SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 106
Posts: 6373
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Barebone <anything> is simply not for those without sufficient experience with the non-bare product(s).
Yeah, it's a bit frustrating to watch all of the people having problems, without having much to say that will help.  This is what using microcontrollers was like without Arduino (or the equivalents like Basic Stamps.)  Avoiding this sort of thing is why those are such wonderful products!

Quote
I used a redboard bootloader.
So...  I give up.  What's a "redboard bootloader"?  The sparkfun Redboard kit(s), which I assume is what you're talking about, says it uses an ATmega328 with the Optiboot bootloader.  How did you program the bootloader?  If you're not seeing ANY activity on pin13, then the bootloader burn was not successful.  (It should blink rapidly several times after reset.)  Optiboot, together with the normal ways to burn it, does need the crystal.  The instructable you reference talks about using the Lilypad bootloader that uses the internal oscillator.  But there were several versions of the Lilypad, and the newer ones use an external crystal (an 8MHz one, to be compatible with the lower supply voltages.)  What are you doing for reset?  The optiboot bootload process requires an external reset; mere powerup won't do the right things.  You said you progammed blink.  How?  What do you have the "Board" set to for loading the sketch?  What was it set to for burning the bootloader?  What are you using for the serial connection?

Or did you mean that you programmed the chip when it was in your redboard, and have taken it out and are trying to get it (the already loaded sketch) running on the protoboard?  That should work, but it will require the crystal as well.
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 67
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Barebone <anything> is simply not for those without sufficient experience with the non-bare product(s).
Yeah, it's a bit frustrating to watch all of the people having problems, without having much to say that will help.  This is what using microcontrollers was like without Arduino (or the equivalents like Basic Stamps.)  Avoiding this sort of thing is why those are such wonderful products!

Quote
I used a redboard bootloader.
So...  I give up.  What's a "redboard bootloader"?  The sparkfun Redboard kit(s), which I assume is what you're talking about, says it uses an ATmega328 with the Optiboot bootloader.  How did you program the bootloader?  If you're not seeing ANY activity on pin13, then the bootloader burn was not successful.  (It should blink rapidly several times after reset.)  Optiboot, together with the normal ways to burn it, does need the crystal.  The instructable you reference talks about using the Lilypad bootloader that uses the internal oscillator.  But there were several versions of the Lilypad, and the newer ones use an external crystal (an 8MHz one, to be compatible with the lower supply voltages.)  What are you doing for reset?  The optiboot bootload process requires an external reset; mere powerup won't do the right things.  You said you progammed blink.  How?  What do you have the "Board" set to for loading the sketch?  What was it set to for burning the bootloader?  What are you using for the serial connection?

Or did you mean that you programmed the chip when it was in your redboard, and have taken it out and are trying to get it (the already loaded sketch) running on the protoboard?  That should work, but it will require the crystal as well.


Yes I meant the redboard kit which is the Optiboot loader. It now works with the crystal which is good, although I would of prefered no Crystal.


I apologise to all the people I frustrated. I am new and learning. I am much better on the programming side than the electronics!
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 67
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes I meant the redboard kit which is the Optiboot loader. It now works with the crystal which is good, although I would of prefered no Crystal.


I apologise to all the people I frustrated and very much appreciate the help. I am new and learning. I am much better on the programming side than the electronics!
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 67
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I popped a 20mhz crystal in instead of a 16 (as it was all my local electronics store had) and it still seems to work.

What difference does the value of the cystal make?
Logged

Pages: [1] 2   Go Up
Jump to: