Most Popular

1500 questions
15
votes
8 answers

Arduino Newbie: Solderless Breadboard Alternate

I am completely new to arduino. I have created a circuit using solderless breadboard. But obviously the connections are lose or not as good as a soldered solution. So I was wondering since I am new to circuits too, what is the easiest
Saad Bashir
  • 289
  • 2
  • 3
  • 7
15
votes
2 answers

Assembly on the Arduino: IO registers

Question: What registers do I use to access the IO on the Arduino Uno when I am using assembly for programming? Background: I was interested in practicing my assembly language skills on the Arduino (I thought it would be easier to turn LEDs on/off…
apnorton
  • 533
  • 1
  • 5
  • 22
15
votes
1 answer

Arduino IDE #ifdef

I use my Arduino IDE to either upload my sketch to a Arduino or ATTiny or ATmega328. As you know each device can have a different pinout. Does the Arduino compiler support ifdef, depending on the board I am connected to? For example #ifdef Attiny85 …
PhillyNJ
  • 1,178
  • 3
  • 10
  • 20
15
votes
3 answers

Can tx and rx pins on the uno be used like regular digital pins?

The uno has digital pins marked 0-13. 0 is marked as rx and 1 is marked as tx. Can these two pins be used as regular digital pins if i am short of digital pins?
c_breeez
  • 349
  • 1
  • 3
  • 9
15
votes
2 answers

Controlling Floppy Disk Drive with Arduino

I am having problems controlling a 3.5" Floppy Disk Drive with an Arduino Uno. I have the floppy disk drive powered with a computer power supply that is switched on, and the Arduino powered by my computer's USB. I have cut apart the ribbon of a…
jeffctown
  • 153
  • 1
  • 1
  • 6
15
votes
1 answer

Is there a preprocessor constant for memory size

I would like my compiles to exclude some code depending upon the flash/program space available. To be used in the demo code of a library I support. Whereas my current solution is to use a #ifdef of processor type. But I would like to be more general…
mpflaga
  • 2,523
  • 14
  • 13
15
votes
2 answers

Post Data To a Web Service From Arduino

If you want to submit sensor data such as temperature to a remote server/database somewhere you need to use some kind of call to a web server since it isn't possible to connect directly to a database from the Arduino. How do you post data to a JSON…
HK1
  • 397
  • 1
  • 4
  • 10
15
votes
2 answers

Set PWM frequency to 25 kHz

I currently can set four PWM pins to around 31 kHz with the following code: void setup() { TCCR1B = TCCR1B & B11111000 | B00000001; // Set PWM frequency for D9 & D10: pinMode(pwmPin9, OUTPUT); // Sets the pin as output pinMode(pwmPin10,…
user16307
  • 237
  • 2
  • 4
  • 15
15
votes
5 answers

How to change baudrate of ESP8266 (12e) permanently?

IMPORTANT: DO NOT USE AT+IPR=9600! (see update) I have an ESP8266 12E module that communicates at 115,200 bauds. Since I use it with an Arduino Nano with SoftwareSerial things get messy. So I found that I should reduce the baud rate of the ESP…
mvermand
  • 427
  • 1
  • 6
  • 15
15
votes
4 answers

ESP8266, Arduino IDE vs Lua?

I'm planning to buy an ESP8266. Do I really need to learn Lua to play with it? I have seen some people using it with the standard Arduino IDE. Do you need a custom firmware to use the Arduino IDE instead of Lua? The Arduino IDE seems better for me…
n0tis
  • 375
  • 2
  • 3
  • 9
15
votes
1 answer

What happens when code is uploaded using the bootloader?

When I upload a new sketch to my Arduino Uno using the Optiboot bootloader, what really happens? What is sent to the Arduino? How does it respond? What does "not in sync mean"? What is "in sync" anyway? Note: This is intended as a "reference…
Nick Gammon
  • 38,901
  • 13
  • 69
  • 125
15
votes
5 answers

Programming options other than C++

Can I program my Arduino using any programming language other than C++? If so, which programming languages? What software would I need for compiling and loading my code onto the Arduino?
tstew
  • 729
  • 1
  • 6
  • 26
15
votes
2 answers

What is the difference between the revisions of the Arduino Uno board?

There are three different revisions of the Arduino Uno. What changed in each revision?
tstew
  • 729
  • 1
  • 6
  • 26
15
votes
3 answers

Is it possible to find the time taken by millis?

The function millis would be running in the span of 100+ microseconds or less. Is there a reliable way to go about measuring the time taken by a single millis call? One approach that comes to mind is using micros, however, a call to micros will…
asheeshr
  • 3,847
  • 3
  • 26
  • 61
14
votes
1 answer

How millis() resets itself to 0

Looking at the documentation for the millis() function , it says: Returns the number of milliseconds since the Arduino board began running the current program. This number will overflow (go back to zero), after approximately 50 days. How's…
Programmer
  • 362
  • 4
  • 11