Most Popular

1500 questions
5
votes
2 answers

attiny85 and arduino - analogRead + pwmOut

I am using the Arduino IDE to program the attiny85. I want to take an incoming analog reading, then based on that reading, output a specific PWM value. Here's my circuit: and here's my code: // to run on attiny85 const byte pwmPin = 0; const byte…
GradeSchool
  • 99
  • 1
  • 1
  • 4
5
votes
3 answers

How do I extract code from an arduino?

I updated and uploaded some code on another computer that got wiped and didn't send the new code to my current computer, the updated code is still on the board but I don't have access to it. How do I get it back?
Awesome_Ace22
  • 67
  • 1
  • 1
  • 2
5
votes
4 answers

Convert String to IPAddress

How can i convert a String to IPAddress on arduino / esp ? etc. "192.168.1.2" -> IPAddress(192, 168, 1, 2) Tried this void setup() { Serial.begin(115200); IPAddress apip; const char *apipch; apipch =…
strange_esp
  • 59
  • 1
  • 1
  • 3
5
votes
3 answers

WebSocketsServer.h: No such file or directory

I'm trying use the NodeMCU WebSocket. I downloaded the required libraries from: https://github.com/Links2004/arduinoWebSockets and pasted them in my Arduino libraries folder. I uploaded my code but got this error: WebSocketsServer.h: No such file…
Zainab Shah Khan
  • 53
  • 1
  • 1
  • 4
5
votes
1 answer

Tone() conflicts with IRremote library (multiple definition of `__vector_7')

I have just started with Arduino and C++ so I apologise if my question is very basic. I am trying to use tone() with a passive buzzer to create a sound while also using the IRremote library for a remote. However, whenever they are used together, it…
rgiller
  • 53
  • 1
  • 6
5
votes
3 answers

Debouncing a button with interrupt

I tried to follow the answer here: https://arduino.stackexchange.com/a/18545/51302 Unfortunately I can only get the interrupt to go once (on serial monitor is the time of that first interrupt), then nothing. I know this has already been answered but…
Toma
  • 157
  • 1
  • 1
  • 7
5
votes
3 answers

ATMEGA328P-U vs ATMEGA328-PU

On my Arduino UNO the chip part number is ATMEGA328P-U, i recently bought a ATMEGA328-PU to make a standalone Arduino. realized the part number differences after receiving the package... I noticed that some arduino UNOs have the chip with part…
ElectronSurf
  • 794
  • 4
  • 15
  • 41
5
votes
1 answer

ov7670 + Sd Card + arduino

I have three devices for making a motion activated security camera system: this is the camera : LINK OV 7670 this is the SD Card module: LINK and a basic motion Sensor: PIR with 3 pin I have an Arduino UNO and an Arduino Mega 2560. I can…
slhklc
  • 53
  • 1
  • 1
  • 4
5
votes
1 answer

Capture output from external device using Arduino Uno

I was unable to find this question anywhere but I want to use my Arduino Uno to capture the output of a Code 39 signal coming out of a separate device. Currently, my setup is similar to this: I have a biometric hand reader that outputs a Code 39…
djthoms
  • 151
  • 1
  • 4
5
votes
1 answer

Arduino PWM malfunctioning

I am controlling 4 motors using the PWM ports on an Arduino Uno (3,9,10,11). For some reason, the motor hooked up to port 11 doesn't move with my current code. I know it's a code issue because I can create a new basic code that just moves the motor…
Leo Adberg
  • 153
  • 4
5
votes
2 answers

RTC MCP7940M not counting up

I'm able to set a time and to read it back without any problems but it doesn’t tick up. It stays the same. Even if I restart the serial monitor and thereby resets the buffer(?). So it seems to me that I'm able to set the registers but somehow the…
5
votes
2 answers

What's the difference between different Ethernet Shields?

I am working on a project with Arduino and I need an Ethernet shield. but after searching in some electronics shops I found there isn't only one but a lot. I don't know which one is better and what are the differences. Arduino Ethernet with PoE…
Omar Otmane
  • 51
  • 1
  • 3
5
votes
3 answers

Arduino serial port reset in Serial monitor & Python

So am I using an Arduino with a shield to gain some voltage values for an ECG. I am then plotting that data in Python. However whenever I "observe" the serial port, be that through the Arduino serial monitor or in attempting to plot the values of…
hawkar
  • 543
  • 2
  • 6
  • 12
5
votes
1 answer

cannot convert 'bool' to 'PinStatus' for argument '2' to 'void digitalWrite(pin_size_t, PinStatus) on Arduino Uno Rev 2 Wifi not working

I am a newbie to micro controllers and struggling to figure out how to fix this issue. When using an older Arduino micro controller it works fine, but when I use a new board (Arduino Uno Rev 2 Wifi) it gives me this error: cannot convert 'bool' to…
Braley
  • 61
  • 3
5
votes
1 answer

How do you combine 2 different sketches together

(Before you down-vote this, note that it is a "ringer" to answer a FAQ, with a self-answer.) This question comes up all the time. How do you combine 2 different sketches together? Say I have a sample sketch for a DTH temp/humidity sensor and another…
Duncan C
  • 5,682
  • 3
  • 17
  • 29