13 votes

How can Arduino's 8 bit Microcontrollers handle C++

It's a misconception that using constructors or C++ in general requires lots of RAM. Plus, to be clear, the AVR processors like the Micro and Uno have separate RAM and PROGMEM (program memory). So, ...
user avatar
  • 35.3k
12 votes
Accepted

Are there any reasons to pick Nano over Micro?

The main difference between the ATmega32u4 and the ATmega328P is that the 32u4 has onboard USB. When ATmega328P are used in an Arduino they are often coupled with an FTDI USB to serial chip. The FTDI ...
user avatar
  • 2,886
10 votes

Arduino Micro vs. Pro Micro

I actually think you are meaning what is the difference between the Arduino Mini and the Arduino Pro Mini, since there is no such board as the Arduino Pro Micro. However there is a board called the ...
user avatar
  • 3,052
7 votes
Accepted

Arduino Uno vs Arduino Micro timers → pins

I cannot find any information about the arduino micro. I also don't know exactly what the proper keywords are that i need to find the relation between timers and pins. Go to the products page for the ...
user avatar
  • 35.3k
7 votes
Accepted

if(Serial) not working correctly on micro or pro micro

1) have i got an out of date bootloader? No. This has nothing to do with the bootloader. 2) if so how do i check? See above. 3) is this intended behavior and if so why? In a manner of ...
user avatar
  • 103k
6 votes
Accepted

Generate particular pulse using Arduino

Take two 10K or so resistors: +5V | 10K | Pin2-+---> output | 10K | GND The following program does the trick: const uint8_t kPin = 2; const uint32_t kDelay = ...
user avatar
  • 746
6 votes
Accepted

Unexpected negative values from abs() function inline with analogRead

abs() is defined in Arduino.h as a macro: #define abs(x) ((x)>0?(x):-(x)) A macro does not evaluate in the same way as a function. sensor = abs(analogRead(A0) - 512); This statement will be ...
user avatar
  • 7,851
6 votes
Accepted

Arduino Micro 5V Vin and 3v3 pins

Vin is a power INPUT. It is connected to the input of the voltage regulator, which enables you to power the Arduino with voltages between 6V and 12V, while the Arduino itself is running on 5V. The 5V ...
user avatar
  • 13.9k
5 votes

Generate particular pulse using Arduino

If both inputs are 0V, the output will be 0V. If both inputs are 5V, the output will be 5V. If one input is 0V and one 5V the output will be 2.5V. However, if the device attached to the output ...
user avatar
  • 11.1k
5 votes
Accepted

What's the problem with baudrate?

On a direct USB CDC/ACM connection (as you get on the Micro) there is no such thing as baud rate. Any baud rate setting performed by the host (the PC) is merely an instruction to the device (the ...
user avatar
  • 103k
5 votes

How to have some code executed at a certain time of day with a DS3231 RTC?

If you are getting 165:165:165 that indicates usually a problem with your I2C bus. But it might also be a power problem in the RTC. In any case, check your wiring. Your processor is simply not ...
user avatar
  • 1,141
5 votes

How can Arduino's 8 bit Microcontrollers handle C++

The talk about C++ being incompatible with small MCUs implies that developers would use features it provides. In a good C++ project you're expected to use vectors and iterators instead of C arrays, ...
user avatar
4 votes
Accepted

Using Arduino Micro With 12V Buzzer

Attach your voltmeter across the battery, and measure the available voltage when different things are attached; or attach it in series, and measure current draws. You probably will find that a 9V ...
user avatar
4 votes
Accepted

How to send unmodulated IR-Signal via cable?

There are two major components to an infra-red signal. One is the high frequency carrier wave signal that pulses the LED on and off. This frequency has to match that of the receiver and is used with ...
user avatar
  • 103k
4 votes
Accepted

LED bar graph script not working

Both v and vref are integers, which means that integer division will be performed. if v is ever less than vref then the result will be 0. Multiply first, then divide.
user avatar
4 votes

How can Arduino's 8 bit Microcontrollers handle C++

C++ is fine with Arduinos or other AVR based Systems. I've been use it for quite a while in a home automation project. The avr runtime does not support exceptions nor dynamic memory allocation, as ...
user avatar
4 votes
Accepted

Use lowpower-libary and still use serial connection and other things

Yes, activating low power does disable the UART - but only while it's sleeping. To use serial you just need to ensure that you only use it while it's not sleeping - and due to the interrupt and ...
user avatar
  • 103k
4 votes
Accepted

What does a tilde (~) mean as annotation for a data pin?

It means the pin can be a PWM output for use with analogWrite().
user avatar
  • 103k
3 votes

Read signal from USB mouse on an Arduino ?

This would be possible only if the mouse actually supports PS/2. USB to PS/2 adapters are entirely passive, and in order to function it requires that the controller in the mouse is designed to ...
user avatar
3 votes
Accepted

How to differentiate between 2 Micros on Linux

The USB VID, PID and Serial Number are all programmed into the chip when you upload your sketch. The VID and PID are tied to the board, and the serial number is always the same regardless of which ...
user avatar
  • 103k
3 votes
Accepted

SoftwareSerial problems

Taken from http://www.arduino.cc/en/Reference/SoftwareSerial: Limitations The library has the following known limitations: If using multiple software serial ports, only one can receive data at a ...
user avatar
3 votes

Are there any reasons to pick Nano over Micro?

I'd buy the NANO and STEER CLEAR of the micro with that 32u4 chip. The good ol' 328p chip also has a FTDI chip to handle USB to serial while the other chip handles it on its own. The problem is that ...
user avatar
3 votes

433MHz sending not receiving

If you are not getting anything on the receiver, then the receiver is definitely the problem. These units will boost the gain until it get some signal, any signal. You should be able to power the ...
user avatar
3 votes

Arduino Micro tone() PWM Pins

The pin 3 and 11 only refers to boards based on the ATMega328. On these boards timer2 is used by tone, disabling PWM on pins 3 and 11. See Majenko answer about timers. The Micro (ATMega32u4) tone ...
user avatar
  • 11.1k
3 votes

Arduino micro lost connection after first programming

The USB part of the Atmega32U4 needs quite a bit of software to operate correctly, which is either not included in the basic blinky example or you got a binary for a different Arduino model. The ...
user avatar
  • 131
3 votes

Driving numerous chips from 2 separate SPI connectors w/ Arduino Micro

The micro only has one SPI bus. It is SCK/MISO/MOSI. You may want a second one, but you don't have one. You can't magic one up out of thin air. You could emulate one in pure software (bit-banging) ...
user avatar
  • 103k
3 votes
Accepted

How do I power my Arduino Micro directly?

According to this schematic, VIN goes to the on arduino-micro's 5 and 3 volt regulators. So you should not need a resistor. The 5 volt regulator needs a bit more than 5 volts at it's input to do a ...
user avatar
  • 6,616
3 votes
Accepted

External power supply?

My question is, can I just split the power from the wall-wart providing 5v_reg directly to the 5V pin on the Arduino Micro and 5v_reg to the LEDs Vss? Yes. As long as it is a clean regulated 5V ...
user avatar
  • 103k
3 votes
Accepted

Having problems compiling this code for NRF24l01 on arduino uno and arduino micro

You have multiple copies of the library. Delete the folder located at: C:\Users\Owner\Documents\Arduino\libraries\RF24ArduinoCommunicator-master
user avatar
  • 619
3 votes
Accepted

How to have some code executed at a certain time of day with a DS3231 RTC?

SDA and SDL pins on an Arduino Micro are on pins D2 and D3 as mentioned on the official page: TWI: 2 (SDA) and 3 (SCL). Support TWI communication using the Wire library. and shown on this pinout ...
user avatar
  • 1,645

Only top scored, non community-wiki answers of a minimum length are eligible