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
-1 votes
2 answers
39 views

How to display only specific data in the serial monitoring?

I got the following data as shown in the figure from imu razor which is connected to Arduino Mega 2560 in the serial monitoring and I want to get only the data that starts with "#A-R= " Can ...
user avatar
  • 1
0 votes
1 answer
31 views

Funduino USB Host Shield problems

I'm currently working on connecting a Funduino version of usb host shield onto an arduino mega board. But the serial output shows "osc did not start", which means the board can't find the ...
user avatar
0 votes
0 answers
94 views

Losing 100ms on sensor.available with DFRobot sensor

we are using 2 https://wiki.dfrobot.com/Serial_6_Axis_Accelerometer_SKU_SEN0386 sensors with Arduino Mega. Everything is working but we get only 10Hz of sampling. We were testing with timestamples and ...
user avatar
-1 votes
0 answers
18 views

OV2640 Image Transfer via Bluetooth

I am working with the Arducam OV2640 Camera Module 2MP Mini, an Arduino Mega 2560 R3, and the HC-05 Bluetooth Module. My goal is to take pictures with the camera module, and transfer them over ...
user avatar
  • 1
1 vote
2 answers
122 views

Using Software Serial on Arduino Mega

So Im using this sensor: https://wiki.dfrobot.com/Serial_6_Axis_Accelerometer_SKU_SEN0386 with this library https://github.com/DFRobotdl/DFRobot_WT61PC Im using 2 sensors but got poor frequency on ...
user avatar
-3 votes
0 answers
35 views

How do i send multiple changing values via I2c?

I have a project where I need to send multiple values to a slave board and that slave board prints those values to an I2c 16x2 LCD. I am new to I2c and I don't really understand it! I, unfortunately, ...
user avatar
1 vote
1 answer
30 views

Fluctuation in 4 half bridge load cell via combinator

I'm currently using a Sparkfun 4 Half-Bridge load sensor (50 Kg) with combinator and amplifier both are from the Sparkfun. Link:https://www.sparkfun.com/products/10245 (For Load Sensors)https://www....
user avatar
  • 13
0 votes
1 answer
39 views

Unpredictable behavior of a 74HC595, Q0 has no output and LED flickering

Below is my schematics: I am using a 74HC595 shift register and to test my connections, I have placed 8 LEDs to the output and shifted 0xFF into the shift register (1111 1111), this should light up ...
user avatar
-1 votes
1 answer
35 views

How to shift binary into a shift register (serial in, parallel out) sequentially

I'm trying to make a continuity tester at work where I connect the input and output of a harness into a test fixture powered by an Arduino. This tester tests whether the position of the connects are ...
user avatar
-1 votes
1 answer
32 views

Arduino battery capacity selection based on the current measurements

I'm sorry for this stupid question... I'm not an electronic/electric expert.. In order to select the battery capacity as well as the solar panel I'm measuring the Arduino current consumption. So, I ...
user avatar
  • 101
1 vote
1 answer
122 views

Sending float values from Python to Arduino using Serial communication

I need to send an array of floating-point numbers from python to Arduino Mega. For that, I read many sources [this this this this this] this] and many more links for the same I referred. But unable to ...
user avatar
0 votes
1 answer
42 views

Using a 5 pin button with Arduino Correctly

I am trying to build a simple motor test sketch, currently, to test a NEMA 23 stepper motor and the DM542T stepper driver. Here is the code, and I am having trouble figuring out how to properly wire ...
user avatar
  • 350
1 vote
0 answers
14 views

Error while burning bootloader onto ATMega 8A using Arduino Mega 2560: stk500_getsync() attempt 10 of 10: not in sync: resp=0x80

I'm using an Arduino Mega 2560 to burn the bootloader onto an ATMega 8A without a 16MHz crystal. When I press the 'Burn Bootloader' button, it gives me this error: Arduino: 1.8.19 (Windows 10), Board: ...
user avatar
  • 11
1 vote
0 answers
38 views

Nema 17 stepper motor speed problem

This code is quoted from here. May I know how to increase the speed of the NEMA 17 stepper motor further? I tried to increase the step speed to 2000rpm but it does not even work. It only works for ...
user avatar
-1 votes
1 answer
42 views

Displaying multiple temperature outputs w/Thermistors

So I asked this question a couple days ago but did some more work with some of the coding, but I'm really stuck and need some help. I'm trying to display the temperature for each separate thermistor ...
user avatar
0 votes
1 answer
26 views

Having trouble reading multiple thermistors w/ Arduino 2560

I'm trying to get my code to read multiple thermistors and I can't quite seem to get it correct using my arduino 2560. The first issue is it's not reading more than the first thermistor. The next ...
user avatar
1 vote
0 answers
87 views

Can no longer select a port in Arduino IDE on Linux?

I am trying to upload to my Elegoo Mega 2560. I previously had it set up properly with the board installed and selected and the port automatically detected. Now when I go to Tools and hover my mouse ...
user avatar
1 vote
1 answer
99 views

How to pass non-static class member to callback on avr platforms?

I am using the PubSubClient library in my own Arduino library. I'm having trouble with trying to assign a class member as the client library setCallback callback function. MyClass.cpp: #include <...
user avatar
1 vote
1 answer
59 views

MAX30100 and ESP8266 NodeMCU Serial Errors

This is my final year project and for some reason, the max30100 sensor defaults to static values once the HTTP post request has been performed. #include <ESP8266WiFi.h> #include <...
user avatar
2 votes
1 answer
63 views

Communicate with Sparkfun CAN Bus Shied

i have a Arduino Mega 2560 R3 and a Sparkfun CAN Bus Shied. Im using the SparkFun_CAN-Bus_Arduino_Library-master. I want to communicate over SPI (they have diffrent SPI pins), so i had to change it in ...
user avatar
  • 21
2 votes
1 answer
46 views

ELEGOO Mega 2560 USB and Vin simultaneously?

I'm powering my Arduino clone with an LM317 circuit that regulates Vin voltage to 10V (measured with a multimeter). While the Arduino is powered by USB only, everything works. When it's powered ...
user avatar
  • 21
1 vote
0 answers
53 views

CONTROLLINO MEGA – Timeout communicating with programmer

I’ve been using my CONTROLLINO MEGA since long time ago, but today I uploaded a sketch and now the board is not working. Everytime I try to uploud a sketch, ARDUINO IDE remains in “uploading..” mode ...
user avatar
3 votes
0 answers
130 views

Integration of MAX30100 and DS18B20 Thermal Probe Integration

This is for my final year project that I have been tasked with designing a patient monitoring system. However, during the last stretch of model prototyping, I am experiencing issues with my MAX30100 ...
user avatar
4 votes
1 answer
66 views

Arduino Array Scope with SPI

when I try the following code the SPI works correctly (see oscilloscope plot) #include <SPI.h> void setup() { SPI.begin(); } void loop() { SPI.beginTransaction(SPISettings(100000, MSBFIRST,...
user avatar
1 vote
1 answer
49 views

Arduino u8glib Problem

I am Trying to make tetris on a 128x64 oled 1.3", and I am using the u8glib library. Here Is My Code: #include "U8glib.h" U8GLIB_SH1106_128X64 u8g(13, 11, 10, 9); int val = -53; int ...
user avatar
1 vote
0 answers
47 views

Can't get 433 RF to work

I am trying to have two Arduino's to communicate to each other via 433Mhz units. My project is a bit more complex, but I since it was notworking I reduced it to most basic form in order to exclude the ...
user avatar
0 votes
2 answers
48 views

Library that pulls ID3v2 info from MP3s

I'm using an Adafruit Music Maker with a TFT screen on my Mega 2560. I can pull ID3v1 data from the end of an MP3, but I'd like to get the ID3v2 data as I can then push the album cover art to the TFT ...
user avatar
0 votes
1 answer
30 views

Mega 2560 with Adafruit Music Maker and TFT - Pin reroute

I'm building a custom headunit for my motorcycle using the Arduino platform. I wanted to try it as the modular nature of the board and shields looked very versatile. While there does seem to be plenty ...
user avatar
-1 votes
1 answer
69 views

i am tying to make a automated parking lot with a gate, sensor, button, keypad, how can i time how long has each car spent inside?

the project requires a automated parking lot, I have been able to connect and function the sensor and button for exit and enter, and the led(red lights when parking is full, green when there is spots)....
user avatar
0 votes
1 answer
68 views

How many ADS1115 ADCs can I connect to a single Arduino Mega 2560

I know we can connect 4 ADS1115s to an Arduino Mega 2560. Is there any limit on the number of ADS1115s we can connect to the Mega giving each a different address? I have to connect at least 36 ...
user avatar
3 votes
1 answer
200 views

get data from arduino using python

I am trying to read potential meter data from Arduino using python, with the program on Arduino as follows : #include <cvzone.h> SerialData serialData; int sendVals[2]; void setup() { ...
user avatar
1 vote
0 answers
62 views

PID cooler temperature control

Hello Hello I am making a controller of a small cooler (dry ice) PID but Im not sure if I am using the indicated mosfet Im trying with a NPN 222a and my second option is IRFZ44 Which would be the best ...
user avatar
1 vote
1 answer
56 views

Issue with input from weighing scale controlling a stepper motor based valve

Hello and thanks for any help in advanced. What changes do I need to make to my code to get rid of the issue of the valve opening up again at end of cycle in "Auto" function. Hardware: ...
user avatar
  • 11
1 vote
1 answer
70 views

fingerprint scanner and GSM module- how do i put a timer condition using if statements?

I am using a fingerprint sensor and GSM module on Arduino MEGA 2560. I want a fingerprint to be scanned every minute, if a minute elapses with no finger scanned, then the next code for the GSM to send ...
user avatar
  • 11
-1 votes
1 answer
46 views

UART connected device communication only works one way

As the title implies, I have two Arduino devices (Uno and Mega) connected to each other over UART (the Mega is hardware UART, the Uno is software UART); I need the Mega to send a command to the Uno, ...
user avatar
  • 63
-1 votes
1 answer
59 views

Can't get 1 second on a ATMega168 timer

TCCR1A = 0; TCCR1B = 0; OCR1B = 0xFF00; TCCR1A = (1<<WGM10) ; TCCR1B = (1<<CS12) | (1<<CS10);; //set the pre-scalar as 1024 TIMSK1 = (1 << OCIE1A); This doesn't ...
user avatar
1 vote
1 answer
20 views

Unable to use rising edge interrupt for external clock Arduino 2650

I'm messing about with an Arduino Mega2560r3 and failing to get timer 4 to trigger on the rising edge of an external clock. It only ever triggers on the falling edge. I've tried TCCR4B = (1 <&...
user avatar
1 vote
0 answers
88 views

Encrypting and decryption RSA (Or other asymetric encryption) on Arduino Mega

I want to encrypt and decrypt like 200 char strings on arduino mega, but I failed to find any library/code that can do that. Do you have any experience with doing that? Thanks. I'd like to use any ...
user avatar
  • 305
1 vote
0 answers
40 views

Controlling DC motor with joystick using Arduino

I am working on modifying code to control two DC motors with a joystick using Arduino. The code I have works, but the motor accelerates very rapidly and is difficult to control. I would appreciate any ...
user avatar
  • 11
0 votes
1 answer
208 views

LoRa recieves only 2-4 packets, then stops working

I'm working on LoRa project using [Ai-Thinker RA-01 SX1278 433MHz LoRa][1] with [sandeepmistry/arduino-LoRa][2] library. I modified LoRaReciever example so it looks like this #include <SPI.h> #...
user avatar
  • 305
2 votes
4 answers
532 views

My program is using too much memory

I work in a warehouse and I was tasked to make a device which will show the location of any product when Product ID is given. All of our product has 3 things. Product ID, Rack Number and Gap number. ...
user avatar
0 votes
1 answer
70 views

Hello, Please can someone assist me with in checking my code?..I try to generate a high freq signal (at least 150KHz) with Arduino Mega, CTC Mode

void setup() { pinMode(9, OUTPUT); pinMode(10, OUTPUT); TCCR2A = TCCR2A & B01010000 | B00000010 ; // CTC mode activated, Toggle OC2A TCCR2B = TCCR2B & B11110000 | B00000001;//...
user avatar
2 votes
0 answers
55 views

Simulink resets arduino

I am working on servo motors control through serial communication protocol, I am sending data from Simulink to arduino and vice versa, The problem I am getting is that once I open Simulink Servo ...
user avatar
  • 21
1 vote
0 answers
73 views

Servos "jump to fixed position" at startup when powered by external power supply only, but not by board

My question is about something that is happening ONLY when I use external power supply. When I use the power from the Arduino Mega directly, there is no problem. However, I need to use an external ...
user avatar
  • 119
1 vote
2 answers
66 views

LCD TFT 2.4"" changes the values of analog read of Arduino Mega

I have a Arduino Mega with LCD TFT 2.4"" with reading 5v signal on A8 pin (Arduino mega pin) from a raspberry pi (just to test). They are grounded together. When the Arduino is without the ...
user avatar
5 votes
1 answer
428 views

Delay() and millis() functions don't work in cpp external files

I'm currently facing an issue using delay() and millis() functions in an external cpp file. The issue is that when I used delay() in my main program (meaning .ino file) it works well but when I call ...
user avatar
1 vote
0 answers
67 views

Arduino mega ethernet Udp client randomly failing

I have a keyestudio board identical to the arduino mega 2560. I use the matching keyestudio ks0156 W5100 ethernet shield. My code uses the following library for ethernet paulstoffregen/Ethernet@0.0.0-...
user avatar
1 vote
0 answers
55 views

Where to save time and other values so I can read them after arduino powered down?

I need to save some values (and be able to update them frequently) that will stay there even after powering down the Arduino. (I didn't specifically choose any board yet, but UNO or Mega will be ...
user avatar
  • 305
3 votes
2 answers
467 views

MPU6050 Arduino Jeff Rowberg library interrupt Issue

I was trying to get the data from MPU6050 using the Arduino library mentioned here. The following code is an edited version of the sample code given in the library folder which seems to be working ...
user avatar
  • 171
2 votes
0 answers
148 views

External Interrupt and Input Capture pin | Arduino MEGA

I have a code for finding the rpm of one system calling here as engine , the engine have a hall sensor output and I have tried the following Code #define SERVO_MIN 2000 #define SERVO_MAX 4000 struct ...
user avatar
  • 171

1
2 3 4 5
36