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
vote
0answers
31 views

Not getting any signal from myoware EMG muscle sensor. The signal LED (Red LED) on the sensor is always ON

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 ...
2
votes
1answer
67 views

How do I recreate the Pong game with two pots and the map function?

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 ...
2
votes
0answers
20 views

HC-05 bluetooth module stops working when blinking

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 ...
1
vote
0answers
24 views

How can I get a holding torque on dc motor if I am using an H-bridge?

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 ...
0
votes
2answers
46 views

Dropping a 75V power supply to power an Arduino Mega

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 ...
0
votes
0answers
48 views

Unable to sent instruction to arduino [duplicate]

This is my first try to run a hello world program, and I can't seem to send the instructions to my Arduino. Here's my code: void setup() { // put your setup code here, to run once: pinMode(13, ...
0
votes
0answers
14 views

looking for a two code fusion 1st for Relay 2nd for Servomotor Everything on a web page? [duplicate]

#include <SPI.h> #include <Ethernet.h> #include <Servo.h> int led = 4; Servo microservo; int pos = 0; byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; //physical mac address ...
-1
votes
0answers
17 views

I am looking for a two code fusion 1st for Relay 2nd for Servomotor Everything on a web page [duplicate]

Please i need help i am new to arduino and I am looking for a two code fusion 1st for Relay 2nd for Servomotor Everything on a web page I arrived at this result Can someone help me with this Thank you
0
votes
1answer
84 views

Listening Serial Ports

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 ...
1
vote
1answer
44 views

how to display text to 8x8 matrix with 64-bit long integers?

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, ...
2
votes
1answer
225 views

ATMega4809 via Nano Every marked as 20Mhz, but does this confirm it is actually at 16Mhz?

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 ...
0
votes
1answer
23 views

Arduino Mega + ESP01 + Firebase

I follow this link to do, but the upload fails and I get this error: Arduino: 1.8.12 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, Flash, Disabled (new can abort), All SSL ciphers (most ...
1
vote
0answers
41 views

Can I support all these sensors? Will I have enough pins?

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 ...
1
vote
0answers
32 views

8 Touch Screen Displays with single custom Microcontroller Board [closed]

I want to build a project like this but with touch screens. So that I can drag the moving text all across different touch screens from one to another. I want to know what would be your approach to ...
1
vote
1answer
57 views

Arduino Ethernet Shield: “no matching function for call to 'EthernetClass::begin()'” [closed]

So I sorta have no idea what is happening when it comes to http requests and DHCP. And I think that's part of what I'm doing wrong here. Every time try to compile this code, I get an error. I've ...
1
vote
0answers
62 views

Arduino Mega as a EEPROM Programmer for Winbond W29EE011 memories

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 ...
1
vote
0answers
41 views

How can I handle six SoftwareSerial ports for six Nova SDS011 Air Quality Sensors on Arduino MEGA?

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 ...
-2
votes
1answer
64 views

Do I use an LED or a pullup resistor for stopping “floating” or “ghosting” for a matrix keypad?

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 ...
2
votes
1answer
85 views

Is it possible to read multiple buttons with the CD74HC4067?

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 ...
2
votes
0answers
45 views

receives 0 0 instead of “hello”

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:...
1
vote
0answers
30 views

NEMA 17 Stepper motor + Arduino Mega + driver doesn't move using GRBL and UGS

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....
1
vote
0answers
22 views

Pyfirmata util.Iterator causes serial communications issues with more than one Arduino

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 ...
2
votes
1answer
107 views

Convert float to byte, from Arduino to Raspberry Pi i2c

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 ...
0
votes
2answers
35 views

Weight scale with Arduino: calibration step

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 ...
1
vote
0answers
42 views

Send Multiple Sensors Data into single Packet in Arduino

I have two sensors data in packet but now I want to send these two sensors data into single packet in which these two sensors data are gathered. I mean I want to have a packet in which I have oxygen, ...
1
vote
0answers
22 views

Reading a flash ROM chip (M45PE20) through SPI with an ATMEGA 2560 — output only FF's

I'm trying to communicate through SPI to a Flash ROM chip (M45PE20) with an ATMEGA 2560. I'm looking to read the data off the chip, but the output I'm getting is nothing but FF's. I've checked my ...
1
vote
0answers
39 views

External Interrupts, Mega2560

I have a question for you guys. I have some code that triggers an ultra-sonic sensor to measure distance. My code uses the EICRB register and executes in interrupt when it sees a transition on the ...
1
vote
1answer
50 views

Error in I2C Communication Between Arduino and Raspberry Pi

The code below sends data to Raspberry Pi every 20 millisecond. The code works fine but sometimes python throws an error. Why this is happening? Should I give more time between writeData? Error: > ...
1
vote
1answer
45 views

First Arduino Project - Need Advice (powering WS2812B LEDs)

I'm making a long LED display made up of 3 (8x32) LED matrices to go inside of a car. I can't seem to find any in-depth guides on this sort of thing. If anybody has examples that they would like to ...
1
vote
1answer
44 views

Send packet of multiple sensors data to Bluetooth module

In my project I am using 3 sensors. I am sending a regular stream of sensors data to Bluetooth module but now I want to send data in form of packet (which may be 30 bytes or 40 bytes of size) in ...
1
vote
0answers
34 views

Using arduino mega is making my cnc claw buggy. Help

I have three nema 23 steppers with one 8 channel relay(all the pins used) powering two dc motors and 4 IR sensors for feedback on the machine. The problem is my machine is working fine for only 2 to 3 ...
0
votes
2answers
40 views

Serial communication between Arduinos

I'm trying to send data from Arduino Mega to UNO. The master code sends characters 'x' and 'a' every half second to the slave Arduino UNO. Slave receives the characters and switches the state of the ...
1
vote
0answers
33 views

Project organization and Arduino board for bee-hives monitoring

I'm new about Arduino and also about the electronic world... I'm a software developer. I need to put in place a project to monitor my bee hives. I have multiple hives in two different places (one with ...
1
vote
0answers
51 views

Delay function executes too quickly

I'm making a hydroponics system that collects data and sends it to the user through a SIM module. The problem is that while I want it to happen only once every 15 minutes and for the pump to operate ...
1
vote
1answer
29 views

Arduino Mega reading from external sensor Issue

I have one external sensor and I want it to be connected with Arduino. The sensor came up with a usb cable and the pin out diagram is also given in the data sheet . When I simply connect the the cabe ...
1
vote
0answers
49 views

Need help with my codes? for my Project: Filling and Capping using Arduino uno [closed]

HERE'S MY CODE I have a problem for my codes. Please help #include <Wire.h> #include <LiquidCrystal_I2C.h> LiquidCrystal_I2C lcd(0x27, 16, 2); #define IRS1 7 #define IRS2 8 #define ...
1
vote
0answers
25 views

Brushless Motor “twitches” on its own when connected to battery

I've been trying to make a Bluetooth slider app that can control the spin speed of a brushless motor. The transmitter I am using is Arduino Mega. The problem I'm having is that my motor will start ...
1
vote
1answer
60 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
54 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
43 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
58 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
37 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
vote
3answers
618 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
57 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
97 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
64 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
35 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
30 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
66 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
2 3 4 5
37