Most Popular
1500 questions
5
votes
4 answers
Can I connect a PWM pin on one Arduino to an analog input on another?
I was considering several different ways to send simple data from one Arduino to another when I though, why not connect a PWN pin of one Arduino to the analog pin on another? I could send simple messages for one to the other by setting different…
Hoytman
- 747
- 5
- 13
- 26
5
votes
1 answer
EEPROM value reverting to 255
When I write '13' to the EEPROM and read it straight after it works correctly.
However when I comment out the write part of the code and try to just read the data, the value is no longer 13 as it used to be but reverts back to 255. Whats going on?
I…
MoKaM
- 51
- 2
4
votes
5 answers
Control Speed of DC FAN Using Arduino PID Library
I want to make a circuit that control speed of DC fan Using Arduino PID Library to get thing at specific temperature.
The circuit looks like this but can be changed, The dc fan motor connected to PWM 3 and thermistor connected with pin A0.
The…
ANKIT JAIN
- 185
- 2
- 4
- 12
4
votes
1 answer
Arduino UNO capacitive sensor not working
This is a visualization of my Arduino connections:
I wish to read the data using the Capacitive sensor Library. iv'e tried the following code but variables total1, total2, total3 always have the value 0 and i don't know what is wrong.
My code:
//…
lukassz
- 143
- 1
- 4
4
votes
3 answers
Using interrrupts with RC522
I have a project using the RC522 RFID module with my Arduino Uno board and miguelbalboa's rfid library. The example code and every other code I find on the internet work pooling the device in order to know if there is a new card present, but I…
Gustavo Sgarbi Campos
- 41
- 1
- 1
- 3
4
votes
1 answer
Trying to understand bitbanging, shiftIn(), reading EEPROM
Alright, so I have an Atmel 93C66, http://www.atmel.com/Images/doc0172Z.pdf Datasheet and I'm wanting to read whatever is in it.
I copied the following code from this thread http://forum.arduino.cc/index.php?topic=96411.0 and made some changes to…
ItsMitch
- 41
- 1
- 4
4
votes
4 answers
Thin battery to power arduino micro with nRF8001?
I'm building a project which needs to fit in a wallet. I have an Arduino Micro hooked up to a nRF8001. I attempted three button cells wired in series, which provided a solid 7.5 volts, but only 20mA.
A 9V battery successfully powers it, but that's…
ollien
- 141
- 1
4
votes
1 answer
How to communicate the Arduino board with SIM900?
I have a problem. I bought a SIM900 board, but I can not connect there with the Arduino. To send AT commands on the serial the SIM900 doesn't respond, but the LED indicating that the network is on. I've tried to change the baud rate of 9600 to 19200…
Avelino
- 242
- 1
- 3
- 10
4
votes
3 answers
How to compile without adding the bootloader?
I'm using a standalone atmega328p with a 16MHz crystal.
I'm programming it via avrdude on a raspberry pi, using the SPI and RESET pins.
When I compile my program, this is what I see at the end of the output:
----------------
Device:…
php_nub_qq
- 213
- 1
- 10
4
votes
1 answer
Can I use IR Transmitter/Receiver for heart beat detecting?
Specifically, I want to know if the KY-022 module and KY-005 module can be used for heart beat detecting according to this tutorial?
KY-005:
KY-022:
If so, can you please explain to me how can I achieve such thing with respect to the…
AWTahhan
- 59
- 2
4
votes
2 answers
"if" condition problem / question
I'm new to Arduino and my question is rather theoretical. I have an Arduino Nano board (Atmega168 processor), a button, a display. I have written a button handler that does not stop code execution. My idea is: poll the button in "loop" cycle, and if…
ONamaeWa
- 53
- 4
4
votes
0 answers
Arduino IDE v 2.2.1 log file not limited in size (on Ubuntu 23.04)
I was learning/building with a new Arduino Nano ESP32 yesterday and left the Arduino IDE running overnight on Ubuntu 23.04 and it used all the space on my hard drive to write log files which broke my system till I booted in with a pen drive and…
Tomás Metcalfe
- 149
- 2
4
votes
1 answer
Saving Arduino output to a text file in append mode
I used the code below to save output from an Arduino Uno to a text file.
The problem is whenever I run the code the old data in the text file is deleted.
I don't want the old data to be deleted, what should I change?
import…
Santosh Rokhade
- 41
- 2
4
votes
0 answers
Is there a way to use ESP8266 in promiscuous(monitor) mode and see the the wifi packets?
I didn't find much documentation about ESP promiscuous mode (just from the espressif sdk although I'm using ArduinoIDE https://docs.espressif.com/projects/esp8266-rtos-sdk/en/latest/api-reference/wifi/esp_wifi.html )
So from seeing some sample codes…
tatu101
- 73
- 4
4
votes
0 answers
Rotary Encoder with interrupts - erratic behaviour
I'm trying to change my working rotary encoder code (stolen from here) to an interrupt-based code on my Mega2560. The trouble is that the result behaves very erratically, even though the physical setup is exactly the same as the working code. The…
Malibu
- 41
- 2