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
0answers
11 views
Connecting two arduinos using WiFi
I have two arduinos (An UNO R3 and a Mega 2560), and I need to communicate them via two ESP8266 modules to exchange some values.
In one arduino I'll use a SW-420 vibrarion module, and I need to send ...
1
vote
1answer
19 views
Using L298N to control DC Motor
I am developing a system where I want to control the direction of the DC motor (12V) from Arduino Mega/Uno. For that, I am using L298N H-bridge chip without the board as shown below.
My question ...
1
vote
0answers
9 views
Linear actuator jitters/vibrates when getting PWM from Arduino Mega 2560 through JKR 21v3 motor controller
I recently bought this linear actuator and motor controller from Pololu:
Linear actuator
https://www.pololu.com/product/2305
Motor Controller JRK21v3
https://www.pololu.com/product/1394
There ...
1
vote
1answer
33 views
Debouncing a limit switch in Arduino ISR with delays
I have a limit switch attached to an arduino Mega 2650 for motion control. The limit switch's two Normally Open contacts are connected to an Arduino Pin and ground, such that when the Limit Switch is ...
0
votes
0answers
16 views
Interfacing a Winbond W25Q32B with an Arduino Mega
I am trying to get a W25Q32B interfaced with a Mega. The problem is I don't know how to go about doing it. Can anyone guide me in the right direction. I want to read and write into the flash memory. ...
0
votes
0answers
11 views
PAN-3101 reads movements that does not exist
I have been tying to fix a problem with a PAN-3101 mouse sensor with an Arduino Uno. I can read data coming from it, but after I connect the Arduino to my PC (via USB only) the laser starts blinking ...
1
vote
1answer
25 views
Problem with structs and pointers(?) - Mega with QueueArray
I'm writing a sketch to run on a Mega that builds up an array of timestamps (using the QueueArray library and DS3231 library). I'm having a problem where a struct I'm defining and then queueing is ...
1
vote
1answer
45 views
How to Create a water screen with solenoid valve in arduino
I want to make a water screen. I will create character with solenoid valve. Sometimes sequential valve will pass to water, sometimes not pass.
And I will create some shape or character.
But I don't ...
0
votes
0answers
16 views
Arduino motor shield vs Adafruit motor shield
What's the different between arduino motor shield and adafruit motor shield?
Can I use adafruit library on arduino motor shield?
0
votes
0answers
24 views
D*Lite in Arduino using Andy Brown STL
I'm having problems to implement a D*Lite in Arduino, I need to make a priority queue, when I make it in a compiler, it works, but it doesn't in Arduino.
Here is my code:
#include <iterator>
...
0
votes
2answers
42 views
What is the best Arduino board for a Quadcopter with camera and Wifi?
I need to design a Quadcopter that contains a camera , ultrasonic sensors and Wifi connection to broadcast images in order to do image processing on a computer
0
votes
2answers
35 views
Relay module and internal pull-up resistors
I'm currently assembling a prototype of the lightning infrastructure (based on several MEGAs interconnected via RS485, as described in this other post)
The prototype consists of three MEGAs, a ...
0
votes
2answers
24 views
Difference in bootloader of atmega with 16MHz external crystal and 8MHz external crystal
I have used your bootloader for Atmega2560 16au with 16MHz external crystal and its works like a wonder.
But in my new project I have 3V power supply so I am planning to use low external crystal so ...
0
votes
0answers
8 views
How to run atmega2560 16au with 3v
As per my understanding if I use 8Mhz crystal with atmega2560 then it will need low power and can be operated at 3V but I am confuse as I can see atm ega2560 16au and atmega2560 8au .
My question is ...
0
votes
0answers
36 views
Why doesn't PWM work on arduino in this code?
I am trying to control dc motor speed with PWM. When I test it with simple program like spin in one direction with set PWM value it works. If PWM>70 the motor will start spinning and max is 255.
But ...
0
votes
1answer
26 views
Need to power Arduino Mega 2560 with 3.3V
I found an LCD for my Arduino Mega 2560 that's parallel (I like that, I don't like SPI), but it works at 3.3V and isn't 5V tolerant. That's why I'd need to use level shifters, but that would use too ...
0
votes
1answer
18 views
Arduino Mega 2560 bootloader delay
I need to make my program run immediately on a reset or power up. However, the bootloader delays program startup by around 2.5 seconds. How can I get over this? Is there a way to turn off the ...
0
votes
2answers
32 views
Power Supply for 30 Servos
I am now constructing something with 30 servos (each one will control an individual joint separately, so I guess I can't get away from this), how can I determine how much current do I need, I have a ...
0
votes
1answer
34 views
LED matrix appears dead
I recently purchased a 1.2 8x8 yellow matrix from Adafruit, along with a HT16K33 backpack for it. I joined the matrix and the backpack, connected everything to the arduino, followed the instructions ...
0
votes
0answers
15 views
Servo problem when use gps with softwareserial
When I use together servo motor and gps module with softwareserial , I found problem .Servo turing without signal.When I remove gps receive pin ,servo normally work. I use arduino mega 2560, ublox ...
0
votes
1answer
19 views
using seek() in Arduino to go to the end of a variable-sized file
Anyone know how to use the seek() function of Arduino SD Library to position pointer at the end of a file?
If programming in Windows do something like:
void fileInsert(char *file, void *data, size_t ...
0
votes
0answers
16 views
ADK USB Programming
I have an Arduino Mega ADK. I want to send data[the state of LED in Blink Sketch] using the in-built USB port. What should be my code to access the USB port for data transfer???
0
votes
0answers
23 views
Code for nRF24L01+PA+LNA
I have the above modules but I do not know the programming for it. So can anyone help me with the Nrf2401 Library?
1
vote
0answers
32 views
How to get X Y Position from Joystick [closed]
I have VR2 Joystick and I want to hack it. What I think is that, to determine analog voltage of joystick outpin and to mimic this values in Arduino with AnalogWrite function. I tried measure analog ...
2
votes
2answers
32 views
Looking for a game application oriented display for Arduino Mega
I was using displays with serial communication (SPI), but sending bytes to draw a tile-based picture was way too slow so I'd like find one with a parallel port, enough fast bandwidth to receive fast ...
0
votes
1answer
80 views
Arduino and 127/220 Volts: Relay and Isolation
I am new to Arduino, also, I am not fluent in english.
I wish to create a controller for several circuits. All of those circuits are "in parallel" with additional circuits.
My question is:
Do a ...
0
votes
1answer
16 views
How to use TimerOne while calculating time?
I'm trying to get warning with buzzer while I get same values on 3 seconds. But first warning doesn't wait 3 seconds. Second warning is correct. Code is attached. BlinkLED1() method is same BlinkLED2. ...
1
vote
2answers
34 views
Why PJ0 and PJ1 are not reporting as PCINT pins
When the sketch shown at end-of-question is compiled and uploaded to an Arduino board, it is supposed to Serial-print a list of available digital pins, showing for each pin whether it supports PWM or ...
2
votes
1answer
44 views
My mega only works on 1.0.1 IDE
My mega usb/serial adapter died some time ago, so I bought an external FTDI programer wich I got working on 1.0.1 IDE. I can load any program to the mega, even complex led matrix driver I wrote myself ...
1
vote
1answer
71 views
mcufriend 2.4 tft mega 2560
Please help me w/ my 2.4 mcufriend TFT on my Mega2560.
I've followed any instructions I can find, including:
2.4" TFT LCD Shield isn't working on Arduino Mega
I still get a show white ...
0
votes
2answers
40 views
After moving project from Arduino Mega to Due, pushbuttons now erratically toggle multiple buttons
I've had a project running successfully for months on an Arduino Mega, and today I tried to swap the Mega for a Due to increase the speed. After making the change, the entire project is working ...
0
votes
0answers
14 views
Receive files using bluetooth and wifi
Can Arduino RECEIVE files from mobile phones using bluetooth and/or wifi (at the same time, from multiple phones) without needing too much configuring? Will it need bluetooth and wifi modules ...
0
votes
1answer
47 views
Programming an ATMEGA2560 using FTDI
I want to know how exactly do I program (upload arduino sketches) an ATMEGA2560 which is boot loaded with an Arduino Bootloader using a FTDI programmer and an Arduino IDE, is there any ...
0
votes
1answer
27 views
Mega pin stuck high after driving optocoupler
I have an Arduino Mega which is driving a board. On the board is a quad optocoupler (K847PH). Pins 42 - 45 of the Arduino are each attached to the Anode of a opto. The cathode goes to ground through a ...
0
votes
1answer
30 views
Are there any ePaper modules that are bigger than 2.7 inches for arduino
I am looking for a large ePaper Display for the Arduino. The issue is is that I cannot seem to find one any larger than 4.5 inches in size. That will be compatible with arduino. Even with a controller ...
1
vote
2answers
61 views
Move robot through the waypoints
My arduino robot has two dc motors as two wheels and have mounted an IR led on it. I get current position of the robot as (x,y) coordinates in the arena using camera which is mounted at the top of the ...
0
votes
0answers
58 views
Control linear actuator with ROS and Arduino
I would like to control a linear actuator with ROS the same way ROS can control a servo like this
ros tutorial for 1 servo connected to an arduino. ...
-1
votes
2answers
53 views
arduino project for c programming language [on hold]
i am a student from 2nd semester BCA (Bachelor in Computer Application). My group need some project for presentation from c programming language so i thought of using #ARDUINO project for our ...
2
votes
1answer
61 views
Any chance of repairing Mega 2560?
So i decided it would be a good idea to flash a firmware onto my mega 2560 for a project. I ended up flashing the wrong side of the ICSP header (one near the usb plug/ M16U2) and killed my arduino for ...
2
votes
1answer
175 views
How do you use SPI on an Arduino?
With reference to the Arduino Uno, Mega2560, Leonardo and similar boards:
How does SPI work?
How fast is SPI?
How do I connect between a master and a slave?
How do I make an SPI slave?
Please ...
0
votes
1answer
86 views
How to connect arduino directly to mysql server using the url?
I started a project with my arduino MEGA2560 that get some values from sensors. I'm using Mysql Connector, https://launchpad.net/mysql-arduino , and this lib allow me to connect to a server using the ...
-4
votes
1answer
27 views
I'm new with arduino, plz help
I want to build a rf controlled car with a camera. The camera should transmit to a screen (not phone or PC). Is this possible and what do I need to get for it?
0
votes
1answer
54 views
AnalogWrite custom voltage
I want to get a low voltage on output pin of Arduino mega. I have connected Pin 46 to A3, and wrote 120 value to 46 port. Expected was to get 2-3v on A3 input pin. Instead I always get 1023 values ...
0
votes
0answers
112 views
Issue while connecting ESP8266 with Arduino Mega. It always says “Module have no response.”
I am having Issue while connecting ESP8266 with Arduino Mega. It always says "Module have no response."
Please check and correct me if I am wrong anywhere.
I am using below code and and wiring ...
0
votes
1answer
106 views
How to connect the SIM908 GSM+GPS+GPRS Dev. Board V1 to my Arduino Mega?
I'm trying to connect the SIM908 GSM+GPS+GPRS Dev. Board V1 from Electrodragon to my Arduino Mega. I connected the TX and RX pins to rx0 and tx0 in the Mega and the power pins using the diagram shown ...
1
vote
1answer
93 views
Why are there 3 crystals on the Mega2560 schematic?
I am a software engineer who is new(er) to electronics, I only started a couple of months ago. I've built a bunch of custom circuits, then some arduino nodes that are around my apartment that ...
0
votes
2answers
67 views
Communicating Via Serial1 on Arduino Mega
Apologies if this a relatively simple question, but I am rather new to Arduino's and cannot seem to find any concise information on the topic.
This is my XBee, mounted on a shield and placed onto a ...
2
votes
1answer
71 views
Can I stack an Arduino to another Arduino?
I'm using Arduino clones, which have pin headers the same as Arduino's shields have (with extended "legs" below the board to be stackable).
Can I stack my Arduino (Mega) clone to an Arduino (Uno) ...
1
vote
1answer
20 views
Lost Source Sketch
I wrote an interface to a radio about 1-year ago. I have since rebuilt that machine. Is there any way to retrieve the code. Now I do not expect it to be sources code.
I know the radio code still works ...
0
votes
1answer
64 views
Arduino Mega with two Arduino Unos as slaves via I2C?
Good morning! This is my first post here, and my first time diving into the world of microcontrollers. Bear with me, as I describe this theoretical project.
I've got an Arduino Mega 2560, two ...