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
2answers
22 views

Is defining a function improves speed rather computing average for each analog input separately

My Arduino controller reads data coming from four different sensors. After the data is read, I individually compute four input average values. I understood that I am having the same lines of code ...
1
vote
0answers
32 views

Sending data to server

I have an SD card have a very big file (1M character). i try to load it into memory in terms of 4K character array ( The maximum I could do using Arduino Mega). but this take almost 250 call to the ...
0
votes
1answer
28 views

Purpose of LED indicator

I am using an arduino mega clone called the Funduino. I am developing a python based, tkinter application that will receive the serial data that arduino sends. However, i am witnessing some behavior ...
2
votes
0answers
24 views

Rosserial. Arduino Publishing custom msg (6 float64 values and header) and subscribe Vector3Stamped msg from Arduino mega2560 is not working!

Rosserial Arduino custom msg publisher. I am publishing custom msg (6 float64 values and header) and subscribe Vector3Stamped msg from Arduino mega2560. But is not working! The error I get is the ...
1
vote
0answers
26 views

Can you use python to control an RGB matrix with Arduino Mega?

I want to use python to control a RGB Matrix with an Arduino Mega, is it possible? How do I use Adafruit library with python? My plan is to create IOS app to control the matrix via Bluetooth.
1
vote
0answers
26 views

PLs help me Debug i am using arduino mega 2560 , rc522 (library working) , servo (library working) [closed]

https://drive.google.com/file/d/16Qp2kUNgmyA32UKJtOwV7nQdMlSIQyle/view?usp=sharing (.ino) Arduino File https://drive.google.com/file/d/1QjBEOfvFiWJFmaAyShyTmwxzlS0NshjT/view?usp=sharing (.txt) Text ...
0
votes
1answer
45 views

connect USB keyboard to Arduino using clk and data wires

Edit: What I'm looking for is some kind of library which could be used with an arduino to read the HID protocol output from the Data+ and Data- cables of the USB. ========== If I cut the cable of a ...
2
votes
0answers
21 views

Problem displaying data sent from Arduino Mega to Arduino Mrk1000 using serial communications

I've been doing a personal project. The idea of the bigger project is to feed my fish using a robot. My specific problem is that I would like to see some data from the various sensors that I will be ...
1
vote
0answers
28 views

How can I just wait to receive a UART message on my system? [closed]

I wrote a code for making my steppers and servo motors work to be specific 5 stepper motors and 3 servo motors with some sensors too. Now I need to receive a feedback from my arduino mega after the ...
1
vote
1answer
32 views

Get production count for current minute

I am trying to make a production counter for a machine. I want to display production count of the last minute for each seconds. So, display should update every second and should display real value of ...
1
vote
0answers
32 views

How can I get an integer from an RFID tag from Arduino Mega to NodeMCU 1.0 over serial communication?

I want the number from an RFID tag read by a reader connected to an Arduino Mega to end up as a string on a NodeMCU connected to the Mega. I am trying to confirm that the string is on the NodeMCU ...
1
vote
0answers
16 views

Serial Communication between Node-MCU and Arduino Mega [closed]

Sir mane ardunio mega 2560 my programing k hy jo k different sensor k value lake display karty hy aur sir ab my us value ko server jo k thingspeak hy aus p bajna chahta ho sir aus k leye mane esp8266 ...
0
votes
0answers
28 views

Arduino freezes , how can I convert Arduino String to C string type?

this is my first post, im not an expert but I managed to build an Arduino Mega with an ESP8266 to water my plants inside a tent, unfortunately its freezes/crashes randomly and I have to go and reset ...
0
votes
0answers
26 views

Is it possible that a 12V transformer is creating EM interference that's coupling onto a long antenna cable?

I have an Arduino Mega, Adafruit RFM96W 433MHz LoRa Transceiver Breakout and 2 Channel OptoCoupler Relay Module. https://www.adafruit.com/product/3073 https://www.amazon.co.uk/SUNFOUNDER-2-Channel-...
1
vote
0answers
14 views

Sparkfun Spectrum Shield no change in frequency

So i wanted to build a music visualizer using a MSGEQ7. As I just got started with electronics, I did some soldering beforehand and I think I am doing okish. While it might not be perfect, the contact ...
1
vote
5answers
803 views

Running Arduino mega on 5V power supply

I'm wondering if I can run Arduino mega on 5V power supply, even though it's recommended for 6-12V. USB has only 5V right, will it be a problem? I expect to draw quite a lot of power from the 5V pin ...
2
votes
2answers
82 views

How to split 12V power suply to arduino and led matrix panel

I'm trying to build my Arduino project with Arduino mega and led matrix panel. I'm wondering what power supply should I buy, my first thought was to power the matrix panel from a 5v Arduino pin, but I ...
1
vote
0answers
33 views

GPS Ublox neo-6mv2

I'm trying to get gps data from ublox neo-6mv2 module via arduino. Should ublox's neo-6mv2 light blink after power up by 5v from arduino ? Or is there any other sign that tells the module isnt dead ? ...
0
votes
0answers
30 views

issue with DVD drive stepper motor for 3d printer

Short version: 1: Is it possible to run just the stepper motors (pulled out of a DVD Drive) using either a 5v 2a mobile charger or a 9v battery plugged into the Ramps 1.6 power input? 2: what could be ...
0
votes
0answers
56 views

How to connect Arduino Mega2560/DUE to a perfboard?

The pin position of Arduino mege2560 / due is not standard. I need to use the perfboard in the project and connect the DUE to it. This project is mainly to do a sampling circuit, the running speed of ...
1
vote
0answers
55 views

it just gets too hot . any way of cooling it?

there i just got started with the arduino mega2560 . i tried 8x8 matrix tube and after ~30secs i found the atmega2560 a bit hot that i can melt a small amount wax on it ! is there any sort of heatsink ...
2
votes
0answers
46 views

SPI Arduino slave not recieving data correctly

Using an STM32L476RG Nucleo microcontroller board as the SPI master and an Arduino mega as a slave with pin 52 for SCLK, pin 53 for SS and pin 51 for MOSI on the Arduino. There is no issue with the ...
0
votes
0answers
25 views

relay not working

i tested 6 and none work. #include "Wire.h" #include "LCD.h" #include "LiquidCrystal_I2C.h" #include <Keypad.h> #define A0 A0 #define A1 A1 #define A2 A2 #...
1
vote
0answers
29 views

Side by side two TFT LCDs 1.8'' with ST7735 driver but one acts differently

Hardware setup: Custom PCB with ATMega 2560 Working Batch: TFT LCDs 1.8'' with ST7735 driver (Chinese version) Bad Batch: TFT LCDs 1.8'' with ST7735 driver (Chinese version) Library: From Adafruit, ...
1
vote
0answers
25 views

Arduino Mega with Sensors and tftlcd 2.4 inch

I am working with tftlcd 2.4 inch with Arduino mega 2560 board. In this code I just want to show clock as my default or home screen. By clicking on clock at any point on screen user should get a new ...
1
vote
0answers
51 views

Serial.write and Serial.read problems

I need to send data from an Arduino mega to an Arduino Uno for XOR calculation Input data is an integer in the range 0-10 Input data is sent every 500ms On the mega: void setup() { Serial.begin(...
1
vote
1answer
26 views

Stepper Motors Strange Behaviour

I am working in a project in which I need to control at the same time three NEMA17 stepper motors. In order to do so, I am using three DRV8825 drivers working at 12V connected to an Arduino MEGA. This ...
1
vote
0answers
31 views

Error: avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout

New to Arduino Mega 2560. Using PC with Windows 10. In the Arduino IDE the only USB port I get is COM1. When I try to get board info I get is the message of 'Native serial port, can't obtain info"...
1
vote
0answers
52 views

Connect two 64x32 RGB P4 panels Arduino Mega

I'm using an Arduino Mega and two RGB Led Panels to plot some data. The problem is that the data plotted in the first panel is duplicated in the second as well. What I want is to plot the data on both ...
0
votes
0answers
20 views

In CLion, how can I set up multiple cpp files for arduino

I'm using the Arduino plugin in CLion. I can't seem to figure out how to have multiple cpp files for my classes. I have been putting the code in my .h up until now, but that's going to bite me soon.
1
vote
1answer
25 views

How to run multiple DC motors in different patterns?

I am a complete novice in programming and I hope someone could guide me here. I am doing a haptic research project, where 8 DC coin vibrating motors would be fitted on the fingers of subjects (...
1
vote
0answers
21 views

Display problems with the 1602A LCD Display while the COM7 shows the results

I am trying to use an Arduino for a temperature sensor, the sensor will use an if-else command to give the temperature reading. I didn't wrote the whole code but found the code and was making ...
2
votes
4answers
83 views

What would be the best way of dynamically 'change' instances regarding dynamic memory?

Since I'm very used to object oriented programming, I would like to use this into my design. My application will have 4 led strips and each led strip will have a 'pattern' running on it. For this I ...
1
vote
1answer
27 views

Pullup on compatible Arduino Mega

I've got an Arduino mega compatible board, called Ethermega, from Freetronics (ATmega2560). Schematic here. In setup, I've written this code: Serial.begin(9600); pinMode(4, INPUT_PULLUP); ...
1
vote
0answers
32 views

Is there a way to convert between arduino and raspberry pi pins

I have a robot that I have brought that is designed for raspberry pi (it comes with a raspberry pi HAT), and I am terrible at using my raspberry pi. So I was thinking what if there is some sort of way ...
1
vote
0answers
18 views

EM-18 RFID module not reading Card ID

I am using EM-18 Rfid module with Arduino mega the problem is that when i swipe the card for reading the card ID nothing will shown in serial monitor.Code given below.EM-18 connection diagram is given ...
0
votes
1answer
45 views

Measure plant pot amperage production

My son is working on a school project, He wants to measure microbiological interaction with soil and plant. In his protocol, he has to measure the amperage of the soil. I would like to help him with ...
0
votes
2answers
38 views

Detect if a display is connected

I want to detect wether a display is connected or not. This is the display: https://www.az-delivery.de/en/products/1-77-zoll-spi-tft-display I read connecting a pin of the display with another pin ...
2
votes
1answer
60 views

Arduino Mega Clone CH340G Capacitor Values

I'm making my own Arduino Mega board with ATmega2560-16AU and CH340G. Jump to the end of the post to find the real question. I have already ordered a PCB before and it didn't work when I soldered ...
1
vote
0answers
23 views

Touch sensor trouble

I need help I use Touch Sensor(T)v.0 and it always receives a signal not matter I touched it or not. Here is the code. #define TOUCH_PIN 7 int touchVal = 0; void setup() { Serial.begin(115200); ...
1
vote
0answers
29 views

send command to Slave and receive response over I2c

so I have an Arduino mega as the master and an attiny84 as the slave the master can send a command S to the slave and the slave should respond with TRUE so here is my code: master: bool GetOnline(){ ...
0
votes
1answer
57 views

5V pin out, 8 pins and micropython/circuitpython support: does such a board exist?

For a project, I am looking for a board to connect eight different neopixel-strips to, on eight different data pins. Because of the great length between the board and the first pixels of these strips, ...
0
votes
1answer
54 views

Deactivate pushbuttons at initial stage

Pl someone answer my question. I have 4 pushbuttons namely add/reject/start & finish. I want to 1.Deactivate add/reject buttons at initial stage until start button pressed & 2.Once add/reject ...
1
vote
0answers
40 views

6 buttons useless box [closed]

I don't know what is wrong in my code. The S1 are the button numbers that I will record when the stepper motor is going to for example number 1 button. MY CODE // steppmm*moveX=240 #include <...
1
vote
0answers
75 views

Arduino mega PinChangeInterrupt with 16 bit timer

With reference to this question ::I have written a program by using 16-bit timer, The program is as follows . volatile uint32_t ovfCount = 0; struct Pulse { uint32_t last_toggle; uint32_t width; ...
1
vote
1answer
66 views

Issue using Arduino Mega Timer2 with PinChange Interrupt

I was working on a program to measure the pulse width , for that I thought of using Timer 2 in Arduino mega along with pin change interrupt, The program I have written is as follows volatile float ...
1
vote
0answers
29 views

MC60E GSM Shield can't connect to Network

I am using a GSM MC60E Shield (Model: https://forum.arduino.cc/index.php?topic=234200.0) on top of an Arduino Mega 2560; the Arduino is connected to other sensors that are not important now. I want to ...
1
vote
2answers
55 views

Timer Interrupt Collision

I am working with a MEGA2560 trying to implement velocity ramps for three steppers at the same time. The goal is to move to different positions applying accelerations and decelerations while finishing ...
1
vote
0answers
35 views

Trouble with laser sensor

I have trouble with my laser sensor it doesn't work properly. When I connect all pins its doesn't work, when I remove GND and connect just the signal pin and VCC it works but the laser light is dim(I ...
1
vote
0answers
37 views

Fail to burn bootloader into standalone atmega2560

I am making a project where I use standalone atmega2560. I used arduino mega schematic to put all necessary components so atmega2560 would be working. I tried to burn bootloader into it using arduino ...

1
2 3 4 5
36