Most Popular

1500 questions
6
votes
2 answers

Why sensor acts erratically?

I am trying to connect an ADXL355 digital sensor to an Arduino. The wiring and the code I think are OK because the system returns the correct values sometimes and partly correct answers mostly. The code checks the device register, and the correct…
rur2641
  • 291
  • 1
  • 3
  • 10
6
votes
3 answers

Two function Reset button - long/short press

I am trying to make a circuit using an ATmega328, that has a reset button that behaves like many consumer devices: A short press just restarts the micro-controller A long press (5 seconds?) causes the settings to be restored to default What is the…
njh
  • 253
  • 3
  • 7
6
votes
3 answers

Is there a constant for the Maximum Unsigned Long value in an Arduino compiler?

I am writing a timer function that uses the micros() function which generates a unsigned long value. To compensate for a roll over condition, I would like to use the maximum value for that variable type. I have a number, 4,294,967,295, but was…
Rich Maes
  • 253
  • 1
  • 3
  • 9
6
votes
1 answer

Format Integer in Arduino

How to format an integer as 3 digit string? If I give 3 formated string should be 003 printf("%03d\n", 3); // output: 003 This doesn't work in Arduino.
user119o
  • 225
  • 5
  • 10
6
votes
1 answer

Can an Arduino emulate a USB mass storage device?

Question: Can I connect an Arduino's USB port to the USB port of another embedded device that is expecting a USB thumb/flash device? Or, can I connect a USB module to this embedded device, with the other end connected to GPIO's of the Arduino? This…
SaundersB
  • 163
  • 1
  • 1
  • 4
6
votes
1 answer

Can I use an external power supply and still communicate with my computer over Serial?

I read the following online: If you plug in both USB power (say from a pc) and external power via the 2.1mm jack, the Arduino chooses power source automatically. If the external 2.1mm DC is providing greater than 6.6V, the Arduino will take power…
c_breeez
  • 349
  • 1
  • 3
  • 9
6
votes
2 answers

Bluetooth HID module

I try to build custom controller and now searching for bluetooth hid module. Which BT HID module compatible with arduino? (not bluetooth serial) List of some modules: BlueSMiRF HID - from sparkfun, expensive (based on rn-42, also available RN-42-EK…
Sonique
  • 353
  • 1
  • 3
  • 10
6
votes
2 answers

Logging multiple gigabytes of data with Arduino

I have Arduino Uno with SD card shield. I'm planning to log a huge amount of data from various sensors - including accelerometers and 3D compass - to the SD card. However, I have understood that Arduino, 64GB SD, FAT and large amount of data are…
Olli
  • 265
  • 2
  • 10
6
votes
3 answers

I bought USB > FT232RL, can I use it to program a bootloader onto an Arduino?

I bought this thing off of eBay: eBay Link Will it allow me to program an ATmega[xxx] (Arduino clone) with a bootloader? --> If so, how would I go about it? What should I do, and what should I certainly not do? --> If not, what do I need (or…
KJdev
  • 175
  • 1
  • 1
  • 5
6
votes
1 answer

Can a stepper motor be controlled directly from an Arduino?

I'm planning to build a simple XY plotter, and have been looking at the possibility of using a pair of small 5V 4-phase steppers to provide the movement. In my research, I've often seen stepper driver boards advertised, ranging from very big and…
Peter Bloomfield
  • 10,972
  • 9
  • 48
  • 87
6
votes
4 answers

What purpose does the yellow and green LEDs have on the Arduino?

I have wired up a small project with a shift register (see below), but depending on how I put the 74HC595 IC (8-bit shift register with 3-state output register), the green and yellow LEDs of the Arduino stop shining. What are these LEDs for? Do they…
poseid
  • 325
  • 1
  • 4
  • 11
6
votes
5 answers

How do I repurpose Arduino's reset button

Is there a way to repurpose the reset button for the code, like an on-board button? I don't need it to reset, but it would be useful to make it run through a list of RGB LED cycles.
6
votes
2 answers

How can I adapt the DallasTemperature library to accept another 1-Wire class?

A commonly used library is the DallasTemperature library, used to access DS18B20 sensors on a 1-Wire bus. When creating a DallasTemperature object you pass a reference to a OneWire object. OneWire can create a 1-Wire bus on pretty much any port of…
Cybergibbons
  • 5,420
  • 7
  • 34
  • 51
6
votes
1 answer

Why do I need to include libraries used in other libraries?

I have a simple library which uses another library. Here is the header: #ifndef __DERIVEDCLASS_H__ #define __DERIVEDCLASS_H__ #include class DerivedClass { private: HardwareSerial* serial; public: …
Cybergibbons
  • 5,420
  • 7
  • 34
  • 51
6
votes
3 answers

How to reset ATmega328P fuses using USBasp programmer?

I think I bricked two ATmega328Ps when I was trying to burn new bootloaders using Arduino Pro Mini, the USBasp programmer and the Extreme Burner AVR software. I had two ATMega328p with bad booloaders and I intended burn the correct bootloader to the…
zahed
  • 61
  • 1
  • 1
  • 2