Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
2answers
34 views

I can send on software serial, but not read?

I've been cracking my head over this for a long while. Like many before me, I'm trying to send and receive data from a HM-10 bluetooth module, arduino mega adk and the app called BLE Scanner. I've ...
0
votes
1answer
12 views

What are the negative PINs for on the IndustrialShield M-Duino 58 Analog

I am working as an internship on an Arduino based PLC. It is the M-Duino 58 Analog from IndustrialShields. I try to figure out how it works; Reverse Engineering. But i dont know why it has negative ...
0
votes
0answers
31 views

SPI programming failer [on hold]

After burning the boot loader on my Atmel 2560 using an Arduino Uno, the Atmel 2560 doesn’t want to be programmed. I tried changing the SPI baudrate from the SPI code, tried changing the fuse setting ...
0
votes
1answer
25 views

3V Arduino options

I have an Arduino Mega board to test 3V devices. Which is the simplest way to connect those 3V devices to the Arduino Mega (it works at 5V) without burning them? I saw the Adafruit Trinket works at 3V,...
0
votes
0answers
37 views

My servo won't turn

I'm simply trying to get my servo engine to turn and I can't get it to work. I'm pretty sure it's not hardware failure since I've tried 3 servo engines, 2 different arduinos and a bunch of wires. I ...
0
votes
0answers
17 views

Implementing a GPIB device(not an adapter) [closed]

At work we use a test system that's mostly proprietary is a combination hardware and software solution that works well but isn't as expandable as I'd like. It does have the ability to interface with ...
0
votes
0answers
14 views

Receiving blank SMS on android (from SIM800L)

I am using SIM800L and Arduino mega to send SMS on a mobile phone. This is the code I am using. void sendSMS(String mobileNumber, String msg){ Serial.println("Sending SMS to "+mobileNumber); //AT ...
0
votes
0answers
22 views

CANopen and Arduino

my project is about manipulating a robot with CAN messages. Originally there is a remote controller for the robot, but I want to controll the robot with my laptop via CANopen. So below is what I have ...
2
votes
3answers
103 views

Having some issues with an array

I am having an issue that I can't seem to get my head wrapped around. What I am trying to accomplish is to have a minutes worth of sensor data in an array (reading every 5 seconds) so I'll have 12 ...
0
votes
0answers
35 views

GSMv2 client.connect is blocking loop

I'm running GSMv2 on an Arduino Mega to read number from webpage which then interacts with other code - plays LED animation with TLC5940. I've set up GPRS connection so that it can parse HTTP ...
0
votes
2answers
45 views

Time between two IR beam sensors

I am working with two sets of IR beam, they are to be placed in X distance. My goal is to measure speed. I would like to measure time between the first IR beam to the second beam when the beam breaks. ...
0
votes
1answer
36 views

Calculation error with Optical Encoder

I have corrected my code for reading the optical encoder index but I am now getting a different calculation error. At the index the encoder reset's to zero but now my readouts are as follows: Index ...
0
votes
0answers
30 views

My encoder index is not working

I am using an Arduino Mega 2560 R3 Plus and a 360 p/r Optical Encoder. The code counts up and down from 0 to 359 but the index won't reset to zero when the index point comes around. I tested the ...
1
vote
1answer
43 views

Dimmer.h issues with ATmega 128

I am using a ZCD circuit controlling a TRIAC. Now I am using Dimmer library for this purpose. It works fine with ATMega 328 but whenever I try to upload the code in ATMega 128 using Arduino IDE this ...
0
votes
2answers
49 views

Voltage Regulator getting too hot

I have an Arduino mega that is being used to control relays and ultrasonic sensors. The relays that I am using is a 4 DPDT Signal Relay Module Model: D-256 Series and the other is a 4 channel Single ...
0
votes
1answer
38 views

Changing PWM on Arduino Mega, pins 9 & 10 to 20 to 25 KHz

I'm trying to run a Nema 17 motor with a l298N motor Driver for a school project. The issue is that I am running the motor with PWM to avoid overheating of the driver, however the resulting noise at ...
0
votes
1answer
40 views

Not receiving the complete messange sent by SIM900

I need help with SIM900 and Arduino Mega. I do not receive the complete message that I send from my phone. (Arduino Mega _ SIM900 _ Alimentation 9V/2A) Message sent: 1234567891234567890 Message ...
0
votes
3answers
35 views

Iteed SD card breakout info for Arduino

I got an SD card breakout from an online shop, its the iteed kind without the level shifter, it has the 3.3 / 5 V switch. I cannot find any libraries or write example for it. Has anyone dealt with it ...
1
vote
3answers
437 views

Can now() roll over just like millis()?

I'm using now() and millis() to trigger events after a certain time has passed. I am aware, and it's also easily found on the web, that millis() rolls over after a certain time has passed and for code ...
1
vote
2answers
44 views

How would I go about measuring an analog signal on my arduino mega that has both positive and negative voltages

I have a signal that fluctuates between -70mV and 50mV. How would I get the arduino to read this.. Ultimately I am trying to graph the data in real time so it looks like this. https://imgur.com/a/...
0
votes
1answer
59 views

Garbage stored in SD card

I am an electronics graduate and an embedded design engineer, working in this field for about two years apart from the hobby time during my graduation. I am currently working on a system that has an ...
-1
votes
1answer
78 views

How to create a weather station with only GY-BME280-3.3 chip and w5100 Ethernet shield mounted over arduino mega 2560 r3

Want to create a weather station with only GY-BME280-3.3 chip and w5100 Ethernet shield mounted over Arduino mega 2560 r3 but I have no previous experience with Arduino. And The Arduino will be hooked ...
0
votes
1answer
54 views

No data sent over serial port in linux c++

TL;DR - I am attempting serial communication with Arduino with code that I found here and nothing gets sent over (Arduino programmed to respond, and I checked that it does with its serial monitor) Hi ...
0
votes
1answer
38 views

Optical Rotary Encoder Index issue [closed]

I have the following code working correctly except for the Index portion. I am not sure if I have the syntax correct for the hardware. The end result I am looking for is to have the encoder reset to ...
0
votes
0answers
42 views

Still struggling to get LCD 20x4 to work

I am now on my 4th LCD, they seem to keep failing or its just me doing something wrong. Using Arduino Mega board, and current LCD is a Adafruit 20x4 white type on blue. Just to keep things simple I ...
0
votes
0answers
22 views

CAN-Bus Shield same data

I connect Arduino Mega + Seeed CAN-Bus shield and to my car, and all data I receive is: 97F00010 8 20 10 0 0 0 0 0 80 97F00010 8 20 10 0 0 0 0 0 80 97F00010 8 20 10 0 0 0 0 0 80 97F00010 8 20 10 0 ...
0
votes
0answers
30 views

Arduino and relay issues

I'm having a problem starting the relay module in off state after plugging the Arduino. Every time I plug the Arduino, the relay automatically turn on. I'm using an Android with Bluetooth module to ...
0
votes
0answers
32 views

I am having trouble with encoder code

I am working with this borrowed code and I am having difficulty getting it to respond the way I want it to... I am very new to this and could use the assistance. Desired results are: Run on Arduino ...
-1
votes
1answer
63 views

State change detection with a colour sensor

I have added static variables to this code and instead of getting repeated notes whilst dwelling on green, I get a single note instead. This is what I wanted. However, my loop isn't allowing for a new ...
0
votes
1answer
18 views

Interfacing 4 ESCs and an Arduino with a single LiPo battery

I have 4 BLDC motors, and 4 ESCs, one for each motor. But I have one LiPo battery from which I want to power one Arduino Mega and all the 4 ESCs. Can I remove the connectors from the ESCs and put them ...
0
votes
2answers
63 views

8relay module asks more than specs

I have a 8 relay module that should use not more than 20 mA per relay. Altough when measuring it asks around 70. If I use 6 relays, that would be more than an Arduino Mega can give. (I already lost 1 ...
1
vote
1answer
33 views

Reprogram Atmega 16u2 on Arduino Mega with Arduino IDE?

I had an Arduino mega 2560, suddenly Arduino didn't recognize my computer and I thought the problem is about Atmega 16u2 and I decided to copy hex file from another Arduino Atmega 16u2 and paste to ...
0
votes
2answers
29 views

Read sensor data repeatedly after specified time?

I want to read sensor data using analogRead() after every 5ms. I have read other answers to similar questions but what I'm confused about is: let's say, I made a loop to read sensor data using ...
0
votes
0answers
43 views

Lots of GPIO system using Arduino/ESP8266/Raspberry Pi

I'm searching for a system that can provide and handle lots of GPIO, let's say 256, but also to be relatively low power. One problem would be to handle the output, one idea would be to use a ...
0
votes
0answers
62 views

How do I send MIDI using rtpMIDI on Arduino Mega + ESP8266?

Because of specification issue, I can't change the microcontrollers used. It have to contain Mega and ESP. What I've done : changed WiFi shield to ESP8266, according to this link. It has worked. I ...
1
vote
0answers
48 views

Making '*' key on keypad a backspace key

Using a 4x3 membrane keypad and I want to make the '*' key a backspace if the wrong number is entered. I am a newbie and having a hard time trying to figure out how to code that, any help would be ...
0
votes
1answer
21 views

SIM808 return the same AT command

I am using atmega 2560 and SIM808. When I send an AT command to SIM808 it returns correctly. But sometimes I have seen that SIM808 returns the same AT command. Sometimes it occurs due to lack of power ...
0
votes
0answers
11 views

Arduino GSM Shield V2 with Arduino UNO

Is it possible to send a picture via email using Arduino GSM Shield V2 connected to Arduino UNO / Arduino MEGA. Thank you for replying
0
votes
2answers
35 views

getting SPI SSD1307 to work on Arduino Mega

After some time off, I decided to get back into my project after some help from this topic I started earlier Difference in pinout (types?) Uno/Mega. Unfortunately, even tho I have read multiple times ...
0
votes
1answer
40 views

Uno to Mega and where is the error for the interrupt that isn't delared?

I want to read a Omron E6B2-CWZ6C Incremental Rotary Encoder w/Index (360P/R). A couple questions, I found out that an Uno can only handle 2 interrupt pins and I think I need 3 for the Index. What do ...
1
vote
2answers
80 views

How do I properly send and receive MIDI with Arduino?

I'm using Arduino Mega. I tried to find specific topic about this and can't find any. The target is actually send and receive MIDI, then forward it as rtpMIDI using esp8266 (thats the start of the ...
1
vote
1answer
57 views

Midi controlled LED by USB [closed]

I am trying to create something that will allow me to control an individually adressable LED strip using an electric piano using its midi output. Some things to note: The piano can output midi ...
0
votes
0answers
19 views

Imporper results with FCDFT in arduino

I have implemented Full cycle DFT algorithm in arduino 2560. It works well with fundamental(50Hz). It attenuates all even harmonics. But surprisingly lets through all odd harmonics. What am I doing ...
0
votes
1answer
25 views

How to Create a reference to an External Print object

Right now I have an object: class Dog { public: Dog(uint8_t I2c, Stream& feedback); void Speak(); private: uint8_t _I2c; Stream& _output; }; Dog::Dog(uint8_t I2c, Stream&...
0
votes
1answer
48 views

Watchdog Timer for atmega 128

I am using atmega 128 for a smart vehicle tracker. I am trying to use watchdog timer for this controller.But problem is that I have found the maximum watchdog reset time is 2 seconds. I need watchdog ...
0
votes
1answer
25 views

Arduino loop over a function is always displaying 0 as final values

I trying to loop over a function in arduino to get values for 2000 times, and then divide it by 2000 to get an average offset: int16_t x_offset = 0; int16_t y_offset = 0; int16_t z_offset = 0; And ...
0
votes
1answer
44 views

Can I use a camera sensor from a not functioning smartphone in Arduino or Raspberry pi?

I want to use the OmniVision_OV16860 camera sensor from a not functioning Moto G4 plus phone to capture pictures using Arduino or Raspberry Pi. Is it possible to do that? If yes, explain the whole ...
1
vote
0answers
52 views

Looking for a waterproof SPI temperature sensor

In my current project I'm using a DS18B20, which seems to be the only temperature sensor to show up when googling for waterproof temperature sensor for an arduino. The sensor itself is fine, however, ...
0
votes
0answers
31 views

Stop phone charging using Arduino

I am developing an automated test tool for Android phones. For this, I need to know how to stop the charging capability of android phones whenever it is connected to the PC via USB. I need to do this ...
0
votes
0answers
26 views

Failed to communicate between 2 LoRa modules

I used Arduino Mega 2650 on transmitter end and Arduino Uno on receiving end. (2 LoRa RA02 modules with self made wire antenna with RPSMA-UFL Connector) Transmitting is working fine but I did not ...