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
0answers
14 views

Bad Data : Arduino Mega & NodeMCU Serial Communication

Currently I am working on an Arduino project. The project required to establish communication between Arduino Mega and NodeMCU ESP8266. Here are some details about the project: NodeMCU Rx Pin is ...
-2
votes
1answer
19 views

DELETE A LINE FROM FILE IN SD CARD USING ARDUINO MEGA

I WANT TO DELETE THE 1ST LINE IN FILE ONCE IT IS SEND TO SERVER AND SERVER ACKNOWLEDGES IT AND THE 2ND LINE DATA SHOULD MOVE TO 1ST LINE.IF THE SERVER DOESNT ACKMOWLEDGE,THE DATA SHOULD REMAIN AND BE ...
0
votes
1answer
29 views

I2C code working on Mega 2560 but not on Uno and nano

I have recently purchased this Heart rate sensor and was trying to make it work. I used this MAX30100 library I found on Github. For some reason when I use any of the given examples, they seem to work ...
0
votes
1answer
38 views

Using Arrays and LED's to represent Piano Scales

I am trying to use addressable LED's to show various piano scales using the semi notes formula for each scale as an array and an input to indicate the starting note. int MajorScale[] = {2,2,1,2,2,2,1}...
-1
votes
1answer
24 views

Any advice you can give me on my step motor code?

I'm very new to Arduino, currently undertaking a uni project in which my team wish to create a sort of slot machine-esque device that uses a step motor to rotate a drum (like one of the cylinders in a ...
0
votes
0answers
21 views

How to call a PHP script with Arduino?

I have Arduino Mega and ESP-12F module. Via AT commands I am on my wifi. Now, I need to call my script on my pages. Can you tell me how? This command can conenct to my pages: Serial3.print("AT+...
0
votes
0answers
31 views

Fingerprint and password based circuit breaker [closed]

I'm working on fingerprint and password based circuit breaker using arduino atm328 as microcontroller and am having problem with my connecting because of just 6 analog inputs of the atm328, can I ...
0
votes
0answers
24 views

Stuck in a loop when reading from EEPROM, works if I clear it first

EDIT: The problem was caused by storing a pointer in the EEPROM. Thanks to @KIIV for helping out Sorry for the enormous of wall of text, I'm trying to pare it down a bit. I have two Arduino Megas ...
0
votes
1answer
22 views

arduino & drivers to control 5 brushed CIM motors independently?

i am a complete newbie in electronics but i'm a bit familiar with C. i am building a machine that requires 5 little engines (12V 2.5in brushed CIM motors) & motor drivers (i need to adjust each ...
0
votes
0answers
15 views

display pixel data on serial monitor using ov7670

i am trying to get the image data pixel by pixel from ov7670 to serial monitor and to store it into arduino memory which i can access later. i am using arduino mega and the camera is configured to ...
-1
votes
2answers
53 views

Arduino connectiond problems

I have problem with connecting an Arduino UNO to my computer, an HP EliteBook 830 G5. I bought the Arduino from here: Arduino UNO. It arrived with original Atmel ATMega328P micro controller and ...
0
votes
0answers
39 views

Nothing prints in the serial monitor in Arduino - Ide

Sir, I used Arduino-Uno as programmer and Arduino-Mega 2560 as target and uploaded the below code, I was not able to view the Serial. println lines in the serial monitor, Can you please help. Thanks. ...
0
votes
0answers
16 views

Dobly prologic with esp8266?

So i have this old 5.1 prologic thing sony hcd-451. is it possible to encode an audio stream to prologic send it to the esp and digital out it to my device? Grabbing the audio stream encoding and ...
0
votes
0answers
10 views

arduino Mega intefacing with 5 tsl2591

i just want to connect the 5 sensor and there output will shown in 1 16*2 lcd displayed means 1 sensor output shown by lcd at ones and few seconds another sensor valued will displayed logic behind ...
0
votes
1answer
40 views

Why is this code not working?

So I am trying to use Port Manipulation to turn on LEDS but I need to use PORT Manipulations for specific reasons. //22-29PORTA (0x01-0x80) //30-37PORTC (0x80-0x01) //38-45PORTD (0x80-0x01) void ...
0
votes
0answers
26 views

Resetting the MEGA 2560 board [duplicate]

I'm a high school student working on a robot arm project that uses an arduino board. I had uploaded my previous program to my board, but I've since changed my code and want to reset the board, but I ...
0
votes
0answers
28 views

Guidance on controlling gimbal brushless motors?

i want to make a gimbal using an arduino and im having trouble finding how to control brushless gimbal motors with arduino as they all go into a BGC ive found a BGMC https://rovertec.com/products/...
1
vote
0answers
13 views

Advice needed for powering Multiple HX711 with Arduino Mega

I have a project where I need to use multiple load cells (6-8), with individual HX711 for each load cell, which need to be powered simultaneously. I am not sure if I can power all the HX711 with 5V ...
0
votes
1answer
59 views

Multiple buttons to control relays

Dears, I have a problem that I could not solve for a while, I tried the code below but it did not work. There will be 4 buttons controlling 4 relays but in a way that button one will turn relays 1&...
0
votes
0answers
7 views

Serial data does not appear in monitor when 2 readers are connected

I am using an arduino mega 2560. I have 2 RFID readers connect to 2 different serial ports. during my prototyping phase, everything was fine, my 2 readers worked together perfectly. I am now moving ...
0
votes
0answers
15 views

serial communication problem with sim7600 with arduino mega

I am just sending the AT command to test if the serial communication works, the response I am getting is a flipped ? or a square or rectangle symbol. I have tested the communication using software ...
-1
votes
0answers
23 views

Multiple GY87 with TCA9548A

I'm using a multiplexer TCA9548A to connect 2 gy87. However, when I show out the result of magnetometer, only 1 reading is correct. Another reading is wrong. I confirm that I had change the bus of ...
0
votes
0answers
29 views

Reading data from multiple sensors from Arduino with ESP8266

I am trying to do a project where I need to get data from multiple sensors simultaneously. I am planning to use a Arduino to get the readings from the sensors. I am thinking to control the Arduino ...
0
votes
1answer
27 views

Serial monitor when port is being used by another application

I am controlling some LEDs via the USB serial port using a Tkinter/Python3x script to debug what I suspect is a hardware problem. from tkinter import * import serial usbport = 'COM3' ser = serial....
0
votes
1answer
33 views

Mapping values from analog input giving unexpected values?

Mega 2560 I am reading in values from 3 pots then mapping them to values between 0 - 255 #define REDPIN 7 #define GREENPIN 8 #define BLUEPIN 9 int red_pot = A0; // analog pin used to connect ...
0
votes
0answers
26 views

Made a light controller for the holidays

I am a new the world of Arduino. I found on YouTube, how to build a light controller (https://www.youtube.com/watch?v=WvG9c84ApFA&t=39s). I follow every step but it doesn't work. Here are some ...
0
votes
0answers
19 views

How to run a Mega 2560 and 300 WS2812b battery?

I have 300 LEDs (WS2812b) which form an interactive tabletop of a coffee table. Everything is running on an Arduino Mega. For testing, I'm running all of those from a power outlet and it works really ...
0
votes
0answers
24 views

TFT ST7735 Library - Can't Display Bitmap

Using a cheap Chinese ST7735 type 128x160 display with the TFT_ST7735 library (https://github.com/Bodmer/TFT_ST7735). I'm using an Arduino Mega 2560, hardware SPI. Example works perfectly, ...
-1
votes
1answer
25 views

Connecting 2-pin JST PH connector to Arduino Mega

I’m want to connect 50 LDR to my Mega, I wondering if I use a 2-female pin JST PH connector to connect the LDR, how can I link 2-pin male JST PH connector board to the Mega and does this board exist?
-1
votes
1answer
38 views

random characters

I am using arduino mega with LCD 4X20 character to measure weight by 40 kg load cell and pt 100 to measure the temp. I have 4 output to 4 relay module. all are powered from 12vdc /3 amp Power supply.. ...
-1
votes
1answer
36 views

Can 1 wiegand output for 2 controllers?

recently I have this project which needs to read 2 wiegand signal using Arduino Mega 2560. I have an access control device which will output wiegand signal once the user is allow to enter, and there'...
0
votes
1answer
46 views

Variable updated in ISR is miscounting

I'm using a timer to fire a interrupt in configurable time periods. In that ISR, a pin is toggled, and a uint32_t variable is incremented. In the main program, a while loop waits until that variable ...
0
votes
1answer
34 views

how to switch more 230v with arduino?

i am working on a project automatic street lighting with arduino.i am done with the code and the circuit.i am able to switch the AC voltage in my house which is 230v,50hz with a 230v relay but when ...
0
votes
1answer
51 views

I'm having problem with my pushbutton's input and ifs conditions statement. huhu :((

I am working with a program for a microwave. It has 3 settings: Drying, Roasting and, Drying&Roasting. After you pressed a button out of the 3 choices you still have to press another button(...
0
votes
1answer
37 views

Stream video from camera to mobile and send control signal back from mobile to Arduino via WiFi

I want to make an Ardunio based project in which I want to stream live video from camera (which is connected to Arduino borad ) to my Android app via WiFi and send back actions/control signals from my ...
1
vote
1answer
41 views

How to count the number of rising edges on DS3231 rtc?

I am using a DS3231 rtc and I would like to get millisecond accuracy from it so I decided to use the 32kHz generated clock from it. I wrote a code that would count the rising edges or falling edges ...
0
votes
0answers
22 views

Camera VC0706 send image save to pc

i'm working on project now, i need to save picture from camera VC0706 serial camera in specific folder on my PC, i found a tutorial (indonesian tutorial), thath give me code to use the camera, but ...
0
votes
1answer
39 views

How i convert to Arduino Mega?

i need using OV7670 camera on my arduino mega, and i found this site have tutorial using ov7670 camera, but in this tutorial they use arduino Uno. if i'm using arduino Mega2560, what i need to do? do ...
0
votes
1answer
35 views

Is it possible to put priorities between external interrupts?

My question is quite simple. I am using one external interrupt on the Mega2560 to wake it up with an alarm from the rtc DS3231 and record data from sensors for about 30 seconds and I would like also ...
0
votes
0answers
62 views

How to manage interrupt from accelerometer BMA220?

I would like to use the interrupt register from the BMA220 accelerometer in order to detect high-g shock. I am using a Mega2560 and the sensor is powered by 3.3 V. I use a voltage divider to convert ...
0
votes
1answer
74 views

Using Arduino fix_fft or arduinoFFT library to filter some specific sound?

I would like to know if there is a way to filter some specific sound using FFT on arduino. For instance, there is wind sound frequency in my analysis and I want to take it off. I searched for that a ...
0
votes
1answer
39 views

How to set PC (Program Counter) register to another function (for scheduler)

I am trying to implement a scheduler for Arduino Mega 2560. I think I lack understanding of how to set the PC register to another instruction. Here is my simple approach so far: void dummy(){ ...
0
votes
0answers
48 views

Serial Communication with a Serial device

I have a blood glucose meter which supports downloading data to computer using a serial cable and its own software. I made a serial cable for this with a usb to ttl pl2303 and its working. I can ...
-1
votes
1answer
29 views

arduino mega multi integer values reading on other arduino mega

I need two Arduino communications. The master arduino from the slave arduino needs to read 16 signals. The sample serial port output from the slave is as follows. @ 125 @ 13 @ 874 @ 1023 & 950 @...
0
votes
1answer
34 views

Which Arduino-compatible microcontroller for 2 continuous analog audio recording and 2 digital pin snapshots every second?

Apologies if the title is not very well worded. I'm new to electronics and trying to learn more about embedded systems too. I have a small project that requires recording an analog audio input at 8-...
0
votes
1answer
123 views

Write an array to SD

I'm new to the Arduino and I asked some questions around here and they were really helpful so I'm hoping I will get help once more #define maxLen 800 volatile unsigned int irBuffer[maxLen]; //...
0
votes
0answers
36 views

Arduino Mega failing to connect to XAMPP database/php server to send HTTP requests

I have developed an application with a SunFounder Mega2560 with a W5100 Ethernet shield that acts as a server and successfully parses TCP message packets from a client sending in updates. I am now ...
0
votes
0answers
28 views

Reading from SD and save it in an array

I have a text file with an IR raw code that I need to read from the SD in order to send it and I don't know how to do it. I tried to use the read file function from the specific SD library but it didn'...
0
votes
3answers
40 views

Arduino Mega's auxiliary serial ports

If I am correct, the first two pins (RX/TX) are connected to the USB, and I cannot use the serial monitor and the first RX/TX serial ports at the same time. But, what about the other 3 auxiliary ...
0
votes
0answers
39 views

SD delay in writing to file

I am using MPU6050 on an Arduino Mega 2560 with Data logging shield v1.0 and an 8Gb Kingston Micro-SD HC card.I am facing a problem in logging and successfully writing to a file 100 values/sec. Now in ...