Some basic questions about the Arduino UNO

  • Thread starter Wrichik Basu
  • Start date
  • Tags
    Arduino
In summary: I had my minds on raspberry pi, and hope to learn it soon. The problem is that, it runs on Python, and I'm not familiar with it.I hope to learn it soon as well. I had my minds on Raspberry Pi, and hope to learn it soon. The problem is that, it runs on Python, and I'm not familiar with it.
  • #1
Wrichik Basu
Science Advisor
Insights Author
Gold Member
2,111
2,691
I am a beginner in Arduino, and will soon buy the UNO board. I have a few questions about it before I buy:

1. What are the options of powering the board? I found on the net that there is a DC plugin option. But will it work on a power bank (for mobile, through USB) supplying 5V?

2. If I press the Reset button on the top left of the board, will the program that I loaded be erased, or will the program simply restart?

3. When I load a new sketch onto the board, does the previous sketch get automatically erased, or do I have to erase it manually?
 
Last edited:
Engineering news on Phys.org
  • #2
Wrichik Basu said:
But will it work on a power bank (for mobile, through USB) supplying 5V?
It comes with a USB cable which you can connect to your computer. It takes care of both data transfer and powering the board. No need to use any external supply.
Wrichik Basu said:
If I press the Reset button on the top left of the board, will the program that I loaded be erased, or will the program simply restart?
It will restart.
Wrichik Basu said:
When I load a new sketch onto the board, dies the previous sketch get automatically erased, or do I have to erase it manually?
It gets erased automatically.
 
  • Like
Likes jim hardy
  • #3
cnh1995 said:
It comes with a USB cable which you can connect to your computer. It takes care of both data transfer and powering the board. No need to use any external supply.
I will make a project for an upcoming science exhibition. I don't have a laptop, so I need some external power supply.

Thanks for the help.
 
  • #4
Powering it through the USB is the most convenient way when you are close to the computer. Other than that any PSU 7-12 V will do, Arduino has its own, built in voltage regulator. Just check polarization.
 
  • Like
Likes Wrichik Basu and cnh1995
  • #5
Wrichik Basu said:
I don't have a laptop,

You need a computer to load and run the Arduino development software , and to load the programs you write using it into your Uno.
You must have something connected to the Internet or you'd not be posting here.

see https://www.arduino.cc/en/Guide/ArduinoUno

The USB connection with the PC is necessary to program the board and not just to power it up.
 
  • #6
jim hardy said:
You need a computer to load and run the Arduino development software , and to load the programs you write using it into your Uno.
You must have something connected to the Internet or you'd not be posting here.

see https://www.arduino.cc/en/Guide/ArduinoUno
I never said I don't have a desktop, did I?
 
  • #7
Wrichik Basu said:
I never said I don't have a desktop, did I?

Lets be nice here. We are all trying to help. If we can't see what you have how do expect us to respond.

So many times when we make assumptions about a post, we find that we are wrong and so we try to cover all bases in our answers.
 
  • Like
Likes Wrichik Basu
  • #8
While I know you're working on an arduino project but have you looked into raspberry-pi. Some folks tie the two together so they have a programming environment on the PI that loads code on the arduino. The most common reason is that the arduino supports a lot of i/o devices whereas the pi can function as a full computer. The combination is just awesome.

https://www.raspberrypi.org/magpi/program-arduino-uno-raspberry-pi/
 
  • Like
Likes jim hardy
  • #9
Wrichik Basu said:
I never said I don't have a desktop, did I?
You'll bite a helping hand ? Thanks for the heads-up. .
 
  • Like
Likes jedishrfu
  • #11
jim hardy said:
You'll bite a helping hand ? Thanks for the heads-up. .

and the hand bites back. :-)
 
  • #12
jedishrfu said:
Lets be nice here. We are all trying to help. If we can't see what you have how do expect us to respond.

So many times when we make assumptions about a post, we find that we are wrong and so we try to cover all bases in our answers.
I never meant to be rude. If my post suggests so, I'm sorry.
 
  • Like
Likes jedishrfu
  • #13
jim hardy said:
You'll bite a helping hand ? Thanks for the heads-up. .
I never meant to be rude in any way. Sorry if the post has given rise to such feelings.

Thanks for replying to the thread. It's because of helping hands like you that amateurs like me depend on PF and not on any other site.
 
  • Like
Likes jim hardy and jedishrfu
  • #14
jedishrfu said:
While I know you're working on an arduino project but have you looked into raspberry-pi. Some folks tie the two together so they have a programming environment on the PI that loads code on the arduino. The most common reason is that the arduino supports a lot of i/o devices whereas the pi can function as a full computer. The combination is just awesome.

https://www.raspberrypi.org/magpi/program-arduino-uno-raspberry-pi/
I had my minds on raspberry pi, and hope to learn it soon. The problem is that, it runs on Python, and I don't know Python.

Thanks for the link, anyways.
 
Last edited:
  • Like
Likes jedishrfu
  • #15
jedishrfu said:
Here's another comparison between them:

https://readwrite.com/2014/05/07/arduino-vs-raspberry-pi-projects-diy-platform/

and while this isn't completely relevant here, there are several Youtube channels devoted to these platforms.

Lastly, a cool robotics project just right for autonomous programming:


I am quite interested in robotics, and hoped to make a robot (simple one using Arduino) in the upcoming science exhibition, but my greatest constraint is money at this moment.:frown:
 
  • Like
Likes jedishrfu
  • #16
Its funny money was always my constraint too. In high school, I would visit the local Radio Shack store to buy what I could and then I hacked stuff together. My "computers" were basically fancy switches and relays as I didn't have the smarts to understand transistors. Later, when I graduated from college and got a job I had the money to buy a lot of toys like SWTC 6800 computer and TTL logic chips... It was a fun time but now is even more awesome for students.

With respect to the robot rover, the motors can be gotten from Amazon for about $15 each and then you'll need a motor controller chip for the arduino to control I think. There's a book that ties this together:

https://www.amazon.com/dp/1457186039/?tag=pfamazon01-20

and others for sourcing parts and software:

https://www.amazon.com/dp/0071750363/?tag=pfamazon01-20

https://www.amazon.com/dp/0071406859/?tag=pfamazon01-20

https://www.amazon.com/dp/1449323898/?tag=pfamazon01-20

Hang on to this post for future reference when you make your first million.
 
  • Like
Likes Wrichik Basu
  • #17
Wrichik Basu said:
I had my minds on raspberry pi, and hope to learn it soon. The problem is that, it runs on Python, and I don't know Python.

Nope. On Pi you can use virtually any language you can think of, as most of them have Debian interpreters/compilers. Yes, Python has a native support, as does Java, C, C++ and so on.

Plus, if you have any experience in programming Python is not difficult at all. It has its quirks - every language does - but the learning curve is quite flat.
 
  • Like
Likes jedishrfu
  • #18
Borek said:
Nope. On Pi you can use virtually any language you can think of, as most of them have Debian interpreters/compilers. Yes, Python has a native support, as does Java, C, C++ and so on.

Plus, if you have any experience in programming Python is not difficult at all. It has its quirks - every language does - but the learning curve is quite flat.
I know java, so if raspberry pi works on java as well, I am good to start off.

Can you recommend any good book(s) or resources to start learning pi with java?
 
  • #21
Wrichik Basu said:
Sorry if the post has given rise to such feelings.

Thanks for reaching out.
I too have said things that came across different than i intended. I appreciate when people point them out to me. It's just another facet of good communication.

No hard feelings ?

old jim
 
  • Like
Likes jedishrfu, Wrichik Basu and cnh1995
  • #22
@jedishrfu or anyone: can you say how much maximum current will the Arduino board draw? Will it greater than 1A or less than that?
 
  • #23
Wrichik Basu said:
@jedishrfu or anyone: can you say how much maximum current will the Arduino board draw? Will it greater than 1A or less than that?
No, 1A is way too much. It is of the order of a few mA.
 
  • Like
Likes Wrichik Basu and jedishrfu
  • #24
Have you tried to google for Arduino specification? I am more than sure it will explicitly state what is the maximum current the board can draw (and/or survive).

Note: total power consumed depends on what is connected to the board. The board itself fits in mA (perhaps tens of mA) range. Things connected to I/O pins can't draw more than 200 mA total (that's what μC is capable of surviving). Then, there are two pins (5 V and 3.3 V) that can be used to power external devices - those will draw as much as these external devices will need. For example GSM shield can need up to 2A when booting up (so it is typically better to power it separately).

For starts USB will be perfectly enough, before you will get to more complicated projects you will probably already learn how to power them safely.
 
  • Like
Likes ryaamaak and cnh1995
  • #25
Wrichik Basu said:
1. What are the options of powering the board? I found on the net that there is a DC plugin option. But will it work on a power bank (for mobile, through USB) supplying 5V?

I recently used a portable battery pack https://www.amazon.com/dp/B06X3RJKKN/?tag=pfamazon01-20 to power a raspi remotely for several hours at a time. A micro usb cord connected the battery to the raspi. I don’t know for sure it could be done with arduino, though given the similarities I think probably. Sorry not to be of more help. Good luck!
 
  • Like
Likes berkeman, jedishrfu and Wrichik Basu
  • #26
Borek said:
Have you tried to google for Arduino specification? I am more than sure it will explicitly state what is the maximum current the board can draw (and/or survive).

Note: total power consumed depends on what is connected to the board. The board itself fits in mA (perhaps tens of mA) range. Things connected to I/O pins can't draw more than 200 mA total (that's what μC is capable of surviving). Then, there are two pins (5 V and 3.3 V) that can be used to power external devices - those will draw as much as these external devices will need. For example GSM shield can need up to 2A when booting up (so it is typically better to power it separately).

For starts USB will be perfectly enough, before you will get to more complicated projects you will probably already learn how to power them safely.
USB won't work. I'll tell you why. Earlier, school had said that the science exhibition would be for two days. Now, they have increased it to four days. And coincidentally, my power bank has started malfunctioning today. I don't have a laptop either.

So I was thinking of buying this adapter to power the board and components. That's why I was asking the maximum current possible.

I did Google it, and it showed the range in mA, but I was worried about the Bluetooth module that I might use. That's why I asked here.

Anyways, your specifications will help. I'll buy the 2A one to be on safer side.
 
Last edited:
  • #27
As I said - google for the Arduino specification. Not an arcane knowledge, it is freely available.

There are USB chargers capable of delivering 2A (while they are way over the USB specification which limits the current to 500 mA they are needed for some devices like the newest Rapberry Pi).
 
  • Like
Likes Wrichik Basu
  • #28
Wrichik, I would start with the Arduino only. Rasberry Pi is a much more complicated device and requires extensive knowledge of it's Linux based operating system. This also requires making choices about which way to go and loading several different bits of software collected from here and there on the internet. The Arduino has no visible op system. You just write a program (sketch) and run it.
 
  • #30
Wrichik Basu said:
USB won't work. I'll tell you why. Earlier, school had said that the science exhibition would be for two days. Now, they have increased it to four days. And coincidentally, my power bank has started malfunctioning today. I don't have a laptop either.

So I was thinking of buying this adapter to power the board and components. That's why I was asking the maximum current possible.

I did Google it, and it showed the range in mA, but I was worried about the Bluetooth module that I might use. That's why I asked here.

Anyways, your specifications will help. I'll buy the 2A one to be on safer side.
make sure the barrel jack is the correct size,

you can also use a battery and buy or make a battery connector that has a barrel jack
 
  • #31
donpacino said:
https://learn.adafruit.com/ladyadas-learn-arduino-lesson-number-0/power-jack-and-supply

The arudino has a barrel jack that is commonly used for power. You can use any dc power source to power it (recommended in the 9-12 V range, although it can be 5-20 I think)
Yes, I was thinking of using that. It's always better to provide the recommended voltage, because I found (on some site) that if the voltage is below 9V, then the board may not be able to supply the 5V output, while that more than 13V or 14V might damage the components. Hence I decided on the 12 V adapter.
 
  • #32
donpacino said:
make sure the barrel jack is the correct size,

you can also use a battery and buy or make a battery connector that has a barrel jack
The jack size is the preset size that is generally available for lower DC voltages.

I could use a battery as well, but when I found that I had an option of access to the mains in the exhibition, I decided to rely on the mains. School has power backup, so it's reliable too.
 

1. What is an Arduino UNO?

The Arduino UNO is a popular open-source microcontroller board used for building electronic projects. It is based on the ATmega328P microcontroller and has a variety of digital and analog input/output pins that can be programmed to interact with sensors, motors, and other electronic components.

2. What can I do with an Arduino UNO?

An Arduino UNO can be used for a wide range of projects, including building robots, creating interactive art installations, automating household appliances, and much more. Its versatility and ease of use make it a popular choice for hobbyists, students, and professionals alike.

3. How do I program an Arduino UNO?

The Arduino UNO can be programmed using the Arduino Integrated Development Environment (IDE), which is a free software tool that allows you to write and upload code to the board. The code is written in a simplified version of C++ and can be easily learned by beginners.

4. Can I connect other electronic components to an Arduino UNO?

Yes, the Arduino UNO has a variety of digital and analog input/output pins that can be used to connect and control other electronic components such as sensors, motors, LEDs, and more. This makes it a versatile platform for creating interactive projects.

5. Do I need any prior knowledge or experience to use an Arduino UNO?

No, the Arduino UNO is designed to be user-friendly and accessible to beginners. While some basic knowledge of electronics and programming may be helpful, there are many online resources and tutorials available to help you get started with the Arduino UNO.

Similar threads

  • Electrical Engineering
Replies
1
Views
981
  • Electrical Engineering
Replies
5
Views
2K
  • Electrical Engineering
Replies
2
Views
899
Replies
6
Views
892
  • Electrical Engineering
Replies
8
Views
17K
Replies
6
Views
2K
Replies
3
Views
6K
  • Computing and Technology
Replies
2
Views
4K
  • Electrical Engineering
Replies
12
Views
2K
Replies
12
Views
4K
Back
Top