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
0 answers
19 views

What power supply to use?

I will use three stepper motors of current:2A each and arduino mega rev 3. My question is how can I decide what power supply to use for this combination?
  • 1
1 vote
0 answers
26 views

Error with Mega2560 via SPI

I tried the following code to communicate via SPI with MPU9250 and Mega2560 But I got the following error: Error initializing communication with IMU Why I got this error? /* * Brian R Taylor * brian....
  • 11
1 vote
1 answer
94 views

How to prevent an Arduino connected to the Internet from being hacked?

I have an Arduino (with environmental sensors doing measurements) connected to the Internet via ethernet. Can it be hacked? Can someone access it via Internet and upload his own C/C++ code? If, yes ...
1 vote
0 answers
14 views

Stepper motor not working with A4988 driver

I have been trying to run stepper motor via Arduino Uno and A4988 motor driver via this tutorial: https://howtomechatronics.com/tutorials/arduino/how-to-control-stepper-motor-with-a4988-driver-and-...
1 vote
0 answers
50 views

DS1302 RTC module running too fast

I am using a DS1302 RTC module with an Arduino Mega 2560 Rev 3. I follow steps on this website since I have no experience with RTC module before. Here are the outputs I am getting. 17:15:21.835 -> ...
-2 votes
2 answers
33 views

DHT11 sensor burnt after connecting with arduino board

I was attempting one of the project of DHT11 and connected the sensor to my arduino board but when the current passed the sensor became very hot and i think it is damaged now. Please help me
  • 1
1 vote
0 answers
31 views

Cannot connect Arduino Mega 2560

I was able to work with the same Arduino on the same laptop yesterday. However, the Arduino IDE is unable to connect the Arduino Mega 2560 today. I tried with a different Arduino Mega 2560 but the ...
0 votes
0 answers
34 views

I am trying to convert 40V DC to 24V DC using Arduino, is it possible to convert?

#define pwm 6 void setup() { // initialize serial communication at 9600 bits per second: pinMode(6, OUTPUT); Serial.begin(9600); } // the loop routine runs over and over again forever: void ...
2 votes
1 answer
31 views

Using MFRC522 along with other inputs(Bluetooth, keypad)

I'm making a little parking lot, which includes mostly opening a servo motor using either keypad, bluetooth(hc-05) and freshly added, Rfid(RC522) I cant get inputs from other sources if i want to get ...
  • 21
1 vote
0 answers
40 views

Communication between two hc 05 Bluetooth modules not working

I Have a problem with the connection between two hc 05 modules. The bluetooth modules are paired using AT commands. But when I run the code I cant get any data from the reciever. The bluetooth modules ...
1 vote
0 answers
48 views

Converting more strings from serial monitor to int arrays

I want to transfer 8 lists from a python script, via Serial Monitor to the Arduino. I can get the strings to Arduino and Arduino saves them as String array, but I can't change it to integer (it shows ...
1 vote
0 answers
22 views

Megaboard Problems about pySerial Communication from Python to Arduino

I asked same question on another forum, but i need more opinions and advices. I wrote a simple Python code and Arduino code. In my code, the Excel matrix data is loaded into Python, then converted ...
  • 11
0 votes
1 answer
115 views

DS3231 with Arduino Nano for Timing precision

I am in need to synchronize two separate circuit boards working with Arduino nano. The need is to activate one relay using Arduino-1 after 45 min and another relay using Arduino-2 after 45.36 seconds. ...
  • 173
0 votes
1 answer
81 views

Arduino nano timing precision

How precisely can an Arduino nano be timed? The project I am working on needs two Arduino nano to work synchronously. Arduino one have to activate a relay after 2700 sec and Arduino two have to ...
  • 173
1 vote
0 answers
26 views

Adding RTC Library for Arduino Project in Visual Studio

I am working in an Arduino project in visual studio. I need to get and set time to a RTC clock. That's why I am adding a ds3231 header file in my project from GitHub. When I want to build "it's ...
1 vote
2 answers
119 views

Arduino does not connect to MQTT local broker

I have an Arduino Mega with Ethernet connected to a router by cable. Also I have a PC connected to the router (by Wifi) where also the local MQTT broker is installed (mosquitto). Althought the Arduino ...
  • 141
0 votes
1 answer
69 views

control 12v motor with NPN transistor via arduino

i want to control this 12v motor via arduino: Power source is 12v 5A motor will work 5 seconds in every 5 minutes and will be activated throught arduino mega i will try to use bd679a darlington ...
1 vote
1 answer
163 views

Run encoder code simultaneously with other code in Arduino

volatile unsigned int temp, counter = 0; int county=0; void setup() { Serial.begin(9600); pinMode(2, INPUT_PULLUP); pinMode(3, INPUT_PULLUP); attachInterrupt(0, ai0, RISING); ...
0 votes
1 answer
85 views

Use Arduino MEGA generate 40kHz multiple square wave signal with 10 phase

I want to use Arduino-mega generate multiple square wave signal,the siganl is 40kHz and it can be used to drive ultrasonic transducer. So,I use the trategy in article "Ultraino: An Open Phased-...
-1 votes
1 answer
93 views

How many stepper motors can you run on one Arduino Uno? Ideas on how to run 9?

I am in middle school and new to Arduino. I just learned to set up and code a stepper motor on my Arduino Uno from watching YouTube videos. I want to set up 9 stepper motors to all run at the same ...
-1 votes
3 answers
82 views

Is there any way to efficiently code reading of four sensors and sending a serial output once it does detect a reading?

I am actually wondering if there's a way to efficiently do this block of code. There are two things in my specifications and these are: Four IR Sensors that detects blockage. Basically just to ...
0 votes
1 answer
59 views

How to architect streaming data from multiple plant monitors to single Arduino?

Premise: I'm trying to determine a good way to architect getting data from 4 plant monitors to a single Arduino. For context, that Arduino will have a Wifi connection that will transmit the data from ...
  • 103
0 votes
1 answer
73 views

Balancing pendulum using PID

Dear all, referring to the video at here on how to make a PID balancing pendulum as shown in the picture and the author also provided the arduino code in the video description. May I ask whether this ...
-2 votes
1 answer
208 views

How to find the correct navigation course by gps navigation with Arduino?

I have a problem for about days ago and here it is : I have an RC plane and wanna make it autonomous via GPS navigation by Arduino I have an Arduino Mage 2560 onboard connected to a GPS Ublox-Neo-M8N (...
0 votes
1 answer
48 views

Arduino Mega, 6 push buttons for each analog input (A0-A9) - closing one results in reading by other

On day to day basis I'm more of a high level programmer, with little electronics knowledge, apologies in advance if I lack some nomenclature or basics. I communicate with my Arduino Mega via firmata, ...
  • 103
-1 votes
1 answer
68 views

Arduino outputting 4.7V instead of 3.3V when using I2C communication/sensor?

TOF050C-VL6180X Sensor was not responding, so I checked it with a multi-meter, and the VIN, GND solder pins on it read 4.7V. Double-checked Mega voltage, without anything connected, and it shows ...
  • 11
1 vote
1 answer
64 views

MFRC522 board not detected. Red LED lighting

Mega 2560. I can't get the RFID board detected. The code is below, and outputs "Didn't find MFRC522 board.". I also tested some other library and test code with success. I triple checked the ...
  • 11
1 vote
0 answers
54 views

Need help with calling an API using an Arduino system

As stated in the title, I need help with calling an API. I'm trying to integrate make a call using the Verkada API but it seems to be using a cURL library that I'm not entirely certain I can get to ...
2 votes
2 answers
160 views

Voltage reading problem in Arduino mega based 10 cannel battery capacity tester

I want to make a 10 channels Arduino mega-based battery capacity tester using 4.7 ohms 10w resistors controlling them with IRFZ44n MOSFETs with respected digital pins. An 8.4V battery powers the ...
1 vote
0 answers
46 views

ArduinoMega2560 throws avrdude: com-state error after pressing the reset button a few times

I have recently switched to an ArduinoMega2560 (authentic) from the Arduino Uno and have been having a bit of trouble with uploading sketches after the reset button has been pressed a few times. This ...
0 votes
2 answers
79 views

Standalone ATMega328 - do I need to burn the bootloader?

I want to get an ATMega328 off of the Digi-Key, and use it like an Arduino (without requiring the whole Arduino board). When it comes to programming, do I need to do anything special like burn the ...
0 votes
1 answer
69 views

Using Millis instead of delay to reboot relay

I want to reboot relay (turn off , waiting 4 seconds and turn ON) it works perfectly if I use delay(4000), but code is blocked while delay (4 seconds) and I cant start relay 2. How can I use Millis ...
  • 101
1 vote
0 answers
82 views

ESP8266 TIMEOUT: 428

this is the code I used: #include <Wire.h> #include "WiFiEsp.h" // Emulate Serial1 on pins 6/7 if not present #ifndef HAVE_HWSERIAL1 #include "SoftwareSerial.h" ...
1 vote
0 answers
37 views

Trying to understand stepper behavior, and I have some specific questions

I'm using a repurposed MKS Gen L V1.0 board (arduino MEGA + RAMPS, basically) to control a pair of IR sensors and a NEMA 23 stepper with TB6600 driver. The application is simple: raise and lower the ...
0 votes
1 answer
59 views

Error while burning bootloader onto ATMega-8A using Arduino Mega 2560: avrdude: invalid byte value

So, I'm trying to burn the bootloader onto an ATMega 8A with an Arduino Mega 2560 as ISP. I made the necessary connections, and got this error: C:\Program Files (x86)\Arduino\hardware/tools/avr/bin/...
  • 13
-1 votes
1 answer
271 views

Avrdude verification error when uploading to Arduino Mega 2560

I have been getting the error avrdude: verification error, first mismatch at byte 0x036c 0xb8 != 0xf8 avrdude: verification error; content mismatch avrdude done. Thank you. When trying to upload the ...
-1 votes
1 answer
58 views

Arduino Serial to USB=>serial data issue

I am using Mega 2560 to receive serial data from another device but the data appears on the serial terminal are strange characters. then i connected my USB to serial cable (HL-340) to the device and ...
  • 3
0 votes
1 answer
84 views

Servo not moving with PIR motion sensor

I am working on this code to turn a servo when the PIR motion sensor detects no motion, but it is not working. Some symptoms include: Servo is turning extremely slowly PIR is not turning the servo ...
  • 21
1 vote
0 answers
47 views

I’m having trouble getting a motor to run for 10 seconds and then reverse direction every time push button is pushed down

i am brand new to arduino and was looking for a little help. i am looking to activate a motor once the button is pushed for 10 seconds and then have it stop. then the next time the button is pushed, ...
  • 11
0 votes
1 answer
57 views

Connect an MPX10DP Pressure Sensor to an Arduino Mega 2560

I'm literally new to using Arduino, i am trying to build a Pitot Tube to measure airspeed using an MPX10DP differential pressure sensor and i am working with an Arduino Mega 2560. Honestly, i have ...
1 vote
1 answer
184 views

How can I clear two FastLEDs strip ws2812b separately? One strip is connected to pin 7 of UNO and other strip to pin 6 of UNO

The power supply is external. I want to clear one strip say pin 7, and meanwhile i dont want other strip say pin 6 to switch off...I use FastLED.clear(); FastLED.show(); But it clears all the led ...
0 votes
2 answers
85 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 ...
  • 11
0 votes
1 answer
265 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 ...
1 vote
2 answers
687 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 ...
1 vote
1 answer
69 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....
  • 13
-1 votes
1 answer
78 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 ...
-1 votes
1 answer
54 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 ...
-1 votes
1 answer
40 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 ...
  • 101
1 vote
1 answer
866 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 ...
0 votes
1 answer
67 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 ...
  • 360

1
2 3 4 5
36