The process of finding and resolving problems ('bugs') in a hardware and/or software system.

learn more… | top users | synonyms

1
vote
0answers
37 views

Strange problem with serial communication

I'm developing a little project with arduino, using a small web page to show data. Well, I have been develop the web page and the small code to communicate with arduino board in my local computer and ...
1
vote
3answers
56 views

Problems stopping an if loop, and starting it as well

I want my code to run my motor for a specific amount of time at a specific speed and then stop and not do anything else. I'm having trouble here, I think with my switch and the if loops running on ...
0
votes
0answers
80 views

How do I resolve “avrdude: stk500_recv(): programmer is not responding”?

Whenever I try to program my Arduino UNO Rev.3, I'm seeing the following error avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00 ...
1
vote
1answer
49 views

Diode lights generate false interruptions

I have spent quite a considerable time debugging my code that was triggering false interruptions. I have found out that the source of the error were the diode lights (on the picture). I would like to ...
0
votes
1answer
34 views

Mega pin stuck high after driving optocoupler

I have an Arduino Mega which is driving a board. On the board is a quad optocoupler (K847PH). Pins 42 - 45 of the Arduino are each attached to the Anode of a opto. The cathode goes to ground through a ...
-1
votes
2answers
43 views

Wrong code ouput, when the specific function runs more than once

If I run the following code, I get the correct output, and the path is displayed on the serial monitor. However when I run the code together with the commented out portion (in the code below) I don't ...
0
votes
1answer
126 views

Why I could not read the other sms's except the first SMS?

I have to read the incoming SMS on my GSM module SIM900, and I want to print the sender number and message to the serial monitor. I first configure the GSM module with AT commands and Response() ...
0
votes
3answers
62 views

Self-diagnose components in the circuit

How can I tackle self-diagnosis problem within my Arduino project? For example, I have a temperature sensor and humidity sensor. How can I know if they work or not on Arduino start or inside the ...
0
votes
0answers
76 views

Intermittent wifi/hotspot connection

I have an Arduino Mega 2560 with a cc3000 Wifi shield that is sending messages to dweet.io. Here is the relevant portion of my code: // Post data to dweetio char data[125]; sprintf(data, ...
1
vote
2answers
665 views

How to read code from Arduino Uno to Arduino IDE? [duplicate]

we can upload a code into Arduino UNO from our computers, but how about reading code? Can we read and get C codes from compiled codes from Arduino hardwares? My second question is that will we read ...
0
votes
1answer
37 views

Will writing to serial when no serial is available cause problems?

I have an Arduino UNO, and use the serial for debugging purposes. What happens if I run the arduino on batteries and try to write to serial? Will the code stop running until a serial connection is ...
1
vote
1answer
60 views

Starting Off Low-Level Port Access

   I'm trying to teach myself some low[er] level code, but I just can't get it to work. I've tried OR-ing stuff in, AND-ing stuff in, and just straight up defining stuff, but it's not ...
1
vote
1answer
84 views

What protocols and tools does Arduino Due use for flashing and debugging?

I am interested in writing a simple C program outside of the Arduino IDE and respective libraries, but deploying it directly to an Arduino Due (which uses a SAM3X8E ARM MCU). I am trying to figure out ...
4
votes
1answer
93 views

Overview of compiled code size

When I compile my code, the Arduino IDE returns the binary sketch size in byte. Is there a good way to find out (approximately) what function or what part of my code takes up how much memory in ...
1
vote
1answer
93 views

How to fix error line number offset in Sublime Text when compiling for Arduino

When compiling for Arduino via the Stino plugin line numbers are not represented correctly in the output. For example, I have an error on line 117 however the output is: sketch_name.ino.cpp:136:1: ...
1
vote
1answer
200 views

Am I Running Out of RAM Or Not?

I'm attempting to drive 300 TM1803 RGB LEDs from an Arduino Uno using the FastLED library. My code works fine for 100 LEDs, but when I go to 150, the arrays that store LED values and my sensor data ...
0
votes
1answer
138 views

I2C hookup - sketch just crashes

I am encountering problems with I2C when trying to attach a 9DoF Sensor to my Arduino Uno. Following these instructions (the hardware setup I have is like in the schematic) I noticed the basic example ...
-1
votes
1answer
117 views

How do I write a debugger for Arduino?

I want to write my own debugger. I've found Visual Micro plugin for Visual Studio provides Arduino Debug. So, does anyone have ideas how it works? I just desire make the same plugin in Eclipse IDE. ...
0
votes
3answers
53 views

Why is this spitting giberish instead of serial numbers?

#include <TrueRandom.h> void setup() { char* ss= (char*)TrueRandom.random(111111111,999999999); char* finalss; Serial.begin(9600); finalss[0] = ss[0]; finalss[1] = ss[1]; finalss[2] ...
0
votes
1answer
46 views

Arduino - Progamming issue

my first post here. Anyway I'm working on a Simon Says game. I have a weird bug with the function that reads button input. This is the code: int deBounce(int count){ int pressed=-1; int ...
0
votes
1answer
558 views

Issue with adding a library: No such file or directory

I downloaded a Library called "Morse" which I got from the Arduino website: http://arduino.cc/en/Hacking/LibraryTutorial (all the way at the bottom of the page there is a link called Morse.zip) And ...
0
votes
1answer
223 views

Arduino hangs after 3-4 minutes on battery power, but not on USB

I have a simple sketch running on a BE Leonardo-compatible board. It reads input from a potentiometer, and outputs to two RGB LEDs which change colour over time - in a different pattern if certain ...
2
votes
2answers
75 views

Extract arduino collected data periodically

I'd like to extract data collected by a battery powered arduino for example once a day without stopping it and not using SD card. It's posible, when I want to extract the collected data, to connect a ...
1
vote
2answers
503 views

Debugger for Code::Blocks + Arduino

I am not very experienced in this, but I was wondering if Code::Blocks has a way of getting a debugger that runs for Arduino chips, specifically. I understand there is Arduino IDE for but does it ...
1
vote
1answer
804 views

Why is Arduino STINO upload function not working?

I'm using sublime text for editing and modifying my arduino libraries. Sublime text is pretty pretty, useful and embed a very powerfull plugin system. Someone created an Arduino plugin for it. The ...
1
vote
1answer
320 views

What is the capability of AVRISP and USBASP on ATMega48, 328, 2560?

For use with ATMega 48 (old Arduino?), 328 (UNO, Pro Mini) and 2560 (Mega2560) chips, what is the capability for the AVRISP and USBASP programmers on: Can it read, write fuse? Can it read, write ...
3
votes
1answer
2k views

Does ATMega 328/2560 chips support JTAG-type programmer and hardware debugger?

As stated in www.Arduino.cc FAQ, "Can I use an Arduino board without the Arduino software? Sure. It's just an AVR development board, you can use straight AVR C or C++ (with avr-gcc and avrdude or AVR ...
1
vote
1answer
375 views

Debugging i2C from Mac OSX desktop

I have a raspberryPi and Arduino connected via i2C. On the RPi I have a python script that takes int values and simply sends them to the RPi, which in turn echoes them back. I am trying to debug this, ...
0
votes
3answers
1k views

Why does my wired button always read HIGH?

I have made a simple Arduino program that uses a potentiometer to dim a LED. This program also makes a second LED blink. Finally, I have added a button that controls a third LED; this part of my ...
5
votes
2answers
729 views

How do I debug on-chip with Arduino?

Though an emulator is quite useful for debugging code that has no side effects, most real-world applications include some circuitry besides the Arduino. If a microcontroller on an Arduino had a JTAG ...