Stack Exchange Network

Stack Exchange network consists of 175 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
1answer
23 views

Problem with SPI when using rf24 NRF24L01 transceiver with LED matrix MD_MAX72xx

I am currently using Arduino Mega to use a LED matrix and a NRF24L01 transceiver. for LED matrix, I use MD_MAX72xx library. While for the transceiver I use the RF24 library. I am already able to ...
0
votes
4answers
3k views

Programming Arduino in Pascal?

My question is simple: there is any Pascal or Pascal-class (FPC, Delphi, mikroPascal) programming language for Arduino? Preferably (I hope I don't ask too much) that language should not be older ...
0
votes
0answers
15 views

How to modify current driver files in USB_Host_Shield2.0 on github for Arduino Mega ADK USB driver for Epson LQ-310 printer?

At the moment, I am engaged in a project in which I have to drive Epson LQ-310 printer with Arduino Mega ADK (USB Host). There is already a library USB_Host_Shield_2.0 on Github which includes usb ...
0
votes
0answers
33 views

MOSI pin not turning low

I have the following code: void initChips(){ SPI.begin(); SPI.beginTransaction(SPISettings(20000000, MSBFIRST, SPI_MODE0)); pinMode(SS, OUTPUT); digitalWrite(SS, LOW); } void ...
0
votes
1answer
36 views

Arduino SPI Multiplexer problems

I want to use the ADG731 32 ch multiplexer to read 32 potentiometers, I have wired everything and it works but it doesn't works as fast as I would want. The problem is that If I turn a potentiometer ...
0
votes
0answers
17 views

Closed Loop Stepper Motor Control with ACE128 Absolute Rotary Encoder

I am using a 1.8 Resolution Stepper Motor controlled by a L298N driver and Arduino Mega. I have attached the ACE 128 Absolute encoder to the motor to use it as a closed loop system. The idea is for ...
0
votes
1answer
24 views

Control Air Pump Depending on Pressure Sensor [on hold]

I am working with an Arduino Mega, a 12V micro air pump, and a MP3V5050 air pressure sensor. The sensor outputs an analog voltage depending on the pressure reading in an inflatable member. I'd like to ...
0
votes
0answers
24 views

Webserver on Arduino Mega with Ethernet Shield

I am working with an official Arduino Mega. I have mounted an officiel Ethernet Shield rev 2. Everything works great, i have wrote a very basic webserver. I wanted to host a bootstrap css file on my ...
-1
votes
1answer
28 views

Simple code to define pins used for Shift Register control - Error: a function-definition is not allowed here before '{' token

I'm simply trying to light up some pins on a customized circuit board via Arduino. My code below has the seemingly common error "a function-definition is not allowed here before '{' token". I've ...
-1
votes
0answers
14 views

GPS module printing data twice in serial [closed]

I have a neo-6m printing GPS data to the serial port using tinyGPS++ but it is printing the same data twice. (See photo below) The first value is time, HH:MM:SS:SSS and its printing the same time ...
0
votes
0answers
27 views

CC1101 sniffing 868Mhz Protocol from thermostat

Hello i buyed a cc1101 because I want to sniff thermostat protocol which works with 868 Mhz. I found this repo https://github.com/veonik/arduino-cc1101. I tried to download the repo and include the ...
1
vote
1answer
59 views

Motors triggering Interrupt

I am using a 4wd robotic car to measure straight distances. I have attached two encoders on the front two wheels to measure the distance and I am using the back two wheels to adjust the car and keep ...
1
vote
1answer
37 views

Is it possible to connect many (20+) SPI sensors to an Arduino Mega?

I am making a system for measuring whether or not there is vacuum present in big steel containers. They are located up to 100 meters from the control cabinet. The question is, how many SPI sensors ...
0
votes
1answer
80 views

How to program the Robotdyn Mega 2560 PRO MINI?

I want to program the Robotdyn Mega 2560 PRO MINI which has no USB port. How do I connect the pins to an FTDI? Which setting do I have to use in the Arduino IDE?
0
votes
2answers
26 views

Connecting Emotiv EPOC+ to HC-05 [closed]

How can I connect Emotiv Epoc+ headset to HC-05? The headset has its own Bluetooth USB dongle which you plug into the computer to acquire data, but is there anything I can do on the Arduino side to ...
0
votes
1answer
53 views

nRF24L01 using sender as receiver and vice versa with RF24 library

I have two nRF24L01 modules (I tried 2 with antenna and 2 without antenna) paired with their power base module and connected to two different Arduino Mega 2560 boards. I'm able to send from one ...
0
votes
2answers
30 views

Will a 12 VDC 1A Power Supply Adapter supply too much power and damage an Arduino Mega 2560?

The specs shown here: show that it has 54 digital pins with each outputting a DC current of 20mA which makes it 54 * 20 = 1080 mA Plus the DC current of the 3.3V Pin of 30mA we get a total of 1110mA....
0
votes
0answers
51 views

Arduino reading screen color from device (without light/color sensor)

I am a beginner working on a project in which I have purchased a device that can display 4 colors on the display (blue, green, yellow, or red). I would like the Arduino to read what color is on the ...
0
votes
1answer
35 views

Arduino Mega not receiving data from Neo-6M

I am using the trying to get data from the Neo-6M GPS module with an Arduino mega, but, the condition 'While (gpsSerial.available() > 0' is being met. I believe this means the no bytes are being ...
-1
votes
4answers
4k views

ESP8266 sends webpage to client, but html codes appears in browser instead of webpage?

I am using ESP8266 with Arduino MEGA. ESP8266 is powered 3.3v via voltage divider, which is taking 5v from arduino and converting it down to 3.3v with the help of 5K and 10K resistors. AT commands ...
-2
votes
0answers
22 views

How to build a Syma X8 receiver by Arduino? [duplicate]

How to control a 4x DC motor (size 180) by one Arduino (similar to receiver Syma X8)?
0
votes
0answers
31 views

Can't push data to ThingSpeak - Status 400 Bad Request

I'm trying to push some data to ThingSpeak using the EtherCard library with the ENC28J60 ethernet module. At the moment I'm using the exemple code that comes with the library just for tests. But no ...
1
vote
1answer
47 views

Cascaded Control loop Arduino [closed]

I am trying to implement cascaded control system, with velocity inner loop and position outer loop. Separately and without cascaded control, I have implemented position control and velocity control ...
4
votes
2answers
1k views

SPI with a level converter in the other end of connection

I have an Arduino MEGA hooked up with a NRF24L01, and working nicely, talking with another Arduino Uno. It works as described, power supply to 3.3V, and SPI lines (MISO,MOSI,CLK) connected directly to ...
0
votes
1answer
15 views

Arduino 101 MIT App Inventor extension [closed]

Can the Arduino 101 extension by MIT App inventor be used in sending data through Bluetooth by an Arduino Uno/Mega?
1
vote
3answers
83 views

How to initialize digital output pin as low

I need to define a pin as output for relay module but when i do it in setup section, relay is activated (low - 0) automatically then i deactivated immediately with coding digitalWrite(pin, 1) but this ...
0
votes
0answers
21 views

Is there software to make an interactive GUI for my TFT touch screen shield?

I was wondering this, because realized it takes quite time consuming due to all the lines of code I have to write.
0
votes
1answer
27 views

Too little current to trigger a relay?

I try to use this relay with a Arduino Mega. I connected with jumper cables 5V pin to DC+, GND to DC- and Digital Pin 13 (because its a lucky number) to IN. The power LED from the relay is lighting ...
0
votes
1answer
28 views

CRC16 calculation for MODBUS RTU [closed]

I am trying to communicate an industrial type counter using Modbus. I have to calculate CRC16 value as two byte for send it. I previously googled for few Arduino libraries and I get a same function as ...
1
vote
1answer
62 views

Ultrasonic sensor underwater calibration

Does anyone knows how to calibrate AJ-SR04M using the Arduino? I am working on AUV. underwater reading from current code; it is giving continuous 20cm while moving inches. http://shop2.hanjindata1....
0
votes
1answer
20 views

Can I connect a DS3231 and an MPU6050?

Can I connect a DS3231 and an MPU6050 by an Arduino Mega 2560? I have connect it: MPU 6050 Arduino Mega 2560 SDA = SDA SCL = SCL GND = ...
0
votes
2answers
2k views

WiFi problem on Mega + WiFi R3 ATmega2560 + ESP8266

I've got 2 "Mega + WiFi R3 ATmega2560 + ESP8266" (link) and both have same issue when trying to use the ESP chip. Hope someone can point me toward something else to try in order to get them working ...
0
votes
2answers
240 views

Arduino SDFat Libray overwrites last value

I'm trying to create a comma delimited file using this SDFat library Calling this code creates my file const char Header[24]="Desired RPM,Output RPM\n"; ... foo() { SpeedCache.open("/Speed_Cache....
0
votes
2answers
2k views

Arduino and 2 Adafruit Fingerprint modules working together

I want to do a project with fingerprint access control. But my client wants one on both sides of the door (inside and outside). Now I am using this product Adafruit Fingerprint module but I don't want ...
1
vote
0answers
26 views

Help with app controlled Arduino sensors [closed]

(I'm a beginner in using Arduino and MIT App Inventor) We have this project (an app-controlled aquaponics system) where our group decided to use an app to control the arduino sensors and then show ...
0
votes
2answers
1k views

Elegant solution for refreshing TFT display content?

I'm currently drawing black boxes over old content before displaying constantly refreshing content on my display, so for instance to display temperature: if (sensorTemp != nowTemp){ nowTemp = ...
0
votes
3answers
465 views

How to check if a pin is set from bank?

How would you go about checking if an input pin has been set using the entire bank? I am thinking that I need to use bit twiddling with a bit mask but I have not used this enough to figure out how to ...
3
votes
1answer
11k views

How to generate gcode for Arduino Mega 2560 and Ramps 1.4 CNC Router [closed]

I had a Prusa I3 3D Printer which use Arduino Mega 2560, Ramps 1.4 and Pololu - A4988 Stepper Motor Driver. I want to convert my 3D printer to CNC Router using my Dremel with Flexible shaft like this....
-1
votes
2answers
32 views

Powering L298N drivers from mains power supply [closed]

I am powering 2 stepper motors with an L298N driver each (from a 9V 2A external power supply powered from the mains: https://www.amazon.co.uk/BERLS-Power-Adapter-Elegoo-Connectors/dp/B07GSM6YLX/ref=...
2
votes
2answers
7k views

Arduino Mega 2560 interrupt pins and port mapping with rotary encoder

I am trying to use port manipulation in interrupts to read a rotary encoder. I found code for a Uno, so the port call for pins 2 and 3 are different. I think on the Mega they are PORTH3 and PORTH4 ...
0
votes
1answer
46 views

HC-05 bluetooth module

I was able to connect my HC-05, pair it with my phone, and I can see data in the Serial Bluetooth Terminal Android App. But when I try to connect it to a certain application it says it cannot find it....
1
vote
1answer
45 views

How to subtract the current analog value from previous one [closed]

I pretty new to the Arduino. I am working on project that find the power by reading your
0
votes
1answer
262 views

Controlling output frequency of 3 Phase SPWM Inverter

I am now on a 3 Phase SPWM inverter project, and i got this code from this article. It works perfectly on simulation. But the problem is, i can't make the output frequency variable. I intend to vary ...
0
votes
1answer
10 views

Arduino Nano, Uno and Mega - XBee connection difference

I have a simple sketch working on arduino Uno and Nano sending data using an XBee. However, if I run the project on an Arduino Mega it does not work. What differences between Uno/Nano and the Mega ...
0
votes
3answers
62 views

Arduino max power supply limit

What is the maximum current that can be supplied to an Arduino Mega board before frying/breaking? Basically i have several components connected to my board which draw a total current of 1.6A (which i ...
0
votes
2answers
342 views

Powering Arduino Mega 2560 from a Raspberry Pi Usb

I have a Raspberry Pi B+ running 7x24. I have to connect an Arduino Mega 2560 to its USB. The Arduino has only one nRF24L01-PA-LNA powered from its 3V3. Can I power the Arduino from the Pi's USB?
0
votes
0answers
19 views

Making a voltmeter for PV system over 60 VDC

I'm trying to make a voltmeter for my PV system that can range from 24 VC to 120 VDC. I'm aware of the fact that we have Arduino modules available that can work for 25 VDC system. However in my case ...
0
votes
0answers
33 views

Unintelligible data transmission from Arduino Mega 2560 to RPi using nRF24L01+

I have a Raspberry Pi 3 and an Arduino Mega 2560 both attached to their own nRF24L01 chip. This is my first time using the nRF24L01 chip, so I copied and modified some demonstration code that I saw ...
0
votes
1answer
442 views

Did not find fingerprint sensor :( Arduino Mega 2560 Adafruit Fingerprint Sensor

I'm getting the following error when I try to enroll fingerprints using the Arduino Mega 2560 microcontroller along with a Fingerprint Scanner: Did not find fingerprint sensor :( The exact devices ...
0
votes
0answers
18 views

Brushless Motor and Electronic Speed Controller Initialisation Issues

I have been trying to make a brushless motor, working in synergy with an electronic speed controller, to work, however, all I have been achieving is the motor vibrating at a specific potentiometer/...