Pages: [1]   Go Down
Author Topic: Beginner Question  (Read 367 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 18
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello Guys,

I am new to the arduino platform as well as the Micrcontrollers.

My project is a persistence of vision display. So I will be rotating my circuit at around 1500 RPM.

What my questions is that, after burning the code on my Arduino UNO, can I take off the micrcontroller and put it on the circuit without needing any other peripherals?

Also, I will be powering it using 2 Coin Cell 3v Batteries in Series, which would be on the Circuit board itself. So will that be feasible?

It would be great if someone could give me some tips on this.

Thanks
Logged

South England
Offline Offline
Full Member
***
Karma: 3
Posts: 205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You'll probably need to fit an external 16mhz crystal and a couple of 22pf caps. Taken straight from an UNO, the fuses on the chip are going to be set for an external crystal which you'll need to provide if you want it to work. Have a look around for some arduino to breadboard circuit diagrams and you'll get the idea.

Also, I would consider slightly more beefy batteries. I can't see a couple of coin cells lasting very long if they power it at all... but that does depend on the power requirements of your project, which I can't guess at without measuring it smiley
Logged

Poole, Dorset, UK
Offline Offline
Edison Member
*
Karma: 25
Posts: 1872
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You load the code via the USB after that unplug the USB and set it spinning.

Mark
Logged

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

@BulletMagnet83:
So what you mean to say is that I will have to re-create the whole board on my circuit? Don't worry about batteries as I need to power only 5-7 LEDs.

@holmes4:
You mean to say I send the whole board for a spin?
I am kinda new with micrcontrollers and all, could you give me some ideas on how I would be able to hold the board firmly on my circuit rotating at 1500 RPM.
Logged

United Kingdom
Offline Offline
Tesla Member
***
Karma: 220
Posts: 6587
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

If you want to power the mcu from small batteries, consider whether you need to run it at full Arduino speed (16MHz). I run my battery-powered projects at 8MHz, and you can use even lower clock speeds for lower power consumption.

If you don't want to use a crystal and capacitors with the mcu and don't need accurate timing, buy a blank atmega328p chip and program it by running the ArduinoISP sketch on your Arduino. You can run it at its default frequency of 1MHz, or at 8MHz if you program the fuses.
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

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

If you want to power the mcu from small batteries, consider whether you need to run it at full Arduino speed (16MHz). I run my battery-powered projects at 8MHz, and you can use even lower clock speeds for lower power consumption.

If you don't want to use a crystal and capacitors with the mcu and don't need accurate timing, buy a blank atmega328p chip and program it by running the ArduinoISP sketch on your Arduino. You can run it at its default frequency of 1MHz, or at 8MHz if you program the fuses.

Sir I have no idea how to do the second part. Is there any instruction to change the clock speed on the Arduino board? After programming, I could just take the controller off and use it, since 8 MHz would suffice. I don't have all the tools to program the blank atmega chip.
Logged

United Kingdom
Offline Offline
Tesla Member
***
Karma: 220
Posts: 6587
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The only tools you need to program a blank atmega chip are your Arduino, a 10uF capacitor, and a cable. See http://miscsolutions.wordpress.com/2011/08/09/prototyping-small-embedded-projects-with-arduino/.

You can take the chip out of the Arduino socket and run it at 8MHz if you connect an 8MHz crystal and capacitors to it. Alternatively, connect an 8MHz three-terminal ceramic resonator to it, then you don't need the capacitors.
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Poole, Dorset, UK
Offline Offline
Edison Member
*
Karma: 25
Posts: 1872
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Your going to be spinning what ever micro you use, plus the batteries, plus the LEDs and any other bits. So why not (at least) start by spinning an Uno and then move on the creating your own microprocessor card. You could have a look at the nano or pro mini cards. Look in the products section of this site.

Mark
Logged

Pages: [1]   Go Up
Jump to: