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
1answer
26 views

Arduino , python , pyfirmata , standard firmata

Is there a way to change arduino analog reference to EXTERNAL IN PYTHON using pyfirmata or any other library ? Necessary Links : https://www.arduino.cc/reference/en/language/functions/analog-io/...
0
votes
1answer
24 views

Accelerometer Orientation (LIS3DH)

Newbie here! I’m trying to make a pocket level using an LIS3DH but I don’t know how to “reset” all the axis to start reading from a certain orientation since my LIS3dh won’t be mounted flat and will ...
1
vote
0answers
25 views

Serial1.readString() on arduino mega returns an empty string

i have been trying to read text message from a sim module over serial1 of arduino mega, when i use the code msg = Serial1.readString(); the readString return an empty string i dont know if this is a ...
0
votes
1answer
46 views

Float switch is not detected

Good day everyone, forgive me for the shabby drawing I am just panicking, why my float switches are suddenly undetected by my Arduino mega. I've tested all the float switches one by one to confirm if ...
1
vote
1answer
33 views

Arduino ADC converter calculation

I am trying to choose a wire encoder for my project. So far, I found this wire encoder (see link). Assuming the measurement range of my cylinder is 1 m. Then, with a 10 bit ADC converter of my Arduino ...
-1
votes
0answers
16 views

SPP-C JDY31 not work with arduino mega

My SPP-C JDY-31 cannot use AT commands nor receive and send signals. I use arduino mega. https://create.arduino.cc/editor/minha05112003/a1597d0b-8c27-4e0a-80bb-05fe00bc9ddd/preview
-1
votes
0answers
43 views

Long Distance, Three-Way Replication [duplicate]

Have a set of Arduinos that need to swap data--for a model rocket launch controller! How to send 24 bits of info (launch commands) from a "master" Arduino, 12 bits each to two "slave&...
1
vote
3answers
450 views

How to implement Arduino NANO as a RS-232 to USB adapter (Or do I need a Arduino Mega?) For 3D printer comms

I have a PC upstairs running my 3D printing slicer program (Simplify 3D). In the basement, I have several USB-enable 3D printers. My PC upstairs has a USB-to-RS-232 serial adapter. The serial side of ...
1
vote
1answer
39 views

Arduino Serial.readString() trouble

Hello everyone I write my code and have some troubles. When I write on in my serial monitor my buzzer condition wasn't changed. Can you help me realize the reason. I wrote code with int type and it ...
1
vote
2answers
88 views

Networking Multiple Arduinos — Is It “Rocket Science?”

Have a set of Arduinos that need to swap data--for a model rocket launch controller! How to send 24 bits of info (launch commands) from a "master" Arduino, 12 bits each to two "slave&...
2
votes
2answers
58 views

strange strings

#include "Keypad.h" char Incoming_value = 0; String password = "123456"; String input = ""; const byte ROWS = 4; //four rows const byte COLS = 4; //three columns char ...
0
votes
2answers
34 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
34 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
29 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
32 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
28 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
49 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
23 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
33 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
33 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
826 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
85 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
34 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
58 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
56 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
49 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
32 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
27 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
53 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
27 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
38 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
28 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
19 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
65 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
2 3 4 5
36