xyz
  • Member for 7 years, 10 months
  • Last seen more than a month ago
Proper error logging using Arduino
0 votes

In my Arduino project, I wrote communication sub protocol between a Raspberry Pi (or a PC). I simply added some commands to duo vars or arrays into memory.

View answer
How to write data in RAM memory using Arduino Uno or Arduino Due?
3 votes

Your program is already using the on board RAM: int a = 5; // This is RAM. Where did you think it goes? (This might go to a CPU Reg) int a[5000]; // This is RAM DDR3 RAMs require (typically) 1633 ...

View answer
Web Server Options
0 votes

GENERAL IDEA: I would recommend getting a simple Wi-Fi and/or Ethernet module. Then simply set up routes to receive and send data to Arduino (assuming arduino_ip to be your Arduino's IP), and GET ...

View answer
How to use output from Arduino in C++ code?
0 votes

@Peter has already posted library links. I recommend that you use Node.js (node-serialport) or Python (serial), which have excellent native serial support. Both of these use C++ internally to ...

View answer
Parsing Int over Serial Slow
1 votes

First off, I would recommend strtok or even getline to parse comma delimited strings. Secondly, I'm pretty sure no PWM is responsive enough for 1000 updates per second. But for other purposes this ...

View answer
How can I handle the millis() rollover?
1 votes

Wrap the millis() in a class! Logic: Use id's instead of millis() directly. Compare reversals using id's. This is clean and rollover independent. For specific applications, to calculate exact ...

View answer
2 Arduino Unos Connected with 1-Wire and Receiver Pin getting Stuck High
-1 votes

You should add a random delay in setup of receiver and reduce the sampling time of the receiver to 200ms. That said, digital communication is an INSANELY EXTREMELY complex process, especially on the ...

View answer
Storing and parsing data with Arduino
0 votes

I would recommend a JSON parsing library. Checkout https://github.com/bblanchon/ArduinoJson var response = [] ; // get response here int response_length = 4; //Put length of the response array here ...

View answer
Power source for Arduino uno, sparkfun usb shield and adafruit motor shield
0 votes

Its a very bad idea to power everything from the same battery source. Most motors, especially ESP, generate large current spikes, rather than draw a small current throught. AA batteries are not ...

View answer
Internet of Things at home only
1 votes

I recently worked extensively on a Home Automation Project and here's what I would recommend based off of that: Use Arduino for hardware interfacing. Use Raspberry Pi for hosting your server. Write ...

View answer
How to send two different sets of int numbers over serial?
Accepted answer
0 votes

I wrote a communication protocol for arduino to node.js over Serial. I sent a buffer of bytes using Serial.write() and read it into a buffer. This allows you to send as many numbers as you want. To ...

View answer
Can I use notepad++ for writing sketches?
4 votes

You can use any editor to write Arduino code. @BrettM has already detailed it. Instead of the external editor option, you can do away with the Arduino IDE completely using Makefile and build and ...

View answer
How to store gps values in EEPROM arduino?
2 votes

Consider TinyGPS++ over TinyGPS only if you are running on Due or processor which can take advantage of the higher precision of 64-bit “double” floating-point. char data; should be double data;. You'...

View answer
Cannot compile C++11 code via Makefile
Accepted answer
6 votes

As I turns out, the avr-gcc (GCC) 4.9.1 goodies weren't being used at all! The arduino package was using a decrepit version of gcc, prakhar@sim74stic ~ $ /usr/share/arduino/hardware/tools/avr/bin/avr-...

View answer