Most Popular
1500 questions
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
- 561
- 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
- 371
- 4
- 16
8
votes
1 answer
Can I use analogRead to read a digital pin?
analogRead(nGPIO_max + lockerVal) were nGPIO_max(maximum digital pins in Arduino Uno is 13) and lockerval is 2. Which pin is it reading?
Charan
- 83
- 1
- 1
- 7
8
votes
3 answers
Manchester Library Won't Compile for Attiny85
I am creating a wireless sensor using an Attiny85. I want to send the data to an arduino uno, so I purchased the 315mhz rf link kit from spark fun. Since the Attiny85 does not have a TX I decided to use the Manchester library however it won't…
Joel
- 523
- 3
- 15
8
votes
1 answer
How does the reset button work on the Arduino?
I'm confused about how and when to use the reset button on the Arduino. Do I simply press the button while it is on? Is it simply restarting the board or clearing the uploaded code as well? Currently when I press the button while my Uno is powered…
Michael Rader
- 326
- 2
- 5
- 17
8
votes
2 answers
Basic makefile for avr-gcc
I would like to make a makefile for compiling c programs for the arduino. I am somewhat familiar with make but have never used it with avr-gcc. What is the simplest way I could put the commands below in a makefile?
$ avr-gcc -Os -DF_CPU=16000000UL…
connorwstein
- 183
- 1
- 1
- 4