Most Popular
1500 questions
5
votes
1 answer
How Do I Send An Email WITHOUT An Ethernet or WiFi Shield
I can only find info relating to the wifi shield, but I want to send an email without the wifi shield. For now, I just plan on leaving my arduino plugged into a computer, so I just want to use the computer's network connection. Is there a library or…
rys
- 153
- 3
5
votes
1 answer
What does a delay(0) actually do?
I've seen some code where the developers add delay(0), it doesnt make sense, what does it do? Delay with zero milliseconds, why?
bool DFRobotDFPlayerMini::waitAvailable(unsigned long duration){
unsigned long timer = millis();
if (!duration) {
…
Sigma
- 296
- 4
- 13
5
votes
3 answers
Can I corrupt my Arduino if it's unplugged during an upload?
When messing around with code and uploading a sketch to my Arduino board, I almost accidentally pulled out the USB cord. Everything is fine, but then I started thinking what would've happened if I had pulled it out.
How safe is avrdude? Could it…
Anonymous Penguin
- 6,365
- 10
- 34
- 62
5
votes
1 answer
Arduino Uno freezes for unknown reason during code execution
I am struggeling with a behaviour of my Arduino I do not fully understand.
Long story short:
When starting the communication over I2C the Arduino freezes. In my opinion during the "Wire.write()" command.
Long story and background:
I want to connect…
IceCreamToast
- 53
- 4
5
votes
1 answer
Delay() and millis() functions don't work in cpp external files
I'm currently facing an issue using delay() and millis() functions in an external cpp file.
The issue is that when I used delay() in my main program (meaning .ino file) it works well but when I call the same function in an external cpp file, I'm…
Cyril_Ram
- 53
- 2
5
votes
2 answers
Powering Atmega328p from 4.5V
I want to use Atmega328p controller to handle some very simple signals. I'm using the chip and not the whole arduino board because it is a lot cheaper. The problem is that chip itself doesn't have voltage regulator so I need to think of a…
Mirakul
- 75
- 5
5
votes
2 answers
Does the compiler generate intermediate assembler?
My source files are *.ino, but after compilation there aren't any other files placed in the folder. Does the compiler generate intermediate assembler, and if so, where does it leave them? Or is the machine code available somewhere?
Joris Groosman
- 1,191
- 3
- 11
- 26
5
votes
3 answers
How do I make another action repeat inside a loop?
So, I've just started programming Arduino (and also in general), so I'm doing basic things, like switching on and off LED's.
I've made them light in a sequence and then turning them off (in the same sequence), and now I wanted to use 2 buttons, one…
AndreFro
- 53
- 6
5
votes
2 answers
Sending large structs via nrf24l01 leads to cliping of some structs members
I started with building of the wireless temp/hygro/other values probes. I use 2 arduinos, both with nf24l01+ wireless transceivers, library used is rf24.h (https://github.com/maniacbug/RF24). Basically ping/pong test works for me - so each arduino…
user241281
- 51
- 1
- 1
- 3
5
votes
1 answer
Serial monitor can't display float and double values with absolute greater than 4294967040=2^32-2^8
I have the following sketch:
void setup() {}
void loop() {
float af = 4294967040.0;
float bf = 4294967240.0;
double ad = 4294967040.0;
double bd = 4294967040.00001;
Serial.println(af);
Serial.println(bf);
Serial.println(ad);
…
LukasFun
- 295
- 1
- 4
- 17
5
votes
2 answers
How to read from and write to rs232 device from/to Arduino
I would like to read data from a rs232 device (SL-5868P Sound Level Meter).
protocol and more : https://sigrok.org/wiki/Colead_SL-5868P.
I already have a Python script to read the data with a TTL to USB converter (without Arduino). Now I also want…
Joost
- 75
- 1
- 1
- 6
5
votes
1 answer
Wirelessly (but fast) transfer STEP and DIR output from Arduino to stepper driver
Very short version:
Looking for a way to wirelessly get STEP and DIR signals (only those two signals) from an Arduino to a DRV8825 stepper driver about a meter away:
Arduino -> STEP and DIR IO pins -> transmitter ) ) ( ( receiver -> DRV8825
edit…
Jasper
- 151
- 3
5
votes
2 answers
Set Arduino digitalRead reference voltage
I wanted to know if the reference voltage for the digitalRead() function could be set to a particular voltage, either with an external reference or internally.
In the Arduino reference under the constants heading they have mentioned that they use…
Suman Roy
- 153
- 1
- 5
5
votes
2 answers
verification error, first mismatch at byte 0x3895 0xdf != 0x44?
I bought a SainSmart Arduino Mega 2560. I uploaded a small sketch to it, and it uploaded fine. When I upload a larger sketch though, I get this error:
verification error, first mismatch at byte 0x3895
0xdf != 0x44
So obviously there's…
user3042719
- 151
- 1
- 3
5
votes
1 answer
Cannot find Arduino under /dev Directory
I have the Arduino board connected to a USB port of my machine. But I cannot find it under /dev/ directory in my Ubuntu. Does anyone know how to deal with this issue? By the way, "lsusb"'s output proves that it has been recognized. Here is the…
user3684042
- 153
- 4