Most Popular
1500 questions
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?
Alfonso Jiménez
- 153
- 4
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,365
- 10
- 34
- 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…
Achindra Bhatnagar
- 51
- 1
- 2
5
votes
3 answers
Sizeof variables and Due's RAM
I set out to see how much space some arrays have. I used this test code
bool state = false;
uint16_t BuffA[46000];
uint16_t BuffB[20000];
uint16_t BuffC[20000];
uint16_t all = 0;
void setup(){
Serial.begin(9600);
}
void loop(){
if…
user1584421
- 1,425
- 3
- 26
- 36
5
votes
2 answers
Stacking Arduino Shield (Motor Shield, LCD Keypad, LED Sensor)
I'm building a line follower with arduino, here some part that I'm going to use
Arduino Uno
Motor Shield 2A http://www.dfrobot.com/index.php?route=product/product&product_id=69
LCD Keypad
4 Channel Line Tracking Sensor…
kripton haz
- 63
- 4
5
votes
1 answer
Salvaged Stepper Motor Blues
So recently my company threw away some rather large and reasonably old laser printers. One was a LaserJet 9050dn the other was a Epson printer/scanner combination. Being a little industrial I thought let me salvage them and brought them home.
I…
Namphibian
- 218
- 1
- 9