Skip to main content

Questions tagged [arduino-mega]

A microcontroller board based on the ATmega2560 or 1280 chip. Use this tag for questions specifically regarding the Mega, and not just general Arduino usage.

Filter by
Sorted by
Tagged with
0 votes
0 answers
40 views

After an USB disconnect the program I've uploaded to the Arduino Mega 2560 doesn't work properly anymore, why?

For a race simulator I'm using several Arduino Mega 2560 boards on which the code that will post below will be running. (not my code! But freely available on the internet) Everything works fine, just ...
ArdActuator's user avatar
1 vote
1 answer
72 views

How can I improve ELM327 response stability on Arduino after setup verified with OBD-II scanner guide?

I'm using an Arduino Mega with a Bluetooth ELM327 adapter to read live data from my car’s OBD-II port — specifically RPM (PID 010C). The goal is to log data to an SD card or display it in real time. ...
tepalia's user avatar
  • 168
1 vote
1 answer
96 views

Arduino Mega 2560 + DRV8871: Motor Not Moving with PWM Control

I'm using an Arduino Mega 2560 to control a DRV8871 motor driver connected to a DC brushed motor. The setup includes: Three buttons: UP, DOWN, and FAST One limit switch input, where the upper and ...
Luigi's user avatar
  • 171
4 votes
2 answers
959 views

Arduino Mega: is there a way to have additional interrupt pins?

I have an Arduino Mega, and I run out of interrupt pins. I have only pin 18 available, but I need 2 of them. What can I do? pin INTx digitalPinToInterrupt(pin) 3 INT5 1 2 INT4 0 18 TX1 INT3 5 19 RX1 ...
Luigi's user avatar
  • 171
1 vote
2 answers
116 views

Arduino keeps restarting with L9110 and DC motor

I am trying to control a DC motor using the L9110 motor driver and Arduino MEGA 2560. Here's the code. #include <Arduino.h> const int rightA = A3; const int rightB = A2; void setup() { ...
Jozef Cipa's user avatar
-1 votes
1 answer
55 views

Communication protocol and hardware for 50-100 feet of communication between 2-3 arduino megas

Newish person here. Have done a few smaller projects, looking at something a bit bigger and need direction on where to start. I'm building a guitar effects pedal board that I want to be able to ...
Dustin Lobner's user avatar
0 votes
1 answer
73 views

How to use C++ user defined modules in Arduino

Does Arduino support C++ module import functionality i.e. what would it require to implement something like this in Arduino: import std;?
beebee's user avatar
  • 11
-1 votes
1 answer
60 views

Arduino connect programatically two wires of external 3.3V device

What is a missing puzzle in here, relay, transistor? I would like to pull pin of external device to the ground programatically using arduino's digital pin.
Maleowy's user avatar
3 votes
1 answer
294 views

Interrupt routine has unexpected execution

An interrupt routine is executing unexpectedly, and I can't figure out why. Can you please have a look? Hardware is a generic (knock off) Arduino Mega, with an unused Ethernet shield, and a touch ...
Mike's user avatar
  • 173
2 votes
1 answer
178 views

Software serial communication problem between ESP8266 and Arduino Mega for plant monitoring system (using Blynk IoT)

We're using the ESP8266 to receive data from the Arduino Mega board, where our sensors are connected. Supposedly, our ESP is connected to the Blynk App. However, the values showing up in our dashboard ...
Earth_Lovers's user avatar
1 vote
1 answer
314 views

Different pin names in 0V7670 Camera Module

I am trying to follow this tutorial, SIMPLIFIED! How to Use OV7670 Camera with Arduino (other tutorials are also the same) and I noticed that my Camera module has different pin names, what do I do? ...
Aland Salam's user avatar
0 votes
1 answer
109 views

Problem with char* variable malloc/free. Empty contents on recipient variable after using free

I am working on a custom SD card data logger using the following function and struct: char *filenameCreator(const char *prefix, const char *num, bool addExtension) { char *filename = (char *)...
Daniel Melendrez's user avatar
-1 votes
1 answer
46 views

Fail to discard the character T from my transmitter Arduino

I wrote code for my transmitter Arduino. I want to send the data to the receiver Arduino through Tx and Rx serial. The issue is that I could not discard the char "T" and it appears as output ...
anwar alfawdaei's user avatar
1 vote
0 answers
62 views

Disable verification of certification SSL A7670SA

I have the code below and it doesn't work with my URL. I receive a 715(Handshake Failed) This code below works normally, but with my API it doesn't work. I'm using a A7670SA with Arduino Mega 2560. ...
Ramon's user avatar
  • 11
2 votes
2 answers
218 views

interrupt from a button and wait until serial port 1 has a message

I'm a little bit loss because I'm learning how to use the interruptions on Arduino. I'm creating a program to read an RFID code that arrives if an RFID transmitter is close to the antenna (a little ...
Aeva's user avatar
  • 23

15 30 50 per page
1
2 3 4 5
122