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
4 votes
1 answer
519 views

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,...
user1441016's user avatar
1 vote
1 answer
653 views

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 ...
hellopeople's user avatar
1 vote
0 answers
307 views

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 ...
Andi Stancu's user avatar
0 votes
2 answers
394 views

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 ...
Mighty Ferengi's user avatar
0 votes
1 answer
101 views

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 ...
Mighty Ferengi's user avatar
-1 votes
1 answer
151 views

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)....
Faisal Alrafaei's user avatar
0 votes
1 answer
281 views

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 ...
Waqas Wani's user avatar
3 votes
2 answers
1k views

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() { ...
M. Al lail Qadrillah's user avatar
1 vote
0 answers
324 views

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 ...
Estefanía Rodríguez Álvarez's user avatar
1 vote
1 answer
125 views

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: ...
MikeD's user avatar
  • 11
1 vote
1 answer
206 views

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 ...
Mtho's user avatar
  • 11
-1 votes
1 answer
102 views

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, ...
nerdguy's user avatar
  • 63
-1 votes
1 answer
181 views

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 ...
Rick Dearman's user avatar
1 vote
1 answer
182 views

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 <&...
DrLoopyTunes's user avatar
1 vote
0 answers
313 views

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 ...
krystof18's user avatar
  • 315
1 vote
0 answers
165 views

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 ...
Alex's user avatar
  • 11
0 votes
1 answer
1k views

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> #...
krystof18's user avatar
  • 315
2 votes
4 answers
1k views

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. ...
Imteaj007's user avatar
0 votes
1 answer
93 views

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

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 ...
HDne's user avatar
  • 21
1 vote
0 answers
496 views

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 ...
delrocco's user avatar
  • 119
1 vote
2 answers
220 views

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 ...
Gabriel Lincoln's user avatar
5 votes
1 answer
938 views

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 ...
Cyril_Ram's user avatar
1 vote
0 answers
181 views

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/[email protected]...
Yanick Salzmann's user avatar
2 votes
0 answers
126 views

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 ...
krystof18's user avatar
  • 315
3 votes
2 answers
2k views

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 ...
Lawliet's user avatar
  • 183
2 votes
0 answers
501 views

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 ...
Lawliet's user avatar
  • 183
7 votes
5 answers
5k views

I will be controlling a robot with more than 10 motors which means I'll need 2 buttons each to control moving forward and backward. My controller is an Arduino mega. Is 1 pin = 1 button the best ...
Julius's user avatar
  • 91
3 votes
1 answer
284 views

I am using Arduino mega with 4 interrupts to find the rotation speed of 4 motors . For this I have used INT2, INT3, INT4, INT5 and the code for the same is given below struct Pulse { uint32_t ...
Lawliet's user avatar
  • 183
2 votes
1 answer
787 views

Background I am programming a 40-pin ATMega4809 (datasheet) using ATMEL-ICE programmer. I'm simply using the Atmel Studio to upload a HEX file to the chip. I generate the HEX file using the Arduino ...
raddevus's user avatar
  • 442
1 vote
0 answers
80 views

I am trying to use (NDIR CO2 sensor Mikroelectronika) with Arduino Mega 2560 utilizing the Click shield. Mikroelectronika provides libraries for their platform (likely proprietary), hence i have no ...
mangoJam's user avatar
2 votes
2 answers
297 views

I am using Cactus Micro Rev2 and I'm trying to communicate with ESP via Mega32U4. I guess I have to update to espduino to be able to program the ESP side. And I don't know current ESP firmware version....
samedbll's user avatar
1 vote
0 answers
445 views

This is my first time using EMG Sensor. I'm trying to read EMG signals from Myoware Muscle Sensor. When I use analogRead to read analog value, the value is almost same. There is not much change in the ...
rover cj's user avatar
2 votes
1 answer
116 views

I am working on a project for my brothers and anyone else who is interested in playing some LED Pong. I was just stuck on the software part. I don't really know what to do. But, I have an idea: I want ...
Austin's user avatar
  • 116
2 votes
0 answers
311 views

I'm using this HC-05 Bluetooth module to communicate between my Arduino mega 2560 and my laptop. I am using processing to send the data from my computer to the Arduino. The module connects nicely and ...
Sahibjot Singh's user avatar
0 votes
0 answers
351 views

I am trying to build a robotic arm and also using a lot of metal in it, now the real challenge for me have arrised at first I was using tower pro mg995 but that servo is worse than scrap. So I ditched ...
Ritesh Sharma's user avatar
0 votes
2 answers
94 views

I'm looking to power an Arduino Mega using this IPC-5 power supply from Teknic since I will have a free port (the other powers a servo). I would like to use this extra port to power my Arduino rather ...
Gabe Morris's user avatar
0 votes
1 answer
147 views

guys. I need your help. I have 6 Serial Channels and I need to listen this channel and be sure which channel is working? How can I do that? Can I listen this channel by using digital inputs? Or Do I ...
A Alptekin's user avatar
1 vote
1 answer
365 views

I have an array of 64-bit integers to display on an 8x8 led matrix const int LEN1 = sizeof(Hours); const uint64_t Hours[] = { 0x00043c3c3c3c3c00, 0x000c3c3c3c3c3c00, 0x001c3c3c3c3c3c00, ...
gio xanchkava's user avatar
2 votes
1 answer
1k views

If you go to the official Arduino Nano Every page and click the Tech Specs tab, you'll see that it lists it as running at 20Mhz. Turn On Verbose Compile However, if you go into the Arduino IDE and go ...
raddevus's user avatar
  • 442
1 vote
0 answers
80 views

So i'm new to arduino and i'm working on a project that will require 3 modules/sensors. I wanted to know, can all of the following modules work with the arduino mega 2560 that comes with this touch ...
Shimon's user avatar
  • 11
1 vote
0 answers
747 views

I'm trying to use my Arduino Mega as an EEPROM memory writer. For this project, besides my Arduino Mega, I use an SD Card module, an LCD display and two push buttons to handle the events. Inside the ...
Dan Fayal's user avatar
1 vote
0 answers
194 views

First of all, thank you in advance. I'm trying to connect six Nova SDS011 Air Quality Sensor (sensor specifications here) to an Arduino MEGA. I'm using the Nova Fitness Sds dust sensors library which ...
Dratcher's user avatar
-2 votes
1 answer
891 views

I know this sounds simple, but I have an Arduino Mega 2560 and I am making a matrix keypad for a claw machine. It's a 3*4 matrix keypad. Let's just say, I am making this keypad for the claw machine to ...
Austin's user avatar
  • 116
2 votes
1 answer
2k views

I am working on a project with a claw machine. I am working on this chip (CD4067BE which is equivalent to the CD74HC4067) and I was wondering: can I read more than one button with the CD4067? I tried ...
Austin's user avatar
  • 116
2 votes
0 answers
72 views

I receive the following: 09:27:10.618 -> 0 0 09:27:12.589 -> 0 0 09:27:14.616 -> 0 0 09:27:16.622 -> 0 0 09:27:18.576 -> 0 0 09:27:20.577 -> 0 0 09:27:22.583 -> 0 0 09:27:...
Robin Svensson's user avatar
1 vote
0 answers
528 views

3x NEMA 17 Stepper Motors: https://www.amazon.com/gp/product/B00PNEQKC0/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&psc=1 3x DM542T Stepper Driver: https://www.omc-stepperonline.com/download/DM542T....
user77595's user avatar
1 vote
0 answers
680 views

I'm using two Arduino Megas in a project to read data from a bunch of analog sensors and then output PWMs on digital pins according to their value. These analog signals are also being plotted on a ...
Han Zhang's user avatar
2 votes
1 answer
1k views

I'm trying to send the temperature value from the DHT sensor to a raspberry pi through I2C. Which is the best way to do it?. The temp value is a float, and I think I have to convert it to byte and ...
Guille's user avatar
  • 123
0 votes
2 answers
308 views

I'm not an expert about Arduino and I'm studying to create a project related to the bees remote monitoring. I would like to monitor the internal humidity and temperature and the weight of the beehive ...
Safari's user avatar
  • 101

1 2
3
4 5
37