Most Popular

1500 questions
6
votes
2 answers

How to properly use volatile variables in Arduino?

I was doing a small project with an Arduino Uno. It involved interrupts as I am using encoders to measure how much the differential wheel system moves forward. My robot moves only forward. So I use only a single channel from each encoder. Here are…
daltonfury42
  • 165
  • 1
  • 2
  • 7
6
votes
2 answers

How to measure voltage with Arduino analog input

I'm totally new to Arduino and to electrodynamics in general. I'm wondering what happens if I connect my digital pin to an analog input on Arduino, and make digitalWrite and analogRead on the according pins. Here are the options I can think…
roman-roman
  • 163
  • 1
  • 5
6
votes
3 answers

Issue sharing MISO with multiple RC522 RFID Readers

so for about the last 8.5 hours (almost non-stop) I have been trying to figure out one issue and I have exhausted every search I could possibly think of. I'm building a puzzle that requires 5 RFID readers on the 1 Arduino, but for the sake of…
Jesse Mount
  • 61
  • 1
  • 1
  • 3
6
votes
1 answer

What killed it? Arduino in resin

I made a simple circuit controlled by the ATMEGA IC then tried to encase it in resin. It died. What is the thing that caused it to die? I've had other circuits working fine in resin. I want to try again, what steps can I take to prevent this? I've…
futurebird
  • 425
  • 4
  • 15
6
votes
1 answer

Why does an LED sometimes flash when increasing brightness?

This is admittedly a cross-post from LED fade malfunction (random flash) but I can't get an answer on the Arduino forum. I was mucking around with some very basic code and I noticed that when repeatedly holding an LED at 0 brightness for 1 second…
Adrian
  • 108
  • 8
6
votes
1 answer

Why are Arduino clones cheap?

You can buy Arduino Nano v3 clones from Alibaba at the cost of roughly $2-$3. I have calculated the cost for fabricating and all the parts in the BOM for Arduino Nano V3, and it ended up costing around $10 to $12 (depending on where you fabricate…
40pro
  • 183
  • 1
  • 5
6
votes
1 answer

How do I remotely acquire data from Arduino based portable device?

I am making a device which will have an Arduino board and a sensor attached to it. The sensor will acquire data every 10 minutes and the data will be uploaded to my server. The size of every upload is about 200 characters. I'd like this device to…
6
votes
2 answers

What's the most accurate way to time-stamp analogRead data?

I want to sample an Analog sensor as fast as possible, and time-stamp each sample that I take as accurately as possible. Currently, I'm doing the following: val = analogRead(SENSOR_PIN); clocktime = micros(); writeData(val, clocktime); // writes…
Josh
  • 163
  • 1
  • 6
6
votes
2 answers

Why is my TMP35 giving me weird values?

A TMP35/36/37 is giving very high voltage readings, which results in high temperature readings. The serial monitor looks like this: As you can see, the sensor value is in the 900s, voltage is almost 5, and temp is in the 400s. The circuit is very…
MICROexchange6
  • 169
  • 3
  • 11
6
votes
5 answers

LEDs: difference between common anode and common cathode?

What is the difference in using a common anode and common cathode of the 7 Segment in interfacing with the Arduino? How can you change the code if we need to add another 7 Segment display? How can you change the code to have a counter in backwards…
user13535
  • 105
  • 1
  • 3
  • 9
6
votes
2 answers

bootloader uploading into Atmega328

Here is mine circuit. Intially i used arduino UNO directly for programming. Now i am Using atmega 328 IC for programming. I am trying to connect 32 hall sensor via Mux circut. I wanted to How to upload boot loader or HExfile Here. Will avr pocket…
AMPS
  • 467
  • 11
  • 22
6
votes
5 answers

Is it possible to transmit using an NRF24L01+ without an Arduino?

I have two NRF24L01+ modules which are transceivers, but for my project I would like to send a very simple signal from one of these modules to the be read by the other. That would've been very simple if I had an Arduino on each side but due to power…
Ceottaki
  • 173
  • 1
  • 1
  • 3
6
votes
10 answers

avrdude: stk500_getsync(): not in sync: resp=0x00

I have arduino pro mini 5V, 16M ATMega328 and CP2102 USB to TTL. I've wired them like this: When I try to upload a sketch to the arduino board I'm getting the following error: avrdude: stk500_getsync(): not in sync: resp=0x00 The board type and…
Deepsy
  • 157
  • 1
  • 1
  • 5
6
votes
1 answer

Connecting breakout board to Arduino with UART

I'm using a DigiX (Arduino Due based 3.3V) board to connect to a GPRS/GSM SIM908 breakout board. The SIM908 EVB board has the following pins on its RS232: I've got all three UART TX lines hooked up to the RX Lines (and RX to TX) on my Arduino but…
user2757902
  • 175
  • 1
  • 1
  • 7
6
votes
2 answers

Why is that any sensor signal need to be hooked up to the interrupt pins on Andruino boards?

I have come across some Andruino Sensors like Motion, Light and all recommend to be connected to pin 2 or 3 on Andruino Uno board which are interrupt pins. This is especially true if you are looking for HIGH or LOW values. Why is that to be…