Most Popular

1500 questions
5
votes
2 answers

Simple GET request with ESP8266HTTPClient

I am trying to do a simple GET request. But I always get status code -1. Here is my complete code. #include #include #include WiFiClient client; #define AP_SSID "CCR" #define AP_PASSWORD …
Ccr
  • 279
  • 1
  • 3
  • 10
5
votes
1 answer

How do send sketch updates to devices without the editor?

I'd like to update the sketch of a device that a friend out of state is testing. I could have them install the full editor and send the source code but I'd rather not require them to do something so technical. Is there a way to compile the firmware…
asawyer
  • 259
  • 2
  • 8
5
votes
1 answer

Extract .hex from ATtiny45 using Arduino

As it is possible to program a ATtiny45 using Arduino as ISP Programmer, is there a way to backup an ATtiny45 program to a .hex file using Arduino?
5
votes
1 answer

Cannot compile C++11 code via Makefile

I am building my Arduino project with a makefile: BOARD_TAG = uno ARDUINO_PORT = /dev/ttyACM0 USER_LIB_PATH = /home/prakhar/dev/alfred/arduino/libraries CPPFLAGS=-x c++ -std=c++11 -Wall -DUNIX_ENVIRONMENT -DHAVE_NAMESPACES -DHAVE_STD include…
xyz
  • 359
  • 2
  • 11
5
votes
4 answers

Is `millis()` affected by long ISRs?

I have a project that uses timers and interrupts frequently. A lot of CPU time is spent handling ISRs over an extended period of time. Would this affect code inside the main loop that relies on the millis() function since a significant amount of…
Anonymous Penguin
  • 6,285
  • 10
  • 32
  • 62
5
votes
6 answers

How can I run two loops simultaneously on an Arduino Uno?

I'm new to Arduino and I have two devices that I'm trying to control: A RGB LED light strip that can change colors A light sensor that can detect the ambient light level What I'd like to do is have the LED strip continuously cycle through a…
Daniel T.
  • 153
  • 1
  • 1
  • 3
5
votes
5 answers

how to set the delay on for 7 hours?

For my application I need to simulate the sunlight including the rising and setting of the sun. I have a program that will light up some LEDs slowly over a period of time but I need to know what to type in the (delay on) to keep the lights on for 7…
Steve
  • 51
  • 1
  • 1
  • 2
5
votes
2 answers

Can I switch from Arduino IDE to Atmel studio or Visual Micro but still use Arduino library?

If switch from Arduino IDE to Atmel studio or Visual Micro, how to use existing Arduino library? Library serves important function of 'packaging' real and complex hardware (like NRF24L01 radio board) into functions of 'relatively standard format',…
EEd
  • 904
  • 1
  • 13
  • 21
5
votes
1 answer

How to enable maximum Dead Code Removal?

I am running out of code and data memory space on ATMega328P. Code size is big as I used several libraries, but, I only use a few functions of those library. Apparently, the default IDE is only doing a partial job in dead code removal (remove…
EEd
  • 904
  • 1
  • 13
  • 21
5
votes
4 answers

Can the WiFi on ESP8266 be disabled?

I've been reading a lot on the ESP8266, but still my understanding is shaky. I have the Arduino IDE running on a PC, which uses wires to connect to the ESP8266 via a USB device (Device Manager > Ports (COM & LPT) > Silicon Labs CP210x USB to UART…
user37116
5
votes
1 answer

Last element of a struct disappearing on write/read

I'm building a weather station with two UNOs, using NRF24l01+ radios. Communications are fine. I'm sending a struct from one to the other. The struct has three elements: struct weather { float tempData; float humData; float…
brorobw
  • 71
  • 2
5
votes
2 answers

How to measure resistance of TFT Touchscreen

I'm using a TFT Touchscreen shield with my Arduino UNO, and I'm running "tftpaint" example by Adafruit. I've noticed that when initializing the Touchscreen object, a resistance value must be provided. Library default is 300, but a comment in the…
jotadepicas
  • 326
  • 5
  • 13
5
votes
2 answers

CH340 max serial speed

With an Arduino-like board using a CH340 USB Serial chip, I'd like to send text lines as fast as possible to a Raspberry Pi through USB using the Serial.println() function. The problem is that when I set the serial speed to values above 230 400 with…
Thesaurus Rex
  • 63
  • 1
  • 2
  • 8
5
votes
3 answers

Bluetooth HC-05 module returns encoded data

I have searched online, and haven't found anyone hitting this issue. Strangely my Bluetooth HC-05 is returning encoded data. I have tried using different boards - Induing, Uno, Freeduino and I have the same problem with them all. The Bluetooth…
5
votes
0 answers

Why is Wire.onReceive() called during requests?

I'm building a complex I2C-based networking protocol and have noticed that the Wire.onReceive() handler is called both for I2C read and write operations. When the master writes to the slave, it is called as you'd expect. But it also seems to be…
Jeremy Gilbert
  • 254
  • 2
  • 4