Most Popular

1500 questions
6
votes
2 answers

What is the circular gold pad on arduino mega 2560 v2 and above?

Could someone point me to the documentation that describes the gold dot and surrounding gold circle on the front of my arduino mega v2 board. It is right above the ICSP header and reset button, and directly underneath the letter 'U' in the silk…
Nate
  • 63
  • 3
6
votes
2 answers

Formula / calculation of the function random() / randomSeed()

In which file can I find the calculation that is called with random()? If it is not too much could you also post the content in your answer? I am using an Arduino Uno and its standard IDE. I found this in the "WMath.cpp" but that is not the final…
kimliv
  • 561
  • 1
  • 4
  • 17
6
votes
1 answer

Low Power library messing up serial text

I noticed something unusual using the Low Power library today. When printing text in the loop and using LowPower.powerDown(SLEEP_1S, ADC_OFF, BOD_OFF); to sleep for one second, all the text in the loop gets messed up in the Serial Monitor as if you…
qwertz
  • 251
  • 1
  • 4
  • 8
6
votes
3 answers

Arduino digitalWrite 1 or 0 instead of HIGH or LOW

Is it ok to use digitalWrite(pin, 1) instead of digitalWrite(pin, HIGH) or digitalWrite(pin, 0) instead of digitalWrite(pin, LOW) I want it that way to make the coding lesser because I save values on EEPROM with 1's and 0's. So if I want to use…
Sam San
  • 241
  • 1
  • 2
  • 7
6
votes
4 answers

Inappropriate ioctl for device

I am using an Arduino Uno and a Mac and trying to upload my code into the board. I tried uploading the program from different computers(MacBook Air and Pro) and I still have this problem. How do I fix this? I tried downloading the FTDI driver. I…
Dinesh Sekar
  • 79
  • 1
  • 2
  • 7
6
votes
1 answer

Is my ATmega broken, and would replacing it with another break that one, too?

I was communicating between my computer and my Arduino Uno R3 through Bluetooth using this Bluetooth module. The connector I use has a red wire where it connects to GND, and a black wire where it connects to +5V. ↓ ↓ to Uno…
The Guy with The Hat
  • 5,292
  • 7
  • 30
  • 51
6
votes
5 answers

Simultanous read and read/write on two serial connections

At the moment I'm using two softserials to connect to a GPS and an GSM module. It seems not possible to have two open software-serials. So I was looking for an solution After the initial-setup, the GPS module is only needed to be read from; while…
stUrb
  • 351
  • 2
  • 5
  • 10
6
votes
2 answers

Connecting an Arduino to a telephone line?

I would like to connect my Arduino Uno to a telephone line in order to answer a call, record a sequence of DTMF tones, generate a DTMF tone in response, and hang up. The telephone line uses a standard RJ11 connector. When a touch-tone phone is…
Nathan Osman
  • 163
  • 1
  • 1
  • 6
6
votes
3 answers

How can I convert Arduino String to C string type?

I got a String which as I understand is an Arduino object, and got some C++ code: #include #include #include LiquidCrystal_I2C lcd(0x20,16,2); boolean borrar = false; String IP; void setup() { …
diegoaguilar
  • 191
  • 1
  • 5
6
votes
3 answers

Super slow serial (UART) communication on Arduino

I am using this device for my Arduino that connects to the OBD-II port of my car to get various information such as speed, rpm, etc. I am using this for a digital Nixie tube speedometer using the smart Nixie tube from a Kickstarter project. I pass…
evan.stoddard
  • 183
  • 1
  • 6
6
votes
6 answers

My Servo Won't Sweep Smoothly

So I've tried this a few times and I always get the same issue. When I try to run the sweep example the servo goes round 180 degrees but only in steps. Anyone know a way to fix this? The servo I'm using is a Tower Pro Micro Servo 9G SG90 // Sweep //…
Jordan Adams
  • 169
  • 1
  • 1
  • 3
6
votes
1 answer

Programmatically Upload Arduino Sketch From Android App

I am attempting to build an Android app from which I can can upload a .hex file to my Arduino(Leonardo). I am aware of a few apps in the Google Play store that are capable of this functionality but I can't seem to find any actionable resources on…
Karoly S
  • 281
  • 2
  • 7
6
votes
2 answers

Changing pins used in ArduinoISP example

I have built my own ATTiny programmer, but made a bit of a mistake along the way - I didn't align the headers properly, and now instead of them plugging into pins 10, 11, 12 and 13 as per the ArduinoISP example - they now plug into pins 8, 9, 10 and…
user1092
6
votes
3 answers

What's the fastest way to periodically communicate via serial?

I will be using an Arduino as a bridge between a computer high-level Java client and some low-level hardware computing units (e.g. other Arduinos). I need to find a solution to periodically communicate in both ways. It should be possible to send…
SagiCZ
  • 81
  • 1
  • 5
6
votes
2 answers

Disturbed digital out at 4Mhz on Arduino NANO

I've written a simple program - it generates signals over Port D at 4 MHz: #include int main(void) { DDRD = B11111111; PORTD = B00000000; while (true) { PORTD = 0; PORTD = 5; PORTD = 10; …