Most Popular

1500 questions
8
votes
3 answers

Access denied when Uploading

I went to upload my sketch to my Uno (r3), but unusually, the Upload Console returned this error: avrdude: ser_open(): can't open device "\\.\COM4": Access is denied. Just started seeing this, cannot upload.
samiles1995
  • 81
  • 1
  • 1
  • 2
8
votes
4 answers

Where can I find out how to make a hex file for arduino firmware?

I have followed this tutorial on flashing my Arduino R3 to turn it into a "USB keyboard", but the article doesn't explain how the hex works, it's just for granted. Where can I learn about how to make my own hex file so that I can learn how to make…
trusktr
  • 181
  • 1
  • 3
8
votes
4 answers

Arduino outputs garbage values on serial monitor with ESP8266

I have connected my Arduino with an ESP8266. When I check the ESP8266, by manually entering commands at serial monitor, I get correct results. However, when I run this program #include SoftwareSerial esp8266(2,3); void setup()…
abdul rahuman
  • 81
  • 1
  • 3
  • 7
8
votes
1 answer

Event driven programming

I have ran across a couple of different event libraries that are available on the AVR and Andruino but I am not sure which one is the best option. What I would like to do is design my program in a event driven style but not sure how to go about…
Andy Braham
  • 468
  • 1
  • 8
  • 17
8
votes
2 answers

OOP vs Inline with Arduino

I have been programming for quite a while now but I am new to Arduino and AVR Programming. The main question I have about programming these Micro-controllers is are there major differences in designing code in Object Orientated Classes vs the more…
Andy Braham
  • 468
  • 1
  • 8
  • 17
8
votes
1 answer

The difference between "time_t" and "DateTime"

I've run into an issue trying to combine 2 different Arduino timer projects I've found online. For both projects I'm using a DS3231 RTC, but have been able use the DS1307 library just fine in my code. The first set of code I picked up started…
Vinterwoo
  • 259
  • 2
  • 4
  • 7
8
votes
3 answers

Are there any products based on Arduino that are sold by companies?

Ok, Arduino is a good technology but is it used professionally? Is the quality good enough to be used for professional purposes?
arezkibe
  • 101
  • 1
  • 3
8
votes
4 answers

Is there a semi-permanent way to attach wires to the Nano?

At least for prototyping, is there a semi-permanent way to attach wires to the Nano posts? And yes, usually the Nano is hanging in free space by its wires (yes I know, quick and dirty, should be using something cleaner, even for prototypes). So…
Chris O
  • 339
  • 4
  • 13
8
votes
6 answers

How to loop over analog pins?

I want to do something along the lines of for (int i = 0; i < 4; i++) { analogRead(i); } Which appears to work, but the following does not: for (int i = 0; i < 4; i++) { pinMode(i, INPUT); pinMode(i + 4, OUTPUT); // should make Analog Pin (i…
Alex Shroyer
  • 437
  • 2
  • 5
  • 9
8
votes
1 answer

How many total digital pin outs does the Arduino Yun have

I have read the details on the products page for Arduino Yun but I have also read, on a Arduino forum, that there are only 18 digital pins because of Tx, and Rx. Is this true? I am not worried about the PWM, or analog capabilities of the pins, just…
Jimmy S.
  • 83
  • 2
8
votes
2 answers

Convert a Bitstring into an integer value

I have got a String filled up with 0 and 1 and would like to get an Integer out of it: String bitString = ""; int Number; int tmp; bitString = ""; for (i=1;i<=10;i++) { tmp= analogRead (A0); bitString += tmp % 2; delay(50); } //…
kimliv
  • 551
  • 1
  • 4
  • 17
8
votes
5 answers

Arduino Pro Micro, get data out of Tx pin?

I have a Sparkfun Arduino Pro Micro with an ATmega32u4 on it and a Roving Networks RN32 Bluetooth Module Theoretically, I should be able to solder the Rx of the Bluetooth to the Tx on the arduino and vice versa and I should get serial communication…
user3320919
  • 83
  • 1
  • 1
  • 3
8
votes
3 answers

How can I detect a disconnected pin?

I'm trying to build a system where if a cable gets disconnected from a pin (any pin), an action is executed. I am wondering how to set this up. Can I simply wire the 5V to a pin and read its status or will this mess up the Arduino? Should I use any…
Karim Stekelenburg
  • 205
  • 1
  • 2
  • 4
8
votes
4 answers

How can I communicate from Arduino to MATLAB

I want to use sensors on an Arduino to control values in a MATLAB program. What are my options for communicating? I've used Processing to receive data sent via the serial cable, and that strategy has worked pretty well. Is there something similar I…
Bill Nace
  • 224
  • 1
  • 2
  • 4
8
votes
4 answers

Debugging my Stepper Motor Driver circuit

I'm using the Pololu DRV8825 Stepper Motor Driver to control a NEMA 17 Steppermotor with an Arduino Uno. According to the Pololu website, the circuit should be wired as follows: I did, however, deviate from this exact sketch a little bit: The…
Paul
  • 361
  • 4
  • 16